| 1 | |
| 2 | <refentry id="control"> |
| 3 | <indexterm id="IndexControl"><primary>control</primary></indexterm> |
| 4 | <refentryinfo><title>Instrument Control:Sensing and Control</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>control</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>control</refname> |
| 13 | <refpurpose> |
| 14 | Configurable slider controls for realtime user input. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para>Plugin opcode in control.</para> |
| 21 | <para> |
| 22 | Configurable slider controls for realtime user input. Requires Winsound or TCL/TK. <emphasis>control</emphasis> reads a slider's value. |
| 23 | </para> |
| 24 | </refsect1> |
| 25 | |
| 26 | <refsect1> |
| 27 | <title>Syntax</title> |
| 28 | <synopsis>kres <command>control</command> knum</synopsis> |
| 29 | </refsect1> |
| 30 | |
| 31 | <refsect1> |
| 32 | <title>Performance</title> |
| 33 | <para> |
| 34 | Note that this opcode is not available on Windows due to the implimentation of pipes on that system |
| 35 | </para> |
| 36 | <para> |
| 37 | <emphasis>knum</emphasis> -- number of the slider to be read. |
| 38 | </para> |
| 39 | |
| 40 | <para> |
| 41 | Calling <emphasis>control</emphasis> will create a new slider on the screen. There is no theoretical limit to the number of sliders. Windows and TCL/TK use only integers for slider values, so the values may need rescaling. GUIs usually pass values at a fairly slow rate, so it may be advisable to pass the output of control through <emphasis>port</emphasis>. |
| 42 | </para> |
| 43 | </refsect1> |
| 44 | |
| 45 | <refsect1> |
| 46 | <title>Examples</title> |
| 47 | <para> |
| 48 | See the <link linkend="setctrl"><citetitle>setctrl</citetitle></link> opcode for an example. |
| 49 | </para> |
| 50 | </refsect1> |
| 51 | |
| 52 | <refsect1> |
| 53 | <title>See also</title> |
| 54 | <para><link linkend="ControlSensing"><citetitle>Sensing and Control: TCL/TK widgets</citetitle></link></para> |
| 55 | </refsect1> |
| 56 | |
| 57 | <refsect1> |
| 58 | <title>Credits</title> |
| 59 | <para> |
| 60 | <simplelist> |
| 61 | <member>Author: &namejohn;</member> |
| 62 | <member>University of Bath, Codemist. Ltd.</member> |
| 63 | <member>Bath, UK</member> |
| 64 | <member>May, 2000</member> |
| 65 | </simplelist> |
| 66 | </para> |
| 67 | |
| 68 | <para>New in Csound version 4.06</para> |
| 69 | </refsect1> |
| 70 | </refentry> |