Logarhithm question

davidhenckel's icon

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?

spectro's icon

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

Roman Thilenius's icon

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

jvkr's icon
Max Patch
Copy patch and select New From Clipboard in Max.

just a mentioned already, scale and mtof:

$Adam's icon