\instrumentSwitch applies instrumentCueName to Staff context instead of
Voice. Is there a way to change this behavior so it only applies the
instrumentCueName to the Voice context? The current behavior makes multiple
instrumentCueName markings appear whenever there is simultaneous music on
the Staff.

Here's a small example that exhibits this behavior:

\version "2.14.0"
\include "english.ly"

\addInstrumentDefinition #"flute"
#`((instrumentTransposition . ,(ly:make-pitch 0 0 0))
    (shortInstrumentName . "2")
    (clefGlyph . "clefs.G")
    (middleCPosition . -6)
    (clefPosition . -2)
    (instrumentCueName . ,(make-bold-markup "flute"))
    (midiInstrument . "flute")
    )

\new Staff \displayLilyMusic <<
  { s1*3 }
  { c'1 \instrumentSwitch "flute" d'1 e'1 }
>>
<\pre>

Here's the output from \DisplayLilyMusic. As you can see, instrumentCueName
is applied to the Staff context.

<< { s1*3 } { c'1 \context Staff << \set Staff . instrumentTransposition =
#(ly:make-pitch 0 0 0)


        \set Staff . shortInstrumentName = #"2"
        \set Staff . clefGlyph = #"clefs.G"
        \set Staff . middleCPosition = #-6
        \set Staff . clefPosition = #-2
        \set Staff . instrumentCueName = \markup \bold "flute"
        \set Staff . midiInstrument = #"flute"
        >> d' e' } >>

-- 
View this message in context: 
http://old.nabble.com/%5CinstrumentSwitch-applies-instrumentCueName-to-Staff-context-instead-of-Voice-tp32834490p32834490.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to