ftom Pitch Converters:Functions ftom ftom Convert frequency to midi Description Plugin opcode in emugens. Convert frequency to midi note number, taking global value of A4 into account. Syntax imidi ftom ifreq [,irnd] kmidi ftom kfreq [,irnd] imidis[] ftom ifreqs[] [,irnd] kmidis[] ftom kfreqs[] [,irnd] Performance kfreq / 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 also Pitch Converters: Functions Midi Converters Credits By: &nameeduardo; 2017 New in version 6.09 Rounding option new in 6.12 Array version new in 6.13