Forums > MaxMSP

Scale conversion

June 26, 2008 | 1:24 pm

Hi there,

Ive been fiddling with Max the past few days and loving it. Ive run into a problem on one of the patches ive made though and was wondering if anyone could help me out?

Im trying to convert a scale of 0-255 (a) into the audio spectrum of 20-20,000 (b)

What ive done so far is b = a/255 * 19980 + 20. This converts it fine but doesn’t take into account octaves, so cuts out most of the low end of the audio spectrum.

I was wondering if anyone had any better solutions.

Thanks
-Simon


June 26, 2008 | 1:43 pm

[scale 0 255 20. 20000. 1.06]


June 26, 2008 | 2:02 pm

wow what a handy tool, thanks for the help


June 26, 2008 | 3:38 pm

You may also find mtof handy.


Viewing 4 posts - 1 through 4 (of 4 total)