Hello Folks,

There exists DrumStaff and RythmicStaff and DrumVoice, but no RhythmicVoice.

In the example below from musicxml2ly, '\context Voice’ is used in the 
RhythmicStaff.

Any reason for this asymmetry?

JM

—

\version "2.19.58"
% automatically converted by musicxml2ly from 73a-Percussion.xml_inter.xml


\header {
    texidoc =
    "Three types of percussion staves: 
          A five-line staff with bass clef for Timpani, a five-line staff with 
          percussion clef, and a one-line percussion staff with only unpitched 
          notes."
    }

\layout {
    \context { \Score
        autoBeaming = ##f
        }
    }
PartPOneVoiceOne =  \relative e {
    \clef "bass" \key c \major \numericTimeSignature\time 4/4 | % 1
    e1 ~ | % 2
    e2 a,2 \bar "|."
    }

PartPTwoVoiceOne =  \relative e'' {
    \clef "percussion" \key c \major \numericTimeSignature\time 4/4 | % 1
    e2. c4 | % 2
    d1 \bar "|."
    }

PartPThreeVoiceOne =  \relative f' {
    \clef "percussion" \stopStaff \override Staff.StaffSymbol.line-count
    = #1 \startStaff \numericTimeSignature\time 4/4 | % 1
    f2. f4 | % 2
    e1 \bar "|."
    }


% The score definition
\score {
    <<

        \new Staff
        <<
            \set Staff.instrumentName = "Timpani"
            \set Staff.shortInstrumentName = "Timp."

            \context Staff <<
                \mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
                \context Voice = "PartPOneVoiceOne" {  \PartPOneVoiceOne }
                >>
            >>
        \new StaffGroup
        <<
            \new DrumStaff
            <<
                \set DrumStaff.instrumentName = "Cymbals"
                \set DrumStaff.shortInstrumentName = "Cym."

                \context DrumStaff <<
                    \mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
                    \context DrumVoice = "PartPTwoVoiceOne" {  
\PartPTwoVoiceOne }
                    >>
                >>
            \new RhythmicStaff
            <<
                \set RhythmicStaff.instrumentName = "Triangle"
                \set RhythmicStaff.shortInstrumentName = "Tri."

                \context RhythmicStaff <<
                    \mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
                    \context Voice = "PartPThreeVoiceOne" {  
\PartPThreeVoiceOne }
                    >>
                >>

            >>

        >>
    \layout {}
    % To create MIDI output, uncomment the following line:
    %  \midi {\tempo 4 = 100 }
    }



_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to