ftomPitch Converters:Functionsftomftom
Convert frequency to midi
DescriptionPlugin opcode in emugens.
Convert frequency to midi note number, taking global value
of A4 into account.
Syntaximidi ftom ifreq [,irnd]kmidi ftom kfreq [,irnd]imidis[] ftom ifreqs[] [,irnd]kmidis[] ftom kfreqs[] [,irnd]Performancekfreq / ifreq -- Frequency
irnd -- Optional, if non-zero the result is
rounded to the nearest integer (default zero).
kmidi / imidi --
Corresponding midi note number
Set the global A4
value at the header to modify the tuning
Examples
Here is an example of the ftom opcode. It uses the file mtof-ftom.csd.
Example of the ftom opcode.See alsoPitch Converters: FunctionsMidi ConvertersCreditsBy: &nameeduardo; 2017New in version 6.09Rounding option new in 6.12Array version new in 6.13