> Le 16 août 2022 à 18:51, lilyp...@lists.johnteskemusic.com a écrit : > > > Hi, > > 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.? > > John > \version "2.22.2" > \markup { > % with SVG output this is two <g>: notehead and dot > % \override NoteHead.output-attributes.id = 123 > \note {4.} #0 > }
Hi John, 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 Best regards, Jean