lilypond-auto
[Top][All Lists]
Advanced

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

[Lilypond-auto] Issue 2835 in lilypond: set Instrument Change informatio


From: lilypond
Subject: [Lilypond-auto] Issue 2835 in lilypond: set Instrument Change information once per Staff, not once per Voice
Date: Fri, 14 Sep 2012 06:09:50 +0000

Status: Accepted
Owner: ----
Labels: Type-Enhancement

New issue 2835 by address@hidden: set Instrument Change information once per Staff, not once per Voice
http://code.google.com/p/lilypond/issues/detail?id=2835

Instrument changes cause the 'instrumentCueName to be printed multiple times if there are multiple voices on the staff :

\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 <<
  { s1*3 }
  { c'1 \instrumentSwitch "flute" d'1 e'1 }


Reported
<http://lists.gnu.org/archive/html/lilypond-user/2012-09/msg00350.html>
<http://lists.gnu.org/archive/html/lilypond-user/2011-11/msg00180.html>

I suggest printing the change once per Staff by moving the engraver to Staff, because all the other instrumentSwitch stuff, like the clef and the short-name in front of each line, belongs to the Staff.

\layout {
  \context {\Voice \remove "Instrument_switch_engraver" }
  \context {\Staff \consists "Instrument_switch_engraver" }
}




reply via email to

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