On 03/12/15 12:11, N. Andrew Walsh wrote:

If your system requires only a range in cents to determine which accidental
to use, that should be easy to calculate and apply. If it requires only the
prime factors of the ratios, that should be easy, too. If it's some mixture
of them, that works as well. And for all of them, it should be possible to
output something different to different instrumental parts, as needed.

Prime factorization to control the accidentals wasn't easy when I looked at it. The only information available when the accidental was chosen is the pitch-difference, so that's what I used. There are ways communicating, though, like choosing different accidental sets according to the factors or building the accidental string recursively. Maybe it's easier with new versions of Lilypond and improved documentation. I did this a while ago and learned the internals as I went along. I welcome assistance from more experienced Lilypond-Schemers, and if it's going to be re-implemented from scratch, at least my code's there as an example of what can work.


                Graham




_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to