lilypond-user
[Top][All Lists]
Advanced

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

Re: sub-beaming


From: Graham Percival
Subject: Re: sub-beaming
Date: Sat, 19 May 2007 12:20:29 -0700
User-agent: Thunderbird 1.5.0.10 (Macintosh/20070221)

If you find this function useful, you should add this example to LSR so that other people can find it easily.

http://lsr.dsi.unimi.it/

Cheers,
- Graham


Ole Schmidt wrote:
thank you very much! (I'll never be able to write a function like this)

ole


Am 19.05.2007 um 20:30 schrieb Rune Zedeler:

Rune Zedeler wrote:

So you need to set the beatLength again after each \time-statement (that has a denominator that is not 8)

... Or alternatively, you can make a little scheme function that sets the time signature and measure-length without touching beat-length.

\version "2.10.15"

% timenb sets TIMEesignature and measure length, but Not Beatlength
timenb = #(define-music-function (parser location x y ) (integer? integer?) #{
      \set Staff.timeSignatureFraction = #(cons $x $y)
      \set Score.measureLength = #(ly:make-moment $x $y)
#})

\new Staff {
  \relative c''
  {
    \set Score.beatLength = #(ly:make-moment 1 8)
    \set subdivideBeams = ##t

    \timenb #3 #8 b16.[ fis32 c'16. fis,32 b16. d32] |
    \timenb #5 #8 c8[ a,(] b'16.[ a32  b16. c32 d8] |
\timenb #3 #4 c8)[ a16.( fis32] b16.[ fis32 c'16. fis,32] b16.[ d32 c8]) |
    \timenb #2 #4
    a,16.[( fis'32 b16. fis32] c'16.[ fis,32 b16. d32] |
    c8) a,8 ~ a16.[ d'32( c8)] |
  }
}



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






reply via email to

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