semitone cents.

crispypancakes's icon

could anyone shed light on how to input this semitone cent equation into an object to give the output of a dial.

I have a dial with 24 steps -12 to 12 for tuning and detuning in semitones, i'd like to go finer and believe this is the equation. however i'm really bad at maths.

b=a*2n/1200

crispypancakes's icon

for the first cent of A it would be [440] (* 2$1/1200) but i don't understand how to get the $1 to be the n , how does Max know i need the 1/1200 to be superscripted to the root equation and not just 21/1200 which is not what i want at all??

arggg!

Floating Point's icon

first of all I assume you are trying to make an arithmetic expression using the expr object
second of all it's not $1. It's either $i1 or $f1 depending on whether you want to the numericals to be interpreted by the object as integers or as floats.
to get exponentiation use the exponentiation function:
either pow("2, $f1") or pow(2,$f1)
or use the pow object.

in the expr object the expression would be 440.0* pow(2,($f1/1200))

crispypancakes's icon