[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: partial measure with independent time signatures
From: |
Mats Bengtsson |
Subject: |
Re: partial measure with independent time signatures |
Date: |
Wed, 25 Feb 2009 19:07:29 +0100 |
User-agent: |
Thunderbird 2.0.0.5 (X11/20070716) |
The reason for your problems is that the command \partial 8 is
equivalent to
\set Score.measurePosition = #(ly:make-moment -1 8)
which does the setting on the Score level. The solution is to make the
corresponding
setting in the "Timing" context (which is just an alias for the context
where the
Timing_translator currently lives:
\version "2.12.1"
\layout {
\context {
\Score
\remove "Timing_translator"
\remove "Default_bar_line_engraver"
}
\context {
\Staff
\consists "Timing_translator"
\consists "Default_bar_line_engraver"
}
}
% Now each staff has its own time signature.
\relative c' <<
\new Staff {
\time 2/4
\set Timing.measurePosition = #(ly:make-moment -1 8)
%\partial 8*1
d8 | d4 f8 a
}
\new Staff {
\time 2/2
\set Timing.measurePosition = #(ly:make-moment -1 4)
%\partial 4*1
a,4 | d4. e8 f4 g
}
>>
/Mats
Peter Van Kranenburg wrote:
Hello all,
Why isn't the \partial working in the code below?
I get:
/Users/pvk/tmp/polymeter.ly:20:3: warning: barcheck failed at: -1/8
d8
| d4 f8 a
/Users/pvk/tmp/polymeter.ly:25:4: warning: barcheck failed at: 1/4
a,4
| d4. e8 f4 g
If I include only one of the staves, everything is ok.
thanks in advance,
Peter van Kranenburg
\version "2.12.1"
\layout {
\context {
\Score
\remove "Timing_translator"
\remove "Default_bar_line_engraver"
}
\context {
\Staff
\consists "Timing_translator"
\consists "Default_bar_line_engraver"
}
}
% Now each staff has its own time signature.
\relative c' <<
\new Staff {
\time 2/4
\partial 8*1
d8 | d4 f8 a
}
\new Staff {
\time 2/2
\partial 4*1
a,4 | d4. e8 f4 g
}
>>
_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user
--
=============================================
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: address@hidden
WWW: http://www.s3.kth.se/~mabe
=============================================