lilypond-user
[Top][All Lists]

## Spannerize glyphs, markups etc. ?

 From: Dimitris Marinakis Subject: Spannerize glyphs, markups etc. ? Date: Thu, 4 Feb 2021 03:41:30 +0200

Does anyone have any code that allows us to "spannerize" repeated or alternating paths and musicglyphs ?
e.g. - • - • - • -  or even asymmetric patterns like - - • - > - •
I think an effort for such a code would also be really useful for evolving spanners. (trills with various speeds etc.)

If I'm not mistaken, the trill spanner is made from concatenated individual glyphs so at least the basic repeated symbol seems easier to achieve.

It would be really cool having a flexible solution that works like this:
\evolvingspanner
arg1 left text (trill symbol etc.)
arg2 how many of the 1st symbol
arg3 how many of the 2nd symbol
.... ? manually enter how many glyphs are needed or perhaps a more automatic way to divide the spanner into segments and then just specify how many segments and glyphs will be used
arg4 right text (end cap)

-------
\repeatspanner
arguments that specify the type of pattern and how many symbols are used

I understand this could get really complicated so I tried to keep it fairly modest.

spanner symbols.png
Description: PNG image