The LilyPond Snippet Repository ♪♫

What's this? Searching the LSR Browse by date Contributing Snippet database Browsing items 270−279 out of 949

Creating a short ossia section with lyrics

In vocal scores for a chorus the music for the soloists is sometimes omitted. In such cases a vocal cue can be inserted as a short ossia section.

Creating a short ossia section with lyrics

Creating arbitrary lines following notes across staves

In the snippet, you'll see that "s2" was used instead of "r2" as a placeholder to space it out a little bit. VoiceFollower ignores this -- when r2 was used it would try to draw a line from the rest to the note head, while philosophically interesting would be wrong.

Creating arbitrary lines following notes across staves

Creating arpeggios across notes in different voices

An arpeggio can be drawn across notes in different voices on the same staff if the Span_arpeggio_engraver is added to the Staff context:

Creating arpeggios across notes in different voices

Creating blank staves

To create blank staves, generate empty measures then remove the Bar_number_engraver from the Score context, and the Time_signature_engraver, Clef_engraver and Bar_engraver from the Staff context.

Creating blank staves

Creating chord rhythm guides

In some jazz, pop, and rock lead sheets, complex chord rhythms are clarified with some small notes below the chords demonstrating the rhythm. This behavior can be easily implemented by creating a RhythmicStaff and copying the rhythms directly.

Creating chord rhythm guides

Creating clarinet fingering symbol

This draws a symbol for clarinet fingering indications (e.g., microtonal scales, multiphonic sounds).

Usage : \clFinger arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8 arg9 arg10 arg11 arg12 arg13 arg14 arg15 arg16 arg17 arg18

All args are numbers with values of 0 or 1 except the last one which can be 0, 1, 2, 3, 4, 12, 13, 14, 23, 24, 34, 123, 124, 134 or 234

Creating clarinet fingering symbol

Creating cross-staff arpeggios in a piano staff

In a PianoStaff, it is possible to let an arpeggio cross between the staves by setting the property PianoStaff.connectArpeggios.

Creating cross-staff arpeggios in a piano staff

Creating cross-staff arpeggios in other contexts

Cross-staff arpeggios can be created in contexts other than GrandStaff and its derived siblings (PianoStaff, ChoirStaff, and StaffGroup) if the Span_arpeggio_engraver is included in the Score context.

Creating cross-staff arpeggios in other contexts

Creating custom dynamics in MIDI output

The following example shows how to create a dynamic marking, not included in the default list, and assign a specific value to it so that it affects MIDI output.

The dynamic mark \rfz gets value 0.9.

Creating custom dynamics in MIDI output

Creating custom key signatures

LilyPond supports custom key signatures. In this example, print for D minor with an extended range of printed flats.

Creating custom key signatures

⇦ Previous 21 22 23 24 25 26 27 28 29 30 Next ⇨