On 13/12/15 12:48, N. Andrew Walsh wrote:
Take a look at conversions.ly (sorry; mround is the equivalend function in
the spreadsheet I use to do the same thing). Those functions will convert
the input (given as a fraction comprising two integers) into Lily's
semitone values. That should allow you to convert between just-intonation
ratios an the nearest note name. Urs has some comments in there explaining
a bit how it works.

Converting from ratios to cents is easy. Converting between ratios and cents requires a function from cents to ratios. That's a lot more difficult because information is lost. You got us excited by suggesting that had been solved.


                  Graham

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

Reply via email to