The LilyPond Snippet Repository ♪♫

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

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, PianoStaff 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

Creating double-digit fingerings

Creating fingerings larger than 5 is possible.

Creating double-digit fingerings

Creating fret diagrams with chord names but no staff/staves using fret diagram markup

This snippet shows how to create fret diagrams with chord names but no staff/staves, for a fret diagram which is not one of the predefined fretboard diagrams i.e. with the fret diagrams specified using fret diagram markup.

The first example in the "Fret diagram markups" section of the "Notation Reference" (http://lilypond.org/doc/v2.18/Documentation/6f/lily-b213fdb4.ly) is defined using fret diagram markup, so I have used that example as the basis for this snippet. Hence, this is also an example of how to remove the staff (and all things in the staff) from the first example in the "Fret diagram markups" section of the "Notation reference".

For more info, please see:

Creating fret diagrams with chord names but no staff/staves using fret diagram markup

Creating guitar scales on fretboards

This snippet creates fretboards with guitar scales.

The syntax is

\scale-diagramm #'( (string1 fret1) (string2 fret2) ... ) #notesinscale #size

For example for a c pentatonic scale (first six notes)

\scale-diagramm #'((5 3) (5 5 ) (4 3) (4 5) (3 2) (3 5)) #5 #1.5

you can wrap this up in a markup command for building up a list of scales

cpenta = \markup \scale-diagramm #'((5 3) (5 5 ) (4 3) (4 5) (3 2) (3 5)) #5 #1.5

and use it like this

c^\cpenta d f g a c

The snippet doesn't show it, but the (1) position of the scale is inverted

Creating guitar scales on fretboards

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