Cpsoct csound opcode for max (octave point decimal conversion)
Good morning,
I would know if there's a cpsoct csound opcode for Max:
It converts a octave-point-decimal value into frequency.
I tried to do some math but it's an exponential conversion, so it's little bit harder for me.
Thank you!
lemmie see if i understand what it does ...
okay, as far as i understood c-sound allows a third decimal place for octave point picth, e.g. "8.000", and it is linear, right?
to be honest, i dont think you really want this (because from where the heck would you get such data?) but the math is relatively simple, you just have to convert the octave number to a note number and then you can use [mtof]
octave pitch class value
|
[* 12.]
|
[mtof]
|
pitch in hertz
i dont know what a "cycle" is in csound - mabye you have to divide the hertz value /2. or something.
for more accuracy (which is a joke with such limited precision input, but) you can avoid mtof by doing the frequency conversion on your own:
[expr 8.1758*pow(1.0594633\,($f1*12.))]