Skip to content

Clef and implicit voice #31

Open
Open
@dliessi

Description

@dliessi

I thought that a clef in a staff in parallel with other voices would instantiate an implicit voice: either that is not the case, or the EE is not detecting it.

Example 1:

\version "2.19.84"
\include "oll-core/package.ily"
\loadPackage edition-engraver
\consistToContexts #edition-engraver Score.Voice
\score {
  \new Staff <<
    %\new Voice = "staff1-clef"
    \clef "treble"
    \new Voice = "staff1-spacer"
    { s1 }
    \new Voice = "staff1-note"
    { c'1 }
  >>
}

Edition log 1:

[context-counter] Score: (0 . \new)
[context-counter] Score/A: \new
[context-counter] Voice: (1 . staff1-note)
[context-counter] Voice/A: staff1-spacer
[context-counter] Voice/B: staff1-note
(Score A) "\new"
(Voice A) "staff1-spacer"
(Voice B) "staff1-note"

Example 2:

\version "2.19.84"
\include "oll-core/package.ily"
\loadPackage edition-engraver
\consistToContexts #edition-engraver Score.Voice
\score {
  \new Staff <<
    \new Voice = "staff1-clef"
    \clef "treble"
    \new Voice = "staff1-spacer"
    { s1 }
    \new Voice = "staff1-note"
    { c'1 }
  >>
}

Edition log 2:

[context-counter] Score: (0 . \new)
[context-counter] Score/A: \new
[context-counter] Voice: (2 . staff1-note)
[context-counter] Voice/A: staff1-clef
[context-counter] Voice/B: staff1-spacer
[context-counter] Voice/C: staff1-note
(Score A) "\new"
(Voice A) "staff1-clef"
(Voice B) "staff1-spacer"
(Voice C) "staff1-note"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions