lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

\instrumentSwitch applies instrumentCueName to Staff context instead of


From: Shevek
Subject: \instrumentSwitch applies instrumentCueName to Staff context instead of Voice
Date: Sun, 13 Nov 2011 02:40:49 -0800 (PST)

\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: \instrumentSwitch applies instrumentCueName to Staff context instead of Voice
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]