| 1 | |
| 2 | <refentry id="ctrlsave"> |
| 3 | <indexterm id="IndexCtrlsave"><primary>ctrlsave</primary></indexterm> |
| 4 | <refentryinfo><title>Real-time MIDI:Input</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>ctrlsave</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>ctrlsave</refname> |
| 11 | <refpurpose> |
| 12 | Recovers the current values of MIDI controllers. |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | Recovers the current values of MIDI controllers to a k-array. |
| 20 | </para> |
| 21 | </refsect1> |
| 22 | |
| 23 | <refsect1> |
| 24 | <title>Syntax</title> |
| 25 | <synopsis>kconnt[] <command>ctrlsave</command> ichnl, ictlno1, [ictlno2] [, ictlno3] ...</synopsis> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Initialization</title> |
| 30 | <para> |
| 31 | <emphasis>ichnl</emphasis> -- MIDI channel number (1-16) |
| 32 | </para> |
| 33 | |
| 34 | <para> |
| 35 | <emphasis>ictlno1</emphasis>, <emphasis>ictlno1</emphasis>, etc. -- MIDI controller numbers (0-127) |
| 36 | </para> |
| 37 | </refsect1> |
| 38 | |
| 39 | <refsect1> |
| 40 | <title>Performance</title> |
| 41 | <para> |
| 42 | Sets the array kcontrl to the current values of MIDI controllers indicated. |
| 43 | </para> |
| 44 | </refsect1> |
| 45 | |
| 46 | <refsect1> |
| 47 | <title>Examples</title> |
| 48 | <para> |
| 49 | Here is an example of the ctrlsave opcode. It uses the file <ulink url="examples/ctrls.csd"><citetitle>ctrls.csd</citetitle></ulink>. |
| 50 | <example> |
| 51 | <title>Example of the ctrlsave opcode.</title> |
| 52 | <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> |
| 53 | <xi:include href="examples-xml/ctrls.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 54 | </example> |
| 55 | </para> |
| 56 | </refsect1> |
| 57 | |
| 58 | <refsect1> |
| 59 | <title>See also</title> |
| 60 | <para><link linkend="MidiInput"><citetitle>MIDI input and Initialization</citetitle></link></para> |
| 61 | </refsect1> |
| 62 | |
| 63 | <refsect1> |
| 64 | <title>Credits</title> |
| 65 | <para> |
| 66 | <simplelist> |
| 67 | <member>Authors: &namejohn; and Richard Boulanger</member> |
| 68 | </simplelist> |
| 69 | </para> |
| 70 | |
| 71 | <para>New in Csound version 6.16</para> |
| 72 | </refsect1> |
| 73 | </refentry> |