The LilyPond Snippet Repository ♪♫

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

Contemporary glissando

A contemporary glissando without a final note can be typeset using a hidden note and cadenza timing.

Contemporary glissando

Contemporary glissando 2

A contemporary glissando without a final note can be typeset using a hidden note and duration scaling.

Contemporary glissando 2

Controlling beam damping

The angle (damping) of the beams can be modified. In the following example, various settings are demonstrated.

Controlling beam damping

Controlling formatting of prefatory items

This example demonstrates how to place prefatory items (such as the clef and key signature) at the end of a line.

Controlling formatting of prefatory items

Controlling of the pitch range in a score

Here is a set of 4 functions to check or modify the pitch range in a piece of music.

  \correctOctave
  \correctOctaveOutOfRange
  \colorizeOutOfRange
  \parenthesizeOutOfRange

Here is the code of each Staff.

  \music                                 % staff 1
  \correctOctave #'above g'' \music      % staff 2
  \correctOctave #'below g' \music       % staff 3
  \correctOctaveOutOfRange g' g'' \music % staff 4
  \colorizeOutOfRange g' g'' \music      % staff 5
  \parenthesizeOutOfRange g' g'' \music  % staff 6

Controlling of the pitch range in a score

Controlling spanner visibility after a line break

The visibility of spanners which end on the first note following a line break is controlled by the after-line-breaking callback ly:spanner::kill-zero-spanned-time.

For objects such as glissandos and hairpins, the default behaviour is to hide the spanner after a break; disabling the callback will allow the left-broken span to be shown.

Conversely, spanners which are usually visible, such as text spans, can be hidden by enabling the callback.

Controlling spanner visibility after a line break

Controlling the appearance of tremolo slashes

Using various properties of the StemTremolo grob it is possible to control the appearance of tremolo slashes.

Controlling the appearance of tremolo slashes

Controlling the placement of chord fingerings

The placement of fingering numbers can be controlled precisely. For fingering orientation to apply, it must be used within a chord construct <code>&lt;...&gt;</code>, even for single notes. Orientation for string numbers and right-hand fingerings may be set in a similar way.

Controlling the placement of chord fingerings

Controlling the vertical ordering of scripts

The vertical ordering of scripts is controlled with the 'script-priority property. The lower this number, the closer it will be put to the note. In this example, the TextScript (the sharp symbol) first has the lowest priority, so it is put lowest in the first example. In the second, the prall trill (the Script) has the lowest, so it is on the inside. When two objects have the same priority, the order in which they are entered determines which one comes first.

Controlling the vertical ordering of scripts

Controlling the vertical ordering of scripts (2)

The vertical ordering of scripts can be either tweaked with the 'script-priority or the 'outside-staff-priority property. The lower this number the closer it will be put to the note.

Controlling the vertical ordering of scripts (2)

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