[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ANSWER, Re: problem with full-measure rests in differently time-scaled s
From: |
Adam James Wilson |
Subject: |
ANSWER, Re: problem with full-measure rests in differently time-scaled staves |
Date: |
Wed, 19 Sep 2007 16:25:22 -0700 |
I answered my own question: it turns out if I set the \time of the
offending staff to ["global" voice \time * crosspulse ratio] - in this
case 3/8 * 4/9, or 1/6, the full measure rests appear correctly in the
lower staff. This gives a time signature of 1/6, but this can easily
be replaced with a "dummy" 3/8. Solution below.
\version "2.11.32"
#(set-global-staff-size 8)
\paper {
ragged-right = ##t
}
\layout {
\context { \Score
\remove "Timing_translator"
\remove "Time_signature_engraver"
\remove "Default_bar_line_engraver"
\override SpacingSpanner #'uniform-stretching = ##t
\override SpacingSpanner #'strict-note-spacing = ##t
proportionalNotationDuration = #(ly:make-moment 1 64)
}
\context { \Staff
\consists "Timing_translator"
\consists "Time_signature_engraver"
\consists "Default_bar_line_engraver"
}
}
global = { \set Timing.defaultBarType = ""
\repeat unfold 4 { s4. } \bar "" \break
}
\new Score { <<
\new StaffGroup { <<
\new Staff <<
\global
{
\time 3/8
\repeat unfold 4 { R4. \bar "|" }
}
>>
\new Staff <<
\global
{
\compressMusic #'(4 . 9) {
\time 1/6
\repeat unfold 9 { R4. \bar "|" }
}
}
>>
>> }
>> }
Best,
Adam
On 9/18/07, Adam James Wilson <address@hidden> wrote:
> Hi folks:
>
> Here's a snippet with two staves: one with four bars of 3/8 and
> another with 3 bars of 3/8 in the same time as the first four bars.
>
> I used compressMusic to line them up, and I'm using a global
> "breaking" voice (imagine this pattern continuing for page and pages).
>
> The problem is, the full measure rests inside the compressMusic block
> are not getting compressed with the rest of the music.
>
> Is there a workaround for this?
>
> %%%% begin example
>
> \version "2.11.32"
>
> #(set-global-staff-size 8)
>
> \paper {
> ragged-right = ##t
> }
> \layout {
> \context { \Score
> \remove "Timing_translator"
> \remove "Time_signature_engraver"
> \remove "Default_bar_line_engraver"
> \override SpacingSpanner #'uniform-stretching = ##t
> \override SpacingSpanner #'strict-note-spacing = ##t
> proportionalNotationDuration = #(ly:make-moment 1 64)
> }
> \context { \Staff
> \consists "Timing_translator"
> \consists "Time_signature_engraver"
> \consists "Default_bar_line_engraver"
> }
> }
>
> global = { \set Timing.defaultBarType = ""
> \repeat unfold 4 { s4. } \bar "" \break
> }
>
> \new Score { <<
> \new StaffGroup { <<
> \new Staff <<
> \global
> {
> \time 3/8
> \repeat unfold 4 { R4. \bar "|" }
> }
> >>
> \new Staff <<
> \global
> {
> \compressMusic #'(4 . 9) {
> \time 3/8
> \repeat unfold 9 { R4. \bar "|" }
> }
> }
> >>
> >> }
>
> >> }
>
> %%% end example
>
> PNG attached . . .
>
> Best,
> Adam
>
>
- ANSWER, Re: problem with full-measure rests in differently time-scaled staves,
Adam James Wilson <=
- Re: ANSWER, Re: problem with full-measure rests in differently time-scaled staves, Valentin Villenave, 2007/09/19
- Re: ANSWER, Re: problem with full-measure rests in differently time-scaled staves, Adam James Wilson, 2007/09/19
- Re: ANSWER, Re: problem with full-measure rests in differently time-scaled staves, Valentin Villenave, 2007/09/20
- Re: ANSWER, Re: problem with full-measure rests in differently time-scaled staves, Adam James Wilson, 2007/09/20
- Re: ANSWER, Re: problem with full-measure rests in differently time-scaled staves, Valentin Villenave, 2007/09/20
- Re: ANSWER, Re: problem with full-measure rests in differently time-scaled staves, Ole Schmidt, 2007/09/21
- Re: ANSWER, Re: problem with full-measure rests in differently time-scaled staves, Adam James Wilson, 2007/09/23
- Re: ANSWER, Re: problem with full-measure rests in differently time-scaled staves, Adam James Wilson, 2007/09/23
- Re: ANSWER, Re: problem with full-measure rests in differently time-scaled staves, Adam James Wilson, 2007/09/23
- Re: ANSWER, Re: problem with full-measure rests in differently time-scaled staves, Mats Bengtsson, 2007/09/21