Hello list,

I'd like to detect the current voice-number for the voice-context:
for example it might be something like:
\oneVoice -> 0
\voiceOne -> 1
\voiceTwo -> 2
\voiceThree -> 3

If I look at the horizontal-shift for the NoteColumn, I get
\oneVoice -> #f
\voiceOne -> 0
\voiceTwo -> 0
\voiceThree -> 1

So how do I discriminate voiceOne and voiceTwo?
I might look at Stem-direction or the like, but this might be overridden.
Is there a property with the group number?

Jan-Peter

--snip--
\applyContext #(lambda (context) (display (chain-assoc-get
'horizontal-shift (ly:context-property context 'NoteColumn))))
--snip--

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

Reply via email to