| 1 | |
| 2 | <refentry id="slider8"> |
| 3 | <indexterm id="IndexSlider8"><primary>slider8</primary></indexterm> |
| 4 | <refentryinfo><title>Real-time MIDI:Slider Banks</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>slider8</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>slider8</refname> |
| 11 | |
| 12 | <refpurpose> |
| 13 | Creates a bank of 8 different MIDI control message numbers. |
| 14 | </refpurpose> |
| 15 | </refnamediv> |
| 16 | |
| 17 | <refsect1> |
| 18 | <title>Description</title> |
| 19 | <para> |
| 20 | Creates a bank of 8 different MIDI control message numbers. |
| 21 | </para> |
| 22 | </refsect1> |
| 23 | |
| 24 | <refsect1> |
| 25 | <title>Syntax</title> |
| 26 | <synopsis>i1,...,i8 <command>slider8</command> ichan, ictlnum1, imin1, imax1, init1, ifn1,..., \ |
| 27 | ictlnum8, imin8, imax8, init8, ifn8</synopsis> |
| 28 | |
| 29 | <synopsis>k1,...,k8 <command>slider8</command> ichan, ictlnum1, imin1, imax1, init1, ifn1,..., \ |
| 30 | ictlnum8, imin8, imax8, init8, ifn8</synopsis> |
| 31 | </refsect1> |
| 32 | |
| 33 | <refsect1> |
| 34 | <title>Initialization</title> |
| 35 | <para> |
| 36 | <emphasis>i1 ... i8</emphasis> -- output values |
| 37 | </para> |
| 38 | |
| 39 | <para> |
| 40 | <emphasis>ichan</emphasis> -- MIDI channel (1-16) |
| 41 | </para> |
| 42 | |
| 43 | <para> |
| 44 | <emphasis>ictlnum1 ... ictlnum8</emphasis> -- MIDI control number (0-127) |
| 45 | </para> |
| 46 | |
| 47 | <para> |
| 48 | <emphasis>imin1 ... imin8</emphasis> -- minimum values for each controller |
| 49 | </para> |
| 50 | |
| 51 | <para> |
| 52 | <emphasis>imax1 ... imax8</emphasis> -- maximum values for each controller |
| 53 | </para> |
| 54 | |
| 55 | <para> |
| 56 | <emphasis>init1 ... init8</emphasis> -- initial value for each controller |
| 57 | </para> |
| 58 | |
| 59 | <para> |
| 60 | <emphasis>ifn1 ... ifn8</emphasis> -- function table for conversion for each controller |
| 61 | </para> |
| 62 | </refsect1> |
| 63 | |
| 64 | <refsect1> |
| 65 | <title>Performance</title> |
| 66 | <para> |
| 67 | <emphasis>k1 ... k8</emphasis> -- output values |
| 68 | </para> |
| 69 | |
| 70 | <para> |
| 71 | <emphasis>slider8</emphasis> is a bank of MIDI controllers, useful when using MIDI mixer such as Kawai MM-16 or others for changing whatever sound parameter in real-time. The raw MIDI control messages at the input port are converted to agree with <emphasis>iminN</emphasis> and <emphasis>imaxN</emphasis>, and an initial value can be set. Also, an optional non-interpolated function table with a custom translation curve is allowed, useful for enabling exponential response curves. |
| 72 | </para> |
| 73 | |
| 74 | <para> |
| 75 | When no function table translation is required, set the <emphasis>ifnN</emphasis> value to 0, else set <emphasis>ifnN</emphasis> to a valid function table number. When table translation is enabled (i.e. setting <emphasis>ifnN</emphasis> value to a non-zero number referring to an already allocated function table), <emphasis>initN</emphasis> value should be set equal to <emphasis>iminN</emphasis> or <emphasis>imaxN</emphasis> value, else the initial output value will not be the same as specified in <emphasis>initN</emphasis> argument. |
| 76 | </para> |
| 77 | |
| 78 | <para> |
| 79 | <emphasis>slider8</emphasis> allows a bank of 8 different MIDI control message numbers. |
| 80 | </para> |
| 81 | |
| 82 | <para> |
| 83 | As the input and output arguments are many, you can split the line using '\' (backslash) character (new in 3.47 version) to improve the readability. Using these opcodes is considerably more efficient than using the separate ones (<link linkend="ctrl7"><citetitle>ctrl7</citetitle></link> and <link linkend="tonek"><citetitle>tonek</citetitle></link>) when more controllers are required. |
| 84 | </para> |
| 85 | |
| 86 | <para> |
| 87 | In the i-rate version of <emphasis>slider8</emphasis>, there is not an initial value input argument, because the output is gotten directly from current status of internal controller array of Csound. |
| 88 | </para> |
| 89 | </refsect1> |
| 90 | |
| 91 | <refsect1> |
| 92 | <title>See Also</title> |
| 93 | <para> |
| 94 | <link linkend="MidiSlidrbk"><citetitle>Slider Banks</citetitle></link> |
| 95 | </para> |
| 96 | </refsect1> |
| 97 | |
| 98 | <refsect1> |
| 99 | <title>Credits</title> |
| 100 | <para> |
| 101 | <simplelist> |
| 102 | <member>Author: &namegabriel;</member> |
| 103 | <member>Italy</member> |
| 104 | <member>December 1998</member> |
| 105 | </simplelist> |
| 106 | </para> |
| 107 | |
| 108 | <para>New in Csound version 3.50</para> |
| 109 | <para>Thanks goes to &namerasmus; for pointing out the correct MIDI channel and controller number ranges.</para> |
| 110 | </refsect1> |
| 111 | </refentry> |