Debian Codegraph @

opcodes/slider64f.xml

raw symbols SCIP
1
2 <refentry id="slider64f">
3 <indexterm id="IndexSlider64f"><primary>slider64f</primary></indexterm>
4 <refentryinfo><title>Real-time MIDI:Slider Banks</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>slider64f</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>slider64f</refname>
11
12 <refpurpose>
13 Creates a bank of 64 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 64 different MIDI control message numbers, filtered before output.
21 </para>
22 </refsect1>
23
24 <refsect1>
25 <title>Syntax</title>
26 <synopsis>k1,...,k64 <command>slider64f</command> ichan, ictlnum1, imin1, imax1, init1, ifn1, \
27 icutoff1,..., ictlnum64, imin64, imax64, init64, ifn64, icutoff64</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 ... ictlnum64</emphasis> -- MIDI control number (0-127)
38 </para>
39
40 <para>
41 <emphasis>imin1 ... imin64</emphasis> -- minimum values for each controller
42 </para>
43
44 <para>
45 <emphasis>imax1 ... imax64</emphasis> -- maximum values for each controller
46 </para>
47
48 <para>
49 <emphasis>init1 ... init64</emphasis> -- initial value for each controller
50 </para>
51
52 <para>
53 <emphasis>ifn1 ... ifn64</emphasis> -- function table for conversion for each controller
54 </para>
55
56 <para>
57 <emphasis>icutoff1 ... icutoff64</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 ... k64</emphasis> -- output values
65 </para>
66
67 <para>
68 <emphasis>slider64f</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>slider64f</emphasis> allows a bank of 64 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>slider64f</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>