The LilyPond Snippet Repository ♪♫

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

Creating text spanners

The \startTextSpan and \stopTextSpan commands allow the creation of text spanners as easily as pedal indications or octavations. Override some properties of the TextSpanner object to modify its output.

Creating text spanners

Cross-staff arpeggio brackets

By default, the arpeggioBracket shortcut only works at a Voice level. As a consequence, if you need to print cross-staff arpeggios, it will not work (as demonstrated in the first measure of this example); here is a way to make it work (demonstrated in the second measure).

Cross-staff arpeggio brackets

Cross-staff chords - beaming problems workaround

Sometimes it is better to use stems from the upper staff for creating cross-staff chords, because no problems with automatic beam collision avoidance then arise. If the stems from the lower staff were used in the following example, it would be necessary to change the automatic beam collision avoidance settings so that it doesn't detect collisions between staves using \override Staff.Beam.collision-voice-only = ##t

Cross-staff chords - beaming problems workaround

Cross-staff stems

This snippet shows how to use Span_stem_engraver and \crossStaff to connect stems across staves automatically.

The stem length need not be specified, as the variable distance between noteheads and staves is calculated automatically. However, it is important that \crossStaff is applied to the correct voice or staff (i.e., on the opposite side of where a beam is or would be positioned) to get the desired effect.

Cross-staff stems

Cross-staff tremolos

Since \repeat tremolo expects exactly two musical arguments for chord tremolos, the note or chord which changes staff within a cross-staff tremolo should be placed inside curly braces together with its \change Staff command.

Cross-staff tremolos

Crossing staves

This snippet demonstrates how to create various types of staves where their lines actually cross other staves.

Crossing staves

Cue with lyrics

Making a cue containing lyrics. This is just a combination of solutions from the Notation Reference.

Cue with lyrics

Curly bracket with variable length (path)

Curly bracket (or flat brace).

Curly bracket with variable length (path)

Curly end barline

Curly end barline supports svg output.

Curly end barline

Curved arrow

Markup function to draw a curved arrow with variable dimension.

Syntax is \curvedArrow #'length #'height #'X-strait_length.

Curved arrow

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