| 1 |
|
| 2 |
<refentry id="mtof"> |
| 3 |
<indexterm id="IndexMtof"><primary>mtof</primary></indexterm> |
| 4 |
|
| 5 |
<refentryinfo><title>Pitch Converters:Functions</title></refentryinfo> |
| 6 |
<refmeta> |
| 7 |
<refentrytitle>mtof</refentrytitle> |
| 8 |
</refmeta> |
| 9 |
|
| 10 |
<refnamediv> |
| 11 |
<refname>mtof</refname> |
| 12 |
<refpurpose> |
| 13 |
Convert a midi to frequency |
| 14 |
</refpurpose> |
| 15 |
</refnamediv> |
| 16 |
|
| 17 |
<refsect1> |
| 18 |
<title>Description</title> |
| 19 |
<para>Plugin opcode in emugens.</para> |
| 20 |
<para> |
| 21 |
Convert a midi note number value to cycles per second, taking |
| 22 |
global value of A4 into account. |
| 23 |
</para> |
| 24 |
</refsect1> |
| 25 |
|
| 26 |
<refsect1> |
| 27 |
<title>Syntax</title> |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
<synopsis>ifreq <command>mtof</command> imidi</synopsis> |
| 32 |
<synopsis>kfreq <command>mtof</command> kmidi</synopsis> |
| 33 |
<synopsis>ifreqs[] <command>mtof</command> imidis[]</synopsis> |
| 34 |
<synopsis>kfreqs[] <command>mtof</command> kmidis[]</synopsis> |
| 35 |
|
| 36 |
</refsect1> |
| 37 |
|
| 38 |
<refsect1> |
| 39 |
|
| 40 |
<title>Performance</title> |
| 41 |
|
| 42 |
<para> |
| 43 |
<emphasis>kmidi</emphasis> / <emphasis>imidi</emphasis> -- Midi |
| 44 |
note number (also as array) |
| 45 |
</para> |
| 46 |
<para> |
| 47 |
<emphasis>kfreq</emphasis> / <emphasis>ifreq</emphasis> -- |
| 48 |
Frequency corresponding to midi note value. An array is returned if the input is an array |
| 49 |
</para> |
| 50 |
|
| 51 |
</refsect1> |
| 52 |
<refsect1> |
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
<title>Examples</title> |
| 57 |
<para> |
| 58 |
Here is an example of the mtof opcode. It uses the file <ulink url="examples/mtof-ftom.csd"><citetitle>mtof-ftom.csd</citetitle></ulink>. |
| 59 |
<example> |
| 60 |
<title>Example of the mtof opcode.</title> |
| 61 |
<xi:include href="examples-xml/mtof-ftom.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 62 |
</example> |
| 63 |
</para> |
| 64 |
</refsect1> |
| 65 |
|
| 66 |
<refsect1> |
| 67 |
<title>See also</title> |
| 68 |
<para><link linkend="PitchFuncs"><citetitle>Pitch Converters: Functions</citetitle></link></para> |
| 69 |
<para><link linkend="MidiConvert"><citetitle>Midi Converters</citetitle></link></para> |
| 70 |
</refsect1> |
| 71 |
|
| 72 |
<refsect1> |
| 73 |
|
| 74 |
<title>Credits</title> |
| 75 |
<para>By: &nameeduardo; 2017</para> |
| 76 |
<para>New plugin in version 6.11</para> |
| 77 |
<para>Array version new in 6.13</para> |
| 78 |
</refsect1> |
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
</refentry> |