The LilyPond Snippet Repository ♪♫

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

Broken TextSpan for gradual tempo changes on page turns

If you have a tempo change like a ritenuto or accelerando over a system and a page turn, the text on the next page is in parenthesis.

An added level of difficulty is understanding the order of the text in a broken TextSpanner in relation to the code.

Furthermore, a null value, or string with a space (" ") added to the 2nd text right-broken.text overwrites its default value right.text.

And this is especially more common and probable in scores with fewer systems per page, e.g. orchestral scores, music for band.

See Gould, Behind Bars: "Indicating continuing tempo change", page 185.

Broken TextSpan for gradual tempo changes on page turns

Caesura ("railtracks") with fermata

A caesura is sometimes denoted by a double railtracks breath mark with a fermata sign positioned above. This snippet shows an optically pleasing combination of railtracks and fermata.

Caesura ("railtracks") with fermata

Center Lyric Syllables (ignoring punctuation)

When a lot of verses have the same text, but with difference punctuation, e.g. because some verses are in quotation marks, it looks awkward because the text doesn't line up vertically. Even when there is only a single verse, it can look awkward to have the punctuation be included in the width of the syllable when centering it beneath the note. Settings for 'self-alignment-X and lyricMelismaAlignment are respected.

It looks much nicer to center the text of the syllable and then put the punctuation around it.

Center Lyric Syllables (ignoring punctuation)

Center text below hairpin dynamics

This example provides a function to typeset a hairpin (de)crescendo with some additional text below it, such as molto or poco. The added text will change the direction according to the direction of the hairpin. The Hairpin is aligned to DynamicText.

The example also illustrates how to modify the way an object is normally printed, using some Scheme code.

Center text below hairpin dynamics

Centered measure numbers

Scores of large ensemble works often have bar numbers placed beneath the system, centered horizontally on the measure's extent. This snippet shows how the Measure_counter_engraver may be used to simulate this notational practice. Here, the engraver has been added to a Dynamics context.

This snippet presents a legacy method: starting from LilyPond 2.23.3, \set Score.centerBarNumbers = ##t is enough.

Centered measure numbers

Centering a stencil on another stencil

If you want to re-position a stencil so that it is centered relative to another stencil, on the X axis, the Y axis, or both, you can use the "center-stencil-on-stencil" function from this snippet.

Centering a stencil on another stencil

Centering markup on note heads automatically

For technical reasons, text scripts attached to note heads cannot easily be centered on a note head's width, unlike articulations.

Instead of using trial-and-error offset tweaks, this snippet uses a Scheme engraver to reset the horizontal parent of each markup to a NoteColumn. This also allows text to follow note heads which have been shifted via force-hshift.

Centering markup on note heads automatically

Changing \flageolet mark size

To make the \flageolet circle smaller use the following tweak.

As of 2.23.12 the \flageolet is smaller by default, thus this snippet will be deleted with next LSR upgrade.

Changing \flageolet mark size

Changing \partCombine texts

When using the automatic part combining feature, the printed text for the solo and unison sections may be changed.

Changing \partCombine texts

Changing a single note's size in a chord

Individual note heads in a chord can be modified with the \tweak command inside a chord, by altering the font-size property.

Inside the chord (within the brackets < >), before the note to be altered, place the \tweak command, followed by font-size and define the proper size like #-2 (a tiny note head).

Changing a single note's size in a chord

⇦ Previous 11 12 13 14 15 16 17 18 19 20 Next ⇨