Hi, can anyone help me with some math for a transposing delay patch? it is basically a copy of mode one of the count to 5 pedal which is a forwards and backwards delay with +  one octave transposition. The original has a possibility for different quantisation settings in the pitch control so that it only plays 5ths, minor 3rds, major thirds, chromatic scale, etc. I've managed to make a quantisation for just intervals by simply scaling the pitch control to 01 and multiplying by a certain number and then converting to integer and dividing it back down. But I can't figure out how to do it for these well tempered intervals. Seems like it would be easy...
(/uploads/files/1650450497342test.pd) ctfive.pd

help with math for transposing delay

@teakaytee Sorry, I can't open your patch ... But I guess you just have to do exponential instead of linear scaling. Maybe something like this: delay.pd

I reuploaded the patch if you wanna check it out"
ctfive.pd Thanks! Nice version of the same concept. I think I'll take a closer look and see if that solves it. 
@teakaytee I usually do that transposition conversion the way that @manuels did it (because it shows the math) but it occurs to me that you could also do it this way: