R\fermata: How to build a markup in C++?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

R\fermata: How to build a markup in C++?

Malte Meyn-5
Hi list,

I’m trying to get R\fermata to work as expected by new users. I thought
that it would be easier to make a MultiMeasureRestText with a markup
containing the fermata glyph instead of having something like
MultiMeasureRestScript. For that I have to build such a markup.
Currently, I’m able to get the correct glyph name (ufermata/dfermata and
others for most articulations but not f.e. \staccato). But then I’d have
to build the “\markup \musicglyph” part in C++. Is there a way to do that?

Are there any other ideas how the R\fermata thing could be done?

Attached you can find what I’ve tried as a patch file, below some
LilyPond code for testing.

Cheers,
Malte

\version "2.21.0"

{
    r1\fermata
    r1^\fermata
    r1_\fermata
    << r\fermata \\ r\fermata >>

    \bar "||"

    R1\fermataMarkup
    R1^\fermataMarkup
    R1_\fermataMarkup
    << R\fermataMarkup \\ R\fermataMarkup >>

    \bar "||"

    R1\fermata
    R1^\fermata
    R1_\fermata
    << R\fermata \\ R\fermata >>

    \bar "||"

    R\shortfermata
    R\upbow
    R\lheel
}


_______________________________________________
lilypond-devel mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-devel

0001-work-in-progress-how-to-build-a-markup-in-C.patch.txt (3K) Download Attachment
document.png (27K) Download Attachment