lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Beaming problem


From: Jayaratna
Subject: Re: Beaming problem
Date: Sat, 14 Jun 2008 07:25:54 -0700 (PDT)

Thank you, Mats.


Here is an instance of the file in which the beaming problem arises, they're
eight separate files, the last one containing the score:
%*****************************Bwv1057_01_fl1.ly**************************

\version "2.10.33"

flautoa =  \relative c' {
  \set Staff.instrumentName = #"Flauto I"
  %\set Staff.shortInstrumentName = #"Fl. I"
  \set Score.skipBars = ##t
  \time 3/8 \key f \major
        c''4.~c4.~ c8 bes a r8 a16 bes c8 bes a g r8 g16 a bes8 a16 c f c a f e 
g c
g e c a'8 g f r8 f16 g a8
        g f e r8 e16 f g8 f4.~ f4.~ f16 d e f g a b32 [(a g f] e16) b e g c,8 
a'4~
a4.~ a8 f a
        d4.~ d16 g,, g b b d d b b d d g g4.~ g4.~ g8 f e r8 e16 f g8 f e d r8 
d16
e f8 e r8 r8 d r8 r8
        c r8 r8 R4.*3 r8 g'16 a g a bes a g a bes8~ bes16 a g a bes a bes d c 
bes a
g a g a bes a bes c bes a bes c8~ c16 bes a bes c bes
        %many more measures following

  \bar"||"
}


%\score {\new Staff { \flautoa}}
%
%\midi {
%  \context {
%    \Score
%    tempoWholesPerMinute = #(ly:make-moment 72 4)
%    }
%  }


%*****************************Bwv1057_01_fl2.ly**************************

\version "2.10.33"

flautob =  \relative c' {
  \set Staff.instrumentName = #"Flauto II"
  %\set Staff.shortInstrumentName = #"Fl. II"
  \set Score.skipBars = ##t
  \time 3/8 \key f \major
        a''16 c f c a f e g c g e c a'8 g f r8 f16 g a8 g f e r8 e16 f g8 c,4.~
c4.~ c8 bes a r8 a16 bes c8
        bes a g r8 g16 a bes8 a16 c d e f g a32 [( g f e ] d16) a d f b,8 g'4~ 
g4.~
g16 e f g a bes! c32 [(bes a g] f16) c f a f4.~
        f4.~ f4.~ f16 g, g b b d c e g e c e d b g b d f e8 d c r8 c16 d e8 d c 
b
r8 b16 c d8 c r8 r8 b r8 r8
        c r8 r8 R4.*3 r8 e16 f e f g f e f g8~ g16 f e f g f g bes a g f e f8 
c16 d
c d ees d c d ees8~ ees16 d c d ees d
        %Many more measures following

  \bar"||"
}


%\score {
%       
%               
%               \new Staff { \flautob}
%
%}
%
%\midi {
%  \context {
%    \Score
%    tempoWholesPerMinute = #(ly:make-moment 72 4)
%    }
%  }


%*****************************Bwv1057_01_vl1.ly**************************

\version "2.10.33"

Violinoa =  \relative c' {
  \set Staff.instrumentName = #"Violino I"
  %\set Staff.shortInstrumentName = #"Vl. I"
  \set Score.skipBars = ##t
  \time 3/8 \key f \major
        f'8 r8 r8 g r8 r8 a r8 r8 R4.*3 f8 r8 r8 g r8 r8 a r8 r8 R4.*4
        r16 a16 a f f d b8 r8 r8 r16 b'16 b g g e c8 r8 r8 r16 c'16 c a a f f8 
r8
r8
        r16 f16 f d d b b8 r8 r8 r16 d,16 d g g b c8 r8 r8 d r8 r8 e r8 r8 
R4.*3 c8
r8 r8 d r8 r8
        e\staccatissimo d\staccatissimo c\staccatissimo r8 c16 d e8 d c b r8 
b16 c
d8 c r8 r8 R4. r8 bes g e  [c16 c' c c] c8 r8 r8 R4. r8 ees c
        %Many more measures following
        
  \bar"||"
}

%
%\score {
%       
%               
%               \new Staff { \Violinoa}
%
%}
%
%\midi {
%  \context {
%    \Score
%    tempoWholesPerMinute = #(ly:make-moment 72 4)
%    }
%  }


%*****************************Bwv1057_01_vl2.ly**************************

\version "2.10.33"

