[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Mistake in addInstrument example
From: |
Timothy Lanfear |
Subject: |
Mistake in addInstrument example |
Date: |
Sun, 24 Aug 2014 19:06:25 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
> 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{}
}
- Mistake in addInstrument example,
Timothy Lanfear <=