Alexander, I've modified the BarNumberStaff code as you suggested. I also changed one line in your \layout block. I commented out the Mark_engraver as I was getting double boxed rehearsal letters:
% \consists Mark_engraver The only remaining issue is the positioning of the text that results from your function. It is currently being placed above the number (which is above the MMR). I tried to adjust some of the Y-offset and Y-extent numbers, but could only get the text to move up. I would like for it to print below the MMR (but keeping the number of measures in the MMR above the MMR). Something like the following: 6 |-------------| ( 121 - 126 ) Thoughts? Thanks, Randy Alexander Kobel wrote: > > rasAK wrote: >> In my orchestral parts, I would like Multi-Measure Rests to have both: >> (1) an integer representing the number of measures in the current MMR, >> centered above (default behavior) >> (2) a second text indicating which measures are included in the given >> MMR, >> in parentheses and centered BELOW the MMR. >> >> (1) happens automatically. (2) is what I don't know how to do. > > Hi, Randy, > > http://lsr.dsi.unimi.it/LSR/Item?id=651 includes what you're after, just > that it writes a bar number on every single measure by default. But in > principle you can copy most of the overrides concerning > MultiMeasureRestNumbers from BarNumberStaff into a second voice (for > (2)), which shares but the MMRs with your given voices (which do (1)). > > To add the parentheses, replace lines 99 to 102 by: > (if (= start-measure end-measure) > (string-append "(" (number->string start-measure) ")") ;; or only > "" in this line if you don't want single bars numbered at all > (string-append > "(" (number->string start-measure) " – " (number->string > end-measure) ")")))) > > If you just want to plug in a BarNumberStaff as shown in the LSR > snippet, you just have to write "" in line 100, as stated above, and > you're basically done, since single measures won't have a visible > BarNumber text in this case. > >> As an additional wrinkle, if Rehearsal Letter "A" happened to fall at mm. >> 9, >> Example 1b should output 2 MMRs ( |--4--| and |--6--|) with "( 4 - 7 )" >> and >> "( 8 - 13 )" below. > > Sorry, no idea on this one. > > > Cheers, > Alexander > > > _______________________________________________ > lilypond-user mailing list > lilypond-user@gnu.org > http://lists.gnu.org/mailman/listinfo/lilypond-user > > -- View this message in context: http://old.nabble.com/Multi-Measure-Rests%3A-Adding-to-what-gets-printed--tp27288983p27318719.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user