On 19/05/2024 11:36, Giles Boardman wrote:
Hello,

I am an occasional Bb clarinetist and very bad at transposing on the fly.
I would like to create alternative versions of a score based on the value of a parameter.


How about this as a solution?


\version "2.24.0"

instrument = "clarinet"
tpose = c
#(if (string=? instrument "clarinet")
  (set! tpose #{ bes, #}))

\transpose c \tpose {
 \key c\major
 c'8 d' e' f' g' a' b' c''
}

--
Timothy Lanfear, Bristol, UK.

Reply via email to