[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Automatic beams
From: |
Nick Payne |
Subject: |
Re: Automatic beams |
Date: |
Mon, 09 Apr 2012 09:09:21 +1000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 |
On 08/04/12 18:39, Helge Kruse wrote:
Hello,
I need to typeset a piece but want to keep the original beaming. The
beams that Lilypond uses per default does not match. I know I can add
the [] to manually control beaming, but I hope I can do this more
declarative as described in notation reference "1.2.4 Beams".
In this measure I want to break up the sextuplets in treble to a 3+3
group. The semiquavers should be grouped 2+2.
The quavers in the base staff should be grouped 2+2.
\version "2.14.2"
changeBeaming = \set beamExceptions =
#'((end . (((1 . 8) . (2 2 2 2))
((1 . 16) . (2 2 2 2 2 2 2 2))
((1 . 24) . (3 3 3 3 3 3 3 3)))))
revertBeaming = \set beamExceptions = #'()
\new PianoStaff <<
\new Staff {
\time 4/4 \key g \major
\relative c'' {
\changeBeaming
\set tupletSpannerDuration = #(ly:make-moment 1 8)
\times 4/6{c'16 a b c b a } \times 4/6{r e fis g fis e }
fis16 d fis a r fis a c | % 24
}
}
\new Staff {
\time 4/4 \key g \major \clef bass
\relative c {
\changeBeaming
fis8 d' g, d' a d b d | % 24
}
}
>>