lilypond-user
[Top][All Lists]
Advanced

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

setting the beatlength for sixteenth-sixtuplets


From: Stefan Thomas
Subject: setting the beatlength for sixteenth-sixtuplets
Date: Sun, 8 Nov 2009 19:12:35 +0100

Dear community,
I would like to define a function, that allows me to set the beat-length to 1/8 for 16th-triplets.  And I would like, if it could work for every kind of bar.
I tried it with:
\version "2.12.2"
SSX = #(define-music-function (parser location x) (ly:music?)
#{
   \set beatLength = #(ly:make-moment 1 8)
  \set tupletSpannerDuration = #(ly:make-moment 1 8 )
  \times 2/3 { $x }
  \unset tupletSpannerDuration
 \unset beatLength
#})

\relative c' {
  \SSX { c16 d e f e d e f g a g f a b c d c b }
}


reply via email to

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