|
From: | Alex Jones |
Subject: | Re: staff manipulation question |
Date: | Sat, 30 May 2015 16:15:53 -0400 |
Its very strange. I determined it only is affected by the staff that ends. For example using v. 2.18.2, this code: \score { \new StaffGroup \relative c' { \new Staff \key f \major \clef alto \time 6/8 << { R2.*3 c8 \f [r16 d c8] r4 r8 \break << {d2. (c8)} \\ {f,2.( \> e8) \!} >> r r r4 r8 r r a16 \p (b c8) r c16 (d e8) r r r4 r8 r r c16 (d e8) r d16 e \break } \new Staff \relative c { \once \set Staff.explicitKeySignatureVisibility = #end-of-line-invisible \set midiInstrument = #"viola" \clef alto \key d \minor
r8 r f16 (g a8) r g16 (a bes8) r r d4. \p ( g,8) r r f'4. ( c8) \f [r16 d c8] r4 r8
<< {d2. (c8)} \\ {f,2.( \> e8) \!} >> r r r4 r8 R2.*3
} >> \break <e g>2.~ \pp <e g> } } produces the first output with the extra staff lingering: However, if you change the bottom staff only as follows: % remove this code % << {d2. (c8)} \\ {f,2.( \> e8) \!} >> % r r r4 r8 % add this code << {d2. (c8) c \rest c \rest c4 \rest c8 \rest } \\ {f,2.( \> e8) \! s s s4 s8} >> The output works correctly: Note: the top staff uses the original construction which crosses the bar line. Whole code here: \score { \new StaffGroup \relative c' { \new Staff \key f \major \clef alto \time 6/8 << { R2.*3 c8 \f [r16 d c8] r4 r8 \break << {d2. (c8)} \\ {f,2.( \> e8) \!} >> r r r4 r8 r r a16 \p (b c8) r c16 (d e8) r r r4 r8 r r c16 (d e8) r d16 e \break } \new Staff \relative c { \once \set Staff.explicitKeySignatureVisibility = #end-of-line-invisible \set midiInstrument = #"viola" \clef alto \key d \minor
r8 r f16 (g a8) r g16 (a bes8) r r d4. \p ( g,8) r r f'4. ( c8) \f [r16 d c8] r4 r8
% << {d2. (c8)} \\ {f,2.( \> e8) \!} >> % r r r4 r8 << {d2. (c8) c \rest c \rest c4 \rest c8 \rest } \\ {f,2.( \> e8) \! s s s4 s8} >> R2.*3
} >> \break <e g>2.~ \pp <e g>
} }
On May 26, 2015, at 7:15 AM, Thomas Morley <address@hidden> wrote: 2015-05-25 15:58 GMT+02:00 Alex Jones <address@hidden>:I’m working with a score that has multiple staves that appear and disappear at various points. |
[Prev in Thread] | Current Thread | [Next in Thread] |