The LilyPond Snippet Repository ♪♫

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

Results 1−10 of 78 for stem

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

…note heads on the opposite side of the stem

…a chord to the opposite side of the stem. This snippet allows you to do that by …

…of the stem: % The left side for a stem pointing up and % the right side for a … …context { \Voice %% Construction-helper %\override Stem.color = #red %\override Stem.layer = #20 %% Test-settings %\override Stem.thickness = #2 %\override NoteHead.style = #'diamond %\override …

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

Tremolo slash at the stem midpoint [0.32143]

Tremolo slash at the stem midpoint

…the tremolo slash in the middle of the stem, between the notes. Here is a way to …

…#(lambda (grob) (let* ((dir (ly:grob-property grob 'direction)) (stem (ly:grob-parent grob X)) (stem-stil (ly:stem::print stem)) (stem-Y (ly:stencil-extent stem-stil Y)) (stem-len (- (cdr stem-Y) (…

Tremolo slash at the stem midpoint

Rewriting the Stem stencil using markup paths [0.26786]

Rewriting the Stem stencil using markup paths

…no visible effect, it just redoes the existing stem stencil. % You can use this as a base. … …cons 0 (interval-start Y-ext)))) #f)) \relative c' { \override Stem.stencil = #path-stem | c1 | c8 d8 e8 f8 g8 f8 e8 d8 c2 c2 \override Stem.stencil = #lightning-stem | c1 | c8 d8 e8 f8 g8 …

Rewriting the Stem stencil using markup paths

Preventing stem extension [0.25000]

Preventing stem extension

…new Voice { f2 f8 g a b \override Stem.no-stem-extend = ##t f2 f8 g a b } \new Voice { c''2 c8 b a g \override Stem.no-stem-extend = ##t c2 c8 b a g } >> } }

Preventing stem extension

Marking notes of spoken parts with a cross on the stem (Sprechstimme) [0.25000]

…of spoken parts with a cross on the stem (Sprechstimme)

speakOn = { \override Stem.stencil = #(lambda (grob) (let* ((x-parent (ly:grob-parent grob … …-4 #:musicglyph "noteheads.s2cross")) -2.3)))) } speakOff = { \revert Stem.stencil \revert Flag.stencil } \score { \new Staff { \relative …

Marking notes of spoken parts with a cross on the stem (Sprechstimme)

Easy Gregorian notation [0.25000]

…ily" Syntax is: \include "modernGregorian.ily" ... \cadenzaOn \omit Stem 'note'... \melisma { \lst 'note' \mli 'note' \sli 'note' \tli 'note' } where: \lst goes for long stem \mli goes for medium ligature \sli goes for …

…to be saved as "modernGregorian.ily" %%%%%%%%% %%%% Defining new stem/ligatures: % long stem lst = #(define-music-function (mus) (ly:music?) … …432)" } } } } zslotar = \transpose c c' { \clef G \omit Stem d d d \melisma { f g \lst a } … …c c' { \clef G \key a\major \omit Stem \melisma { d \lst e } e \bar "|" \melisma { \lst …

Easy Gregorian notation

Altering the length of beamed stems [0.24554]

Stem lengths on beamed notes can be varied by … …the beamed-lengths property of the details of the Stem. If a single value is used as an …

\relative c'' { \override Stem.details.beamed-lengths = #'(2) a8[ a] a16[ a] … …Stem.details.beamed-lengths = #'(8) a8[ a] \override Stem.details.beamed-lengths = #'(8.5) a8[ a] \revert Stem.details.beamed-lengths a8[ a] a16[ a] a32[ a] …

Altering the length of beamed stems

Creating a Schenker Graph [0.21429]

…A note head may have more than one stem or none, Slurs may be nested arbitrarily and …

…staff \override Slur.color = #(x11-color "purple") \hide Stem s1 \once \override Slur.height-limit = #6 \once \override … …Slur.extra-offset = #'(0.5 . -0.25) \override Stem.length = #0 g4_( s2. s1 g,4) s s1 s2 \undo \hide Stem \undo \hide NoteHead } >> \bar "|." } } >> } \score { << \staffPiano >> \layout { indent = …

Creating a Schenker Graph

Automatically changing the stem direction of the middle note based on the melody [0.21429]

Automatically changing the stem direction of the middle note based on the …

LilyPond can alter the stem direction of the middle note on a staff …

Automatically changing the stem direction of the middle note based on the melody

Using ly:grob-object to access grobs with \tweak [0.19643]

…Example console output: #<Grob Accidental > () #<Grob Stem >

…is grob (let ((notecolumn (notehead-get-notecolumn notehead))) (ly:grob-object notecolumn 'stem))) #(define (display-grobs notehead) ;; notehead is grob (let ((accidental (notehead-get-accidental notehead)) (arpeggio (notehead-get-arpeggio notehead)) (stem (notehead-get-stem notehead))) (format (current-error-port) "~2&~a\n" (make-string … …format (current-error-port) "~a\n" x)) (list accidental arpeggio stem)))) \relative c' { %% display grobs for each note head: %\…

Using ly:grob-object to access grobs with \tweak

1 2 3 4 5 6 7 8 Next ⇨