lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question: stemlets, tuplets, and beams


From: Damian Legassick
Subject: Re: Question: stemlets, tuplets, and beams
Date: Wed, 26 Dec 2007 19:08:45 +0000




1) Is there a way to create "stemlets"
(i.e. short stems unconnected to noteheads)
when beams extend over rests?



two ways - first is 'Carter-style', which is a pain to automate fully, because so many variables, but i do it like this: (\stemlet #'(x . y) passes x and y amounts to the TextScript #'extra- offset)
(it's less hassle if you 'force' the stem direction)

\version "2.11.35"

stemlet =
     #(define-music-function (parser location x-y)
                             (pair?)
     #{
                \once \override NoteHead #'transparent = ##t
                \once \override TextScript #'extra-offset = #$x-y
     #})

el = ^\markup{\musicglyph #"rests.3" } %{eigth-let%}
sl = ^\markup{\musicglyph #"rests.4" } %{sixteenth-let%}

{
        \stemUp
        d'8[
        \stemlet #'(1 . -7)
        b'\el
        c'']
        
        \stemDown
        d'16[
        \stemlet #'(-0.5 . -3)
        f'\sl
        g'']
}

or, if you don't want to show the rests it's much simpler (again, it's less hassle if you force the stem direction)

\version "2.11.35"

{
        
        \stemUp
        d'8[
        \once \override NoteHead #'transparent = ##t
        c''
        c'']
        
        \stemDown
        d'16[
        \once \override NoteHead #'transparent = ##t
        g'
        g'']
        
}

dlg





reply via email to

[Prev in Thread] Current Thread [Next in Thread]