Hi,

I apologize for the length of the code below, but I cannot explain this
issue any other way.  I have a percussion part where the player switches
from playing a snare drum to playing a glockenspiel.  I want the
RhythmicStaff for the snare part, then change to the Staff for the
glockenspiel part.  I am using the code below to make this happen.  I
know it is over kill with the #'color = #white, but I am just a
composer.  The issue is - it looks like lilypond is spreading the snare
part like it really has an alto staff.  Is there any other way to switch
a staff from RhythmicStaff to Staff and keep that beautiful lilypond
layout?



\version "2.12.2"

myRhythmicStaff = 
{
    \stopStaff
    \override Staff.StaffSymbol #'line-count = #1
    \startStaff
    \override Staff.Clef #'break-visibility = #'#(#f #f #f)
    \override Staff.BarLine #'bar-size = #4
    \override Staff.Clef #'color = #white
    \override Staff.Clef #'layer = #-1
    \stemUp
}
myTonalStaff =
{
    \stopStaff
    \revert Staff.StaffSymbol #'line-count
    \startStaff
    \override Staff.Clef #'break-visibility = #'#(#f #f #t)
    \clef treble
    \override Staff.Clef #'color = #black
    \override Staff.Clef #'layer = #1
    \stemNeutral
}
    
PercussionOneWildNights =  {
    \set Staff.instrumentName = "Percussion 1 "
    \set Score.skipBars = ##t
    #(set-accidental-style 'modern-cautionary)
    \clef "alto" \key c \major \time 2/2 
    \myRhythmicStaff
    c'8[ ^"Snare Drum" c' c' c'] c'[ c' c' c']
    \acciaccatura { c'16[ c']} c'8[ c' c' c'] c'[ c' c' c']
    \acciaccatura { c'16[ c']} c'8[ c' c' c'] \acciaccatura { c'16[ c']}
c'8[ c' c' c']
    \acciaccatura { c'16[ c']} c'8[ c' c' c'] \acciaccatura { c'16[ c']}
c'4 r4
    R1 * 2
    \acciaccatura { c'16[ c']} c'8[ c' c' c'] \acciaccatura { c'16[ c']}
c'8[ c' c' c']
    \acciaccatura { c'16[ c']} c'4 r4 r2
    \acciaccatura { c'16[ c']} c'8[ c' c' c'] \acciaccatura { c'16[ c']}
c'8[ c' c' c']
    \acciaccatura { c'16[ c']} c'4 r4 r2
    \acciaccatura { c'16[ c']} c'8[ c' c' c'] \acciaccatura { c'16[ c']}
c'8[ c' c' c']
    R1*2
    \acciaccatura { c'16[ c']} c'8 c'4 c'4 c'4 c'8
    \acciaccatura { c'16[ c']} c'8[ c' c' c'] \acciaccatura { c'16[ c']}
c'8[ c' c' c']
    \acciaccatura { c'16[ c']} c'8[ c' c' c'] \acciaccatura { c'16[ c']}
c'8[ c' c' c']
    \acciaccatura { c'16[ c']} c'8[ c' c' c'] \acciaccatura { c'16[ c']}
c'8[ c' c' c']
    \acciaccatura { c'16[ c']} c'8[ c' c' c'] \acciaccatura { c'16[ c']}
c'8[ c' c' c']
    \acciaccatura { c'16[ c']} c'4 r4 r2
    R1 * 3
    \acciaccatura { c'16[ c']} c'8[ c' c' c'] \acciaccatura { c'16[ c']}
c'8[ c' c' c']
    \acciaccatura { c'16[ c']} c'4 r4 r2
    \acciaccatura { c'16[ c']} c'8[ c' c' c'] \acciaccatura { c'16[ c']}
c'8[ c' c' c']
    \acciaccatura { c'16[ c']} c'8 c'4 c'8  \acciaccatura { c'16[ c']}
c'8 c'4 c'8
    \acciaccatura { c'16[ c']} c'8[ c' c' c'] \acciaccatura { c'16[ c']}
c'4  r4
    R1 
    \myTonalStaff
    r2
    ees''8[ ^ "Glockenspiel" bes' ees'' aes'] 
    d''[ bes' c'' g'] bes'[ g' aes' ees']
    g'[ des'' g' c''] g'[ des'' g' c'']
    f'[ c'' f' bes'] ees'[ c'' ees' aes']
    d'[ aes' d' g'] d'[ aes' d' g']
    bes[ ees' bes' f'] bes[ ees' bes' f'] 
    bes[ ees' bes' f'] bes[ ees' bes' f'] 
    bes[ ees' bes' f'] ees'[ bes' f'' bes']
    ees''2 r2 \bar "|."
    }
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to