> I'm not top posting.

Notation reference section 2.1.6. The example illustrating the use of
addInstrumentDefinition sets instrumentTransposition context properties
incorrectly. The midi output for Kaspar is an octave too low. The
transposition for Melchior is harmless but unnecessary.

\addInstrumentDefinition #"kaspar"
  #`((instrumentTransposition . ,(ly:make-pitch -1 0 0))
     (shortInstrumentName . "Kas.")
     (clefGlyph . "clefs.G")
     (clefTransposition . -7)
     (middleCPosition . 1)
     (clefPosition . -2)
     (instrumentCueName . ,(markup #:fontsize 1 #:smallCaps "Kaspar"))
     (midiInstrument . "voice oohs"))

\addInstrumentDefinition #"melchior"
  #`((instrumentTransposition . ,(ly:make-pitch 0 0 0))
     (shortInstrumentName . "Mel.")
     (clefGlyph . "clefs.F")
     (clefTransposition . 0)
     (middleCPosition . 6)
     (clefPosition . 2)
     (instrumentCueName . ,(markup #:fontsize 1 #:smallCaps "Melchior"))
     (midiInstrument . "choir aahs"))

\score {
  \relative c' {
    \instrumentSwitch "kaspar"
    c4 c c c
    \instrumentSwitch "melchior"
    a4 a a a
    \instrumentSwitch "kaspar"
    c4 c c c
  }
  \midi{}
}



_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to