Forums > MaxMSP

nth root?

Sep 08 2010 | 5:07 am

Hi all,

For equal divisions of the octave into n divisions, the equation is to find the nth root of 2.

Given that I can’t find a symbol/funtion for [expr] to take the ‘nth root’ of something, how do I calculate it?

Any suggestions greatly appreciated.



Sep 08 2010 | 6:17 am

[expr pow($f1,1.0/n)] where n is the nth root (because the nth root of n is the same as finding the power of 1/n). That example would ind the nth root of the input. If you want the input to [expr] to be n in finding the nth root of 2, you would use [expr pow(2,1.0/$f1)]

Sep 08 2010 | 8:53 am

Excellent…I figured it was something so straightforward but I just wasn’t getting it…thank you!

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

Forums > MaxMSP