Off the top of my head-- On Tue, Feb 5, 2019 at 9:51 AM Kieren MacMillan <kieren_macmil...@sympatico.ca> wrote: > > Hi Urs, > > > I'd think that MMRs are generally the only items that are printed in the > > middle of a measure. > > No: MMRs [essentially always], measure numbers [often], final single-note > columns [in many engravings], boxed markup/instructions inside the staff [in > modern music], over-staff markups ["Safety", fermata, etc.]. > > I’m sure there are more — that list was just off the top of my head. > > > Probably one would have to see how the MultiMeasureRest originally performs > > its centering and learn from that (but I'd expect this to be in the C++ > > part). > > Yes, this is kind of what I’m hinting towards: I’m wondering if, in the C++ > part, an interface could be added which centres a given grob in the middle of > the current measure. (I assume the implementation would then have to be > "retrofitted" onto MMRs to duplicate the current behaviour.) >
Centering a MultiMeasureRest in the measure is an issue of "springs-and-rods". Centering text or whatever outside the staff through a spanner mechanism (see MeasureCounter) is done is relation to NonMusicalPaperColumns which organize bar lines and "prefatory" material. This is the reason I coopted MeasureCounter for my hack. Also, with a bit more refinement, this is what I did for my MeasureAttachedSpanner, which I see I need to put up for patch review as soon as I can, as I keep bringing it up :) David N. _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user