lilypond-user
[Top][All Lists]
Advanced

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

Mix of repeat percent & repeat volta


From: Luci
Subject: Mix of repeat percent & repeat volta
Date: Thu, 11 Dec 2008 17:27:57 +0100
User-agent: Thunderbird 2.0.0.17 (Windows/20080914)

Hi all,

My question is how to beneficiate of percent in an "repeat volta" alternative ?

See attached pdf / script.

- First line is what i don't want : having to repeat first measure in
the first alternative
- 2nd is what i want with using the trick of a rest + percent sign stencil

Question #1 is :
- how to simply have the percent without cheating ?
- if not possible, how to customize the stencil to have the basic
percent look ?

Question #2 is :
- on both lines, you can see that the upper lines for 1st and 2nd
alternatives are not vertically aligned. That's visually sad. How to
change that ?

Thanks in advance for your advices !



drumContentsUp = \drummode 
{       
        \repeat volta 2 {
                \repeat percent 3 { sn4 sn sn sn }
        }
        \alternative {
                { sn4 sn sn sn }
                { tomh8 tomh tommh tommh toml toml cymc4 }
        }
        \break
        \repeat volta 2 {
                \repeat percent 3 {     sn4 sn sn sn }
        }
        \alternative {
                {       \override MultiMeasureRest #'stencil = 
#ly:multi-measure-rest::percent 
                        \override MultiMeasureRest #'staff-position = #0
                        R1 }
                { tomh8 tomh tommh tommh toml toml cymc4 }
        }       
        \break
}

\paper { indent = 0\cm }
\score { <<
        \new DrumStaff { <<
        \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
        \new DrumVoice = "up" { \voiceOne \drumContentsUp }
>> } >> }

Attachment: Volta and percent.pdf
Description: Adobe PDF document


reply via email to

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