/
ntom.xml
106 lines (90 loc) · 2.92 KB
/
ntom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!--Change refentry id and indexterm id-->
<refentry id="ntom">
<indexterm id="IndexNtom"><primary>ntom</primary></indexterm>
<!--Make sure the category below is a valid one! See categories.py-->
<refentryinfo><title>Pitch Converters:Functions</title></refentryinfo>
<refmeta>
<refentrytitle>ntom</refentrytitle>
</refmeta>
<refnamediv>
<refname>ntom</refname>
<refpurpose>
Convert note name to midi note number
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<para>
Convert note name to midi note number. It allows note name to
include microtones or a deviation in cents.
</para>
</refsect1>
<refsect1>
<title>Syntax</title>
<!-- Please keep this below ~70 characters by using backslashes
to avoid overflow in the pdf version-->
<synopsis>kmidi <command>ntom</command> Snote</synopsis>
<synopsis>imidi <command>ntom</command> Snote</synopsis>
</refsect1>
<refsect1>
<title>Performance</title>
<!-- First list all input and output performance parameters-->
<para>
<emphasis>Snote</emphasis> -- Note name
</para>
<para>
<emphasis>kmidi</emphasis> -- Midi note number
</para>
<para>
Example of note names:
<programlisting>
midi note name
-------------------
60 4C
60.4 4C+40
60.5 4C+
60.9 4Db-10
61 4C#
61.5 4D-
</programlisting>
</para>
<note>
<para>
4C is the central C in the piano
</para>
</note>
</refsect1>
<refsect1>
<!--To add examples, create the csd file in the examples directory, then run:-->
<!--python csd2docbook.py -f newopcodename.csd-->
<!--to generate the xml highlighted version used below-->
<title>Examples</title>
<para>
Here is an example of the ntom opcode. It uses the file <ulink url="examples/mton-ntom.csd"><citetitle>mton-ntom.csd</citetitle></ulink>.
<example>
<title>Example of the ftom opcode.</title>
<xi:include href="examples-xml/mton-ntom.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
</example>
</para>
</refsect1>
<refsect1>
<title>See Also</title>
<!-- it's always good to include a good See Also list -->
<para>
<link linkend="cpsmidinn"><citetitle>cpsmidinn</citetitle></link>,
<link linkend="mtof"><citetitle>mtof</citetitle></link>,
<link linkend="ftom"><citetitle>ftom</citetitle></link>,
<link linkend="mton"><citetitle>mton</citetitle></link>
</para>
</refsect1>
<refsect1>
<!-- And put your name and other relevant information here-->
<title>Credits</title>
<para>By: &nameeduardo; 2017</para>
<para>New in version 6.09</para>
</refsect1>
<!--Now remember to add a link from the appropriate category in the Opcode Overview.-->
<!--Add the entity to manual.xml-->
<!--Add the entity reference in the appropriate place in opcodes/top.xml-->
<!--And you're set! Maybe delete the comments as well...-->
</refentry>