The LilyPond Snippet Repository ♪♫

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

Results 1−10 of 330 for as

Using numbers as part of Lilypond variable names [0.40848]

Using numbers as part of Lilypond variable names

It is said that you cannot use numbers as part of Lilypond variable names. They are taken as durations. Here are possibilties to do so, anyway. Defining them in scheme or as a string.

…clarity and a better overview. %% Numbers are allowed as a part of variable names in Scheme, but … …enclose your variablename with doublequotes and reference it %% as usual with backslash %% With newer versions a dotted … …relative c'' { a^\markup { This is part1 (defined as scheme variable) } e f e8 e } #} ) "part2" = \…

Using numbers as part of Lilypond variable names

Print ChordNames with same root and different bass as slash and bass-note [0.32143]

Print ChordNames with same root and different bass as slash and bass-note

…subsequent ChordNames only differing in its bass note as slash and bass note use the here defined …

…chords we need to collect the bass note ;; as usual member of the chord, whereas an added … …from the usual chord-notes ;; - notes are stored as pairs containing their ;; pitch-name (an integer), i.e. …

Print ChordNames with same root and different bass as slash and bass-note

Eyeglasses as markup (path) [0.28571]

Eyeglasses as markup (path)

…conductor), one has to insert self-defined path code as a markup. myEyeglasses support svg ouput.

…15 \my-eyeglassespath #})) %%%% Example: \markup\italic "Standard eyeglasses" %% as defined in define-markup-commands.scm \relative c'' { c2^\markup\…

Eyeglasses as markup (path)

Entering pitches as a list of semitones [0.28571]

Entering pitches as a list of semitones

…rhythms = { %% Strictly speaking, these are not only rhythms, %% as the first pitch will actually be used. %% Also … …first pitch of this pattern will be used as a starting point; all subsequent pitches will be … …expand-repeat-chords! (list 'rhythmic-event) music)))))) %%%%%%%%%% %% The score given here as an example happens to look much %% nicer when …

Entering pitches as a list of semitones

Inserting large plain text sections, as independent \markup blocks [0.26786]

Inserting large plain text sections, as independent \markup blocks

LilyPond can handle text almost as well as music notation: in a \book block, you can … …also demonstrates some interesting text formatting features such as \justify-string or \wordwrap-string (do not forget the # …

Inserting large plain text sections, as independent \markup blocks

Using any arbitrary markup as LyricHyphen [0.26786]

Using any arbitrary markup as LyricHyphen

Lyric hyphens have several user-modifiable properties such as length and thickness; this doesn’t allow, however, for further tweaking, for example, rendering hyphens as rounded boxes to better match the font possibly used for LyricText, or even printing hyphens as actual glyphs rather than drawing basic boxes. This …

Using any arbitrary markup as LyricHyphen

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

…upward-pointing toe marks and downward-pointing heel marks (both as if the foot were pointing "toes up" on … …single pedal. These augmented marks follow Trevor (1971, as above), and can be used with any of … …organ_pedal_marks.ly ends here" and saved as organ_pedal_marks.ly, ready for inclusion in …

…styles are illustrated further below. STANDARD PEDAL MARKS As you normally would, use these commands just after … …the foot with the created grob ;; (FOLLOWING glide) as a pair in local `glide-grobs` (if new-glide-grob (begin ;; (… …one } } } \score { \new Staff { \common_settings_toccata \sectionLabel "As above but no style applied; will fail and …

Organ pedal marks in various styles, including pedal glides

Dodecaphonic staff [0.25000]

…Ledger lines do not follow the same pattern as the staff lines. Here they have been made as thin as possible for now; a better hack would be …

…equivalences % keep the original pitch names. % Preserves quartertones as half-sharps. dodecaPitchNames = #(map (lambda (pitchname) (let* ((pitch (… …d ds e f fs g gs a as b c1 c4 b bf a af g … …fs gqf g gqs gs aqf a aqs as bqf b bqs c1 } }

Dodecaphonic staff

Complex compound time signatures [0.25000]

…list can be given directly, i.e. not as a list containing a single list. For example, … …3+1)/8 + 2/4 would be created as \compoundMeter #'((3 1 8) (2 4)), and a time signature of (3+2)/8 as \compoundMeter #'((3 2 8)) or shorter \compoundMeter …

…list can be given directly, i.e. not as a list containing a single list." "For example, … …3+1)/8 + 2/4 would be created as " "@code{\\compoundMeter #'((3 1 8) (2 4))}, and a time signature of (3+2)/8 " "as @code{\\compoundMeter #'((3 2 8))} or shorter " "@…

Complex compound time signatures

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

…the former is not implemented. I defined "n." as a dynamic text and also created one of my own: "pd." as an abbreviation of "perdendosi", a term I feel … …and managed to get a decent result but, as I know nothing of Scheme, the solution was …

…Returns a function that accepts a hairpin grob as an argument and draws the stencil based on … …text Create a box of the same height as the current font, using the \"fp\" as a reference. " (let ((ref-mrkp (interpret-markup layout props "fp"))) (…

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

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