lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DrumVoice vs non-existent RhythmicVoice


From: Menu Jacques
Subject: DrumVoice vs non-existent RhythmicVoice
Date: Wed, 13 Dec 2017 10:04:30 +0100

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 }
    }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]