Hello Timothy, Looks about perfect to me.
Thank you very much. I can see how it's working and there are obviously a lot of other programming possibilities hinted at that I haven't found the documentation for. Where do I read about #( if (string=? and (set! ? Thanks Giles ________________________________ From: Timothy Lanfear <[email protected]> Sent: 19 May 2024 12:03 To: Giles Boardman <[email protected]>; [email protected] <[email protected]> Subject: Re: Variables, tags, filtering, conditions 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.
