The LilyPond Snippet Repository ♪♫

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

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

Custodes

Custodes may be engraved in various styles.

Custodes

Custom tuning and MIDI rendering

For custom tuning in MIDI output, you define both the pitches of the basic scale (c d e f) and the pitch change for each alteration. Both the basic scale and the alteration contribute to the pitch adjustment in the MIDI output.

MIDI implements tuning as a "pitch-bend" adjustment from equal-temperament, changing with every note. Each MIDI channel has its own pitch-bend. You can put each voice on a separate MIDI channel, so each voice can have an independent pitch-bend.

You can use Scheme expressions to generate the pitches and alterations, or you can type the pitches as a list of numbers, in terms of cents or semitones.

Here is an example where you can hear the difference between quarter-comma meantone, 24-tone equal-temperament, etc.

Custom tuning and MIDI rendering

Customising note heads

There are two things you need to do to create arbitrary noteheads: <p>1. change the NoteHead stencil to the text-interface. <p>2. define the text attribute of the NoteHead. It accepts any markup. The easiest thing to do is to simply call a musicglyph, as in this example.

Customising note heads

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