On Thu, Oct 28, 2010 at 5:35 PM, Trevor Daniels
<address@hidden> wrote:
Joshua Armenta wrote Thursday, October 28, 2010 9:17 PM
No, the instrument_definitions are located in the top of the file above the
note variables.
That's not what I meant, but never mind. To get further help on this
please submit a working "tiny example" that demonstrates this
effect. See http://lilypond.org/doc/v2.13/Documentation/web/tiny-examples
Trevor
On Thu, Oct 28, 2010 at 2:20 PM, Trevor Daniels <address@hidden>wrote:
Joshua Armenta Thursday, October 28, 2010 5:07 PM
I've read through the manual and can't find anything about this issue. In
a
score, I'm using \addinstrumentDefinition and \instrumentSwitch.
There's an example of this in the Notation Reference for 2.13.37. See
http://lilypond.org/doc/v2.13/Documentation/notation/opera-and-stage-musicals#character-names
The problem is every time I invoke \instrumentSwitch it prints the cue
twice
over the staff.
Did you perhaps add a further Instrument_switch_engraver to the Staff
context?
That engraver is already included by default.
(Jumping into the conversation...) OK, I've played with this a bit since I'm just starting a project that will need instrument switches, and this is what I found so far:
This code compiles fine, with no duplication of the new instrument name:
%%%%%
\version "2.13.37"
\addInstrumentDefinition #"two"
#`((instrumentTransposition . ,(ly:make-pitch -1 0 0))
(shortInstrumentName . "T.")
(clefGlyph . "clefs.G")
(clefOctavation . 0)
(middleCPosition . -6)
(clefPosition . -2)
(instrumentCueName . ,(markup #:fontsize 1 #:smallCaps "Instr. Two"))
(midiInstrument . "voice oohs"))
\score {
\new Staff = "one" {
\set Staff.instrumentName = \markup \right-column { "One " }
\set Staff.shortInstrumentName = \markup \right-column { "O. " }
c1
\instrumentSwitch "two"
c1
}
}
%%%%%
However, if the notes are included in a variable, the name gets duplicated:
%%%%%
\version "2.13.37"
\addInstrumentDefinition #"two"
#`((instrumentTransposition . ,(ly:make-pitch -1 0 0))
(shortInstrumentName . "T.")
(clefGlyph . "clefs.G")
(clefOctavation . 0)
(middleCPosition . -6)
(clefPosition . -2)
(instrumentCueName . ,(markup #:fontsize 1 #:smallCaps "Instr. Two"))
(midiInstrument . "voice oohs"))
notes = \relative c' { c1 }
\score {
\new Staff = "one" {
\set Staff.instrumentName = \markup \right-column { "One " }
\set Staff.shortInstrumentName = \markup \right-column { "O. " }
\notes
\instrumentSwitch "two"
\notes
}
}
%%%%%
This appears to be some kind of bug, unless I'm using the instrument switch command wrong.
James Worlton