Hi,
> To me, that seems like both overkill and future-fragile (requiring extra
> effort to maintain).
May I ask you for your opinion on the following simple functions? They work, but
I'm not the Scheme expert. The variable "Clarinet" is for decision if we're in a
score or in a part. I thought it's a good idea to attach the incoming music to
<>
So with those functions I can do:
c4 d e f | \partOnly { \textMark "Yo" } g a d c
...and the textmark would only appear in the part, not in score. As for
maintainance... My functions are part of an init which is always inside the
music pieces package. Could be of course put into one function with an
additional boolean argument, but I prefer functions with an understandable name
and less arguments.
%%% funct
partOnly = #(define-music-function
(music)
(ly:music?)
(if (defined? 'Clarinet) #{ <>$music #} #{#} ))
scoreOnly = #(define-music-function
(music)
(ly:music?)
(if (defined? 'Clarinet) #{#} #{ <>$music #} ))