⌂ Basic Grace Echo Purger
One subtype of the 'grace synchronisation issue' is the 'grace echo'.
If a score wide collected event comes from at least one voice 'in time'
while from one or more other voices it comes 'after the grace notes which
do not exist in this/these voice(s)' the resulting grob will be created
multiple times.
For metronome marks, bar lines and time signatures a very simple
workaround is to just delete these echoed grobs. Here is an engraver
which will do this job. Bar lines and time signatures will also be checked
for equality and are only removed by this engraver if they are identical.
Additionally, by setting a grob proptery #'keep-grace-echo = ##t you can
inhibit this grob removal to obtain a special output.
See also:
- LSR 978 (Repeat commands grace echo purger) for voltas ('\repeat volta' commands)
- LSR 976 (Multiple simultaneous RehearsalMarks, tunable output per score, grace synchronized) for markup commands