Violinob =  \relative c' {
  \set Staff.instrumentName = #"Violino II"
  %\set Staff.shortInstrumentName = #"Vl. II"
  \set Score.skipBars = ##t
  \time 3/8 \key f \major
        c'8 r8 r8 e r8 r8 f r8 r8 R4.*3 c8 r8 r8 e r8 r8 f r8 r8 R4.*4
        r16 f16 f f f f f8 r8 r8 r16 g16 g g g g g8 r8 r8 r16 a16 a a a a a8 r8 
r8
        r16 d,16 d d d d d8 r8 r8 r16 g,16 g g g g g8 r8 r8 b r8 r8 c r8 r8 
R4.*3
g8 r8 r8 b r8 r8
        g8\staccatissimo f\staccatissimo e\staccatissimo r8 e16 f g8 f e d r8 
d16 e
f8 e r8 r8 R4. r8 g8 e c16 e f g a bes a8 r8 r8 R4. r8 c8 c
        %Many more measures following
        
  \bar"||"
}

%
%\score { \new Staff { \Violinob} }
%
%\midi {
%  \context {
%    \Score
%    tempoWholesPerMinute = #(ly:make-moment 72 4)
%    }
%  }


%*****************************Bwv1057_01_vla.ly**************************

\version "2.10.33"

Viola =  \relative c' {
  \set Staff.instrumentName = #"Viola"
  %\set Staff.shortInstrumentName = #"Vla"
  \set Score.skipBars = ##t
  \time 3/8 \key f \major \clef alto
        a'8 r8 r8 g r8 r8 f r8 r8 R4.*3 a8 r8 r8 g r8 r8 f r8 r8 f, r8 r8
        c'8 r8 r8 c, r8 r8 f r8 r8 r16 d'16 d d d d d8 r8 r8 r16 e16 e e e e e8 
r8
r8 r16 f16 f f f f f8 r8 r8
        r16 d16 d d d d g8 r8 r8 r16 d16 d d d d e8 r8 r8 d r8 r8 c r8 r8 R4.*3 
e8
r8 r8 g r8 r8
        g r8 r8 c,, r8 r8 g' r8 r8 g' r8 r8 c, r8 r8 R4. r8 g'8 e  \set
Score.beatLength = #(ly:make-moment 3 8) c8. [ e16 f g] f8 r8 r8 R4. r8  a8
a
        \set Score.beatLength = #(ly:make-moment 1 8) 
        %Many more measures following

  \bar"||"
}

%
%\score { \new Staff { \Viola} }
%
%\midi {
%  \context {
%    \Score
%    tempoWholesPerMinute = #(ly:make-moment 72 4)
%    }
%  }


%*****************************Bwv1057_01_cnt.ly**************************

\version "2.10.33"

Continuo =  \relative c' {
  \set Staff.instrumentName = #"Continuo"
  %\set Staff.shortInstrumentName = #"C."
  \set Score.skipBars = ##t
  \time 3/8 \key f \major \clef bass
        f,8^\markup{
                \column {
                        \line {Violone e}
                        \line{violoncello}
                        }
                }
         r8 r8 c r8 r8 f, r8 r8 R4.*3 f8 r8 r8 c' r8 r8 f r8 r8 R4.*4
        r8 f8 d g r8 r8 r8 g e a r8 r8 r8 a f d r8 r8
        r8 d b g b g e g e c r8 r8 g' r8 r8 c r8 r8 R4.*3 c8 r8 r8 g r8 r8
        c,r8 r8 R4.*6 r16 c'16 c c c c f,8 r8 r8 R4.*2
        %Many more measures following
        
  \bar"||"
}

%
%\score { \new Staff { \Continuo} }
%
%\midi {
%  \context {
%    \Score
%    tempoWholesPerMinute = #(ly:make-moment 72 4)
%    }
%  }


%*****************************Bwv1057_01_cem.ly**************************

\version "2.10.33"

