Hello again,
How should I make two editions from the same LilyPond source:
- a critical edition with scholarLY annotations indicated by colours in the score
- a performance edition printed only in black and white, and therefore without the annotation colours, and with different footnotes instead, as well as fingerings
I’m trying to do this with \tag but I can’t get it to work. In the attached small example, I have two tags, #'crit and #'perf, for content that is specific to one edition or the other. I want the note gis, to appear in both editions. In the critical edition, that note should have a green \criticalRemark. In the performance edition, the note should instead have a footnote (referring to the critical edition) and a fingering.
The way I’ve written it in the attached file, the critical edition (with \keepWithTag #'crit \removeWithTag #'perf) is rendered correctly. But in the performance edition (with \removeWithTag #'crit \keepWithTag #'perf), the note gis, is missing:
\tag #'perf \footnote #'(-1 . -3)
\markup { G\sharp or G\natural? See critical edition. }
NoteHead
\tag #'crit \criticalRemark \with {
message = "A critical remark. Applies to the accidental"
item = Accidental
}
gis,-\tag #'perf _3
I guessed that this is because the note is actually wrapped inside the \criticalRemark, so if the tag removes the \criticalRemark, it removes the note, too. So I tried using a post-event instead, like this:
gis,-\tag #'crit \criticalRemark \with {
message = "A critical remark. Applies to the accidental"
item = Accidental
}-\tag #'perf _3
But then the \criticalRemark doesn't produce any output.
The only way I can get it to work is to encode the note twice:
\tag #'perf \footnote #'(-1 . -3)
\markup { G\sharp or G\natural? See critical edition. }
NoteHead
\tag #'crit \criticalRemark \with {
message = "A critical remark. Applies to the accidental"
item = Accidental
} gis,
\tag #'perf gis,_3
But I would rather not encode the same note redundantly. Is there a better way?
A-Composer-One-Bar-of-Music.ly.zip
Hello again,
How should I make two editions from the same LilyPond source:
I’m trying to do this with
\tagbut I can’t get it to work. In the attached small example, I have two tags,#'critand#'perf, for content that is specific to one edition or the other. I want the notegis,to appear in both editions. In the critical edition, that note should have a green\criticalRemark. In the performance edition, the note should instead have a footnote (referring to the critical edition) and a fingering.The way I’ve written it in the attached file, the critical edition (with
\keepWithTag #'crit \removeWithTag #'perf) is rendered correctly. But in the performance edition (with\removeWithTag #'crit \keepWithTag #'perf), the notegis,is missing:I guessed that this is because the note is actually wrapped inside the
\criticalRemark, so if the tag removes the\criticalRemark, it removes the note, too. So I tried using a post-event instead, like this:But then the
\criticalRemarkdoesn't produce any output.The only way I can get it to work is to encode the note twice:
But I would rather not encode the same note redundantly. Is there a better way?
A-Composer-One-Bar-of-Music.ly.zip