Debian Codegraph @

opcodes/s16b14.xml

raw symbols SCIP
1
2 <refentry id="s16b14">
3 <indexterm id="IndexS16b14"><primary>s16b14</primary></indexterm>
4 <refentryinfo><title>Real-time MIDI:Slider Banks</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>s16b14</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>s16b14</refname>
11
12 <refpurpose>
13 Creates a bank of 16 different 14-bit MIDI control message numbers.
14 </refpurpose>
15 </refnamediv>
16
17 <refsect1>
18 <title>Description</title>
19 <para>
20 Creates a bank of 16 different 14-bit MIDI control message numbers.
21 </para>
22 </refsect1>
23
24 <refsect1>
25 <title>Syntax</title>
26 <synopsis>i1,...,i16 <command>s16b14</command> ichan, ictlno_msb1, ictlno_lsb1, imin1, imax1, \
27 initvalue1, ifn1,..., ictlno_msb16, ictlno_lsb16, imin16, imax16, initvalue16, ifn16</synopsis>
28
29 <synopsis>k1,...,k16 <command>s16b14</command> ichan, ictlno_msb1, ictlno_lsb1, imin1, imax1, \
30 initvalue1, ifn1,..., ictlno_msb16, ictlno_lsb16, imin16, imax16, initvalue16, ifn16</synopsis>
31 </refsect1>
32
33 <refsect1>
34 <title>Initialization</title>
35 <para>
36 <emphasis>i1 ... i64</emphasis> -- output values
37 </para>
38
39 <para>
40 <emphasis>ichan</emphasis> -- MIDI channel (1-16)
41 </para>
42
43 <para>
44 <emphasis>ictlno_msb1 .... ictlno_msb32</emphasis> -- MIDI control number, most significant byte (0-127)
45 </para>
46
47 <para>
48 <emphasis>ictlno_lsb1 .... ictlno_lsb32</emphasis> -- MIDI control number, least significant byte (0-127)
49 </para>
50
51 <para>
52 <emphasis>imin1 ... imin64</emphasis> -- minimum values for each controller
53 </para>
54
55 <para>
56 <emphasis>imax1 ... imax64</emphasis> -- maximum values for each controller
57 </para>
58
59 <para>
60 <emphasis>init1 ... init64</emphasis> -- initial value for each controller
61 </para>
62
63 <para>
64 <emphasis>ifn1 ... ifn64</emphasis> -- function table for conversion for each controller
65 </para>
66 </refsect1>
67
68 <refsect1>
69 <title>Performance</title>
70 <para>
71 <emphasis>k1 ... k64</emphasis> -- output values
72 </para>
73
74 <para>
75 <emphasis>s16b14</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.
76 </para>
77
78 <para>
79 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.
80 </para>
81
82 <para>
83 <emphasis>s16b14</emphasis> allows a bank of 16 different MIDI control message numbers. It uses 14-bit values instead of MIDI's normal 7-bit values.
84 </para>
85
86 <para>
87 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.
88 </para>
89
90 <para>
91 In the i-rate version of <emphasis>s16b14</emphasis>, there is not an initial value input argument. The output is taken directly from the current status of internal controller array of Csound.
92 </para>
93 </refsect1>
94
95 <refsect1>
96 <title>See Also</title>
97 <para>
98 <link linkend="MidiSlidrbk"><citetitle>Slider Banks</citetitle></link>
99 </para>
100 </refsect1>
101
102 <refsect1>
103 <title>Credits</title>
104 <para>
105 <simplelist>
106 <member>Author: &namegabriel;</member>
107 <member>Italy</member>
108 <member>December 1998</member>
109 </simplelist>
110 </para>
111
112 <para>New in Csound version 3.50</para>
113 <para>Thanks goes to &namerasmus; for pointing out the correct MIDI channel and controller number ranges.</para>
114 </refsect1>
115 </refentry>