lilypond-user
[Top][All Lists]

## Re: setting the beatlength for sixteenth-sixtuplets

 From: Paul Scott Subject: Re: setting the beatlength for sixteenth-sixtuplets Date: Sun, 08 Nov 2009 21:02:26 -0700 User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.22) Gecko/20090605 Iceape/1.1.17 (Debian-1.1.17-2)

Stefan Thomas wrote:

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 }
}




I don't know if I'm missing the desired functionality but this is what I do. It may or not be as easy as what you want.

esTuplets = \set tupletSpannerDuration = #(ly:make-moment 1 8)
eeTuplets = \set tupletSpannerDuration = #(ly:make-moment 1 4)
eqTuplets = \set tupletSpannerDuration = #(ly:make-moment 1 2)

%The second letter is *s*ixteenth, *e*ighth, *q*uarter

I just execute the one I want for the code which follows it.

Forgive me if I'm not understanding your need.

Paul Scott