The following opcodes can convert MIDI information. Some are conceived to work with a MIDI-triggered instrument instance. All opcodes converting from MIDI note to frequency (and back) use the global variable A4 to set the reference frequency
MIDI note number to frequency converters (MIDI-triggered events): cpsmidi, cpsmidib, cpstmid, octmidi, octmidib, pchmidi, pchmidib.
MIDI note number to frequency converter (general case): mtof, cpsmidinn
Pitch/frequency to MIDI note number converters: ftom, pchtome.
MIDI velocity to amplitude converters: ampmidi and ampmidid.
Note name to midi / frequency and viceversa: ntom, mton, ntof.