Dear all,

in the attached files (.ly & .png) the alteration of the first b' in the
second bar produces an incorrect length of the stems and an incorrect
position of the beam.

This behavior does not appear in the third bar, where the third chord
is modified. Is there any reason for that?

To correct this situation, I'm overriding the beam's position with
        \once \override Beam #'positions = #'(-4.5 . -5.5)

Any other suggestion?

Thanks a lot,
T

%{ changeStaffStem %}
% -*- indent-tabs: true; tab-width: 2;
\version "2.14.2"
\include "english.ly"

uSt = { \change Staff = "upStaff" }
dSt = { \change Staff = "downStaff" }

upStaffMusic = {
	\relative c' {
		<b' c d>8 \dSt \stemUp <c, e g>
		\uSt \stemDown <b' d e> \dSt \stemUp <d, fs a>
		r2
	
		\uSt \stemDown <bf' c d>8 \dSt \stemUp <c, e g> \uSt
		\stemDown <b' d e> \dSt \stemUp <d, fs a>
		r2
		
		\uSt \stemDown <bf' c d>8 \dSt \stemUp <c, e g> \uSt
		\stemDown <c' d e> \dSt \stemUp <d, fs a>
		r2
	}
}

\new PianoStaff <<
	\new Staff = "upStaff" \upStaffMusic
	\new Staff = "downStaff" { s1*3 }
>>

<<attachment: changeStaffStem-example.png>>

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to