[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Deprecation of instrumentCueName and instrument switch stuffs
From: |
Kieren MacMillan |
Subject: |
Re: Deprecation of instrumentCueName and instrument switch stuffs |
Date: |
Wed, 14 Dec 2022 15:39:16 -0500 |
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.
Re: Deprecation of instrumentCueName and instrument switch stuffs, Kieren MacMillan, 2022/12/14
Re: Deprecation of instrumentCueName and instrument switch stuffs, Xavier Scheuer, 2022/12/30