Cabbage Logo
Back to Cabbage Site

Opcode to convert cps to midi note numbers

Ok, I’ve been searching for an opcode that will convert a frequency (in hertz) to a midi note number (with fractional values). I know how to do this myself, but I wanted to see if there already is an opcode for this before I write my own.

Ok, found it… It’s not like the other pitch converters, but it actually follows the naming used in pure data…

The opcode is ‘ftom’… The reciprocal is ‘mtof’…

1 Like