lilypond-user
[Top][All Lists]
Advanced

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

Re: Grouping grobs


From: Lukas-Fabian Moser
Subject: Re: Grouping grobs
Date: Tue, 16 Aug 2022 20:17:42 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

Hi Jean,

I'm new to Lilypond and am trying to generate SVG output for use elsewhere. In general I'd like to create fragments of music and add ids to each group. So far I've seen that each grob is output as its own <g>--is there a way to group at a higher level, say markup, staff, etc.?
There isn’t a simple way to do this. I wonder what leads you to this question, though. Could you explain the purpose for which you would like this type of output? There may be a different way to solve your problem. See also: https://en.m.wikipedia.org/wiki/XY_problem

Actually, this is an item on my to-do list of things to think about whether I might contribute in that direction.

For me, the use-case was that there are tools for script-generating animated videos which could, for example, let SVG elements appear one after another selected by SVG groups. This would be a great way to create pedagogical music theory videos using a LilyPond-centered work flow. (I did something similar in https://www.youtube.com/watch?v=QktKe9dT6Bs&t=17m29s, but that involved quite a bit of manual work and didn't yield a very "dynamic" look).

I postponed work on this because, obviously, the infrastructure for creating SVG is going to change very much with the move to Cairo.

Lukas


reply via email to

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