Simon Albrecht <[email protected]> writes:
> Help!
>
> Maybe this is another time I just overlook the crucial tiny mistake in
> my code, but to me, it seems that removeWithTag fails in the following
> example (that is, all the tagged notes are printed), and only if there
> is a note between the \removeWithTag and \tag commands.
>
> \relative {
>
> \removeWithTag #'correct
>
> d'4 \tag #'correct c4 \tag #'nice c2
>
> }
\removeWithTag perfectly well removes all expressions tagged with
#'correct from d'4 and that's all you ask it to do. Note that if you
write
\removeWithTag #'current d'4 -\tag #'current ^\markup "Hi"
then the tagged superscript still makes it into the expression that
\removeWithTag oversees. But for the use you want, you'll have to write
\removeWithTag #'correct { ... }
namely put the whole expression in braces.
--
David Kastrup
_______________________________________________
bug-lilypond mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-lilypond