The LilyPond Snippet Repository ♪♫

What's this? Searching the LSR Browse by date Contributing Snippet database Browsing items 180−189 out of 940

Changing the font to small caps

The font can be changed to small caps.

Changing the font to small caps

Changing the interval of lines on the stave

staffLineLayoutFunction is used to change the position of notes. This snippet shows setting its value to ly:pitch-semitones in order to produce a chromatic scale with the distance between each space and line of the stave equal to one semitone.

Changing the interval of lines on the stave

Changing the number of augmentation dots per note

The number of augmentation dots on a single note can be changed independently of the dots placed after the note.

Changing the number of augmentation dots per note

Changing the number of lines in a staff

The number of lines in a staff may changed by overriding the StaffSymbol property line-count.

Changing the number of lines in a staff

Changing the positions of figured bass alterations

Accidentals and plus signs can appear before or after the numbers, depending on the figuredBassAlterationDirection and figuredBassPlusDirection properties.

If plus signs appear after the number, specially designed glyphs are provided for some figures.

Changing the positions of figured bass alterations

Changing the size of a staff with a music function

To change the size of an individual staff, you would \set the fontSize property of the Staff context, and \override the 'staff-space, and 'thickness properties of the StaffSymbol.

This snippet shows how to simplify this process by defining a music function called staffSize. It works as a macro and sets each of these three properties for you. (It can actually be used in any context that has a font size engraver, not just Staff contexts.)

If you want to resize all the staves in the file (and all the text as well), a simpler way is to use #(set-global-staff-size xx).

Changing the size of a staff with a music function

Changing the size of layout objects

The font-size property can be set directly, so that only certain layout objects are affected.

Changing the size of layout objects

Changing the size of note heads

It is possible to change the fontsize of note heads.

Changing the size of note heads

Changing the size of woodwind diagrams

The size and thickness of woodwind diagrams can be changed.

Changing the size of woodwind diagrams

Changing the staff size

Though the simplest way to resize staves is to use #(set-global-staff-size xx), an individual staff's size can be changed by scaling the properties 'staff-space and fontSize.

Changing the staff size

⇦ Previous 11 12 13 14 15 16 17 18 19 20 Next ⇨