Upper =  \relative c' {
  \set Staff.instrumentName = #""
  %\set Staff.shortInstrumentName = #""
  \set Score.skipBars = ##t
  \time 3/8 \key f \major \clef treble  
        <<{ < a' c f >8 } \\ {  f8 } >> r8 r8 
        <<{ < c' e g >8 } \\ {  g8 } >> r8 r8
        <<{  < f' a >8 } \\ { c8 } >> r8 r8
        <<  { \stemDown c4.~\prallprall \stemDown c4.~ \stemDown c4.~ \stemUp 
c8 <c
a> <c f> r8}  \\ {s4. s4. s4. r8 f,8 a r8} >>
        << { < c e>8 <e g>8 <f a>8 r8 r8 <c f>8 r8 r8 } \\ { g8 c c s8 s8 a s8 
s8 }
>>
        << { < e' g >8 r8 r8 <c e >8 r8 r8 <c f>16 a bes c d e } \\ { bes8 s8 
s8 g8
s8 s8 a16\noBeam} >>
        << {s4. b'16 s16 s8 s8 s4. c16}\\{f,16 a a f f d~ d b c d e f g b b g g 
e~
e c d e f g}>>
        << {a16 c c a a f f a a f f d}\\{r8 <c, f>8 <c f>8 r8 <f a>8 <f a>8} >>
        <<{d'16 f f  d d b b d d b b g g b b g g e e g c g e c b d g d b
g}\\{g'16}>>
        r8 g'4~  \prallprall g4.~ g4.~ g4.~ g16 g c g e c b d g d b g
        <<{<e g>8}\\{c8}>> r8 r8 <<{<g' c>8}\\{e8}>> r8 r8 <<{<g b>8}\\{d8}>> 
r8 r8
<<{<b' d>8}\\{f8}>> r8 r8 <<{<g c>8}\\{e8}>> r8 r8 <<{R4.}\\{\once \override 
MultiMeasureRest #'staff-position =#-1 R4.}>> r16 bes'16 bes g g e e c d e f
g a f f c c \change Staff = down a \change Staff = up s4.*2
        %Many more measures following
        
 \bar"||"
}

Lower =  \relative c' {
  \set Staff.instrumentName = #""
  \set Staff.shortInstrumentName = #""
  \set Score.skipBars = ##t
  \time 3/8 \key f \major \clef bass
        << { < a c >8 } \\ { f8 } >> r8 r8 
        << { < g c >8 } \\ { c,8 } >> r8 r8 
        << { f8 } \\ { f,8 } >> r8 r8
        << { <a' c>8 } \\ { f8  }>> r8 r8 
        << { <e g c >8 } \\ { c8} >> r8 r8
        << { c8 } \\ { c,8 } >> r8 r8
        << { < a' c f >8 } \\ { f8 } >> r8 r8
        << { < e' g >8 } \\ { c8 } >> r8 r8
        << { r8 \tieUp c'4~\prallprall c4.~ c4.~ c4.~  c8 r8 d8\rest } \\ { f,8 
r8
r8 \once \override  MultiMeasureRest #'staff-position =#-1 R4. \once
\override  MultiMeasureRest #'staff-position =#-1 R4. \once \override 
MultiMeasureRest #'staff-position =#-1 R4. r8 f8 e } >>
        << { d'8\rest  8  8 g,8 g' f r8 8 8 }\\{d,8 f d s4. e8 g e }>>
        a,8 a' g f a f d d' c
        b16 d d b b g g b b g g e e g g e e c c8 r8 r8 g r8 r8 <c c,>8 r8 r8 
<<{<e
g>8}\\{c8}>> r8 r8 <<{8}\\{g8}>> r8 r8 <<{<b' d>8}\\{g8}>> r8 r8
<<{e'8}\\{c8}>> r8 r8 <<{d8}\\{g,8}>> r8 r8 
        <<{r8 g4~\prallprall g4.~ g4.~ g4.~ g16 c c g g e}\\{c8 r8 r8 \once
\override  MultiMeasureRest #'staff-position =#-1 R4. \once \override 
MultiMeasureRest #'staff-position =#-1 R4. \once \override  MultiMeasureRest
#'staff-position =#-1 R4. c8 r8 r8}>>
        \stemUp e16 g g e e c \stemNeutral c8 r8 r8 <<{r16 c16 c c c c c8}\\{r16
c,16 c c c c f8}>> r8 r8
        <<{a'16 c c a a f f8 r8 r8}\\{R4. r16 c16 c a a f}>>
        %MAny more measures following
        
        
 \bar"||"
}



cembalo = {
                        \set PianoStaff.instrumentName = "Cembalo"      
                        %\set PianoStaff.shortInstrumentName = #"Cem."  
                        %\set Staff.midiInstrument = "harpsichord"
                                        <<
                                \new Staff = up { \set Staff.midiInstrument = 
"harpsichord" \Upper}
                                \new Staff = down { \set Staff.midiInstrument = 
"harpsichord" \Lower}
                                        >>
                        }

%\score {                       \new PianoStaff << \cembalo >>}
%\score { \new PianoStaff << \cembalo >> \midi { \context {\Score
tempoWholesPerMinute = #(ly:make-moment 160 8) }}}
%   


%*****************************Score.ly**************************


\version "2.10.33"
#(set-global-staff-size 18)


\include "Bwv1057_01_fl1.ly"
\include "Bwv1057_01_fl2.ly"
\include "Bwv1057_01_vl1.ly"
\include "Bwv1057_01_vl2.ly"
\include "Bwv1057_01_vla.ly"
\include "Bwv1057_01_cnt.ly"
\include "Bwv1057_01_cem.ly"


#(ly:set-option 'point-and-click #t)



%*****************************%*****************************Score%*****************************************************



#(ly:set-option 'point-and-click #t)

\book {
        
\header {
  title =       "Concerto"
  opus = "Bwv 1057"}

\paper  {
        #(set-paper-size "a4")
        %between-system-padding = #1
        %ragged-bottom=##t
        %ragged-last-bottom=##t
        %systemSeparatorMarkup = \slashSeparator
        %between-system-padding = 33.66
        %left-margin = 16.5\mm
        %right-margin = 46.6*2\mm
        %line-width = 247.5\mm
        %top-margin = 11.66\mm
        %bottom-margin = 23.33\mm
        annotate-spacing = ##f
        %system-count = 43
                
}

\score {




        \new StaffGroup <<
                \new GrandStaff
                                <<
                                \new Staff { \flautoa}
                                \new Staff { \flautob}
                                >>
                \new GrandStaff
                                << 
                                \new Staff{ \Violinoa}
                                \new Staff { \Violinob}
                                >>

                                \new Staff { \Viola}
                                \new Staff { \Continuo}

                \new PianoStaff <<\cembalo >>
        
                        >>      
        \layout{  
                \context {
                        \Score
                        \override BarNumber #'padding = #2
                        %#(layout-set-staff-size 8)
                }
        
        }
\header { piece = "Allegro" 
          breakbefore = ##f }
        
%\midi { \context {\Score tempoWholesPerMinute = #(ly:make-moment 160 8) }}


}}






The bug is showing at measure 38 Violino I part; measure 39 Flauto II part;
measure 40 Flauto I and Flauto II parts.

When I process these parts separately (using each files' own score) the bug
does not work. I guess it could be something in my Score.ly file?

Thank you for your help,
Andrea



Mats Bengtsson-4 wrote:
> 
> There are a number of problems with the beaming that have existed for a 
> long time in
> LilyPond. However, you are lucky, since several of these have been fixed 
> in the latest
> development version, 2.11.49.
> 
> However, I'm confused that you see problems only in the score and not in 
> the parts.
> Perhaps the problem is something else. If you send a small but complete 
> example
> that illustrates the problem, I'm sure that you can get help from the 
> mailing list.
> 
>     /Mats
> 
> Jayaratna wrote:
>> Dear subscribers,
>>
>> Typing this code in a 3/8 measure (version 2.10.33):
>>
>>  e8 c16 c' c c
>>
>> I get a very strange strange autobeam: the second c second beam-line is
>> not
>> connected the following ones.
>> The same is happening on these codes in different parts:
>>
>> f8 c16 d c d
>>
>> In this one I get the separation between the last bes and the c8
>>
>> c16 bes a bes c8
>>
>> I've tried some \set Score.measureLength = #(ly:make-moment 3 8) or \set
>> Score.beatLength = #(ly:make-moment 3 8) but no results. Note that this
>> strange thing is happening only in the score, and not in the parts.
>>
>>
>> Thank you for your help,
>> Andrea
>>   
> 
> -- 
> =============================================
>       Mats Bengtsson
>       Signal Processing
>       School of Electrical Engineering
>       Royal Institute of Technology (KTH)
>       SE-100 44  STOCKHOLM
>       Sweden
>       Phone: (+46) 8 790 8463                         
>         Fax:   (+46) 8 790 7260
>       Email: address@hidden
>       WWW: http://www.s3.kth.se/~mabe
> =============================================
> 
> 
> 
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Beaming-problem-tp17820561p17839689.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]