lilypond-user
[Top][All Lists]
Advanced

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

Reverting autobeaming defaults in \layout


From: Neil Puttock
Subject: Reverting autobeaming defaults in \layout
Date: Mon, 6 Aug 2007 12:53:56 +0100

Hi everybody,

I'm using the following code in \layout to override the autobeaming,

autoBeamSettings = #(cons (cons '(end 1 24 4 4) (ly:make-moment 1 4))
        (cons (cons '(end 1 24 4 4) (ly:make-moment 3 4))
        (cons (cons '(end * * 3 4) (ly:make-moment 1 4))
        (cons (cons '(end * * 3 4) (ly:make-moment 2 4))
        default-auto-beam-settings))))

which works fine, except I can't work out how to revert any defaults.

Is it possible in \layout?

Thanks,
Neil

PS The snippet in LSR for this, http://lsr.dsi.unimi.it/LSR/Item?id=295, doesn't quite work as intended - if you change the time signature, it fails. Here's a correction:

\layout {
\context {
\DrumStaff
% set the beam division after 1/4 and after 3/4 (after 2/4 is default)
autoBeamSettings = #(cons (cons '(end * * * *) (ly:make-moment 1 4))
(cons (cons '(end * * * *) (ly:make-moment 3 4))
default-auto-beam-settings)
)
}
}

up = \drummode {hh8 hh hh hh hh hh hh hh} %%No manual beaming indication, as you can see

down = \drummode {
\override Beam #'positions = #'(-5 . -5)
bd8. bd16 sn16 bd8 bd16 r8 bd8 sn16 bd8.
}

\new DrumStaff {

<<
\new DrumVoice { \voiceOne \up }
\new DrumVoice { \voiceTwo \down }
>>

}

reply via email to

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