lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bar numbers “repeat aware” for music for dancing


From: Niols
Subject: Re: Bar numbers “repeat aware” for music for dancing
Date: Tue, 28 Apr 2020 23:10:50 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

Hello,

And thank you for your answer!

On 22/04/2020 20:01, Flaming Hakama by Elaine wrote:
For such tunes, we are not so interested in the “usual” printed bar
numbers, but rather in the bar numbers (“repeat aware”) from the dance.
In particular, a repeat in the music does not mean a repeat in the
dance: if the first eight bars are repeated in the music, I would like
the bar numbers to go from 1 to 8 and then directly to 17.

I am unsure how to deal with that in an automated and clean way.

I'm not aware of an automated way.

I would love to be able to write one, but I think it requires a much better understanding of the intrinsics of LilyPond, and especially the "iterators", "engravers" and "performers". I read the LilyPond developers documentation about this but that didn't help me so much. Are you aware of any reference on the topic?

On the other hand, I find that it is not really much trouble to just reset
the bar numbers as you need to.  You're already writing code for \repeat
volta and \alternative and possibly \bar "||" and so forth, so what is one
additional line of code to reset the bar number?

That is how I do it currently. However, we start having thousands of tunes and a lot of contributors, and every new rule we invent (whether it's that there is a || every 8 bars except if there is a volta, that there is a break every 4 bars, that the bar numbers are “repeat aware”) mean new maintenance tasks to change all the old tunes, new instructions for the contributors, and new automated tasks that the contributors have to think of. I tend to see computers as tools that should take care of everything that one can automate.

I guess it is also a way for me to find a project that will allow me to dive a bit into LilyPond, and to satisfy my craving for automation.

Also, I would want to not print one bar number but all the bar numbers
within the repeat. If the first eight bars are repeated, I would like to
print 1 9, 2 10, 3 11, etc. This is less a priority for me but I guess
it is linked to the same problem. Would you have pointers for that too?

So, here is a function I use to show duplicate bar numbers.
You pass in the starting bar number, and the number of repeated bars.

Also, the ones I use for triple and quadruple numbers.

Thank you very much for those! They are definitely going to be useful.

Best regards,
— Nicolas “Niols” Jeannerod



reply via email to

[Prev in Thread] Current Thread [Next in Thread]