| 1 | |
| 2 | <refentry id="polyaft"> |
| 3 | <indexterm id="IndexPolyaft"><primary>polyaft</primary></indexterm> |
| 4 | <refentryinfo><title>Real-time MIDI:Input</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>polyaft</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>polyaft</refname> |
| 13 | <refpurpose> |
| 14 | Returns the polyphonic after-touch pressure of the selected note number. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para> |
| 21 | <emphasis>polyaft</emphasis> returns the polyphonic pressure of the selected note number, optionally mapped to an user-specified range. |
| 22 | </para> |
| 23 | </refsect1> |
| 24 | |
| 25 | <refsect1> |
| 26 | <title>Syntax</title> |
| 27 | <synopsis>ires <command>polyaft</command> inote [, ilow] [, ihigh]</synopsis> |
| 28 | |
| 29 | <synopsis>kres <command>polyaft</command> inote [, ilow] [, ihigh]</synopsis> |
| 30 | </refsect1> |
| 31 | |
| 32 | <refsect1> |
| 33 | <title>Initialization</title> |
| 34 | <para> |
| 35 | <emphasis>inote</emphasis> -- note number. Normally set to the value returned by <link linkend="notnum"><citetitle>notnum</citetitle></link> |
| 36 | </para> |
| 37 | |
| 38 | <para> |
| 39 | <emphasis>ilow</emphasis> (optional, default: 0) -- lowest output value |
| 40 | </para> |
| 41 | |
| 42 | <para> |
| 43 | <emphasis>ihigh</emphasis> (optional, default: 127) -- highest output value |
| 44 | </para> |
| 45 | </refsect1> |
| 46 | |
| 47 | <refsect1> |
| 48 | <title>Performance</title> |
| 49 | <para> |
| 50 | <emphasis>kres</emphasis> -- polyphonic pressure (aftertouch). |
| 51 | </para> |
| 52 | </refsect1> |
| 53 | |
| 54 | <refsect1> |
| 55 | <title>Examples</title> |
| 56 | <para> |
| 57 | Here is an example of the polyaft opcode. It uses the file <ulink url="examples/polyaft.csd"><citetitle>polyaft.csd</citetitle></ulink>. |
| 58 | </para> |
| 59 | |
| 60 | <para> |
| 61 | Do not forget that you must include the <link linkend="FlagsMinusUpperF"><citetitle>-F flag</citetitle></link> when using an external MIDI file like <quote>polyaft.mid</quote>. |
| 62 | </para> |
| 63 | |
| 64 | <para> |
| 65 | <example> |
| 66 | <title>Example of the polyaft opcode.</title> |
| 67 | |
| 68 | |
| 69 | |
| 70 | <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para> |
| 71 | <xi:include href="examples-xml/polyaft.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 72 | </example> |
| 73 | </para> |
| 74 | </refsect1> |
| 75 | |
| 76 | <refsect1> |
| 77 | <title>See also</title> |
| 78 | <para><link linkend="MidiInput"><citetitle>MIDI input and Initialization</citetitle></link></para> |
| 79 | </refsect1> |
| 80 | |
| 81 | <refsect1> |
| 82 | <title>Credits</title> |
| 83 | <para>Added thanks to an email from &nameistvan;</para> |
| 84 | <para>New in version 4.12</para> |
| 85 | </refsect1> |
| 86 | </refentry> |