lilypond-user
[Top][All Lists]
Advanced

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

Re: OverrideBeamSettings


From: David Kastrup
Subject: Re: OverrideBeamSettings
Date: Sat, 15 Jan 2011 16:44:15 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Helge Kruse <address@hidden> writes:

> *
>
>
> I have tried to set this excerpt from a score but failed with  some
> problems:
>
> 1) As you can see there is a staff change again and again. It's
> annoying to switch as shown below. Can this be done better?
>
> 2) The staff change does not work in the first measure (when you
> remove the "s2"). 
>
> 3) I tried a lot with the beaming. But I never managed to get a common
> beam for all four chords. I read NR 1.2.3 but did not catch what the
> arguments to overrideBeamSettings do. It would be nice if you can give
> me a working example. But I am much more interested to _understand_
> this thing.

ud=#(define-music-function (parser location low high) (ly:music? ly:music?)
     #{ \change Staff = "down" $low \change Staff = "up" $high #})

global={ \key es\major
   \time 2/4  \override Beam #'auto-knee-gap = #4 }

\new StaffGroup
<< \set StaffGroup.beatStructure = #'(2)
 \new Staff = "up" { \global s2*3 }
   \new Staff = "down" { \global
     \relative c' { \repeat unfold 2 { \ud <c es f>8 <g bes c> }
                    \repeat unfold 2 { \ud <c es f> <as bes c> }
                    \repeat unfold 2 { \ud <c es f> <g bes c> } } }
>>

-- 
David Kastrup




reply via email to

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