[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
First-note change bug, avec workaround
From: |
Trevor Bača |
Subject: |
First-note change bug, avec workaround |
Date: |
Wed, 31 Aug 2005 17:39:56 -0500 |
Context-first \change commands prior to any note, rest or skip data
print "warning: can't change `Staff' to `down': not changing to same
context type" and fail to effect staff change, as reported by Will
Oram.
%%%%% BEGN FIRST-NOTE CHANGE SNIPPET %%%%%%%
\score {
\context PianoStaff = piano <<
<<
\context Staff = "1" {
\clef treble
\time 1/4
\change Staff = "2" % THIS LINE FAILS
c'16
\change Staff = "1"
c'16
c'16
c'16
}
\context Staff = "2" {
\clef bass
\time 1/4
s4
}
>>
>>
}
%%%%%%% END BUG SNIPPET %%%%%%%%%%
Fortunately, there's a workaround. Add a durationless skip just prior
to change (thereby satisfying what seems to be a constraint that some
note or rest or skip precede any \change command.
%%%%%%% BEGIN FIRST-NOTE CHANGE WORKAROUND %%%%%%
\score {
\context PianoStaff = piano <<
<<
\context Staff = "1" {
\clef treble
\time 1/4
s4*0 % ADD THIS LINE FOR WORKAROUND
\change Staff = "2"
c'16
\change Staff = "1"
c'16
c'16
c'16
}
\context Staff = "2" {
\clef bass
\time 1/4
s4
}
>>
>>
}
%%%%% END WORKAROUND %%%%%%%%%%%%%
--
Trevor Bača
address@hidden
- First-note change bug, avec workaround,
Trevor Bača <=