Syntax Issue with Equation?
in
Programming Questions
•
3 years ago
Hi Again,
I've been having trouble trying to get this Midi to Frequency equation to work properly in Processing. Here it is...
println(440 * 2^((69-69)/12))
which should give me 440, but for some reason it comes out with 880 (!?!?!)
again if i do something like
print(440 * 2^((21-69)/12)) - to give me A0 (27.5 hz), I end up with -884 :((
Have I gone wrong somewhere with the syntax or anywhere else? Because this is really frustrating lol.
Many Thanks in Advance
-Dave
1