I see. How hard would it be to write a Scheme function that would copy a melody variable and remove the text marks, or in fact everything other than the note values, which are all I want in the NoteNames variable? That would be preferable to entering a separate sequence containing only the text marks in my application.
On Fri, Apr 26, 2024 at 6:48 AM David Wright <lily...@lionunicorn.co.uk> wrote: > On Thu 25 Apr 2024 at 22:16:21 (-0700), Eric Benson wrote: > > Is this intentional or desired? > > AIUI this is one of the reasons \textMark was invented, so that > multiple text marks could be placed at the same point: > > "Note: Older LilyPond versions used the \mark command for text marks, > even though it is primarily intended for rehearsal marks (see > [Rehearsal marks], page 127). The \textMark and \textEndMark > commands are better suited for text marks with regard to their de- > fault settings as well as the ability to have several text marks at > the same moment. It is therefore recommended to use \textMark and > \textEndMark instead of \mark "Text" or \mark \markup .... Note that > if converting code that uses \mark for text marks, overrides using > RehearsalMark should be changed to TextMark." > > > If so, is there a way to prevent this from happening? > > Treat the text mark as you would lyrics or dynamics, defined in a > separate variable, which you interpret inside your << >> only once. > > Cheers, > David. >