[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: DrumVoice vs non-existent RhythmicVoice
From: |
Jacques Menu Muzhic |
Subject: |
Re: DrumVoice vs non-existent RhythmicVoice |
Date: |
Wed, 13 Dec 2017 10:40:26 +0100 |
Fine, thanks a lot!
JM
> Le 13 déc. 2017 à 10:34, Caagr98 <address@hidden> a écrit :
>
> A DrumVoice has different musical content than a Voice (uses the `drum-type`
> NoteEvent property rather than `pitch`, generating different midi output,
> etc). However, a RhythmicStaff only changes how the staff looks, not the
> actual musical content. Thus, there's no need for a separate RhythmicVoice
> context for it.
>
>
> On 12/13/17 10:04, Menu Jacques wrote:
>> 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
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>>
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user