The LilyPond Snippet Repository ♪♫

What's this? Searching the LSR Browse Contributing Snippet database

Results 1−10 of 524 for this

SATB Anglican Chant [0.28348]

…consists of a doubling, triplilng, or quadrupling of this basic pattern. Because of the fixed design of … …Open the template and indicate the key. In this case, d major THIRD program the music. FOURTH … …the correct A B pattern. (You must do this for both treb and bass.) SIXTH Sequence the …

…commented out for LSR % % FIRST, create anglican-init.ly. This only needs to be done once each time … …be included in the final document. I use this shell script to run lilypond-book. Put this script somewhere that is also in your PATH. …

SATB Anglican Chant

Organ pedal marks in various styles, including pedal glides [0.28125]

…organists may want Lilypond's default style, so this snippet provides some alternatives. This snippet defines several … …foot were pointing "toes up" on the staff). This snippet also defines some new pedal indicator commands, … …snippet provides demonstrations and a convenience method for this.) Full usage information is given in the comment …

…organists may want Lilypond's default style, so this file provides some alternatives. At the time of … …endfoot glide event) foot-glide-event))) ((and glide (not endfoot)) ;; This moment has an ORPHAN GLIDE (ly:warning "No pedal … …start a glide, ignoring.")) ((and endfoot (not glide)) ;; This moment has NO GLIDE following it (set! foot-glide-event (…

Organ pedal marks in various styles, including pedal glides

Filtering parts from the command line [0.27679]

…filter the input. The \tag command partially addresses this, but source files have to be changed in … …provided and can be assigned to header fields. This name isn't the actual text of the … …it on a single page. Luckily Lilypond allows this using a construct like \override LyricText #'font-size = …

…to override the current target. Specifically used in %% this snippet to simulate different passes over the input … …italic 'upright) } } } \toplevelMarkupIfTargets #'(default) % WORKAROUND - ignore this line \markup \if-target-in #'(default) \fill-line { \column{ \line{\… …italic 'upright) } } } \toplevelMarkupIfTargets #'(default) % WORKAROUND - ignore this line \markup \if-target-in #'(default) \fill-line { \column{ \line{\…

Filtering parts from the command line

Using header fields in arbitrary markup [0.27679]

This snippet adds a markup function that allows one … …this case. The \markupWithHeader markup function defined in this snippet fixes this problem and makes the header fields available to …

…lsr.di.unimi.it/LSR/Item?id=467 % This function is originally copied from mark-up-title (file scm/… …properly % interpreted. \markup\markupWithHeader \testMarkup \markup\markupWithHeader { \wordwrap { This is a long text, which is now able … …#'header:fieldname"). For example, the title field of this score is: \fromproperty #'header:title and the composer …

Using header fields in arbitrary markup

Repeat commands grace echo purger [0.26786]

…grace note, while another voice does it after this grace note (usually because there is no grace … …within an exact sequence of the other engravers. This example illustrates how it's done 'directly' by context modifications and using a scheme engraver, and this source code also describes how it will be …

…Score \remove "Repeat_acknowledge_engraver" \remove "Volta_engraver" % this scheme engraver defined above must be placed % before … …below! %%% This is the syntax how to disable this patch in a \score block % \remove #Repeatcommands_graceecho_… …add just _b_e_f_o_r_e_ this the line \consists #Repeatcommands_graceecho_purger %}

Repeat commands grace echo purger

Metronome marks with more options [0.26786]

…tempo value, you can use the property tempoNumberColor. This snippet also changes the size of metronome marks: … …bit smaller than the default of Lilypond. IMPORTANT: This snippet is based on a snippet by Arnold … …tempoEquationText in that snippet is "≈". I changed back this default to Lilypond default, and added the tempoBetweenText …

…set, the tempo value will be formatted % to this color. % Default: not set. % The size of the … …tempo 4 = 80 c'1^" "_"»originally after included this code sample«" \tempo "Allegro di Largo" 4 = 84 … …#format-metronome-markup-custom«" "is assigned by a layout definition in this example" %\null } } }

Metronome marks with more options

Automatically adjusting lyric placement for natural note spacing [0.26786]

This snippet gets rid of uglinesses in note spacing … …will be no collisions in the lyrics. However, this can lead to uneven note spacing. This snippet completely removes the presence of lyrics in …

…gnu.org/archive/html/lilypond-user/2022-11/msg00087.html % % This snippet gets rid of uglinesses in note spacing … …expense of other lyric syllables nearby. Try outcommenting this %% override to see the effect. %\once \override LyricText.… …lyric words (in spite of the snippet turning this off). %% Try outcommenting to see the effect. %\doReserveSpace …

Automatically adjusting lyric placement for natural note spacing

Piano "Half Sustain Pedal" Indications [0.26563]

…on the generated music in an intuitive way. This snippet provides functions that allow you to easily do this. The implementation is quite complicated, but basically there … …not automatically turn off sustainHalfOn. Under the covers, this works by representing sustain half on/half off …

%% This snippet defines functions that enable "1/2" pedal … …they are changed back. A side effect of %% this is that having the UnaCorda pedal and 1/… …at the %% same time is not possible with this implementation. %% Definitions of half-pedal functions. Moving these to …

Piano "Half Sustain Pedal" Indications

Indenting individual systems [0.25893]

…first are indented by the same amount (short-indent). This layout constraint is applied in advance and cannot … …compensatory splicing and fudging. See discussion re LSR966. This snippet demonstrates the pseudoIndent workaround which superimposes an … …indentation on the score's unmodified layout indentation. This approach avoids all those score change problems. There …

%%%%%%%% HEADER %%%%%%%% % % this code was prompted by % https://lists.gnu.org/… …- old-width narrowing_)) (new-rightmost-x (+ leftmost-x new-width)) ; and set! this immediately (junk (ly:grob-set-property! staffsymbol-grob 'width new-rightmost-x)) (in-situ-stil (ly:staff-symbol::print … …overrides are applied only at begin-of-line \break % (but this does not exclude unsupported multiple application) % give the …

Indenting individual systems

Rhythm marks / play style indication [obsolete in 2.23] [0.25000]

…g. with a swing rhythm, you can use this. This can be used and tweaked for various rhythm styles/changes. This snippet is obsolete with LilyPond 2.23.x: …

…lsr.di.unimi.it/LSR/Item?id=204 %% This rewrite uses the \rhythm markup-command from 2.24. %% … …2.24.0 has a glitch with Dots. %% This override to cure it should be deleted with … …rhyMarkII \rhyMarkI \spacer \rhythmMark #"suassa" \rhyMarkII \rhyMarkI % This is just to proof that the basline-fake really …

Rhythm marks / play style indication [obsolete in 2.23]

1 2 3 4 5 6 7 8 9 10 Next ⇨