bug-lilypond
[Top][All Lists]
Advanced

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

Re: instrumentCueName prints twice


From: Phil Holmes
Subject: Re: instrumentCueName prints twice
Date: Wed, 3 Nov 2010 15:01:10 -0000

"James Worlton" <address@hidden> wrote in message news:address@hidden
I'm not top posting.

Hello,

The following code produces the instrumentCueName twice:

\version "2.13.38"
\addInstrumentDefinition #"two"
 #`((instrumentTransposition . ,(ly:make-pitch -1 0 0))
    (clefGlyph . "clefs.G")
    (clefOctavation . 0)
    (middleCPosition . -6)
    (clefPosition . -2)
    (instrumentCueName . ,(markup "Instr. Two")))

notes = \relative c' { c1 }
\score {
   \new Staff = "one" {
       \set Staff.instrumentName = "One "
       \notes
       \instrumentSwitch "two"
       \notes
   }
}

However, if the \notes variable is removed and the notes are added directly into
the \score block, the duplication does not happen:

\version "2.13.38"
\addInstrumentDefinition #"two"
 #`((instrumentTransposition . ,(ly:make-pitch -1 0 0))
    (clefGlyph . "clefs.G")
    (clefOctavation . 0)
    (middleCPosition . -6)
    (clefPosition . -2)
    (instrumentCueName . ,(markup "Instr. Two")))

\score {
   \new Staff = "one" {
       \set Staff.instrumentName = "One "
       c'1
       \instrumentSwitch "two"
       c'1
   }
}

Similarly, if the relative command is moved:

notes = { c1 }
\score {
   \new Staff = "one" \relative c' {
       \set Staff.instrumentName = "One "
       \notes
       \instrumentSwitch "two"
       \notes
   }
}

then the problem disappears.


--
Phil Holmes
Bug Squad






reply via email to

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