lilypond-devel
[Top][All Lists]
Advanced

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

Re: Help with polymetric music!


From: Kieren MacMillan
Subject: Re: Help with polymetric music!
Date: Thu, 8 Jun 2006 08:55:46 -0400

Hi, Dylan:

I modified your code slightly, and it works--except when the
bottom staff is a drum staff!

Below is my code. The resulting score is what I want, but the
bar lines and time signatures are in the wrong places.
Perhaps this is a bug?

What *really* seems odd is that, when I compile the code, the *first* staff takes on the time signatures of the *fourth* one (drum) which doesn't display the time sigs. I'm not sure it's a bug really -- I imagine it's related to the \alias Staff in the DrumStaff context definition, but I don't know how to fix it, so I'm forwarding it to the development list.

Best wishes,
Kieren.

p.s. Note that here I have moved your TimeSig style command to the Score context -- I think that's more efficient (unless you really do potentially want different TimeSig *styles* in each Staff?)...
____________________________

%%%  CODE SNIPPET BEGINS
\version "2.9.8"

\layout
{
        %% move the Timing and Bar functions
        %% from the Score context ...
        \context
        {
                \Score
                \remove "Timing_translator"
                \remove "Default_bar_line_engraver"
                \override TimeSignature #'style = #'()
        }
        %% ... to the Staff context.
        \context
        {
                \Staff
                \consists "Timing_translator"
                \consists "Default_bar_line_engraver"
        }
}

%% Music in 4/4 (intro) and 3/4 (the piece)
one = \relative c'
{
        \time 4/4 \repeat "unfold" 2 { c4 c c c }
        \bar "||"
        \time 3/4 \repeat "unfold" 3 { c4 c c c }
}

two = \relative c'
{
        \time 4/4 \repeat "unfold" 2 { c4 c c c }
        \bar "||"
        \time 3/4 \repeat "unfold" 3 { c4 c c c }
}

three = \relative c'
{
        \time 4/4 \repeat "unfold" 2 { c4 c c c }
        \bar "||"
        \time 3/4 \repeat "unfold" 3 { c4 c c c }
}

%% Music in 4/4 (intro) and 9/8+8/8+7/8 (the piece)
four = \drummode
{
        \time 4/4 \repeat "unfold" 2 { r4 r r r }
        \bar "||"
        \time 9/8
        r4 r8 r4 r8 r4 r8
        \time 8/8
        r4 r4 r4 r4 \break
        \time 7/8
        r4 r4 r4.
}

%% Put all of it together!
\score
{
        <<
                \new Staff \one
                \new Staff \two
                \new Staff \three
                \new DrumStaff \four
        >>
}
%%%  CODE SNIPPET ENDS





reply via email to

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