The LilyPond Snippet Repository ♪♫

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

Results 1−10 of 823 for the

Shifting dynamic marks above the staff and to the left of notes [0.50000]

Shifting dynamic marks above the staff and to the left of notes

…markings are often placed above, rather than below, the notes, so both the dynamics and the lyrics … …dynamics so they appear to the left of the notes. In recent development versions of LilyPond, they will then fall down to the staff in many cases. In current stable versions, …

…four one two three four } >> \layout { \context { \Voice % The self-alignment-X property tells LilyPond to position the marks … …indicates an offset 1.2 % staff spaces to the left of right-alignment. The 1.2 can be adjusted as needed to …

Shifting dynamic marks above the staff and to the left of notes

Re-positioning note heads on the opposite side of the stem [0.49554]

Re-positioning note heads on the opposite side of the stem

…or more note heads in a chord to the opposite side of the stem. This snippet allows … …functions for making other necessary adjustments (like changing the 'stem-attachment property) that may be required when changing the horizontal placement of a note head.

…Offsets are entered as a series of numbers. % The value of 0 causes no offset-calculation to occur … …of a Script is moved, another parent from the NoteColumn could be chosen. The NoteHeads are numbered 1 2 3 ... not 0 …

Re-positioning note heads on the opposite side of the stem

Printing the full title on several scores in the same file [0.46429]

Printing the full title on several scores in the same file

By default, only the piece and opus fields from the \header{...} block … …scores and you do not want to repeat the information several times in the input file.

…unimi.it/LSR/Item?id=310 %here starts the snippet: %LSR: Thanks to Adam James Wilson for this snippet \header { composer = "The One and Only" } \score{ { c' d' e' f'} \…

Printing the full title on several scores in the same file

Time signature printing only the numerator as a number (instead of the fraction) [0.45982]

Time signature printing only the numerator as a number (instead of the fraction)

Sometimes, a time signature should not print the whole fraction (for example, 7/4), but only … …style, this setting can be reversed. To apply the single-digit style to only one time signature, use the \override command and prefix it with a \once.

…c'' { \time 3/4 c4 c c % Change the style permanently \override Staff.TimeSignature.style = #'single-digit \… …2/4 c4 c % single-digit style only for the next time signature \once \override Staff.TimeSignature.style = …

Time signature printing only the numerator as a number (instead of the fraction)

Lyrics above the staff they are assigned to [0.42857]

Lyrics above the staff they are assigned to

Lyrics can also be placed above the staff to which they are assigned to. However, … …Lyrics = "lyricsname" { s4 } \new Staff = "staffname" << .... >> and do the actual lyrics assignment later: \context Lyrics = "lyricsname" \lyricsto "… …how to add lyrics above and/or below the staff.

…unimi.it/LSR/Item?id=391 %here starts the snippet: \header { tagline = ##f } notes = \relative c' { c4 … …lyrics % Notice the Lyrics = "name", where name is the same as in the above definitions! \context Lyrics = "above" \lyricsto "mainvoice" \lyricsAbove \…

Lyrics above the staff they are assigned to

Appending a note to the tuplet text (using a scheme wrapper function) [0.42857]

Appending a note to the tuplet text (using a scheme wrapper function)

Sometimes you might want to show the basic beat in the tuplet number text, i.… …tuplet-number::calc-fraction-text for 3:2 or tuplet-number::calc-denominator-text for 3 ) and the duration of the note to append: \override TupletNumber #'text = #(…

…around an existing % tuplet formatter function. It takes the value returned by the given % function and appends … …of the form: 2 quarternote % We can use the same wrapper function, only that we now use % calc-denominator-text, not the full calc-faction-text \override TupletNumber.text = #(tuplet-number::append-note-wrapper tuplet-number::calc-denominator-text (…

Appending a note to the tuplet text (using a scheme wrapper function)

Filtering parts from the command line [0.42857]

Filtering parts from the command line

…need to create scores for different audiences from the same sources you need to filter the input. … …accompaniment". You just need to set up the the target-names map correctly. Context properties need to be … …in some cases, for instance in order reduce the size of a score to get it on …

…unimi.it/LSR/Item?id=493 %% %% Based on the ideas, work, hard slog and implementations of Nicolas … …SECOND PASS : Score with `chords' target %% Simulate the command > lilypond -dtarget=chords -o chords <filename> #(… …THIRD PASS : Score with `song' target %% Simulate the command > lilypond -dtarget=song -o song <filename> #(…

Filtering parts from the command line

Using the input-tag property to create musical outlines [0.42857]

Using the input-tag property to create musical outlines

…Here's an example using Scheme code and the input-tag property to provide a way to mark … …that if you are generating multiple versions of the music and need to alter tags in the process of doing so. CAVEAT: As implemented, this …

…define empty? null?) %% Top level variable that holds the current %% outline level as music expressions are parsed. … …Any note whose outline %% level is greater than the level specified has its pitch set to the %% previous note and its color set to grey. …

Using the input-tag property to create musical outlines

Placing a text at the end of a hairpin (decrescendo) [0.42857]

Placing a text at the end of a hairpin (decrescendo)

The book Music Notation on the Twentieth Century, by … …kindly provided a solution in the form of the Scheme function copied below. All credit belongs to him. I'm adding this snippet to the repository at his request.

%% from output-lib.scm, extended to get the possibility to return other %% hairpin-length than default #(… …stencil build by @code{hairpin-with-right-text} for unbroken or the last of broken hairpins. " (lambda (grob) (let* ((orig (… …text) (markup?) " Returns a hairpin with text at the right. " #{ \once \override Voice.Hairpin.after-line-breaking = #(…

Placing a text at the end of a hairpin (decrescendo)

Using the high bass clef [0.42857]

Using the high bass clef

The high bass clef looks exactly the same as … …transposing of a part much more complex than the usage of the high bass clef .

…Apr.2016 MusicInF = { c'1 \tag #'HornClefChanges { % the High Bass Clef _with_ Editoral Annotation \clef "bass^[… …line { "is put over the first occurrence of the" \italic "high bass" } \line { \italic "clef" "as an … …to indicate: this music" } \line { "is still using the old-fashioned high bass clef." } } } \clef treble \MusicInF } { s4*…

Using the high bass clef

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