lilypond-user
[Top][All Lists]
Advanced

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

Re: substitution for stem length


From: Mats Bengtsson
Subject: Re: substitution for stem length
Date: Mon, 16 Jun 2008 17:42:29 +0200
User-agent: Thunderbird 2.0.0.5 (X11/20070716)

Try

Langhals = #(define-music-function (parser location length) (number?)
      #{
        \once
    \override Stem #'length = $length
#})


   /Mats


Stefan Thomas wrote:
Dear Lilypond-users,
I would like to make a varibable substitution for stems over two systems.
Before I used (thanks to Wilbert Berendsen)
noFlag = \override Stem #'flag-style = #'no-flag

stemExtend = { \noFlag \autoBeamOff
\override TupletNumber #'transparent = ##t
\override TupletBracket #'bracket-visibility = ##f
\override Stem #'length = #16
\override Stem #'cross-staff = ##t
}
Unfortanetely the stem length of 16 isn't always good.
Now I would like to type something like " langhals #16 " c4
I tried it, wothout success, with:
Langhals = #(define-music-function (parser location padding) (number?)
       #{
         \once
     \override Stem #'length = #$length
#})
------------------------------------------------------------------------

_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user

--
=============================================
        Mats Bengtsson
        Signal Processing
        School of Electrical Engineering
        Royal Institute of Technology (KTH)
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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