> I think using (ly:context <context> 'measurePosition) Sorry, this is actually incorrect. `currentBarNumber` is what you need to look up.
On Thu, Feb 16, 2017 at 12:31 PM, Jeffery Shivers <jefferyshiv...@gmail.com> wrote: > Could you provide a MWE? Without any knowledge of how your project is > setup, we have to guess how exactly to help you. > > Regarding automating measure numbers, you could write a scheme > function to calculate the next bar number following repeats, I think > using (ly:context <context> 'measurePosition) and then factoring in > the number of times something is repeated. > > If I understand correctly, you want the piano part to look different > (optimized) in its own document as opposed to how it will look in the > less-optimized score. I'm attaching a (not very elegant) suggestion of > how you might begin to automate things there as well (rewired etc. to > suit your setup). HTH > > On Thu, Feb 16, 2017 at 10:07 AM, ptoye <lilyp...@ptoye.com> wrote: >> What - no-one? Am I the only one playing minimalist music round here? >> >> >> ptoye wrote >>> I'm trying to engrave a highly repetitive piano part using repeats as much >>> as possible to save page-turns, but I need to display the bar numbers as >>> if the repeats were written out (other parts don't repeat). It seems to me >>> that this raises three issues, to none of which have I found a solution in >>> the manuals. >>> >>> 1) Notating the number of repeats automatically . One can do a markup of >>> "3×" on the repeat bar, so it's not a major problem, but Lilypond doesn't >>> seem to do this automatically, which is a bit of a shame. >>> >>> 2) Adjusting the bar count to take the repeated bars into account. For >>> example, if an 8-bar phrase is repeated 4 times, the bar count after the >>> end of the section is 33, rather than 9. Again, this can be done by >>> setting the bar number, but it would be useful to have a computer do the >>> arithmetic. >>> >>> 3) Displaying the multiple bar numbers. In the above example, displaying >>> something like "1-9-17-25". Without this, rehearsals will be a bit >>> fraught! >>> >>> Any help gratefully received, >>> >>> Peter >>> mailto: >> >>> lilypond@ >> >>> www.ptoye.com >>> _______________________________________________ >>> lilypond-user mailing list >> >>> lilypond-user@ >> >>> https://lists.gnu.org/mailman/listinfo/lilypond-user >> >> >> >> >> >> -- >> View this message in context: >> http://lilypond.1069038.n5.nabble.com/Bar-counts-and-repeats-in-repetitive-music-tp199814p200190.html >> Sent from the User mailing list archive at Nabble.com. >> >> _______________________________________________ >> lilypond-user mailing list >> lilypond-user@gnu.org >> https://lists.gnu.org/mailman/listinfo/lilypond-user > > > > -- > > Jeffery Shivers > jefferyshivers.com > soundcloud.com/jefferyshivers -- Jeffery Shivers jefferyshivers.com soundcloud.com/jefferyshivers _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user