Forums > MaxMSP

Logarhithm question

September 30, 2012 | 2:36 pm

Hi,
I have a range of values from 0 – 150 and I have scaled them across a 30 – 5000 hz frequency range and am outputting as a sine wave.

The problem I have is that this ends up with predominantly high pitch notes. Is there a way to use log function to scale these values exponentially across the range?


September 30, 2012 | 2:46 pm

Check the [scale] object, noting in particular its fifth argument/inlet which enables an exponential scaling curve


September 30, 2012 | 6:41 pm

for linear to frequency conversion you can also abuse (adding offsets and such) the mtof object. -110


September 30, 2012 | 8:16 pm

just a mentioned already, scale and mtof:

– Pasted Max Patch, click to expand. –

October 1, 2012 | 12:10 pm

Also, this thread might be worth to check:

http://cycling74.com/forums/topic.php?id=36275


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