optional Dynamics with tag#?
Dear Lilypondians ;) another day another question - I try to make optional dynamics for a critical edition, is it possible, that just dynmaics signs can't be toggled with tags? 8< \version "2.19.58" music = \relative { g'8. c32 d \tag #'dyn {\p } c32 d } \score { \keepWithTag #'dyn \music } --->8 Do I really have to use \tag #'dyn {a4\p} \tag#'nodyn {a4} and than either \keepWithTag #'dyn \music or \keepWithTag #'nodyn \music? Cheers Joei ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: optional Dynamics with tag#?
Johannes Roeßler writes: > Dear Lilypondians ;) > > another day another question - I try to make optional dynamics for a > critical edition, > is it possible, that just dynmaics signs can't be toggled with tags? > > 8< > > \version "2.19.58" > > music = \relative { > g'8. c32 d \tag #'dyn {\p } c32 d > } > \score { > \keepWithTag #'dyn \music > } Instead of \tag #'dyn {\p } you need to write -\tag #'dyn \p namely use a - in front to mark the tag call as post-event and omit { } which can only be used around sequential music, not post events. > --->8 > > Do I really have to use > > \tag #'dyn {a4\p} \tag#'nodyn {a4} > > and than either \keepWithTag #'dyn \music or \keepWithTag #'nodyn \music? Says who? -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: optional Dynamics with tag#?
> Johannes Roeßler hat am 10. Januar 2018 um 16:50 geschrieben: > > > Dear Lilypondians ;) > > another day another question - I try to make optional dynamics for a critical > edition, > is it possible, that just dynmaics signs can't be toggled with tags? Hi Johannes, > 8< > > \version "2.19.58" > > music = \relative { >g'8. c32 d \tag #'dyn {\p } c32 d > } > \score { >\keepWithTag #'dyn \music > } > > --->8 > > Do I really have to use > > \tag #'dyn {a4\p} \tag#'nodyn {a4} > > and than either \keepWithTag #'dyn \music or \keepWithTag #'nodyn \music? You could try 8< \version "2.19.58" music = \relative { g'8. c32 \tag #'dyn {<>\p } d c32 d } \score { \keepWithTag #'dyn \music } --->8 Kind regards, Michael -- Michael Gerdau email: m...@qata.de GPG-keys available on request or at public keyserver ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: optional Dynamics with tag#?
thx Michael, works as desired :) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: optional Dynamics with tag#?
thx David... it can be so simple *facepalm* - and regarding "says who": me :) Joei ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: optional Dynamics with tag#?
Hi Johannes, While the tagging mechanism works in this use-case — and others in the thread have shown you how to accomplish what you need — I strongly encourage you to look at the edition engraver. Especially given your statement > I try to make optional dynamics for a critical edition [!!] you may find helpful the flexibility, scalability, and maintainability it offers. Best regards, Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: optional Dynamics with tag#?
thx Kieren - I will check it out! Sound promising... ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: optional Dynamics with tag#?
On 11 Jan 2018 3:00 a.m., "David Kastrup" wrote: omit { } which can only be used around sequential music, not post events. So the “If in doubt, put curly brackets around it” rule doesn't always work ;-) Vaughan ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: optional Dynamics with tag#?
Vaughan McAlley writes: > On 11 Jan 2018 3:00 a.m., "David Kastrup" wrote: > > omit { } which can only be used around sequential music, not post events. > > > So the “If in doubt, put curly brackets around it” rule doesn't always > work I wasn't aware of any such rule in LilyPond. Even in C, macros tend to prefer putting do { ... } while (0) around stuff so that #define BLA(x) do { ++x; ++x; } while (0) if (1) BLA (x); else BLA (y); works without "unexpected else" errors. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user