| 1 | |
| 2 | <refentry id="pchbend"> |
| 3 | <indexterm id="IndexPchbend"><primary>pchbend</primary></indexterm> |
| 4 | <refentryinfo><title>Real-time MIDI:Input</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>pchbend</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>pchbend</refname> |
| 13 | |
| 14 | <refpurpose> |
| 15 | Get the current pitch-bend value for this channel. |
| 16 | </refpurpose> |
| 17 | </refnamediv> |
| 18 | |
| 19 | <refsect1> |
| 20 | <title>Description</title> |
| 21 | <para> |
| 22 | Get the current pitch-bend value for this channel. |
| 23 | </para> |
| 24 | </refsect1> |
| 25 | |
| 26 | <refsect1> |
| 27 | <title>Syntax</title> |
| 28 | <synopsis>ibend <command>pchbend</command> [imin] [, imax]</synopsis> |
| 29 | |
| 30 | <synopsis>kbend <command>pchbend</command> [imin] [, imax]</synopsis> |
| 31 | </refsect1> |
| 32 | |
| 33 | <refsect1> |
| 34 | <title>Initialization</title> |
| 35 | <para> |
| 36 | <emphasis>imin, imax</emphasis> (optional) -- set minimum and maximum limits on values obtained |
| 37 | </para> |
| 38 | </refsect1> |
| 39 | |
| 40 | <refsect1> |
| 41 | <title>Performance</title> |
| 42 | <para> |
| 43 | Get the current pitch-bend value for this channel. Note that this access to pitch-bend data is independent of the MIDI pitch, enabling the value here to be used for any arbitrary purpose. |
| 44 | </para> |
| 45 | </refsect1> |
| 46 | |
| 47 | <refsect1> |
| 48 | <title>Examples</title> |
| 49 | <para> |
| 50 | Here is an example of the pchbend opcode. It uses the file <ulink url="examples/pchbend.csd"><citetitle>pchbend.csd</citetitle></ulink>. |
| 51 | <example> |
| 52 | <title>Example of the pchbend opcode.</title> |
| 53 | <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> |
| 54 | <xi:include href="examples-xml/pchbend.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 55 | </example> |
| 56 | </para> |
| 57 | </refsect1> |
| 58 | |
| 59 | <refsect1> |
| 60 | <title>See also</title> |
| 61 | <para><link linkend="MidiInput"><citetitle>MIDI input and Initialization</citetitle></link></para> |
| 62 | </refsect1> |
| 63 | |
| 64 | <refsect1> |
| 65 | <title>Credits</title> |
| 66 | <para> |
| 67 | <simplelist> |
| 68 | <member>Author: &namebarry; - &namemike;</member> |
| 69 | <member>MIT - Mills</member> |
| 70 | <member>May 1997</member> |
| 71 | </simplelist> |
| 72 | </para> |
| 73 | </refsect1> |
| 74 | </refentry> |