lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: convert-ly for note/rest-markup


From: Michael Käppler
Subject: Re: convert-ly for note/rest-markup
Date: Wed, 3 Feb 2021 09:05:23 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0

Hi Harm,

Am 02.02.2021 um 22:52 schrieb Thomas Morley:
Hi,

with e35b7959dfe the note-markup-command was changed to need a
duration-argument, before it was a string.
With, MR 627 "Revisit rest-markup-commands"
https://gitlab.com/lilypond/lilypond/-/merge_requests/627
I attempt to do similar for the rest-markup-command.

This change would need a convert-rule, imho.
Alas, this is beyond my capabilities.

Any volunteer?

Btw, e35b7959dfe contains a convert-rule for the note-markup, though
it does not seem to work.
I had a quick look on this, the problem is not in e35b7959dfe,
the regex 'matchfullmarkup' (see convertrules.py:3471) which is used in
said commit assumes that \markup is followed by at least one set of braces.

You can verify this by converting

%%%%%%%%%%%%%%
\version "2.18.2"
\markup { \note #"4." #UP }

%%%%%%%%%%%%%%

which works as expected.

Cheers,
Michael


Using convert-ly from recent master, running over a file containing:

%%%%%%%%%%%%%%
\version "2.18.2"
\markup \note #"4." #UP

%%%%%%%%%%%%%%

returns:

convert-ly atest-107.ly
convert-ly (GNU LilyPond) 2.23.1

convert-ly: Processing `atest-107.ly'...
Applying conversion: 2.19.2, 2.19.7, 2.19.11, 2.19.16, 2.19.22,
2.19.24, 2.19.28, 2.19.29, 2.19.32, 2.19.39, 2.19.40, 2.19.46,
2.19.49, 2.20.0, 2.21.0, 2.21.2


\version "2.21.2"
\markup \note #"4." #UP


cc-ing David


Thanks,
   Harm





reply via email to

[Prev in Thread] Current Thread [Next in Thread]