On Sat, 2023-12-09 at 17:34 +0100, Jean Abou Samra wrote: > > The line breaks come out before the rest of the measure does. I > > would > > expect the first line break print to appear after the third > > ly2videoBar. > > Are you relying on the order in which after-line-breaking callbacks > are run? > > You shouldn't, as the order is completely undefined and has no > guarantees. It should be easy enough to .sort() the result in Python > to avoid the problem. If ly2video doesn't do this, it should be > fixed.
I'm not sure what ly2video is doing. The comments say the list is sorted so I presume they are. I haven't gotten that far along, yet. If the output *must* be sorted, then I will make sure it is. Thanks for that info. > > I thought that putting it in \Staff context might change the > > behaviour, but no > > prints came out. > > System objects, representing a whole system with possibly many > staves, live on Score level (it's actually a little more complicated > IIRC but this is a good approximation), so they're not affected by > overrides on Staff level. Got it. Thanks and thanks again for the help.