The LilyPond Snippet Repository ♪♫

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

Results 1−10 of 592 for of

Altering the shape of a default slur with a list of offsets [revised] [0.47321]

Altering the shape of a default slur with a list of offsets [revised]

If you want to adjust the shape of a slur, one way is to specify a … …control-points. This is done by entering a list of offsets (in staff spaces) to the default coordinates: \… …snippet is a revised version, by David Nalesnik, of the original (snippet 639).

…index in list ;; and apply offsets from list of offsets: (let loop ((n 0)) (if (eq? (list-ref … …grob) (if (< n total-found) (loop (1+ n)) ;; end of list -- none found?! ;; return defaults: ((alter-curve '()) grob)))) ;; ;; … …8 f' e d c2) \bar "||" %% borh halves of the slur are modified \shapeSlur #'((0 -2.…

Altering the shape of a default slur with a list of offsets [revised]

(Correctly aligned) different dispersions of text in different stanzas [0.42857]

(Correctly aligned) different dispersions of text in different stanzas

If different stanzas of a song have different amount of syllables the … …the notes of the first stanza. The lyrics of the different stanzas are aligned correctly according to the voice of the respective stanza.

%% Remark: %% This snippet produces a plethora of %% warning: ignoring too many clashing note columns %% If … …of the different stanzas according to the voice of the respective stanza %The first three bars demonstrate … …Flag.font-size = #-3 %since we want the lyrics of the second stanza to be aligned correctly, %we …

(Correctly aligned) different dispersions of text in different stanzas

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

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

…to use "niente" or its abbreviation "n." instead of a hairpin ending on a "o" (page 18). … …a decent result but, as I know nothing of Scheme, the solution was far from perfect. I … …Morley kindly provided a solution in the form of the Scheme function copied below. All credit belongs …

…mirrored?) grob) "Create hairpin based on a list of @var{coords} in @code{(cons x y)} form. @… …right. The hairpin is shortened by the length of @var{text}, @code{bound-padding} is taken into account" (… …by @code{hairpin-with-right-text} for unbroken or the last of broken hairpins. " (lambda (grob) (let* ((orig (ly:grob-original grob)) (…

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

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

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

…heads in a chord to the opposite side of the stem. This snippet allows you to do that by overriding the horizontal placement of individual note heads. It also includes two helper … …may be required when changing the horizontal placement of a note head.

…id=861 % Offsets are entered as a series of numbers. % The value of 0 causes no offset-calculation … …define-music-function (val)(pair?) " Adjust 'stem-attachment via adding multiples of the stem-width to the x-default (car val) and … …setOtherScriptParent = #(define-music-function (which-note-head)(integer?) " If the parent-NoteHead of a Script is moved, another parent from the …

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

Microtonal notation and theory of harmony [0.40848]

Microtonal notation and theory of harmony

…for the additional pitches. You list the set of pitch-changes you want to represent, and what symbol … …natural notes represent 'Pythagorean' tuning following the cycle of perfect fifths, which results in a very wide … …a perfect major third. Notice the different shadings of pitch in the C-sharps, G-sharps and A-naturals, depending …

…pitches for the scale are specified in terms of equal-tempered % whole tones. % Transposition, key signatures, transposition, and % … …955 'cents' where a cent is 1/200 of an % equal-tempered whole tone. LilyPond uses rational numbers … …in our % Lilypond input. We extend the list of Dutch note names: arrowedPitchNames = #`( (ceses . ,(ly:make-pitch -1 …

Microtonal notation and theory of harmony

Controlling of the pitch range in a score [0.40625]

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 …

…low-pitch high-pitch music)(ly:pitch? ly:pitch? ly:music?) "Corrects octave of notes not in range `low-note `high-note" #{ \correctOctave … …ly:pitch? ly:pitch? ly:music?) "Colorize in red, notes out of range `low-note `high-note" (let ((colorfunc (define-music-function (evt)(ly:music?) … …and range as music % range in the form of : <c g'> or { c g' } #(define (…

Controlling of the pitch range in a score

Vertical spacing of footnotes [0.40625]

Vertical spacing of footnotes

…separator markup and the first footnote. A consequence of this very simplistic output model (i.e., using … …letter ‘p’). This snippet fixes the vertical spacing of footnotes. It defines a new command \Footnote that … …markup list (for multi-line footnotes). The baseline-to-baseline distance of the lines in multi-line footnotes is controlled by …

…baseline-skip)) "Insert a height strut at the beginning of the first line and a depth strut at … …multi-line footnote). The baseline skip between the % lines of a multi-line footnote is controlled by the paper … …is another multi-line footnote grob with a lot of senseless text. } } Stem <c e g>4 q …

Vertical spacing of footnotes

Adding fingerings (or string numbers or stroke fingerings) outside of the music code [0.40179]

…fingerings (or string numbers or stroke fingerings) outside of the music code

…for ex *15x will skip 15 notes). Instead of one digit, you can add a substitution fingering … …various \override, you can uncomment the commented lines of the code of this snippet, but you'll need first to …

…string, all substrings begining with % bis the end of line." (let ((delete? #f) (prev-char #\a)) (string-delete (… …: 'FingeringEvent for ex. %% property-name : main property of event-name : 'digit for fingerings. %% min max : … …that '1-2-3'. %% -> add comments at the end of the line. Start them with a percent sign (%). …

Adding fingerings (or string numbers or stroke fingerings) outside of the music code

Adding notes to the notes of a melody [0.39286]

Adding notes to the notes of a melody

…want to add notes to the existing notes of a melody (to make chords), you generally have to copy your melody then add lots of <> to each note, which can be a time-consuming. …

…gensym)) #(use-modules (ice-9 receive)) %% for the use of receive #(define (chord->note chord n . args) "… …in chords, each element of alist with notes of music (map-some-music (lambda(x) (case (ly:music-property x 'name) ((… …the second one, and so on. The duration of notes are taken from `music. In `notes, only …

Adding notes to the notes of a melody

Changing the width of ledger lines for a group of notes [0.39286]

Changing the width of ledger lines for a group of notes

If you want to temporary modify the width of ledger lines you have to specify \stopStaff \startStaff …

…scaleLedgers = #(define-music-function (s) (number?) "Changes the width of ledger lines. 0.25 is default value for … …note head by 0.25 times the width of the notehead. Scales the default value by s." (…

Changing the width of ledger lines for a group of notes

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