Hello everyone! So, I'm learning to use the edition-engraver, but there are some behaviors that I can't figure out.
Take the following snippet:
\version "2.19.80"
\language "english"
\include "oll-core/package.ily"
\loadPackage edition-engraver
\addEdition test
\editionMod test 1 0/4 RH.Voice.A {
\once \override NoteHead.color = #green
}
\editionMod test 1 0/4 LH.Voice.A {
\once \override NoteHead.color = #green
}
\consistToContexts #edition-engraver Score.PianoStaff.Staff.Voice
\score {
\new PianoStaff <<
\new Staff \with { \editionID RH } <<
\new Voice \relative c'' { \voiceOne c4. d8 d4. g8 | e4.( d8 c b g4) }
\new Voice \relative c'' { \voiceTwo a2. g4~ | g f2 e4 | }
>>
\new Dynamics { s1\mp }
\new Staff \with { \editionID LH } { <<
\new Voice \relative c' { \clef F \voiceOne e8 d c4 d8 c b4 | c8 b a2 g4 | }
\new Voice \relative c { \voiceTwo f2 e | d g,4 c | }
>> }
>>
}
In the left hand staff, if I move the
\clef F from inside one of the two voices to the outside, like in the following example:
\new Staff \with { \editionID LH } { \clef F <<
\new Voice \relative c' { \voiceOne e8 d c4 d8 c b4 | c8 b a2 g4 | }
\new Voice \relative c { \voiceTwo f2 e | d g,4 c | }
>> }
then I can't find a way to reference the voices contained in the
Staff. Why does this happen?
, then I can only reference the staves by giving a full route. For example, if I gave it the ID Piano I would have to write
to reference the first voice. Is there a way to avoid this redundancy?