bell notificationshomepageloginNewPostedit profiledmBox

Hoots : Explicit positioning of middle C in the middle of double (piano) staff with lilypond With Lilypond, in a piano staff (with double staff), a middle C belongs either to the treble or to the bass staff, so that it is not displayed - freshhoot.com

10% popularity   0 Reactions

explicit positioning of middle C in the middle of double (piano) staff with lilypond
With Lilypond, in a piano staff (with double staff), a middle C belongs either to the treble or to the bass staff, so that it is not displayed aligned the middle of the staves.
Is there a way to explicitly set the position (height) of a given C exactly in the middle of the staves?


Load Full (2)

Login to follow hoots

2 Comments

Sorted by latest first Latest Oldest Best

10% popularity   0 Reactions

As already mentioned, this is generally not a good idea.

Nevertheless, what I think you want can be achieved by adjusting the padding between the staves in a grand staff.

NB: The staff-staff padding number will depend on the notes in your score

new GrandStaff with {
override StaffGrouper.staff-staff-spacing =
#'( (padding . -1.1) )
} {
<<
new Staff {
clef "treble"
g'4 f' e' d' |
c'1 |
R1 |
}
new Staff {
clef "bass"
R1 |
c'1 |
b4 a g f |
}
>>
}


10% popularity   0 Reactions

Middle C will be added to either the treble or bass staves as ledger lines. The reason it isn't centered in the middle, is because it will be associated with the bass or treble.

Maybe you can get it to be centered, but you will be running contrary to how middle C is read by the player as a ledger line added to one or the other staves.

...if a ledger line was centered between the two staves, it looks like there is a large leap in a line of step-wise motion.

...putting the ledger line one space above the bass makes it visually clear the line is smooth steps.


Back to top Use Dark theme