Debian Codegraph @

opcodes/fluidControl.xml

raw symbols SCIP
1
2 <refentry id="fluidControl">
3 <indexterm id="IndexFluidControl"><primary>fluidControl</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Sample Playback</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>fluidControl</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>fluidControl</refname>
13 <refpurpose>
14 Sends MIDI note on, note off, and other messages to a SoundFont preset.
15 </refpurpose>
16 </refnamediv>
17 <refsect1>
18 <title>Syntax</title>
19 <synopsis><command>fluidControl</command> ienginenum, kstatus, kchannel, \
20 kdata1, kdata2 [,imsgs]</synopsis>
21 </refsect1>
22
23 <refsect1>
24 <title>Description</title>
25 <para>
26 Plugin opcode in fluidOpcodes. This opcode is part of the plugin repository and has to be installed separately.
27 The plugin repository can be found here: <ulink url="https://github.com/csound/plugins"><citetitle>https://github.com/csound/plugins</citetitle></ulink></para>
28 <para>The fluid opcodes provide a simple
29 Csound opcode wrapper around Peter Hanappe's Fluidsynth SoundFont2
30 synthesizer. This implementation accepts any MIDI note on, note
31 off, controller, pitch bend, or program change message at
32 k-rate. Maximum polyphony is 4096 simultaneously sounding
33 voices. Any number of SoundFonts may be loaded and played
34 simultaneously.
35 </para>
36 </refsect1>
37
38 <refsect1>
39 <title>Initialization</title>
40
41 <para><emphasis>ienginenum </emphasis> -- engine number assigned from
42 fluidEngine</para>
43
44 <para><emphasis>imsgs</emphasis> -- if zero suppresses printing of
45 messages when commands arrive. Default value is 1.</para>
46
47 </refsect1>
48
49 <refsect1>
50
51 <title>Performance</title>
52
53 <para><emphasis>kstatus </emphasis> -- MIDI channel message status byte: 128 for
54 note off, 144 for note on, 176 for control change, 192 for program change, or
55 224 for pitch bend.<!-- Note off messages need not be specified, as one is
56 automatically generated when each Csound note expires or is released. --> </para>
57
58 <para><emphasis>kchannel </emphasis> -- MIDI channel number to which the
59 Fluidsynth program is assigned: from 0 to 255. MIDI channels numbered 16 or
60 higher are virtual channels.</para>
61
62 <para><emphasis>kdata1 </emphasis> -- For note on, MIDI key number: from 0
63 (lowest) to 127 (highest), where 60 is middle C. For continuous controller
64 messages, controller number.</para>
65
66 <para><emphasis>kdata2 </emphasis> -- For note on, MIDI key velocity: from 0 (no
67 sound) to 127 (loudest). For continous controller messages, controller
68 value.</para>
69
70 <para>Invoke fluidControl in instrument definitions that actually play
71 notes and send control messages. Each instrument definition must
72 consistently use one MIDI channel that was assigned to a Fluidsynth
73 program using fluidLoad.</para>
74
75 <para>In this implementation, SoundFont effects such as chorus or
76 reverb are used if and only if they are defaults for the preset. There
77 are some ways of turning effects chorus and reverb on or off using
78 fluidEngine, and of changing some of their parameters with fluidCCi and
79 fluidCCk.</para>
80
81
82 </refsect1>
83
84 <refsect1>
85 <title>Examples</title>
86 <para>
87 Here is a more complex example of the fluidsynth opcodes written by Istvan Varga. It uses the file <ulink url="examples/fluidControl-advanced.csd"><citetitle>fluidControl-advanced.csd</citetitle></ulink>.
88 </para>
89 <xi:include href="examples-xml/fluidControl-advanced.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
90 </refsect1>
91
92 <refsect1>
93 <title>See also</title>
94 <para><link linkend="SiggenSample"><citetitle>Soundfonts</citetitle></link></para>
95 <para> More information on soundfonts is in the Floss Manuals: <ulink url="https://flossmanual.csound.com/midi/reading-midi-files"><citetitle>https://flossmanual.csound.com/midi/reading-midi-files</citetitle></ulink></para>
96 <para> For other information on soundfonts look in the Wikipedia: <ulink url="http://en.wikipedia.org/wiki/Soundfont"><citetitle>http://en.wikipedia.org/wiki/Soundfont</citetitle></ulink></para>
97 </refsect1>
98
99 <refsect1>
100 <title>Credits</title>
101 <para>Opcodes by Michael Gogins (gogins at pipeline dot
102 com). Thanks to Peter Hanappe for Fluidsynth, and to Steven Yi for
103 seeing that it is necessary to break up the Fluidsynth into several
104 different Csound opcodes.</para>
105 <para>New in Csound5.00</para>
106 <para>Optional imsgs parameter introduced in version 6.14.</para>
107 </refsect1>
108 </refentry>