| 1 | |
| 2 | <refentry id="slider32f"> |
| 3 | <indexterm id="IndexSlider32f"><primary>slider32f</primary></indexterm> |
| 4 | <refentryinfo><title>Real-time MIDI:Slider Banks</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>slider32f</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>slider32f</refname> |
| 11 | |
| 12 | <refpurpose> |
| 13 | Creates a bank of 32 different MIDI control message numbers, filtered before output. |
| 14 | </refpurpose> |
| 15 | </refnamediv> |
| 16 | |
| 17 | <refsect1> |
| 18 | <title>Description</title> |
| 19 | <para> |
| 20 | Creates a bank of 32 different MIDI control message numbers, filtered before output. |
| 21 | </para> |
| 22 | </refsect1> |
| 23 | |
| 24 | <refsect1> |
| 25 | <title>Syntax</title> |
| 26 | <synopsis>k1,...,k32 <command>slider32f</command> ichan, ictlnum1, imin1, imax1, init1, ifn1, icutoff1, \ |
| 27 | ..., ictlnum32, imin32, imax32, init32, ifn32, icutoff32</synopsis> |
| 28 | </refsect1> |
| 29 | |
| 30 | <refsect1> |
| 31 | <title>Initialization</title> |
| 32 | <para> |
| 33 | <emphasis>ichan</emphasis> -- MIDI channel (1-16) |
| 34 | </para> |
| 35 | |
| 36 | <para> |
| 37 | <emphasis>ictlnum1 ... ictlnum32</emphasis> -- MIDI control number (0-127) |
| 38 | </para> |
| 39 | |
| 40 | <para> |
| 41 | <emphasis>imin1 ... imin32</emphasis> -- minimum values for each controller |
| 42 | </para> |
| 43 | |
| 44 | <para> |
| 45 | <emphasis>imax1 ... imax32</emphasis> -- maximum values for each controller |
| 46 | </para> |
| 47 | |
| 48 | <para> |
| 49 | <emphasis>init1 ... init32</emphasis> -- initial value for each controller |
| 50 | </para> |
| 51 | |
| 52 | <para> |
| 53 | <emphasis>ifn1 ... ifn32</emphasis> -- function table for conversion for each controller |
| 54 | </para> |
| 55 | |
| 56 | <para> |
| 57 | <emphasis>icutoff1 ... icutoff32</emphasis> -- low-pass filter cutoff frequency for each controller |
| 58 | </para> |
| 59 | </refsect1> |
| 60 | |
| 61 | <refsect1> |
| 62 | <title>Performance</title> |
| 63 | <para> |
| 64 | <emphasis>k1 ... k32</emphasis> -- output values |
| 65 | </para> |
| 66 | |
| 67 | <para> |
| 68 | <emphasis>slider32f</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. |
| 69 | </para> |
| 70 | |
| 71 | <para> |
| 72 | 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. |
| 73 | </para> |
| 74 | |
| 75 | <para> |
| 76 | <emphasis>slider32f</emphasis> allows a bank of 32 different MIDI control message numbers. It filters the signal before output. This eliminates discontinuities due to the low resolution of the MIDI (7 bit). The cutoff frequency can be set separately for each controller (suggested range: .1 to 5 Hz). |
| 77 | </para> |
| 78 | |
| 79 | <para> |
| 80 | 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. |
| 81 | </para> |
| 82 | |
| 83 | <warning> |
| 84 | <para> |
| 85 | <emphasis>slider32f</emphasis> opcodes do not output the required initial value immediately, but only after some k-cycles because the filter slightly delays the output. |
| 86 | </para> |
| 87 | </warning> |
| 88 | </refsect1> |
| 89 | |
| 90 | <refsect1> |
| 91 | <title>See Also</title> |
| 92 | <para> |
| 93 | <link linkend="MidiSlidrbk"><citetitle>Slider Banks</citetitle></link> |
| 94 | </para> |
| 95 | </refsect1> |
| 96 | |
| 97 | <refsect1> |
| 98 | <title>Credits</title> |
| 99 | <para> |
| 100 | <simplelist> |
| 101 | <member>Author: &namegabriel;</member> |
| 102 | <member>Italy</member> |
| 103 | <member>December 1998</member> |
| 104 | </simplelist> |
| 105 | </para> |
| 106 | |
| 107 | <para>New in Csound version 3.50</para> |
| 108 | <para>Thanks goes to &namerasmus; for pointing out the correct MIDI channel and controller number ranges.</para> |
| 109 | </refsect1> |
| 110 | </refentry> |