Hi Jean,

> Yes. Don't you find
> 
> ebClarinet = \displayMusic {
>   \clef "treble"
>   \transposition ees
>   \set Staff.shortInstrumentName = "Es-Kl"
>   \set Staff.midiInstrument = "clarinet"
>   \set Staff.instrumentCueName = "Es-Kl"
> }
> 
> easier to write and read than
> 
> \addInstrumentDefinition #"eb-clarinet"
>   #`((instrumentTransposition . ,(ly:make-pitch 0 2 -1/2))
>      (shortInstrumentName . "Es-Kl")
>      (clefGlyph . "clefs.G")
>      (middleCPosition . -6)
>      (clefPosition . -2)
>      (instrumentCueName . "Es-Kl")
>      (midiInstrument . "clarinet"))
> 
> ?

Well, yes…

> You can *always* convert any use of \addInstrumentDefinition
> / \instrumentSwitch by turning
> 
> \addInstrumentDefinition "x" #`((prop1 . val1) (prop2 . ,val2) ...)
> \instrumentSwitch "x"
> 
> into
> 
> x = {
>   \set Staff.prop1 = #'val1
>   \set Staff.prop2 = #val2
>   ...
> }

Ah! I clearly didn’t understand what was happening “behind the scenes”…

Okay… For now, I’ll say that’s settled.

Next thing to settle: How best to handle multi-instrumental players’ music.

Thanks,
Kieren.

Reply via email to