Great, that may help some of us microtonal experimentalists. 
I wrote my own quicker, dirtier, and almost certainly way uglier conversion script in the meantime.
Iām getting the same answers for 12TET you did (to 8-9 decimal places), so thatās a good check for both of us. One thing I noticed is that the hints in your scales have some strange spacings. For example, 12TET goes like this: 13 (fist octave, makes sense), 12 (OK), 11(!), 12 (OK) ⦠and 12 from then on out. Do the hints need to merely be close? From looking at the source, it appears the answer is āyes, close is fineā.
While Iām on the subject, it also appears that notes are weighted according to the size of the intervals. In other words, if we had a major triad (0,400,700,1200) the fifth would get nearly half of the notes if we threw random values at it. Or am I interpreting the algorithm incorrectly?
In my own quantizer designs, I convert the incoming CV to cents, divide that by the scaleās span (usually a 1200 cent octave, but non-octave spans are OK) to get an offset, then map the remainder to the number of notes in the scale to get a scale index. The result is equal weighting and consistent execution speed (= very fast on an AVR, the ADCs on those devices are the limiting factor). Both approaches have their musical applications, and I think the ability to select either is a cool upgrade.
Thanks again for all you do! I didnāt know we were in such a small club. 