| 1 |
|
| 2 |
<refentry id="ntof"> |
| 3 |
<indexterm id="IndexNtof"><primary>ntof</primary></indexterm> |
| 4 |
|
| 5 |
<refentryinfo><title>Pitch Converters:Functions</title></refentryinfo> |
| 6 |
<refmeta> |
| 7 |
<refentrytitle>ntof</refentrytitle> |
| 8 |
</refmeta> |
| 9 |
|
| 10 |
<refnamediv> |
| 11 |
<refname>ntof</refname> |
| 12 |
<refpurpose> |
| 13 |
Convert note name to frequency |
| 14 |
</refpurpose> |
| 15 |
</refnamediv> |
| 16 |
|
| 17 |
<refsect1> |
| 18 |
<title>Description</title> |
| 19 |
<para>Plugin opcode in emugens.</para> |
| 20 |
<para> |
| 21 |
Convert note name to frequency (Hz). It allows note name to |
| 22 |
include microtones or a deviation in cents. |
| 23 |
</para> |
| 24 |
</refsect1> |
| 25 |
|
| 26 |
<refsect1> |
| 27 |
<title>Syntax</title> |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
<synopsis>kfreq <command>ntof</command> Snote</synopsis> |
| 32 |
|
| 33 |
<synopsis>ifreq <command>ntof</command> Snote</synopsis> |
| 34 |
|
| 35 |
</refsect1> |
| 36 |
|
| 37 |
<refsect1> |
| 38 |
|
| 39 |
<title>Performance</title> |
| 40 |
|
| 41 |
<para> |
| 42 |
<emphasis>Snote</emphasis> -- Note name |
| 43 |
</para> |
| 44 |
<para> |
| 45 |
<emphasis>kfreq</emphasis> -- Frequency |
| 46 |
</para> |
| 47 |
<note> |
| 48 |
<para> |
| 49 |
The frequency returned depends on the value of the global variable A4 |
| 50 |
</para> |
| 51 |
</note> |
| 52 |
|
| 53 |
<note> |
| 54 |
<para> |
| 55 |
4C is the central C in the piano. |
| 56 |
</para> |
| 57 |
</note> |
| 58 |
|
| 59 |
</refsect1> |
| 60 |
<refsect1> |
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
<title>Examples</title> |
| 65 |
<para> |
| 66 |
Here is an example of the ntof opcode. It uses the file <ulink url="examples/ntof.csd"><citetitle>ntof.csd</citetitle></ulink>. |
| 67 |
<example> |
| 68 |
<title>Example of the ntof opcode.</title> |
| 69 |
<xi:include href="examples-xml/ntof.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 70 |
</example> |
| 71 |
</para> |
| 72 |
</refsect1> |
| 73 |
|
| 74 |
<refsect1> |
| 75 |
<title>See also</title> |
| 76 |
<para><link linkend="PitchFuncs"><citetitle>Pitch Converters: Functions</citetitle></link></para> |
| 77 |
<para><link linkend="MidiConvert"><citetitle>Midi Converters</citetitle></link></para> |
| 78 |
</refsect1> |
| 79 |
|
| 80 |
<refsect1> |
| 81 |
|
| 82 |
<title>Credits</title> |
| 83 |
<para>By: &nameeduardo; 2019</para> |
| 84 |
<para>New in 6.13</para> |
| 85 |
</refsect1> |
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
</refentry> |