Am Montag, 30. Mai 2011, 10:56:16 schrieb Mario Moles:
> Hi to all!
> In this code "\repeat tremolo" and "\change staff"
> don't work fine: why?

That's simply a bug in the tremolo code: It counts all elements of the tremolo 
and assumes all of them are notes. So in the first case, LilyPond sees three 
events (two notes plus the staff change), assumes they are all notes and 
correspondingly adds the dot...

This problem deserves a bug report...
Can the attached (stripped-down) testcase be added to the report, too?

Codewise, the problem lies in scm/music-functions.scm, function make-repeat, 
line 281:
   (length (ly:music-property main 'elements))
instead of checking whether all elements are really notes.

Cheers,
Reinhold

-- 
------------------------------------------------------------------
Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org
\version "2.13.62"
csr = \change Staff = "right"
csl = \change Staff = "left" 

global = {
  \key c \major
}

right = \relative c'' {
  \global
  % Doesn't work: The \change is counted as note, thus a dot is added
  \csl \repeat tremolo 4 { f,,16 \csr f'}
  % Works: Only two notes, correctly scaled:
  \repeat tremolo 4 { f16 f'} |
}


\score {
  \new PianoStaff <<
    \new Staff = "right" \right
    \new Staff = "left" { \clef bass \global \stemDown d,1  }
  >>
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to