/[svn]/web/trunk/www.linuxsampler.org/api/draft-linuxsampler-protocol.html
ViewVC logotype

Annotation of /web/trunk/www.linuxsampler.org/api/draft-linuxsampler-protocol.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1696 - (hide annotations) (download) (as text)
Sat Feb 16 01:16:39 2008 UTC (16 years, 2 months ago) by schoenebeck
File MIME type: text/html
File size: 414396 byte(s)
* added new LSCP event "DEVICE_MIDI"

1 senoner 542 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 schoenebeck 1430 <html lang="en"><head><title>LinuxSampler Control Protocol</title>
3 senoner 542 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
4 schoenebeck 1430 <meta name="description" content="LinuxSampler Control Protocol">
5 senoner 542 <meta name="keywords" content="LSCP">
6 iliev 1110 <meta name="generator" content="xml2rfc v1.32 (http://xml.resource.org/)">
7 schoenebeck 974 <style type='text/css'><!--
8 iliev 1110 body {
9     font-family: verdana, charcoal, helvetica, arial, sans-serif;
10     font-size: small; color: #000; background-color: #FFF;
11     margin: 2em;
12     }
13 schoenebeck 974 h1, h2, h3, h4, h5, h6 {
14 iliev 1110 font-family: helvetica, monaco, "MS Sans Serif", arial, sans-serif;
15     font-weight: bold; font-style: normal;
16     }
17     h1 { color: #900; background-color: transparent; text-align: right; }
18     h3 { color: #333; background-color: transparent; }
19 senoner 542
20 iliev 1110 td.RFCbug {
21     font-size: x-small; text-decoration: none;
22     width: 30px; height: 30px; padding-top: 2px;
23     text-align: justify; vertical-align: middle;
24     background-color: #000;
25     }
26     td.RFCbug span.RFC {
27     font-family: monaco, charcoal, geneva, "MS Sans Serif", helvetica, verdana, sans-serif;
28     font-weight: bold; color: #666;
29     }
30     td.RFCbug span.hotText {
31     font-family: charcoal, monaco, geneva, "MS Sans Serif", helvetica, verdana, sans-serif;
32     font-weight: normal; text-align: center; color: #FFF;
33     }
34 senoner 542
35 iliev 1110 table.TOCbug { width: 30px; height: 15px; }
36     td.TOCbug {
37     text-align: center; width: 30px; height: 15px;
38     color: #FFF; background-color: #900;
39     }
40     td.TOCbug a {
41     font-family: monaco, charcoal, geneva, "MS Sans Serif", helvetica, sans-serif;
42     font-weight: bold; font-size: x-small; text-decoration: none;
43     color: #FFF; background-color: transparent;
44     }
45 senoner 542
46 iliev 1110 td.header {
47     font-family: arial, helvetica, sans-serif; font-size: x-small;
48     vertical-align: top; width: 33%;
49     color: #FFF; background-color: #666;
50     }
51     td.author { font-weight: bold; font-size: x-small; margin-left: 4em; }
52     td.author-text { font-size: x-small; }
53 senoner 542
54 iliev 1110 /* info code from SantaKlauss at http://www.madaboutstyle.com/tooltip2.html */
55     a.info {
56     /* This is the key. */
57     position: relative;
58     z-index: 24;
59     text-decoration: none;
60     }
61     a.info:hover {
62     z-index: 25;
63     color: #FFF; background-color: #900;
64     }
65     a.info span { display: none; }
66     a.info:hover span.info {
67     /* The span will display just on :hover state. */
68     display: block;
69     position: absolute;
70     font-size: smaller;
71     top: 2em; left: -5em; width: 15em;
72     padding: 2px; border: 1px solid #333;
73     color: #900; background-color: #EEE;
74     text-align: left;
75     }
76 senoner 542
77 iliev 1110 a { font-weight: bold; }
78     a:link { color: #900; background-color: transparent; }
79     a:visited { color: #633; background-color: transparent; }
80     a:active { color: #633; background-color: transparent; }
81 senoner 542
82 iliev 1110 p { margin-left: 2em; margin-right: 2em; }
83     p.copyright { font-size: x-small; }
84     p.toc { font-size: small; font-weight: bold; margin-left: 3em; }
85     table.toc { margin: 0 0 0 3em; padding: 0; border: 0; vertical-align: text-top; }
86     td.toc { font-size: small; font-weight: bold; vertical-align: text-top; }
87 senoner 542
88 iliev 1110 ol.text { margin-left: 2em; margin-right: 2em; }
89     ul.text { margin-left: 2em; margin-right: 2em; }
90     li { margin-left: 3em; }
91 senoner 542
92 iliev 1110 /* RFC-2629 <spanx>s and <artwork>s. */
93     em { font-style: italic; }
94     strong { font-weight: bold; }
95     dfn { font-weight: bold; font-style: normal; }
96     cite { font-weight: normal; font-style: normal; }
97     tt { color: #036; }
98 schoenebeck 974 tt, pre, pre dfn, pre em, pre cite, pre span {
99 iliev 1110 font-family: "Courier New", Courier, monospace; font-size: small;
100     }
101     pre {
102     text-align: left; padding: 4px;
103     color: #000; background-color: #CCC;
104     }
105     pre dfn { color: #900; }
106     pre em { color: #66F; background-color: #FFC; font-weight: normal; }
107     pre .key { color: #33C; font-weight: bold; }
108     pre .id { color: #900; }
109     pre .str { color: #000; background-color: #CFF; }
110     pre .val { color: #066; }
111     pre .rep { color: #909; }
112     pre .oth { color: #000; background-color: #FCF; }
113     pre .err { background-color: #FCC; }
114 schoenebeck 708
115 iliev 1110 /* RFC-2629 <texttable>s. */
116     table.all, table.full, table.headers, table.none {
117     font-size: small; text-align: center; border-width: 2px;
118     vertical-align: top; border-collapse: collapse;
119     }
120     table.all, table.full { border-style: solid; border-color: black; }
121     table.headers, table.none { border-style: none; }
122     th {
123     font-weight: bold; border-color: black;
124     border-width: 2px 2px 3px 2px;
125     }
126     table.all th, table.full th { border-style: solid; }
127     table.headers th { border-style: none none solid none; }
128     table.none th { border-style: none; }
129     table.all td {
130     border-style: solid; border-color: #333;
131     border-width: 1px 2px;
132     }
133     table.full td, table.headers td, table.none td { border-style: none; }
134 senoner 542
135 iliev 1110 hr { height: 1px; }
136     hr.insert {
137     width: 80%; border-style: none; border-width: 0;
138     color: #CCC; background-color: #CCC;
139     }
140 schoenebeck 974 --></style>
141 senoner 542 </head>
142     <body>
143 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
144 senoner 542 <table summary="layout" width="66%" border="0" cellpadding="0" cellspacing="0"><tr><td><table summary="layout" width="100%" border="0" cellpadding="2" cellspacing="1">
145     <tr><td class="header">LinuxSampler Developers</td><td class="header">C. Schoenebeck</td></tr>
146     <tr><td class="header">Internet-Draft</td><td class="header">Interessengemeinschaft Software</td></tr>
147 schoenebeck 974 <tr><td class="header">Intended status: Standards Track</td><td class="header">Engineering e. V.</td></tr>
148 schoenebeck 1696 <tr><td class="header">Expires: August 19, 2008</td><td class="header">February 16, 2008</td></tr>
149 senoner 542 </table></td></tr></table>
150 schoenebeck 1685 <h1><br />LinuxSampler Control Protocol<br />LSCP 1.4</h1>
151 senoner 542
152     <h3>Status of this Memo</h3>
153     <p>
154 schoenebeck 974 By submitting this Internet-Draft,
155     each author represents that any applicable patent or other IPR claims of which
156     he or she is aware have been or will be disclosed,
157     and any of which he or she becomes aware will be disclosed,
158     in accordance with Section&nbsp;6 of BCP&nbsp;79.</p>
159 senoner 542 <p>
160     Internet-Drafts are working documents of the Internet Engineering
161     Task Force (IETF), its areas, and its working groups.
162     Note that other groups may also distribute working documents as
163     Internet-Drafts.</p>
164     <p>
165     Internet-Drafts are draft documents valid for a maximum of six months
166     and may be updated, replaced, or obsoleted by other documents at any time.
167     It is inappropriate to use Internet-Drafts as reference material or to cite
168 schoenebeck 708 them other than as &ldquo;work in progress.&rdquo;</p>
169 senoner 542 <p>
170     The list of current Internet-Drafts can be accessed at
171     <a href='http://www.ietf.org/ietf/1id-abstracts.txt'>http://www.ietf.org/ietf/1id-abstracts.txt</a>.</p>
172     <p>
173     The list of Internet-Draft Shadow Directories can be accessed at
174     <a href='http://www.ietf.org/shadow.html'>http://www.ietf.org/shadow.html</a>.</p>
175     <p>
176 schoenebeck 1696 This Internet-Draft will expire on August 19, 2008.</p>
177 senoner 542
178     <h3>Copyright Notice</h3>
179     <p>
180 schoenebeck 1685 Copyright &copy; The IETF Trust (2008).</p>
181 senoner 542
182     <h3>Abstract</h3>
183    
184     <p>The LinuxSampler Control Protocol (LSCP) is an
185     application-level protocol primarily intended for local and
186 schoenebeck 575 remote controlling the LinuxSampler backend application, which is a
187     sophisticated server-like console application essentially playing
188     back audio samples and manipulating the samples in real time to
189     certain extent.
190 senoner 542 </p><a name="toc"></a><br /><hr />
191     <h3>Table of Contents</h3>
192     <p class="toc">
193     <a href="#anchor1">1.</a>&nbsp;
194     Requirements notation<br />
195 schoenebeck 575 <a href="#LSCP versioning">2.</a>&nbsp;
196     Versioning of this specification<br />
197     <a href="#anchor2">3.</a>&nbsp;
198 senoner 542 Introduction<br />
199 schoenebeck 575 <a href="#anchor3">4.</a>&nbsp;
200 senoner 542 Focus of this protocol<br />
201 schoenebeck 575 <a href="#anchor4">5.</a>&nbsp;
202 senoner 542 Communication Overview<br />
203 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#anchor5">5.1.</a>&nbsp;
204 senoner 542 Request/response communication method<br />
205 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#anchor6">5.1.1.</a>&nbsp;
206 senoner 542 Result format<br />
207 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#anchor7">5.2.</a>&nbsp;
208 senoner 542 Subscribe/notify communication method<br />
209 schoenebeck 575 <a href="#control_commands">6.</a>&nbsp;
210 senoner 542 Description for control commands<br />
211 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#anchor8">6.1.</a>&nbsp;
212 senoner 542 Ignored lines and comments<br />
213 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#anchor9">6.2.</a>&nbsp;
214 senoner 542 Configuring audio drivers<br />
215 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET AVAILABLE_AUDIO_OUTPUT_DRIVERS">6.2.1.</a>&nbsp;
216 senoner 542 Getting amount of available audio output drivers<br />
217 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS">6.2.2.</a>&nbsp;
218 senoner 542 Getting all available audio output drivers<br />
219 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET AUDIO_OUTPUT_DRIVER INFO">6.2.3.</a>&nbsp;
220 senoner 542 Getting information about a specific audio
221     output driver<br />
222 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET AUDIO_OUTPUT_DRIVER_PARAMETER INFO">6.2.4.</a>&nbsp;
223 senoner 542 Getting information about specific audio
224     output driver parameter<br />
225 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#CREATE AUDIO_OUTPUT_DEVICE">6.2.5.</a>&nbsp;
226 senoner 542 Creating an audio output device<br />
227 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#DESTROY AUDIO_OUTPUT_DEVICE">6.2.6.</a>&nbsp;
228 senoner 542 Destroying an audio output device<br />
229 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET AUDIO_OUTPUT_DEVICES">6.2.7.</a>&nbsp;
230 senoner 542 Getting all created audio output device count<br />
231 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#LIST AUDIO_OUTPUT_DEVICES">6.2.8.</a>&nbsp;
232 senoner 542 Getting all created audio output device list<br />
233 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET AUDIO_OUTPUT_DEVICE INFO">6.2.9.</a>&nbsp;
234 senoner 542 Getting current settings of an audio output device<br />
235 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET AUDIO_OUTPUT_DEVICE_PARAMETER">6.2.10.</a>&nbsp;
236 senoner 542 Changing settings of audio output devices<br />
237 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET AUDIO_OUTPUT_CHANNEL INFO">6.2.11.</a>&nbsp;
238 senoner 542 Getting information about an audio channel<br />
239 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET AUDIO_OUTPUT_CHANNEL_PARAMETER INFO">6.2.12.</a>&nbsp;
240 senoner 542 Getting information about specific audio channel parameter<br />
241 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET AUDIO_OUTPUT_CHANNEL_PARAMETER">6.2.13.</a>&nbsp;
242 senoner 542 Changing settings of audio output channels<br />
243 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#anchor10">6.3.</a>&nbsp;
244 senoner 542 Configuring MIDI input drivers<br />
245 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET AVAILABLE_MIDI_INPUT_DRIVERS">6.3.1.</a>&nbsp;
246 senoner 542 Getting amount of available MIDI input drivers<br />
247 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#LIST AVAILABLE_MIDI_INPUT_DRIVERS">6.3.2.</a>&nbsp;
248 senoner 542 Getting all available MIDI input drivers<br />
249 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET MIDI_INPUT_DRIVER INFO">6.3.3.</a>&nbsp;
250 senoner 542 Getting information about a specific MIDI input driver<br />
251 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET MIDI_INPUT_DRIVER_PARAMETER INFO">6.3.4.</a>&nbsp;
252 senoner 542 Getting information about specific MIDI input driver parameter<br />
253 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#CREATE MIDI_INPUT_DEVICE">6.3.5.</a>&nbsp;
254 senoner 542 Creating a MIDI input device<br />
255 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#DESTROY MIDI_INPUT_DEVICE">6.3.6.</a>&nbsp;
256 senoner 542 Destroying a MIDI input device<br />
257 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET MIDI_INPUT_DEVICES">6.3.7.</a>&nbsp;
258 senoner 542 Getting all created MIDI input device count<br />
259 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#LIST MIDI_INPUT_DEVICES">6.3.8.</a>&nbsp;
260 senoner 542 Getting all created MIDI input device list<br />
261 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET MIDI_INPUT_DEVICE INFO">6.3.9.</a>&nbsp;
262 senoner 542 Getting current settings of a MIDI input device<br />
263 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET MIDI_INPUT_DEVICE_PARAMETER">6.3.10.</a>&nbsp;
264 senoner 542 Changing settings of MIDI input devices<br />
265 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET MIDI_INPUT_PORT INFO">6.3.11.</a>&nbsp;
266 senoner 542 Getting information about a MIDI port<br />
267 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET MIDI_INPUT_PORT_PARAMETER INFO">6.3.12.</a>&nbsp;
268 senoner 542 Getting information about specific MIDI port parameter<br />
269 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET MIDI_INPUT_PORT_PARAMETER">6.3.13.</a>&nbsp;
270 senoner 542 Changing settings of MIDI input ports<br />
271 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#anchor11">6.4.</a>&nbsp;
272 senoner 542 Configuring sampler channels<br />
273 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#LOAD INSTRUMENT">6.4.1.</a>&nbsp;
274 senoner 542 Loading an instrument<br />
275 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#LOAD ENGINE">6.4.2.</a>&nbsp;
276 senoner 542 Loading a sampler engine<br />
277 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET CHANNELS">6.4.3.</a>&nbsp;
278 senoner 542 Getting all created sampler channel count<br />
279 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#LIST CHANNELS">6.4.4.</a>&nbsp;
280 senoner 542 Getting all created sampler channel list<br />
281 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#ADD CHANNEL">6.4.5.</a>&nbsp;
282 senoner 542 Adding a new sampler channel<br />
283 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#REMOVE CHANNEL">6.4.6.</a>&nbsp;
284 senoner 542 Removing a sampler channel<br />
285 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET AVAILABLE_ENGINES">6.4.7.</a>&nbsp;
286 senoner 542 Getting amount of available engines<br />
287 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#LIST AVAILABLE_ENGINES">6.4.8.</a>&nbsp;
288 senoner 542 Getting all available engines<br />
289 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET ENGINE INFO">6.4.9.</a>&nbsp;
290 senoner 542 Getting information about an engine<br />
291 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET CHANNEL INFO">6.4.10.</a>&nbsp;
292 senoner 542 Getting sampler channel information<br />
293 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET CHANNEL VOICE_COUNT">6.4.11.</a>&nbsp;
294 senoner 542 Current number of active voices<br />
295 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET CHANNEL STREAM_COUNT">6.4.12.</a>&nbsp;
296 senoner 542 Current number of active disk streams<br />
297 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET CHANNEL BUFFER_FILL">6.4.13.</a>&nbsp;
298 senoner 542 Current fill state of disk stream buffers<br />
299 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET CHANNEL AUDIO_OUTPUT_DEVICE">6.4.14.</a>&nbsp;
300 senoner 542 Setting audio output device<br />
301 schoenebeck 974 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET CHANNEL AUDIO_OUTPUT_TYPE">6.4.15.</a>&nbsp;
302 senoner 542 Setting audio output type<br />
303 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET CHANNEL AUDIO_OUTPUT_CHANNEL">6.4.16.</a>&nbsp;
304 senoner 542 Setting audio output channel<br />
305 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET CHANNEL MIDI_INPUT_DEVICE">6.4.17.</a>&nbsp;
306 senoner 542 Setting MIDI input device<br />
307 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET CHANNEL MIDI_INPUT_TYPE">6.4.18.</a>&nbsp;
308 senoner 542 Setting MIDI input type<br />
309 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET CHANNEL MIDI_INPUT_PORT">6.4.19.</a>&nbsp;
310 senoner 542 Setting MIDI input port<br />
311 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET CHANNEL MIDI_INPUT_CHANNEL">6.4.20.</a>&nbsp;
312 senoner 542 Setting MIDI input channel<br />
313 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET CHANNEL VOLUME">6.4.21.</a>&nbsp;
314 senoner 542 Setting channel volume<br />
315 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET CHANNEL MUTE">6.4.22.</a>&nbsp;
316 schoenebeck 708 Muting a sampler channel<br />
317 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET CHANNEL SOLO">6.4.23.</a>&nbsp;
318 schoenebeck 708 Soloing a sampler channel<br />
319 schoenebeck 974 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET CHANNEL MIDI_INSTRUMENT_MAP">6.4.24.</a>&nbsp;
320     Assigning a MIDI instrument map to a sampler channel<br />
321 schoenebeck 1002 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#CREATE FX_SEND">6.4.25.</a>&nbsp;
322     Adding an effect send to a sampler channel<br />
323     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#DESTROY FX_SEND">6.4.26.</a>&nbsp;
324     Removing an effect send from a sampler channel<br />
325     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET FX_SENDS">6.4.27.</a>&nbsp;
326     Getting amount of effect sends on a sampler channel<br />
327     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#LIST FX_SENDS">6.4.28.</a>&nbsp;
328     Listing all effect sends on a sampler channel<br />
329     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET FX_SEND INFO">6.4.29.</a>&nbsp;
330     Getting effect send information<br />
331 iliev 1137 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET FX_SEND NAME">6.4.30.</a>&nbsp;
332     Changing effect send's name<br />
333     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET FX_SEND AUDIO_OUTPUT_CHANNEL">6.4.31.</a>&nbsp;
334 schoenebeck 1002 Altering effect send's audio routing<br />
335 iliev 1137 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET FX_SEND MIDI_CONTROLLER">6.4.32.</a>&nbsp;
336 schoenebeck 1028 Altering effect send's MIDI controller<br />
337 iliev 1137 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET FX_SEND LEVEL">6.4.33.</a>&nbsp;
338 schoenebeck 1028 Altering effect send's send level<br />
339 iliev 1137 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#RESET CHANNEL">6.4.34.</a>&nbsp;
340 senoner 542 Resetting a sampler channel<br />
341 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#anchor12">6.5.</a>&nbsp;
342 senoner 542 Controlling connection<br />
343 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE">6.5.1.</a>&nbsp;
344 senoner 542 Register front-end for receiving event messages<br />
345 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#UNSUBSCRIBE">6.5.2.</a>&nbsp;
346 senoner 542 Unregister front-end for not receiving event messages<br />
347 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET ECHO">6.5.3.</a>&nbsp;
348 senoner 542 Enable or disable echo of commands<br />
349 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#QUIT">6.5.4.</a>&nbsp;
350 senoner 542 Close client connection<br />
351 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#anchor13">6.6.</a>&nbsp;
352 senoner 542 Global commands<br />
353 schoenebeck 940 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET TOTAL_VOICE_COUNT">6.6.1.</a>&nbsp;
354     Current number of active voices<br />
355     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET TOTAL_VOICE_COUNT_MAX">6.6.2.</a>&nbsp;
356     Maximum amount of active voices<br />
357 schoenebeck 1572 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET TOTAL_STREAM_COUNT">6.6.3.</a>&nbsp;
358     Current number of active disk streams<br />
359     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#RESET">6.6.4.</a>&nbsp;
360 senoner 542 Reset sampler<br />
361 schoenebeck 1572 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET SERVER INFO">6.6.5.</a>&nbsp;
362 schoenebeck 575 General sampler informations<br />
363 schoenebeck 1572 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET VOLUME">6.6.6.</a>&nbsp;
364 schoenebeck 1006 Getting global volume attenuation<br />
365 schoenebeck 1572 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET VOLUME">6.6.7.</a>&nbsp;
366 schoenebeck 1006 Setting global volume attenuation<br />
367 schoenebeck 974 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#MIDI Instrument Mapping">6.7.</a>&nbsp;
368 schoenebeck 945 MIDI Instrument Mapping<br />
369 schoenebeck 1390 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#ADD MIDI_INSTRUMENT_MAP">6.7.1.</a>&nbsp;
370 schoenebeck 974 Create a new MIDI instrument map<br />
371     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#REMOVE MIDI_INSTRUMENT_MAP">6.7.2.</a>&nbsp;
372     Delete one particular or all MIDI instrument maps<br />
373     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET MIDI_INSTRUMENT_MAPS">6.7.3.</a>&nbsp;
374     Get amount of existing MIDI instrument maps<br />
375     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#LIST MIDI_INSTRUMENT_MAPS">6.7.4.</a>&nbsp;
376     Getting all created MIDI instrument maps<br />
377     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET MIDI_INSTRUMENT_MAP INFO">6.7.5.</a>&nbsp;
378     Getting MIDI instrument map information<br />
379     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET MIDI_INSTRUMENT_MAP NAME">6.7.6.</a>&nbsp;
380     Renaming a MIDI instrument map<br />
381     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#MAP MIDI_INSTRUMENT">6.7.7.</a>&nbsp;
382 schoenebeck 945 Create or replace a MIDI instrument map entry<br />
383 schoenebeck 974 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET MIDI_INSTRUMENTS">6.7.8.</a>&nbsp;
384 schoenebeck 945 Getting ammount of MIDI instrument map entries<br />
385 schoenebeck 974 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#LIST MIDI_INSTRUMENTS">6.7.9.</a>&nbsp;
386     Getting indeces of all entries of a MIDI instrument map<br />
387     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#UNMAP MIDI_INSTRUMENT">6.7.10.</a>&nbsp;
388 schoenebeck 945 Remove an entry from the MIDI instrument map<br />
389 schoenebeck 974 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET MIDI_INSTRUMENT INFO">6.7.11.</a>&nbsp;
390 schoenebeck 945 Get current settings of MIDI instrument map entry<br />
391 schoenebeck 974 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#CLEAR MIDI_INSTRUMENTS">6.7.12.</a>&nbsp;
392 schoenebeck 945 Clear MIDI instrument map<br />
393 iliev 1162 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#Managing Instruments Database">6.8.</a>&nbsp;
394     Managing Instruments Database<br />
395     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#ADD DB_INSTRUMENT_DIRECTORY">6.8.1.</a>&nbsp;
396     Creating a new instrument directory<br />
397     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#REMOVE DB_INSTRUMENT_DIRECTORY">6.8.2.</a>&nbsp;
398     Deleting an instrument directory<br />
399     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET DB_INSTRUMENT_DIRECTORIES">6.8.3.</a>&nbsp;
400     Getting amount of instrument directories<br />
401     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#LIST DB_INSTRUMENT_DIRECTORIES">6.8.4.</a>&nbsp;
402     Listing all directories in specific directory<br />
403     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET DB_INSTRUMENT_DIRECTORY INFO">6.8.5.</a>&nbsp;
404     Getting instrument directory information<br />
405     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET DB_INSTRUMENT_DIRECTORY NAME">6.8.6.</a>&nbsp;
406     Renaming an instrument directory<br />
407     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#MOVE DB_INSTRUMENT_DIRECTORY">6.8.7.</a>&nbsp;
408     Moving an instrument directory<br />
409 iliev 1189 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#COPY DB_INSTRUMENT_DIRECTORY">6.8.8.</a>&nbsp;
410     Copying instrument directories<br />
411     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET DB_INSTRUMENT_DIRECTORY DESCRIPTION">6.8.9.</a>&nbsp;
412 iliev 1162 Changing the description of directory<br />
413 iliev 1189 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#FIND DB_INSTRUMENT_DIRECTORIES">6.8.10.</a>&nbsp;
414     Finding directories<br />
415     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#ADD DB_INSTRUMENTS">6.8.11.</a>&nbsp;
416 iliev 1162 Adding instruments to the instruments database<br />
417 iliev 1189 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#REMOVE DB_INSTRUMENT">6.8.12.</a>&nbsp;
418 iliev 1162 Removing an instrument<br />
419 iliev 1189 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET DB_INSTRUMENTS">6.8.13.</a>&nbsp;
420 iliev 1162 Getting amount of instruments<br />
421 iliev 1189 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#LIST DB_INSTRUMENTS">6.8.14.</a>&nbsp;
422 iliev 1162 Listing all instruments in specific directory<br />
423 iliev 1189 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET DB_INSTRUMENT INFO">6.8.15.</a>&nbsp;
424 iliev 1162 Getting instrument information<br />
425 iliev 1189 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET DB_INSTRUMENT NAME">6.8.16.</a>&nbsp;
426 iliev 1162 Renaming an instrument<br />
427 iliev 1189 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#MOVE DB_INSTRUMENT">6.8.17.</a>&nbsp;
428 iliev 1162 Moving an instrument<br />
429 iliev 1189 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#COPY DB_INSTRUMENT">6.8.18.</a>&nbsp;
430     Copying instruments<br />
431     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET DB_INSTRUMENT DESCRIPTION">6.8.19.</a>&nbsp;
432 iliev 1162 Changing the description of instrument<br />
433 iliev 1189 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#FIND DB_INSTRUMENTS">6.8.20.</a>&nbsp;
434     Finding instruments<br />
435 iliev 1201 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET DB_INSTRUMENTS_JOB INFO">6.8.21.</a>&nbsp;
436     Getting job status information<br />
437 schoenebeck 1363 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#FORMAT INSTRUMENTS_DB">6.8.22.</a>&nbsp;
438     Formatting the instruments database<br />
439     &nbsp;&nbsp;&nbsp;&nbsp;<a href="#editing_instruments">6.9.</a>&nbsp;
440     Editing Instruments<br />
441     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#EDIT INSTRUMENT">6.9.1.</a>&nbsp;
442     Opening an appropriate instrument editor application<br />
443 schoenebeck 1572 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#file_management">6.10.</a>&nbsp;
444     Managing Files<br />
445     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET FILE INSTRUMENTS">6.10.1.</a>&nbsp;
446     Retrieving amount of instruments of a file<br />
447     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#LIST FILE INSTRUMENTS">6.10.2.</a>&nbsp;
448     Retrieving all instruments of a file<br />
449     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET FILE INSTRUMENT INFO">6.10.3.</a>&nbsp;
450     Retrieving informations about one instrument in a file<br />
451 schoenebeck 575 <a href="#command_syntax">7.</a>&nbsp;
452 senoner 542 Command Syntax<br />
453 schoenebeck 1251 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#character_set">7.1.</a>&nbsp;
454     Character Set and Escape Sequences<br />
455 schoenebeck 575 <a href="#events">8.</a>&nbsp;
456 senoner 542 Events<br />
457 iliev 992 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE AUDIO_OUTPUT_DEVICE_COUNT">8.1.</a>&nbsp;
458     Number of audio output devices changed<br />
459     &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE AUDIO_OUTPUT_DEVICE_INFO">8.2.</a>&nbsp;
460     Audio output device's settings changed<br />
461     &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE MIDI_INPUT_DEVICE_COUNT">8.3.</a>&nbsp;
462     Number of MIDI input devices changed<br />
463     &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE MIDI_INPUT_DEVICE_INFO">8.4.</a>&nbsp;
464     MIDI input device's settings changed<br />
465     &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE CHANNEL_COUNT">8.5.</a>&nbsp;
466 senoner 542 Number of sampler channels changed<br />
467 schoenebeck 1685 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE CHANNEL_MIDI">8.6.</a>&nbsp;
468     MIDI data on a sampler channel arrived<br />
469 schoenebeck 1696 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE DEVICE_MIDI">8.7.</a>&nbsp;
470     MIDI data on a MIDI input device arrived<br />
471     &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE VOICE_COUNT">8.8.</a>&nbsp;
472 senoner 542 Number of active voices changed<br />
473 schoenebeck 1696 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE STREAM_COUNT">8.9.</a>&nbsp;
474 senoner 542 Number of active disk streams changed<br />
475 schoenebeck 1696 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE BUFFER_FILL">8.10.</a>&nbsp;
476 senoner 542 Disk stream buffer fill state changed<br />
477 schoenebeck 1696 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE CHANNEL_INFO">8.11.</a>&nbsp;
478 senoner 542 Channel information changed<br />
479 schoenebeck 1696 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE FX_SEND_COUNT">8.12.</a>&nbsp;
480 iliev 1110 Number of effect sends changed<br />
481 schoenebeck 1696 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE FX_SEND_INFO">8.13.</a>&nbsp;
482 iliev 1110 Effect send information changed<br />
483 schoenebeck 1696 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE TOTAL_VOICE_COUNT">8.14.</a>&nbsp;
484 schoenebeck 940 Total number of active voices changed<br />
485 schoenebeck 1696 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE TOTAL_STREAM_COUNT">8.15.</a>&nbsp;
486 schoenebeck 1572 Total number of active disk streams changed<br />
487 schoenebeck 1696 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE MIDI_INSTRUMENT_MAP_COUNT">8.16.</a>&nbsp;
488 iliev 992 Number of MIDI instrument maps changed<br />
489 schoenebeck 1696 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE MIDI_INSTRUMENT_MAP_INFO">8.17.</a>&nbsp;
490 iliev 992 MIDI instrument map information changed<br />
491 schoenebeck 1696 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE MIDI_INSTRUMENT_COUNT">8.18.</a>&nbsp;
492 iliev 992 Number of MIDI instruments changed<br />
493 schoenebeck 1696 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE MIDI_INSTRUMENT_INFO">8.19.</a>&nbsp;
494 iliev 992 MIDI instrument information changed<br />
495 schoenebeck 1696 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE GLOBAL_INFO">8.20.</a>&nbsp;
496 iliev 1110 Global settings changed<br />
497 schoenebeck 1696 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE DB_INSTRUMENT_DIRECTORY_COUNT">8.21.</a>&nbsp;
498 iliev 1162 Number of database instrument directories changed<br />
499 schoenebeck 1696 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE DB_INSTRUMENT_DIRECTORY_INFO">8.22.</a>&nbsp;
500 iliev 1162 Database instrument directory information changed<br />
501 schoenebeck 1696 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE DB_INSTRUMENT_COUNT">8.23.</a>&nbsp;
502 iliev 1162 Number of database instruments changed<br />
503 schoenebeck 1696 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE DB_INSTRUMENT_INFO">8.24.</a>&nbsp;
504 iliev 1162 Database instrument information changed<br />
505 schoenebeck 1696 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE DB_INSTRUMENTS_JOB_INFO">8.25.</a>&nbsp;
506 iliev 1201 Database job status information changed<br />
507 schoenebeck 1696 &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE MISCELLANEOUS">8.26.</a>&nbsp;
508 senoner 542 Miscellaneous and debugging events<br />
509 schoenebeck 974 <a href="#anchor14">9.</a>&nbsp;
510 senoner 542 Security Considerations<br />
511 schoenebeck 974 <a href="#anchor15">10.</a>&nbsp;
512 senoner 542 Acknowledgments<br />
513 schoenebeck 575 <a href="#rfc.references1">11.</a>&nbsp;
514 senoner 542 References<br />
515     <a href="#rfc.authors">&#167;</a>&nbsp;
516     Author's Address<br />
517     <a href="#rfc.copyright">&#167;</a>&nbsp;
518     Intellectual Property and Copyright Statements<br />
519     </p>
520     <br clear="all" />
521    
522     <a name="anchor1"></a><br /><hr />
523 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
524     <a name="rfc.section.1"></a><h3>1.&nbsp;
525     Requirements notation</h3>
526 senoner 542
527     <p>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL",
528     "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY",
529     and "OPTIONAL" in this document are to be interpreted as
530 schoenebeck 974 described in <a class='info' href='#RFC2119'>[RFC2119]<span> (</span><span class='info'>Bradner, S., &ldquo;Key words for use in RFCs to Indicate Requirement Levels,&rdquo; 1997.</span><span>)</span></a>.
531 senoner 542 </p>
532     <p>This protocol is always case-sensitive if not explicitly
533     claimed the opposite.
534     </p>
535     <p>In examples, "C:" and "S:" indicate lines sent by the client
536     (front-end) and server (LinuxSampler) respectively. Lines in
537     examples must be interpreted as every line being CRLF
538     terminated (carriage return character followed by line feed
539 schoenebeck 1251 character as defined in the ASCII standard <a class='info' href='#RFC20'>[RFC20]<span> (</span><span class='info'>UCLA, &ldquo;ASCII format for Network Interchange,&rdquo; 1969.</span><span>)</span></a>),
540     thus the following example:
541 senoner 542 </p>
542 schoenebeck 708 <p>
543     </p>
544 senoner 542 <blockquote class="text">
545     <p>C: "some line"
546     </p>
547     <p>&nbsp;&nbsp;&nbsp;"another line"
548     </p>
549 schoenebeck 708 </blockquote><p>
550 schoenebeck 940
551 schoenebeck 708 </p>
552 senoner 542 <p>must actually be interpreted as client sending the following
553     message:
554     </p>
555 schoenebeck 708 <p>
556     </p>
557 senoner 542 <blockquote class="text">
558     <p>"some line&lt;CR&gt;&lt;LF&gt;another
559     line&lt;CR&gt;&lt;LF&gt;"
560     </p>
561 schoenebeck 708 </blockquote><p>
562 schoenebeck 940
563 schoenebeck 708 </p>
564 senoner 542 <p>where &lt;CR&gt; symbolizes the carriage return character and
565     &lt;LF&gt; the line feed character as defined in the ASCII
566     standard.
567     </p>
568     <p>Due to technical reasons, messages can arbitrary be
569     fragmented, means the following example:
570     </p>
571 schoenebeck 708 <p>
572     </p>
573 senoner 542 <blockquote class="text">
574     <p>S: "abcd"
575     </p>
576 schoenebeck 708 </blockquote><p>
577 schoenebeck 940
578 schoenebeck 708 </p>
579 senoner 542 <p>could also happen to be sent in three messages like in the
580     following sequence scenario:
581     </p>
582 schoenebeck 708 <p>
583     </p>
584 senoner 542 <ul class="text">
585     <li>server sending message "a"
586     </li>
587     <li>followed by a delay (pause) with
588     arbitrary duration
589     </li>
590     <li>followed by server sending message
591     "bcd&lt;CR&gt;"
592     </li>
593     <li>again followed by a delay (pause) with arbitrary
594     duration
595     </li>
596     <li>followed by server sending the message
597     "&lt;LF&gt;"
598     </li>
599 schoenebeck 708 </ul><p>
600 schoenebeck 940
601 schoenebeck 708 </p>
602 senoner 542 <p>where again &lt;CR&gt; and &lt;LF&gt; symbolize the carriage
603     return and line feed characters respectively.
604     </p>
605 schoenebeck 575 <a name="LSCP versioning"></a><br /><hr />
606 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
607     <a name="rfc.section.2"></a><h3>2.&nbsp;
608     Versioning of this specification</h3>
609 schoenebeck 575
610     <p>LSCP will certainly be extended and enhanced by-and-by. Each official
611     release of the LSCP specification will be tagged with a unique version
612     tuple. The version tuple consists at least of a major and minor version
613     number like:
614 schoenebeck 940
615 schoenebeck 575 </p>
616 schoenebeck 708 <p>
617     </p>
618 schoenebeck 575 <blockquote class="text">
619     <p>"1.2"
620     </p>
621 schoenebeck 708 </blockquote><p>
622 schoenebeck 940
623 schoenebeck 708 </p>
624 schoenebeck 575 <p>
625     In this example the major version number would be "1" and the minor
626     version number would be "2". Note that the version tuple might also
627     have more than two elements. The major version number defines a
628     group of backward compatible versions. That means a frontend is
629     compatible to the connected sampler if and only if the LSCP versions
630     to which each of the two parties complies to, match both of the
631     following rules:
632 schoenebeck 940
633 schoenebeck 575 </p>
634     <p>Compatibility:
635     </p>
636 schoenebeck 708 <p>
637     </p>
638 schoenebeck 575 <ol class="text">
639     <li>The frontend's LSCP major version and the sampler's LSCP
640     major version are exactly equal.
641     </li>
642     <li>The frontend's LSCP minor version is less or equal than
643     the sampler's LSCP minor version.
644     </li>
645 schoenebeck 708 </ol><p>
646 schoenebeck 940
647 schoenebeck 708 </p>
648 schoenebeck 575 <p>
649     Compatibility can only be claimed if both rules are true.
650     The frontend can use the
651 schoenebeck 974 <a class='info' href='#GET SERVER INFO'>"GET SERVER INFO"<span> (</span><span class='info'>General sampler informations</span><span>)</span></a> command to
652 schoenebeck 575 get the version of the LSCP specification the sampler complies with.
653 schoenebeck 940
654 schoenebeck 575 </p>
655 senoner 542 <a name="anchor2"></a><br /><hr />
656 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
657     <a name="rfc.section.3"></a><h3>3.&nbsp;
658     Introduction</h3>
659 senoner 542
660     <p>LinuxSampler is a so called software sampler application
661     capable to playback audio samples from a computer's Random
662     Access Memory (RAM) as well as directly streaming it from disk.
663     LinuxSampler is designed to be modular. It provides several so
664     called "sampler engines" where each engine is specialized for a
665     certain purpose. LinuxSampler has virtual channels which will be
666     referred in this document as "sampler channels". The channels
667     are in such way virtual as they can be connected to an
668     arbitrary MIDI input method and arbitrary MIDI channel (e.g.
669     sampler channel 17 could be connected to an ALSA sequencer
670     device 64:0 and listening to MIDI channel 1 there). Each sampler
671 schoenebeck 575 channel will be associated with an instance of one of the available
672 senoner 542 sampler engines (e.g. GigEngine, DLSEngine). The audio output of
673     each sampler channel can be routed to an arbitrary audio output
674     method (ALSA / JACK) and an arbitrary audio output channel
675     there.
676     </p>
677     <a name="anchor3"></a><br /><hr />
678 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
679     <a name="rfc.section.4"></a><h3>4.&nbsp;
680     Focus of this protocol</h3>
681 senoner 542
682     <p>Main focus of this protocol is to provide a way to configure
683     a running LinuxSampler instance and to retrieve information
684     about it. The focus of this protocol is not to provide a way to
685     control synthesis parameters or even to trigger or release
686     notes. Or in other words; the focus are those functionalities
687     which are not covered by MIDI or which may at most be handled
688     via MIDI System Exclusive Messages.
689     </p>
690     <a name="anchor4"></a><br /><hr />
691 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
692     <a name="rfc.section.5"></a><h3>5.&nbsp;
693     Communication Overview</h3>
694 senoner 542
695     <p>There are two distinct methods of communication between a
696     running instance of LinuxSampler and one or more control
697     applications, so called "front-ends": a simple request/response
698     communication method used by the clients to give commands to the
699     server as well as to inquire about server's status and a
700     subscribe/notify communication method used by the client to
701     subscribe to and receive notifications of certain events as they
702     happen on the server. The latter needs more effort to be
703     implemented in the front-end application. The two communication
704     methods will be described next.
705     </p>
706 schoenebeck 940 <a name="anchor5"></a><br /><hr />
707 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
708     <a name="rfc.section.5.1"></a><h3>5.1.&nbsp;
709     Request/response communication method</h3>
710 senoner 542
711 schoenebeck 575 <p>This simple communication method is based on
712 schoenebeck 974 <a class='info' href='#RFC793'>TCP<span> (</span><span class='info'>Defense Advanced Research Projects Agency, &ldquo;TRANSMISSION CONTROL PROTOCOL,&rdquo; 1981.</span><span>)</span></a> [RFC793]. The
713 senoner 542 front-end application establishes a TCP connection to the
714     LinuxSampler instance on a certain host system. Then the
715     front-end application will send certain ASCII based commands
716     as defined in this document (every command line must be CRLF
717     terminated - see "Conventions used in this document" at the
718     beginning of this document) and the LinuxSampler application
719     will response after a certain process time with an
720     appropriate ASCII based answer, also as defined in this
721     document. So this TCP communication is simply based on query
722     and answer paradigm. That way LinuxSampler is only able to
723     answer on queries from front-ends, but not able to
724     automatically send messages to the client if it's not asked
725     to. The fronted should not reconnect to LinuxSampler for
726     every single command, instead it should keep the connection
727     established and simply resend message(s) for subsequent
728     commands. To keep information in the front-end up-to-date
729     the front-end has to periodically send new requests to get
730     the current information from the LinuxSampler instance. This
731     is often referred to as "polling". While polling is simple
732     to implement and may be OK to use in some cases, there may
733     be disadvantages to polling such as network traffic overhead
734     and information being out of date.
735     It is possible for a client or several clients to open more
736     than one connection to the server at the same time. It is
737     also possible to send more than one request to the server
738     at the same time but if those requests are sent over the
739     same connection server MUST execute them sequentially. Upon
740     executing a request server will produce a result set and
741     send it to the client. Each and every request made by the
742     client MUST result in a result set being sent back to the
743     client. No other data other than a result set may be sent by
744     a server to a client. No result set may be sent to a client
745     without the client sending request to the server first. On
746     any particular connection, result sets MUST be sent in their
747     entirety without being interrupted by other result sets. If
748     several requests got queued up at the server they MUST be
749     processed in the order they were received and result sets
750     MUST be sent back in the same order.
751     </p>
752 schoenebeck 940 <a name="anchor6"></a><br /><hr />
753 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
754     <a name="rfc.section.5.1.1"></a><h3>5.1.1.&nbsp;
755     Result format</h3>
756 senoner 542
757     <p>Result set could be one of the following types:
758     </p>
759 schoenebeck 708 <p>
760     </p>
761 senoner 542 <ol class="text">
762     <li>Normal
763     </li>
764     <li>Warning
765     </li>
766     <li>Error
767     </li>
768 schoenebeck 708 </ol><p>
769 schoenebeck 940
770 schoenebeck 708 </p>
771 senoner 542 <p>Warning and Error result sets MUST be single line and
772     have the following format:
773     </p>
774 schoenebeck 708 <p>
775     </p>
776 senoner 542 <ul class="text">
777     <li>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;"
778     </li>
779     <li>"ERR:&lt;error-code&gt;:&lt;error-message&gt;"
780     </li>
781 schoenebeck 708 </ul><p>
782 schoenebeck 940
783 schoenebeck 708 </p>
784 senoner 542 <p>Where &lt;warning-code&gt; and &lt;error-code&gt; are
785     numeric unique identifiers of the warning or error and
786     &lt;warning-message&gt; and &lt;error-message&gt; are
787     human readable descriptions of the warning or error
788     respectively.
789     </p>
790     <p>Examples:
791     </p>
792 schoenebeck 708 <p>
793     </p>
794 senoner 542 <blockquote class="text">
795     <p>C: "LOAD INSTRUMENT '/home/me/Boesendorfer24bit.gig" 0 0
796     </p>
797     <p>S: "WRN:32:This is a 24 bit patch which is not supported natively yet."
798     </p>
799 schoenebeck 708 </blockquote><p>
800 schoenebeck 940
801 schoenebeck 708 </p>
802     <p>
803     </p>
804 senoner 542 <blockquote class="text">
805     <p>C: "GET AUDIO_OUTPUT_DRIVER_PARAMETER INFO ALSA EAR"
806     </p>
807     <p>S: "ERR:3456:Audio output driver 'ALSA' does not have a parameter 'EAR'."
808     </p>
809 schoenebeck 708 </blockquote><p>
810 schoenebeck 940
811 schoenebeck 708 </p>
812     <p>
813     </p>
814 senoner 542 <blockquote class="text">
815     <p>C: "GET AUDIO_OUTPUT_DEVICE INFO 123456"
816     </p>
817     <p>S: "ERR:9:There is no audio output device with index 123456."
818     </p>
819 schoenebeck 708 </blockquote><p>
820 schoenebeck 940
821 schoenebeck 708 </p>
822 senoner 542 <p>Normal result sets could be:
823     </p>
824 schoenebeck 708 <p>
825     </p>
826 senoner 542 <ol class="text">
827     <li>Empty
828     </li>
829     <li>Single line
830     </li>
831     <li>Multi-line
832     </li>
833 schoenebeck 708 </ol><p>
834 schoenebeck 940
835 schoenebeck 708 </p>
836 senoner 542 <p> Empty result set is issued when the server only
837     needed to acknowledge the fact that the request was
838     received and it was processed successfully and no
839     additional information is available. This result set has
840     the following format:
841     </p>
842 schoenebeck 708 <p>
843     </p>
844 senoner 542 <blockquote class="text">
845     <p>"OK"
846     </p>
847 schoenebeck 708 </blockquote><p>
848 schoenebeck 940
849 schoenebeck 708 </p>
850 senoner 542 <p>Example:
851     </p>
852 schoenebeck 708 <p>
853     </p>
854 senoner 542 <blockquote class="text">
855     <p>C: "SET AUDIO_OUTPUT_DEVICE_PARAMETER 0 CHANNELS=4"
856     </p>
857     <p>S: "OK"
858     </p>
859 schoenebeck 708 </blockquote><p>
860 schoenebeck 940
861 schoenebeck 708 </p>
862 senoner 542 <p>Single line result sets are command specific. One
863     example of a single line result set is an empty line.
864     Multi-line result sets are command specific and may
865     include one or more lines of information. They MUST
866     always end with the following line:
867     </p>
868 schoenebeck 708 <p>
869     </p>
870 senoner 542 <blockquote class="text">
871     <p>"."
872     </p>
873 schoenebeck 708 </blockquote><p>
874 schoenebeck 940
875 schoenebeck 708 </p>
876 senoner 542 <p>Example:
877     </p>
878 schoenebeck 708 <p>
879     </p>
880 senoner 542 <blockquote class="text">
881     <p>C: "GET AUDIO_OUTPUT_DEVICE INFO 0"
882     </p>
883     <p>S: "DRIVER: ALSA"
884     </p>
885     <p>&nbsp;&nbsp;&nbsp;"CHANNELS: 2"
886     </p>
887     <p>&nbsp;&nbsp;&nbsp;"SAMPLERATE: 44100"
888     </p>
889     <p>&nbsp;&nbsp;&nbsp;"ACTIVE: true"
890     </p>
891     <p>&nbsp;&nbsp;&nbsp;"FRAGMENTS: 2"
892     </p>
893     <p>&nbsp;&nbsp;&nbsp;"FRAGMENTSIZE: 128"
894     </p>
895     <p>&nbsp;&nbsp;&nbsp;"CARD: '0,0'"
896     </p>
897     <p>&nbsp;&nbsp;&nbsp;"."
898     </p>
899 schoenebeck 708 </blockquote><p>
900 schoenebeck 940
901 schoenebeck 708 </p>
902 senoner 542 <p>In addition to above mentioned formats, warnings and
903     empty result sets MAY be indexed. In this case, they
904     have the following formats respectively:
905     </p>
906 schoenebeck 708 <p>
907     </p>
908 senoner 542 <ul class="text">
909     <li>"WRN[&lt;index&gt;]:&lt;warning-code&gt;:&lt;warning-message&gt;"
910     </li>
911     <li>"OK[&lt;index&gt;]"
912     </li>
913 schoenebeck 708 </ul><p>
914 schoenebeck 940
915 schoenebeck 708 </p>
916 senoner 542 <p>where &lt;index&gt; is command specific and is used
917     to indicate channel number that the result set was
918     related to or other integer value.
919     </p>
920     <p>Each line of the result set MUST end with
921     &lt;CRLF&gt;.
922     </p>
923     <p>Examples:
924     </p>
925 schoenebeck 708 <p>
926     </p>
927 senoner 542 <blockquote class="text">
928     <p>C: "ADD CHANNEL"
929     </p>
930     <p>S: "OK[12]"
931     </p>
932 schoenebeck 708 </blockquote><p>
933 schoenebeck 940
934 schoenebeck 708 </p>
935     <p>
936     </p>
937 senoner 542 <blockquote class="text">
938     <p>C: "CREATE AUDIO_OUTPUT_DEVICE ALSA SAMPLERATE=96000"
939     </p>
940     <p>S: "WRN[0]:32:Sample rate not supported, using 44100 instead."
941     </p>
942 schoenebeck 708 </blockquote><p>
943 schoenebeck 940
944 schoenebeck 708 </p>
945 schoenebeck 940 <a name="anchor7"></a><br /><hr />
946 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
947     <a name="rfc.section.5.2"></a><h3>5.2.&nbsp;
948     Subscribe/notify communication method</h3>
949 senoner 542
950     <p>This more sophisticated communication method is actually
951     only an extension of the simple request/response
952     communication method. The front-end still uses a TCP
953     connection and sends the same commands on the TCP
954     connection. Two extra commands are SUBSCRIBE and UNSUBSCRIBE
955     commands that allow a client to tell the server that it is
956     interested in receiving notifications about certain events
957     as they happen on the server. The SUBSCRIBE command has the
958     following syntax:
959     </p>
960 schoenebeck 708 <p>
961     </p>
962 senoner 542 <blockquote class="text">
963     <p>SUBSCRIBE &lt;event-id&gt;
964     </p>
965 schoenebeck 708 </blockquote><p>
966 schoenebeck 940
967 schoenebeck 708 </p>
968 senoner 542 <p>where &lt;event-id&gt; will be replaced by the respective
969     event that client wants to subscribe to. Upon receiving such
970     request, server SHOULD respond with OK and start sending
971     EVENT notifications when a given even has occurred to the
972     front-end when an event has occurred. It MAY be possible
973     certain events may be sent before OK response during real
974     time nature of their generation. Event messages have the
975     following format:
976     </p>
977 schoenebeck 708 <p>
978     </p>
979 senoner 542 <blockquote class="text">
980     <p>NOTIFY:&lt;event-id&gt;:&lt;custom-event-data&gt;
981     </p>
982 schoenebeck 708 </blockquote><p>
983 schoenebeck 940
984 schoenebeck 708 </p>
985 senoner 542 <p>where &lt;event-id&gt; uniquely identifies the event that
986     has occurred and &lt;custom-event-data&gt; is event
987     specific.
988     </p>
989     <p>Several rules must be followed by the server when
990     generating events:
991     </p>
992 schoenebeck 708 <p>
993     </p>
994 senoner 542 <ol class="text">
995     <li>Events MUST NOT be sent to any client who has not
996     issued an appropriate SUBSCRIBE command.
997     </li>
998     <li>Events MUST only be sent using the same
999     connection that was used to subscribe to them.
1000     </li>
1001     <li>When response is being sent to the client, event
1002     MUST be inserted in the stream before or after the
1003     response, but NOT in the middle. Same is true about
1004     the response. It should never be inserted in the
1005     middle of the event message as well as any other
1006     response.
1007     </li>
1008 schoenebeck 708 </ol><p>
1009 schoenebeck 940
1010 schoenebeck 708 </p>
1011 senoner 542 <p>If the client is not interested in a particular event
1012     anymore it MAY issue UNSUBSCRIBE command using the following
1013     syntax:
1014     </p>
1015 schoenebeck 708 <p>
1016     </p>
1017 senoner 542 <blockquote class="text">
1018     <p>UNSUBSCRIBE &lt;event-id&gt;
1019     </p>
1020 schoenebeck 708 </blockquote><p>
1021 schoenebeck 940
1022 schoenebeck 708 </p>
1023 senoner 542 <p>where &lt;event-id&gt; will be replace by the respective
1024     event that client is no longer interested in receiving. For
1025 schoenebeck 974 a list of supported events see <a class='info' href='#events'>Section&nbsp;8<span> (</span><span class='info'>Events</span><span>)</span></a>.
1026 senoner 542 </p>
1027     <p>Example: the fill states of disk stream buffers have
1028     changed on sampler channel 4 and the LinuxSampler instance
1029     will react by sending the following message to all clients
1030     who subscribed to this event:
1031     </p>
1032 schoenebeck 708 <p>
1033     </p>
1034 senoner 542 <blockquote class="text">
1035     <p>NOTIFY:CHANNEL_BUFFER_FILL:4 [35]62%,[33]80%,[37]98%
1036     </p>
1037 schoenebeck 708 </blockquote><p>
1038 schoenebeck 940
1039 schoenebeck 708 </p>
1040 senoner 542 <p>Which means there are currently three active streams on
1041     sampler channel 4, where the stream with ID "35" is filled
1042     by 62%, stream with ID 33 is filled by 80% and stream with
1043     ID 37 is filled by 98%.
1044     </p>
1045     <p>Clients may choose to open more than one connection to
1046     the server and use some connections to receive notifications
1047     while using other connections to issue commands to the
1048     back-end. This is entirely legal and up to the
1049     implementation. This does not change the protocol in any way
1050     and no special restrictions exist on the server to allow or
1051     disallow this or to track what connections belong to what
1052     front-ends. Server will listen on a single port, accept
1053     multiple connections and support protocol described in this
1054     specification in it's entirety on this single port on each
1055     connection that it accepted.
1056     </p>
1057     <p>Due to the fact that TCP is used for this communication,
1058     dead peers will be detected automatically by the OS TCP
1059     stack. While it may take a while to detect dead peers if no
1060     traffic is being sent from server to client (TCP keep-alive
1061     timer is set to 2 hours on many OSes) it will not be an
1062     issue here as when notifications are sent by the server,
1063     dead client will be detected quickly.
1064     </p>
1065     <p>When connection is closed for any reason server MUST
1066     forget all subscriptions that were made on this connection.
1067     If client reconnects it MUST resubscribe to all events that
1068     it wants to receive.
1069     </p>
1070 schoenebeck 575 <a name="control_commands"></a><br /><hr />
1071 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
1072     <a name="rfc.section.6"></a><h3>6.&nbsp;
1073     Description for control commands</h3>
1074 senoner 542
1075     <p>This chapter will describe the available control commands
1076     that can be sent on the TCP connection in detail. Some certain
1077 schoenebeck 974 commands (e.g. <a class='info' href='#GET CHANNEL INFO'>"GET CHANNEL INFO"<span> (</span><span class='info'>Getting sampler channel information</span><span>)</span></a>
1078     or <a class='info' href='#GET ENGINE INFO'>"GET ENGINE INFO"<span> (</span><span class='info'>Getting information about an engine</span><span>)</span></a>) lead to
1079 senoner 542 multiple-line responses. In this case LinuxSampler signals the
1080     end of the response by a "." (single dot) line.
1081     </p>
1082 schoenebeck 940 <a name="anchor8"></a><br /><hr />
1083 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
1084     <a name="rfc.section.6.1"></a><h3>6.1.&nbsp;
1085     Ignored lines and comments</h3>
1086 senoner 542
1087     <p>White lines, that is lines which only contain space and
1088     tabulator characters, and lines that start with a "#"
1089     character are ignored, thus it's possible for example to
1090     group commands and to place comments in a LSCP script
1091     file.
1092     </p>
1093 schoenebeck 940 <a name="anchor9"></a><br /><hr />
1094 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
1095     <a name="rfc.section.6.2"></a><h3>6.2.&nbsp;
1096     Configuring audio drivers</h3>
1097 senoner 542
1098     <p>Instances of drivers in LinuxSampler are called devices.
1099     You can use multiple audio devices simultaneously, e.g. to
1100     output the sound of one sampler channel using the ALSA audio
1101     output driver, and on another sampler channel you might want
1102     to use the JACK audio output driver. For particular audio
1103     output systems it's also possible to create several devices
1104     of the same audio output driver, e.g. two separate ALSA
1105     audio output devices for using two different sound cards at
1106     the same time. This chapter describes all commands to
1107     configure LinuxSampler's audio output devices and their
1108     parameters.
1109     </p>
1110     <p>Instead of defining commands and parameters for each
1111     driver individually, all possible parameters, their meanings
1112     and possible values have to be obtained at runtime. This
1113     makes the protocol a bit abstract, but has the advantage,
1114     that front-ends can be written independently of what drivers
1115     are currently implemented and what parameters these drivers
1116     are actually offering. This means front-ends can even handle
1117     drivers which are implemented somewhere in future without
1118     modifying the front-end at all.
1119     </p>
1120     <p>Note: examples in this chapter showing particular
1121     parameters of drivers are not meant as specification of the
1122     drivers' parameters. Driver implementations in LinuxSampler
1123     might have complete different parameter names and meanings
1124     than shown in these examples or might change in future, so
1125     these examples are only meant for showing how to retrieve
1126     what parameters drivers are offering, how to retrieve their
1127     possible values, etc.
1128     </p>
1129 schoenebeck 940 <a name="GET AVAILABLE_AUDIO_OUTPUT_DRIVERS"></a><br /><hr />
1130 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
1131     <a name="rfc.section.6.2.1"></a><h3>6.2.1.&nbsp;
1132     Getting amount of available audio output drivers</h3>
1133 senoner 542
1134     <p>Use the following command to get the number of
1135     audio output drivers currently available for the
1136     LinuxSampler instance:
1137     </p>
1138 schoenebeck 708 <p>
1139     </p>
1140 senoner 542 <blockquote class="text">
1141     <p>GET AVAILABLE_AUDIO_OUTPUT_DRIVERS
1142     </p>
1143 schoenebeck 708 </blockquote><p>
1144 schoenebeck 940
1145 schoenebeck 708 </p>
1146 senoner 542 <p>Possible Answers:
1147     </p>
1148 schoenebeck 708 <p>
1149     </p>
1150 senoner 542 <blockquote class="text">
1151     <p>LinuxSampler will answer by sending the
1152     number of audio output drivers.
1153     </p>
1154 schoenebeck 708 </blockquote><p>
1155 schoenebeck 940
1156 schoenebeck 708 </p>
1157 senoner 542 <p>Example:
1158     </p>
1159 schoenebeck 708 <p>
1160     </p>
1161 senoner 542 <blockquote class="text">
1162     <p>C: "GET AVAILABLE_AUDIO_OUTPUT_DRIVERS"
1163     </p>
1164     <p>S: "2"
1165     </p>
1166 schoenebeck 708 </blockquote><p>
1167 schoenebeck 940
1168 schoenebeck 708 </p>
1169 schoenebeck 940 <a name="LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS"></a><br /><hr />
1170 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
1171     <a name="rfc.section.6.2.2"></a><h3>6.2.2.&nbsp;
1172     Getting all available audio output drivers</h3>
1173 senoner 542
1174     <p>Use the following command to list all audio output
1175     drivers currently available for the LinuxSampler
1176     instance:
1177     </p>
1178 schoenebeck 708 <p>
1179     </p>
1180 senoner 542 <blockquote class="text">
1181     <p>LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS
1182     </p>
1183 schoenebeck 708 </blockquote><p>
1184 schoenebeck 940
1185 schoenebeck 708 </p>
1186 senoner 542 <p>Possible Answers:
1187     </p>
1188 schoenebeck 708 <p>
1189     </p>
1190 senoner 542 <blockquote class="text">
1191     <p>LinuxSampler will answer by sending comma
1192     separated character strings, each symbolizing an
1193     audio output driver.
1194     </p>
1195 schoenebeck 708 </blockquote><p>
1196 schoenebeck 940
1197 schoenebeck 708 </p>
1198 senoner 542 <p>Example:
1199     </p>
1200 schoenebeck 708 <p>
1201     </p>
1202 senoner 542 <blockquote class="text">
1203     <p>C: "LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS"
1204     </p>
1205     <p>S: "ALSA,JACK"
1206     </p>
1207 schoenebeck 708 </blockquote><p>
1208 schoenebeck 940
1209 schoenebeck 708 </p>
1210 schoenebeck 940 <a name="GET AUDIO_OUTPUT_DRIVER INFO"></a><br /><hr />
1211 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
1212     <a name="rfc.section.6.2.3"></a><h3>6.2.3.&nbsp;
1213     Getting information about a specific audio
1214 schoenebeck 940 output driver</h3>
1215 senoner 542
1216     <p>Use the following command to get detailed information
1217     about a specific audio output driver:
1218     </p>
1219 schoenebeck 708 <p>
1220     </p>
1221 senoner 542 <blockquote class="text">
1222     <p>GET AUDIO_OUTPUT_DRIVER INFO
1223     &lt;audio-output-driver&gt;
1224     </p>
1225 schoenebeck 708 </blockquote><p>
1226 schoenebeck 940
1227 schoenebeck 708 </p>
1228 senoner 542 <p>Where &lt;audio-output-driver&gt; is the name of the
1229     audio output driver, returned by the
1230 schoenebeck 974 <a class='info' href='#LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS'>"LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS"<span> (</span><span class='info'>Getting all available audio output drivers</span><span>)</span></a> command.
1231 senoner 542 </p>
1232     <p>Possible Answers:
1233     </p>
1234 schoenebeck 708 <p>
1235     </p>
1236 senoner 542 <blockquote class="text">
1237     <p>LinuxSampler will answer by sending a
1238     &lt;CRLF&gt; separated list. Each answer line
1239     begins with the information category name
1240     followed by a colon and then a space character
1241     &lt;SP&gt; and finally the info character string
1242     to that info category. At the moment the
1243     following information categories are
1244     defined:
1245     </p>
1246 schoenebeck 708 <p>
1247     </p>
1248 senoner 542 <blockquote class="text">
1249     <p>DESCRIPTION -
1250     </p>
1251     <blockquote class="text">
1252     <p> character string describing the
1253     audio output driver
1254     </p>
1255 schoenebeck 940 </blockquote>
1256    
1257 senoner 542
1258     <p>VERSION -
1259     </p>
1260     <blockquote class="text">
1261     <p>character string reflecting the
1262     driver's version
1263     </p>
1264 schoenebeck 940 </blockquote>
1265    
1266 senoner 542
1267     <p>PARAMETERS -
1268     </p>
1269     <blockquote class="text">
1270     <p>comma separated list of all
1271     parameters available for the given
1272     audio output driver, at least
1273     parameters 'channels', 'samplerate'
1274     and 'active' are offered by all audio
1275     output drivers
1276     </p>
1277 schoenebeck 940 </blockquote>
1278    
1279 senoner 542
1280 schoenebeck 940 </blockquote>
1281    
1282 senoner 542
1283     <p>The mentioned fields above don't have to be
1284     in particular order.
1285     </p>
1286 schoenebeck 708 </blockquote><p>
1287 schoenebeck 940
1288 schoenebeck 708 </p>
1289 senoner 542 <p>Example:
1290     </p>
1291 schoenebeck 708 <p>
1292     </p>
1293 senoner 542 <blockquote class="text">
1294     <p>C: "GET AUDIO_OUTPUT_DRIVER INFO ALSA"
1295     </p>
1296     <p>S: "DESCRIPTION: Advanced Linux Sound
1297     Architecture"
1298     </p>
1299     <p>&nbsp;&nbsp;&nbsp;"VERSION: 1.0"
1300     </p>
1301     <p>&nbsp;&nbsp;&nbsp;"PARAMETERS:
1302     DRIVER,CHANNELS,SAMPLERATE,ACTIVE,FRAGMENTS,
1303     FRAGMENTSIZE,CARD"
1304     </p>
1305     <p>&nbsp;&nbsp;&nbsp;"."
1306     </p>
1307 schoenebeck 708 </blockquote><p>
1308 schoenebeck 940
1309 schoenebeck 708 </p>
1310 schoenebeck 940 <a name="GET AUDIO_OUTPUT_DRIVER_PARAMETER INFO"></a><br /><hr />
1311 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
1312     <a name="rfc.section.6.2.4"></a><h3>6.2.4.&nbsp;
1313     Getting information about specific audio
1314 schoenebeck 940 output driver parameter</h3>
1315 senoner 542
1316     <p>Use the following command to get detailed information
1317     about a specific audio output driver parameter:
1318     </p>
1319 schoenebeck 708 <p>
1320     </p>
1321 senoner 542 <blockquote class="text">
1322     <p>GET AUDIO_OUTPUT_DRIVER_PARAMETER INFO &lt;audio&gt; &lt;prm&gt; [&lt;deplist&gt;]
1323     </p>
1324 schoenebeck 708 </blockquote><p>
1325 schoenebeck 940
1326 schoenebeck 708 </p>
1327 senoner 542 <p>Where &lt;audio&gt; is the name of the audio output
1328 schoenebeck 974 driver as returned by the <a class='info' href='#LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS'>"LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS"<span> (</span><span class='info'>Getting all available audio output drivers</span><span>)</span></a> command,
1329 senoner 542 &lt;prm&gt; a specific parameter name for which information should be
1330     obtained (as returned by the
1331 schoenebeck 974 <a class='info' href='#GET AUDIO_OUTPUT_DRIVER INFO'>"GET AUDIO_OUTPUT_DRIVER INFO"<span> (</span><span class='info'>Getting information about a specific audio output driver</span><span>)</span></a> command) and
1332 senoner 542 &lt;deplist&gt; is an optional list of parameters on which the sought
1333     parameter &lt;prm&gt; depends on, &lt;deplist&gt; is a list of key-value
1334     pairs in form of "key1=val1 key2=val2 ...", where character string values
1335     are encapsulated into apostrophes ('). Arguments given with &lt;deplist&gt;
1336     which are not dependency parameters of &lt;prm&gt; will be ignored, means
1337     the front-end application can simply put all parameters into &lt;deplist&gt;
1338     with the values already selected by the user.
1339     </p>
1340     <p>Possible Answers:
1341     </p>
1342 schoenebeck 708 <p>
1343     </p>
1344 senoner 542 <blockquote class="text">
1345     <p>LinuxSampler will answer by sending a
1346     &lt;CRLF&gt; separated list.
1347     Each answer line begins with the information category name
1348     followed by a colon and then a space character &lt;SP&gt; and
1349     finally
1350     the info character string to that info category. There are
1351     information which is always returned, independently of the
1352     given driver parameter and there are optional information
1353     which is only shown dependently to given driver parameter. At
1354     the moment the following information categories are defined:
1355     </p>
1356 schoenebeck 708 </blockquote><p>
1357 schoenebeck 940
1358 schoenebeck 708 </p>
1359     <p>
1360     </p>
1361 senoner 542 <blockquote class="text">
1362     <p>TYPE -
1363     </p>
1364     <blockquote class="text">
1365     <p>either "BOOL" for boolean value(s) or
1366     "INT" for integer
1367     value(s) or "FLOAT" for dotted number(s) or "STRING" for
1368     character string(s)
1369     (always returned, no matter which driver parameter)
1370     </p>
1371 schoenebeck 940 </blockquote>
1372    
1373 senoner 542
1374     <p>DESCRIPTION -
1375     </p>
1376     <blockquote class="text">
1377     <p>arbitrary text describing the purpose of the parameter
1378     (always returned, no matter which driver parameter)
1379     </p>
1380 schoenebeck 940 </blockquote>
1381    
1382 senoner 542
1383     <p>MANDATORY -
1384     </p>
1385     <blockquote class="text">
1386     <p>either true or false, defines if this parameter must be
1387     given when the device is to be created with the
1388 schoenebeck 974 <a class='info' href='#CREATE AUDIO_OUTPUT_DEVICE'>'CREATE AUDIO_OUTPUT_DEVICE'<span> (</span><span class='info'>Creating an audio output device</span><span>)</span></a>
1389 senoner 542 command (always returned, no matter which driver parameter)
1390     </p>
1391 schoenebeck 940 </blockquote>
1392    
1393 senoner 542
1394     <p>FIX -
1395     </p>
1396     <blockquote class="text">
1397     <p>either true or false, if false then this parameter can
1398     be changed at any time, once the device is created by
1399 schoenebeck 974 the <a class='info' href='#CREATE AUDIO_OUTPUT_DEVICE'>'CREATE AUDIO_OUTPUT_DEVICE'<span> (</span><span class='info'>Creating an audio output device</span><span>)</span></a>
1400 senoner 542 command (always returned, no matter which driver parameter)
1401     </p>
1402 schoenebeck 940 </blockquote>
1403    
1404 senoner 542
1405     <p>MULTIPLICITY -
1406     </p>
1407     <blockquote class="text">
1408     <p>either true or false, defines if this parameter allows
1409     only one value or a list of values, where true means
1410     multiple values and false only a single value allowed
1411     (always returned, no matter which driver parameter)
1412     </p>
1413 schoenebeck 940 </blockquote>
1414    
1415 senoner 542
1416     <p>DEPENDS -
1417     </p>
1418     <blockquote class="text">
1419 schoenebeck 561 <p>comma separated list of parameters this parameter depends
1420 senoner 542 on, means the values for fields 'DEFAULT', 'RANGE_MIN',
1421     'RANGE_MAX' and 'POSSIBILITIES' might depend on these
1422     listed parameters, for example assuming that an audio
1423     driver (like the ALSA driver) offers parameters 'card'
1424     and 'samplerate' then parameter 'samplerate' would
1425     depend on 'card' because the possible values for
1426     'samplerate' depends on the sound card which can be
1427     chosen by the 'card' parameter
1428     (optionally returned, dependent to driver parameter)
1429     </p>
1430 schoenebeck 940 </blockquote>
1431    
1432 senoner 542
1433     <p>DEFAULT -
1434     </p>
1435     <blockquote class="text">
1436     <p>reflects the default value for this parameter which is
1437     used when the device is created and not explicitly
1438 schoenebeck 974 given with the <a class='info' href='#CREATE AUDIO_OUTPUT_DEVICE'>'CREATE AUDIO_OUTPUT_DEVICE'<span> (</span><span class='info'>Creating an audio output device</span><span>)</span></a> command,
1439 senoner 542 in case of MULTIPLCITY=true, this is a comma separated
1440     list, that's why character strings are encapsulated into
1441     apostrophes (')
1442     (optionally returned, dependent to driver parameter)
1443     </p>
1444 schoenebeck 940 </blockquote>
1445    
1446 senoner 542
1447     <p>RANGE_MIN -
1448     </p>
1449     <blockquote class="text">
1450     <p>defines lower limit of the allowed value range for this
1451     parameter, can be an integer value as well as a dotted
1452     number, this parameter is often used in conjunction
1453     with RANGE_MAX, but may also appear without
1454     (optionally returned, dependent to driver parameter)
1455     </p>
1456 schoenebeck 940 </blockquote>
1457    
1458 senoner 542
1459     <p>RANGE_MAX -
1460     </p>
1461     <blockquote class="text">
1462     <p>defines upper limit of the allowed value range for this
1463     parameter, can be an integer value as well as a dotted
1464     number, this parameter is often used in conjunction with
1465     RANGE_MIN, but may also appear without
1466     (optionally returned, dependent to driver parameter)
1467     </p>
1468 schoenebeck 940 </blockquote>
1469    
1470 senoner 542
1471     <p>POSSIBILITIES -
1472     </p>
1473     <blockquote class="text">
1474     <p>comma separated list of possible values for this
1475     parameter, character strings are encapsulated into
1476     apostrophes
1477     (optionally returned, dependent to driver parameter)
1478     </p>
1479 schoenebeck 940 </blockquote>
1480    
1481 senoner 542
1482 schoenebeck 708 </blockquote><p>
1483 schoenebeck 940
1484 schoenebeck 708 </p>
1485 senoner 542 <p>The mentioned fields above don't have to be in particular order.
1486     </p>
1487     <p>Examples:
1488     </p>
1489 schoenebeck 708 <p>
1490     </p>
1491 senoner 542 <blockquote class="text">
1492     <p>C: "GET AUDIO_OUTPUT_DRIVER_PARAMETER INFO ALSA CARD"
1493     </p>
1494     <p>S: "DESCRIPTION: sound card to be used"
1495     </p>
1496     <p>&nbsp;&nbsp;&nbsp;"TYPE: STRING"
1497     </p>
1498     <p>&nbsp;&nbsp;&nbsp;"MANDATORY: false"
1499     </p>
1500     <p>&nbsp;&nbsp;&nbsp;"FIX: true"
1501     </p>
1502     <p>&nbsp;&nbsp;&nbsp;"MULTIPLICITY: false"
1503     </p>
1504     <p>&nbsp;&nbsp;&nbsp;"DEFAULT: '0,0'"
1505     </p>
1506     <p>&nbsp;&nbsp;&nbsp;"POSSIBILITIES: '0,0','1,0','2,0'"
1507     </p>
1508     <p>&nbsp;&nbsp;&nbsp;"."
1509     </p>
1510 schoenebeck 708 </blockquote><p>
1511 schoenebeck 940
1512 schoenebeck 708 </p>
1513     <p>
1514     </p>
1515 senoner 542 <blockquote class="text">
1516     <p>C: "GET AUDIO_OUTPUT_DRIVER_PARAMETER INFO ALSA SAMPLERATE"
1517     </p>
1518     <p>S: "DESCRIPTION: output sample rate in Hz"
1519     </p>
1520     <p>&nbsp;&nbsp;&nbsp;"TYPE: INT"
1521     </p>
1522     <p>&nbsp;&nbsp;&nbsp;"MANDATORY: false"
1523     </p>
1524     <p>&nbsp;&nbsp;&nbsp;"FIX: false"
1525     </p>
1526     <p>&nbsp;&nbsp;&nbsp;"MULTIPLICITY: false"
1527     </p>
1528     <p>&nbsp;&nbsp;&nbsp;"DEPENDS: card"
1529     </p>
1530     <p>&nbsp;&nbsp;&nbsp;"DEFAULT: 44100"
1531     </p>
1532     <p>&nbsp;&nbsp;&nbsp;"."
1533     </p>
1534 schoenebeck 708 </blockquote><p>
1535 schoenebeck 940
1536 schoenebeck 708 </p>
1537     <p>
1538     </p>
1539 senoner 542 <blockquote class="text">
1540     <p>C: "GET AUDIO_OUTPUT_DRIVER_PARAMETER INFO ALSA SAMPLERATE CARD='0,0'"
1541     </p>
1542     <p>S: "DESCRIPTION: output sample rate in Hz"
1543     </p>
1544     <p>&nbsp;&nbsp;&nbsp;"TYPE: INT"
1545     </p>
1546     <p>&nbsp;&nbsp;&nbsp;"MANDATORY: false"
1547     </p>
1548     <p>&nbsp;&nbsp;&nbsp;"FIX: false"
1549     </p>
1550     <p>&nbsp;&nbsp;&nbsp;"MULTIPLICITY: false"
1551     </p>
1552     <p>&nbsp;&nbsp;&nbsp;"DEPENDS: card"
1553     </p>
1554     <p>&nbsp;&nbsp;&nbsp;"DEFAULT: 44100"
1555     </p>
1556     <p>&nbsp;&nbsp;&nbsp;"RANGE_MIN: 22050"
1557     </p>
1558     <p>&nbsp;&nbsp;&nbsp;"RANGE_MAX: 96000"
1559     </p>
1560     <p>&nbsp;&nbsp;&nbsp;"."
1561     </p>
1562 schoenebeck 708 </blockquote><p>
1563 schoenebeck 940
1564 schoenebeck 708 </p>
1565 schoenebeck 940 <a name="CREATE AUDIO_OUTPUT_DEVICE"></a><br /><hr />
1566 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
1567     <a name="rfc.section.6.2.5"></a><h3>6.2.5.&nbsp;
1568     Creating an audio output device</h3>
1569 senoner 542
1570     <p>Use the following command to create a new audio output device for the desired audio output system:
1571     </p>
1572 schoenebeck 708 <p>
1573     </p>
1574 senoner 542 <blockquote class="text">
1575     <p>CREATE AUDIO_OUTPUT_DEVICE &lt;audio-output-driver&gt; [&lt;param-list&gt;]
1576     </p>
1577 schoenebeck 708 </blockquote><p>
1578 schoenebeck 940
1579 schoenebeck 708 </p>
1580 senoner 542 <p>Where &lt;audio-output-driver&gt; should be replaced by the desired audio
1581 schoenebeck 575 output system as returned by the
1582 schoenebeck 974 <a class='info' href='#LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS'>"LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS"<span> (</span><span class='info'>Getting all available audio output drivers</span><span>)</span></a>
1583 schoenebeck 575 command and &lt;param-list&gt; by an optional list of driver
1584 senoner 542 specific parameters in form of "key1=val1 key2=val2 ...", where
1585     character string values should be encapsulated into apostrophes (').
1586     Note that there might be drivers which require parameter(s) to be
1587     given with this command. Use the previously described commands in
1588     this chapter to get this information.
1589     </p>
1590     <p>Possible Answers:
1591     </p>
1592 schoenebeck 708 <p>
1593     </p>
1594 senoner 542 <blockquote class="text">
1595     <p>"OK[&lt;device-id&gt;]" -
1596     </p>
1597     <blockquote class="text">
1598     <p>in case the device was successfully created, where
1599     &lt;device-id&gt; is the numerical ID of the new device
1600     </p>
1601 schoenebeck 940 </blockquote>
1602    
1603 senoner 542
1604     <p>"WRN[&lt;device-id&gt;]:&lt;warning-code&gt;:&lt;warning-message&gt;" -
1605     </p>
1606     <blockquote class="text">
1607     <p>in case the device was created successfully, where
1608     &lt;device-id&gt; is the numerical ID of the new device, but there
1609     are noteworthy issue(s) related (e.g. sound card doesn't
1610     support given hardware parameters and the driver is using
1611     fall-back values), providing an appropriate warning code and
1612     warning message
1613     </p>
1614 schoenebeck 940 </blockquote>
1615    
1616 senoner 542
1617     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
1618     </p>
1619     <blockquote class="text">
1620     <p>in case it failed, providing an appropriate error code and error message
1621     </p>
1622 schoenebeck 940 </blockquote>
1623    
1624 senoner 542
1625 schoenebeck 708 </blockquote><p>
1626 schoenebeck 940
1627 schoenebeck 708 </p>
1628 senoner 542 <p>Examples:
1629     </p>
1630 schoenebeck 708 <p>
1631     </p>
1632 senoner 542 <blockquote class="text">
1633     <p>C: "CREATE AUDIO_OUTPUT_DEVICE ALSA"
1634     </p>
1635     <p>S: "OK[0]"
1636     </p>
1637 schoenebeck 708 </blockquote><p>
1638 schoenebeck 940
1639 schoenebeck 708 </p>
1640     <p>
1641     </p>
1642 senoner 542 <blockquote class="text">
1643     <p>C: "CREATE AUDIO_OUTPUT_DEVICE ALSA CARD='2,0' SAMPLERATE=96000"
1644     </p>
1645     <p>S: "OK[1]"
1646     </p>
1647 schoenebeck 708 </blockquote><p>
1648 schoenebeck 940
1649 schoenebeck 708 </p>
1650 schoenebeck 940 <a name="DESTROY AUDIO_OUTPUT_DEVICE"></a><br /><hr />
1651 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
1652     <a name="rfc.section.6.2.6"></a><h3>6.2.6.&nbsp;
1653     Destroying an audio output device</h3>
1654 senoner 542
1655     <p>Use the following command to destroy a created output device:
1656     </p>
1657 schoenebeck 708 <p>
1658     </p>
1659 senoner 542 <blockquote class="text">
1660     <p>DESTROY AUDIO_OUTPUT_DEVICE &lt;device-id&gt;
1661     </p>
1662 schoenebeck 708 </blockquote><p>
1663 schoenebeck 940
1664 schoenebeck 708 </p>
1665 senoner 542 <p>Where &lt;device-id&gt; should be replaced by the numerical ID of the
1666     audio output device as given by the
1667 schoenebeck 974 <a class='info' href='#CREATE AUDIO_OUTPUT_DEVICE'>"CREATE AUDIO_OUTPUT_DEVICE"<span> (</span><span class='info'>Creating an audio output device</span><span>)</span></a>
1668     or <a class='info' href='#LIST AUDIO_OUTPUT_DEVICES'>"LIST AUDIO_OUTPUT_DEVICES"<span> (</span><span class='info'>Getting all created audio output device list</span><span>)</span></a>
1669 senoner 542 command.
1670     </p>
1671     <p>Possible Answers:
1672     </p>
1673 schoenebeck 708 <p>
1674     </p>
1675 senoner 542 <blockquote class="text">
1676     <p>"OK" -
1677     </p>
1678     <blockquote class="text">
1679     <p>in case the device was successfully destroyed
1680     </p>
1681 schoenebeck 940 </blockquote>
1682    
1683 senoner 542
1684     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
1685     </p>
1686     <blockquote class="text">
1687     <p>in case the device was destroyed successfully, but there are
1688     noteworthy issue(s) related (e.g. an audio over ethernet
1689     driver was unloaded but the other host might not be
1690     informed about this situation), providing an appropriate
1691     warning code and warning message
1692     </p>
1693 schoenebeck 940 </blockquote>
1694    
1695 senoner 542
1696     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
1697     </p>
1698     <blockquote class="text">
1699     <p>in case it failed, providing an appropriate error code and
1700     error message
1701     </p>
1702 schoenebeck 940 </blockquote>
1703    
1704 senoner 542
1705 schoenebeck 708 </blockquote><p>
1706 schoenebeck 940
1707 schoenebeck 708 </p>
1708 senoner 542 <p>Example:
1709     </p>
1710 schoenebeck 708 <p>
1711     </p>
1712 senoner 542 <blockquote class="text">
1713     <p>C: "DESTROY AUDIO_OUTPUT_DEVICE 0"
1714     </p>
1715     <p>S: "OK"
1716     </p>
1717 schoenebeck 708 </blockquote><p>
1718 schoenebeck 940
1719 schoenebeck 708 </p>
1720 schoenebeck 940 <a name="GET AUDIO_OUTPUT_DEVICES"></a><br /><hr />
1721 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
1722     <a name="rfc.section.6.2.7"></a><h3>6.2.7.&nbsp;
1723     Getting all created audio output device count</h3>
1724 senoner 542
1725     <p>Use the following command to count all created audio output devices:
1726     </p>
1727 schoenebeck 708 <p>
1728     </p>
1729 senoner 542 <blockquote class="text">
1730     <p>GET AUDIO_OUTPUT_DEVICES
1731     </p>
1732 schoenebeck 708 </blockquote><p>
1733 schoenebeck 940
1734 schoenebeck 708 </p>
1735 senoner 542 <p>Possible Answers:
1736     </p>
1737 schoenebeck 708 <p>
1738     </p>
1739 senoner 542 <blockquote class="text">
1740     <p>LinuxSampler will answer by sending the current number of all
1741     audio output devices.
1742     </p>
1743 schoenebeck 708 </blockquote><p>
1744 schoenebeck 940
1745 schoenebeck 708 </p>
1746 senoner 542 <p>Example:
1747     </p>
1748 schoenebeck 708 <p>
1749     </p>
1750 senoner 542 <blockquote class="text">
1751     <p>C: "GET AUDIO_OUTPUT_DEVICES"
1752     </p>
1753     <p>S: "4"
1754     </p>
1755 schoenebeck 708 </blockquote><p>
1756 schoenebeck 940
1757 schoenebeck 708 </p>
1758 schoenebeck 940 <a name="LIST AUDIO_OUTPUT_DEVICES"></a><br /><hr />
1759 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
1760     <a name="rfc.section.6.2.8"></a><h3>6.2.8.&nbsp;
1761     Getting all created audio output device list</h3>
1762 senoner 542
1763     <p>Use the following command to list all created audio output devices:
1764     </p>
1765 schoenebeck 708 <p>
1766     </p>
1767 senoner 542 <blockquote class="text">
1768     <p>LIST AUDIO_OUTPUT_DEVICES
1769     </p>
1770 schoenebeck 708 </blockquote><p>
1771 schoenebeck 940
1772 schoenebeck 708 </p>
1773 senoner 542 <p>Possible Answers:
1774     </p>
1775 schoenebeck 708 <p>
1776     </p>
1777 senoner 542 <blockquote class="text">
1778     <p>LinuxSampler will answer by sending a comma separated list with
1779     the numerical IDs of all audio output devices.
1780     </p>
1781 schoenebeck 708 </blockquote><p>
1782 schoenebeck 940
1783 schoenebeck 708 </p>
1784 senoner 542 <p>Example:
1785     </p>
1786 schoenebeck 708 <p>
1787     </p>
1788 senoner 542 <blockquote class="text">
1789     <p>C: "LIST AUDIO_OUTPUT_DEVICES"
1790     </p>
1791     <p>S: "0,1,4,5"
1792     </p>
1793 schoenebeck 708 </blockquote><p>
1794 schoenebeck 940
1795 schoenebeck 708 </p>
1796 schoenebeck 940 <a name="GET AUDIO_OUTPUT_DEVICE INFO"></a><br /><hr />
1797 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
1798     <a name="rfc.section.6.2.9"></a><h3>6.2.9.&nbsp;
1799     Getting current settings of an audio output device</h3>
1800 senoner 542
1801     <p>Use the following command to get current settings of a specific, created audio output device:
1802     </p>
1803 schoenebeck 708 <p>
1804     </p>
1805 senoner 542 <blockquote class="text">
1806     <p>GET AUDIO_OUTPUT_DEVICE INFO &lt;device-id&gt;
1807     </p>
1808 schoenebeck 708 </blockquote><p>
1809 schoenebeck 940
1810 schoenebeck 708 </p>
1811 senoner 542 <p>Where &lt;device-id&gt; should be replaced by numerical ID
1812     of the audio output device as e.g. returned by the
1813 schoenebeck 974 <a class='info' href='#LIST AUDIO_OUTPUT_DEVICES'>"LIST AUDIO_OUTPUT_DEVICES"<span> (</span><span class='info'>Getting all created audio output device list</span><span>)</span></a> command.
1814 senoner 542 </p>
1815     <p>Possible Answers:
1816     </p>
1817     <p>LinuxSampler will answer by sending a &lt;CRLF&gt; separated list.
1818     Each answer line begins with the information category name
1819     followed by a colon and then a space character &lt;SP&gt; and finally
1820     the info character string to that info category. As some
1821     parameters might allow multiple values, character strings are
1822     encapsulated into apostrophes ('). At the moment the following
1823     information categories are defined (independently of device):
1824     </p>
1825 schoenebeck 708 <p>
1826     </p>
1827 senoner 542 <blockquote class="text">
1828     <p>DRIVER -
1829     </p>
1830     <blockquote class="text">
1831     <p>identifier of the used audio output driver, as also
1832     returned by the
1833 schoenebeck 974 <a class='info' href='#LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS'>"LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS"<span> (</span><span class='info'>Getting all available audio output drivers</span><span>)</span></a>
1834 senoner 542 command
1835     </p>
1836 schoenebeck 940 </blockquote>
1837    
1838 senoner 542
1839     <p>CHANNELS -
1840     </p>
1841     <blockquote class="text">
1842     <p>amount of audio output channels this device currently
1843     offers
1844     </p>
1845 schoenebeck 940 </blockquote>
1846    
1847 senoner 542
1848     <p>SAMPLERATE -
1849     </p>
1850     <blockquote class="text">
1851     <p>playback sample rate the device uses
1852     </p>
1853 schoenebeck 940 </blockquote>
1854    
1855 senoner 542
1856     <p>ACTIVE -
1857     </p>
1858     <blockquote class="text">
1859     <p>either true or false, if false then the audio device is
1860     inactive and doesn't output any sound, nor do the
1861     sampler channels connected to this audio device render
1862     any audio
1863     </p>
1864 schoenebeck 940 </blockquote>
1865    
1866 senoner 542
1867 schoenebeck 708 </blockquote><p>
1868 schoenebeck 940
1869 schoenebeck 708 </p>
1870 senoner 542 <p>The mentioned fields above don't have to be in particular
1871     order. The fields above are only those fields which are
1872     returned by all audio output devices. Every audio output driver
1873     might have its own, additional driver specific parameters (see
1874 schoenebeck 974 <a class='info' href='#GET AUDIO_OUTPUT_DRIVER INFO'>Section&nbsp;6.2.3<span> (</span><span class='info'>Getting information about a specific audio output driver</span><span>)</span></a>)
1875 senoner 542 which are also returned by this command.
1876     </p>
1877     <p>Example:
1878     </p>
1879 schoenebeck 708 <p>
1880     </p>
1881 senoner 542 <blockquote class="text">
1882     <p>C: "GET AUDIO_OUTPUT_DEVICE INFO 0"
1883     </p>
1884     <p>S: "DRIVER: ALSA"
1885     </p>
1886     <p>&nbsp;&nbsp;&nbsp;"CHANNELS: 2"
1887     </p>
1888     <p>&nbsp;&nbsp;&nbsp;"SAMPLERATE: 44100"
1889     </p>
1890     <p>&nbsp;&nbsp;&nbsp;"ACTIVE: true"
1891     </p>
1892     <p>&nbsp;&nbsp;&nbsp;"FRAGMENTS: 2"
1893     </p>
1894     <p>&nbsp;&nbsp;&nbsp;"FRAGMENTSIZE: 128"
1895     </p>
1896     <p>&nbsp;&nbsp;&nbsp;"CARD: '0,0'"
1897     </p>
1898     <p>&nbsp;&nbsp;&nbsp;"."
1899     </p>
1900 schoenebeck 708 </blockquote><p>
1901 schoenebeck 940
1902 schoenebeck 708 </p>
1903 schoenebeck 940 <a name="SET AUDIO_OUTPUT_DEVICE_PARAMETER"></a><br /><hr />
1904 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
1905     <a name="rfc.section.6.2.10"></a><h3>6.2.10.&nbsp;
1906     Changing settings of audio output devices</h3>
1907 senoner 542
1908     <p>Use the following command to alter a specific setting of a created audio output device:
1909     </p>
1910 schoenebeck 708 <p>
1911     </p>
1912 senoner 542 <blockquote class="text">
1913     <p>SET AUDIO_OUTPUT_DEVICE_PARAMETER &lt;device-id&gt; &lt;key&gt;=&lt;value&gt;
1914     </p>
1915 schoenebeck 708 </blockquote><p>
1916 schoenebeck 940
1917 schoenebeck 708 </p>
1918 senoner 542 <p>Where &lt;device-id&gt; should be replaced by the numerical ID of the
1919 schoenebeck 575 audio output device as given by the
1920 schoenebeck 974 <a class='info' href='#CREATE AUDIO_OUTPUT_DEVICE'>"CREATE AUDIO_OUTPUT_DEVICE"<span> (</span><span class='info'>Creating an audio output device</span><span>)</span></a>
1921     or <a class='info' href='#LIST AUDIO_OUTPUT_DEVICES'>"LIST AUDIO_OUTPUT_DEVICES"<span> (</span><span class='info'>Getting all created audio output device list</span><span>)</span></a>
1922 schoenebeck 575 command, &lt;key&gt; by the name of the parameter to change
1923 senoner 542 and &lt;value&gt; by the new value for this parameter.
1924     </p>
1925     <p>Possible Answers:
1926     </p>
1927 schoenebeck 708 <p>
1928     </p>
1929 senoner 542 <blockquote class="text">
1930     <p>"OK" -
1931     </p>
1932     <blockquote class="text">
1933     <p>in case setting was successfully changed
1934     </p>
1935 schoenebeck 940 </blockquote>
1936    
1937 senoner 542
1938     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
1939     </p>
1940     <blockquote class="text">
1941     <p>in case setting was changed successfully, but there are
1942     noteworthy issue(s) related, providing an appropriate
1943     warning code and warning message
1944     </p>
1945 schoenebeck 940 </blockquote>
1946    
1947 senoner 542
1948     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
1949     </p>
1950     <blockquote class="text">
1951     <p>in case it failed, providing an appropriate error code and
1952     error message
1953     </p>
1954 schoenebeck 940 </blockquote>
1955    
1956 senoner 542
1957 schoenebeck 708 </blockquote><p>
1958 schoenebeck 940
1959 schoenebeck 708 </p>
1960 senoner 542 <p>Example:
1961     </p>
1962 schoenebeck 708 <p>
1963     </p>
1964 senoner 542 <blockquote class="text">
1965     <p>C: "SET AUDIO_OUTPUT_DEVICE_PARAMETER 0 FRAGMENTSIZE=128"
1966     </p>
1967     <p>S: "OK"
1968     </p>
1969 schoenebeck 708 </blockquote><p>
1970 schoenebeck 940
1971 schoenebeck 708 </p>
1972 schoenebeck 940 <a name="GET AUDIO_OUTPUT_CHANNEL INFO"></a><br /><hr />
1973 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
1974     <a name="rfc.section.6.2.11"></a><h3>6.2.11.&nbsp;
1975     Getting information about an audio channel</h3>
1976 senoner 542
1977     <p>Use the following command to get information about an audio channel:
1978     </p>
1979 schoenebeck 708 <p>
1980     </p>
1981 senoner 542 <blockquote class="text">
1982     <p>GET AUDIO_OUTPUT_CHANNEL INFO &lt;device-id&gt; &lt;audio-chan&gt;
1983     </p>
1984 schoenebeck 708 </blockquote><p>
1985 schoenebeck 940
1986 schoenebeck 708 </p>
1987 schoenebeck 575 <p>Where &lt;device-id&gt; is the numerical ID of the audio output device as given by the
1988 schoenebeck 974 <a class='info' href='#CREATE AUDIO_OUTPUT_DEVICE'>"CREATE AUDIO_OUTPUT_DEVICE"<span> (</span><span class='info'>Creating an audio output device</span><span>)</span></a>
1989     or <a class='info' href='#LIST AUDIO_OUTPUT_DEVICES'>"LIST AUDIO_OUTPUT_DEVICES"<span> (</span><span class='info'>Getting all created audio output device list</span><span>)</span></a>
1990 schoenebeck 575 command and &lt;audio-chan&gt; the audio channel number.
1991 senoner 542 </p>
1992     <p>Possible Answers:
1993     </p>
1994 schoenebeck 708 <p>
1995     </p>
1996 senoner 542 <blockquote class="text">
1997     <p>LinuxSampler will answer by sending a &lt;CRLF&gt; separated list.
1998     Each answer line begins with the information category name
1999     followed by a colon and then a space character &lt;SP&gt; and finally
2000     the info character string to that info category. At the moment
2001     the following information categories are defined:
2002     </p>
2003 schoenebeck 708 <p>
2004     </p>
2005 senoner 542 <blockquote class="text">
2006     <p>NAME -
2007     </p>
2008     <blockquote class="text">
2009     <p>arbitrary character string naming the channel, which
2010     doesn't have to be unique (always returned by all audio channels)
2011     </p>
2012 schoenebeck 940 </blockquote>
2013    
2014 senoner 542
2015     <p>IS_MIX_CHANNEL -
2016     </p>
2017     <blockquote class="text">
2018     <p>either true or false, a mix-channel is not a real,
2019     independent audio channel, but a virtual channel which
2020     is mixed to another real channel, this mechanism is
2021     needed for sampler engines which need more audio
2022     channels than the used audio system might be able to offer
2023     (always returned by all audio channels)
2024     </p>
2025 schoenebeck 940 </blockquote>
2026    
2027 senoner 542
2028     <p>MIX_CHANNEL_DESTINATION -
2029     </p>
2030     <blockquote class="text">
2031     <p>numerical ID (positive integer including 0)
2032     which reflects the real audio channel (of the same audio
2033     output device) this mix channel refers to, means where
2034     the audio signal actually will be routed / added to
2035     (only returned in case the audio channel is mix channel)
2036     </p>
2037 schoenebeck 940 </blockquote>
2038    
2039 senoner 542
2040 schoenebeck 940 </blockquote>
2041    
2042 senoner 542
2043 schoenebeck 708 </blockquote><p>
2044 schoenebeck 940
2045 schoenebeck 708 </p>
2046 senoner 542 <p>The mentioned fields above don't have to be in particular
2047     order. The fields above are only those fields which are
2048     generally returned for the described cases by all audio
2049     channels regardless of the audio driver. Every audio channel
2050     might have its own, additional driver and channel specific
2051     parameters.
2052     </p>
2053     <p>Examples:
2054     </p>
2055 schoenebeck 708 <p>
2056     </p>
2057 senoner 542 <blockquote class="text">
2058     <p>C: "GET AUDIO_OUTPUT_CHANNEL INFO 0 0"
2059     </p>
2060     <p>S: "NAME: studio monitor left"
2061     </p>
2062     <p>&nbsp;&nbsp;&nbsp;"IS_MIX_CHANNEL: false"
2063     </p>
2064     <p>&nbsp;&nbsp;&nbsp;"."
2065     </p>
2066 schoenebeck 708 </blockquote><p>
2067 schoenebeck 940
2068 schoenebeck 708 </p>
2069     <p>
2070     </p>
2071 senoner 542 <blockquote class="text">
2072     <p>C: "GET AUDIO_OUTPUT_CHANNEL INFO 0 1"
2073     </p>
2074     <p>S: "NAME: studio monitor right"
2075     </p>
2076     <p>&nbsp;&nbsp;&nbsp;"IS_MIX_CHANNEL: false"
2077     </p>
2078     <p>&nbsp;&nbsp;&nbsp;"."
2079     </p>
2080 schoenebeck 708 </blockquote><p>
2081 schoenebeck 940
2082 schoenebeck 708 </p>
2083     <p>
2084     </p>
2085 senoner 542 <blockquote class="text">
2086     <p>C: "GET AUDIO_OUTPUT_CHANNEL INFO 0 2"
2087     </p>
2088     <p>S: "NAME: studio monitor left"
2089     </p>
2090     <p>&nbsp;&nbsp;&nbsp;"IS_MIX_CHANNEL: true"
2091     </p>
2092     <p>&nbsp;&nbsp;&nbsp;"MIX_CHANNEL_DESTINATION: 1"
2093     </p>
2094     <p>&nbsp;&nbsp;&nbsp;"."
2095     </p>
2096 schoenebeck 708 </blockquote><p>
2097 schoenebeck 940
2098 schoenebeck 708 </p>
2099     <p>
2100     </p>
2101 senoner 542 <blockquote class="text">
2102     <p>C: "GET AUDIO_OUTPUT_CHANNEL INFO 1 0"
2103     </p>
2104     <p>S: "NAME: 'ardour (left)'"
2105     </p>
2106     <p>&nbsp;&nbsp;&nbsp;"IS_MIX_CHANNEL: false"
2107     </p>
2108     <p>&nbsp;&nbsp;&nbsp;"JACK_BINDINGS: 'ardour:0'"
2109     </p>
2110     <p>&nbsp;&nbsp;&nbsp;"."
2111     </p>
2112 schoenebeck 708 </blockquote><p>
2113 schoenebeck 940
2114 schoenebeck 708 </p>
2115 schoenebeck 940 <a name="GET AUDIO_OUTPUT_CHANNEL_PARAMETER INFO"></a><br /><hr />
2116 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
2117     <a name="rfc.section.6.2.12"></a><h3>6.2.12.&nbsp;
2118     Getting information about specific audio channel parameter</h3>
2119 senoner 542
2120     <p>Use the following command to get detailed information about specific audio channel parameter:
2121     </p>
2122 schoenebeck 708 <p>
2123     </p>
2124 senoner 542 <blockquote class="text">
2125     <p>GET AUDIO_OUTPUT_CHANNEL_PARAMETER INFO &lt;dev-id&gt; &lt;chan&gt; &lt;param&gt;
2126     </p>
2127 schoenebeck 708 </blockquote><p>
2128 schoenebeck 940
2129 schoenebeck 708 </p>
2130 schoenebeck 575 <p>Where &lt;dev-id&gt; is the numerical ID of the audio output device as returned by the
2131 schoenebeck 974 <a class='info' href='#CREATE AUDIO_OUTPUT_DEVICE'>"CREATE AUDIO_OUTPUT_DEVICE"<span> (</span><span class='info'>Creating an audio output device</span><span>)</span></a>
2132     or <a class='info' href='#LIST AUDIO_OUTPUT_DEVICES'>"LIST AUDIO_OUTPUT_DEVICES"<span> (</span><span class='info'>Getting all created audio output device list</span><span>)</span></a>
2133 senoner 542 command, &lt;chan&gt; the audio channel number
2134     and &lt;param&gt; a specific channel parameter name for which information should
2135 schoenebeck 974 be obtained (as returned by the <a class='info' href='#GET AUDIO_OUTPUT_CHANNEL INFO'>"GET AUDIO_OUTPUT_CHANNEL INFO"<span> (</span><span class='info'>Getting information about an audio channel</span><span>)</span></a> command).
2136 senoner 542 </p>
2137     <p>Possible Answers:
2138     </p>
2139 schoenebeck 708 <p>
2140     </p>
2141 senoner 542 <blockquote class="text">
2142     <p>LinuxSampler will answer by sending a &lt;CRLF&gt; separated list.
2143     Each answer line begins with the information category name
2144     followed by a colon and then a space character &lt;SP&gt; and finally
2145     the info character string to that info category. There are
2146     information which is always returned, independently of the
2147     given channel parameter and there is optional information
2148     which is only shown dependently to the given audio channel. At
2149     the moment the following information categories are defined:
2150     </p>
2151 schoenebeck 708 <p>
2152     </p>
2153 senoner 542 <blockquote class="text">
2154     <p>TYPE -
2155     </p>
2156     <blockquote class="text">
2157     <p>either "BOOL" for boolean value(s) or "INT" for integer
2158     value(s) or "FLOAT" for dotted number(s) or "STRING" for
2159     character string(s)
2160     (always returned)
2161     </p>
2162 schoenebeck 940 </blockquote>
2163    
2164 senoner 542
2165     <p>DESCRIPTION -
2166     </p>
2167     <blockquote class="text">
2168     <p>arbitrary text describing the purpose of the parameter (always returned)
2169     </p>
2170 schoenebeck 940 </blockquote>
2171    
2172 senoner 542
2173     <p>FIX -
2174     </p>
2175     <blockquote class="text">
2176     <p>either true or false, if true then this parameter is
2177     read only, thus cannot be altered
2178     (always returned)
2179     </p>
2180 schoenebeck 940 </blockquote>
2181    
2182 senoner 542
2183     <p>MULTIPLICITY -
2184     </p>
2185     <blockquote class="text">
2186     <p>either true or false, defines if this parameter allows
2187     only one value or a list of values, where true means
2188     multiple values and false only a single value allowed
2189     (always returned)
2190     </p>
2191 schoenebeck 940 </blockquote>
2192    
2193 senoner 542
2194     <p>RANGE_MIN -
2195     </p>
2196     <blockquote class="text">
2197     <p>defines lower limit of the allowed value range for this
2198     parameter, can be an integer value as well as a dotted
2199     number, usually used in conjunction with 'RANGE_MAX',
2200     but may also appear without
2201     (optionally returned, dependent to driver and channel
2202     parameter)
2203     </p>
2204 schoenebeck 940 </blockquote>
2205    
2206 senoner 542
2207     <p>RANGE_MAX -
2208     </p>
2209     <blockquote class="text">
2210     <p>defines upper limit of the allowed value range for this
2211     parameter, can be an integer value as well as a dotted
2212     number, usually used in conjunction with 'RANGE_MIN',
2213     but may also appear without
2214     (optionally returned, dependent to driver and channel
2215     parameter)
2216     </p>
2217 schoenebeck 940 </blockquote>
2218    
2219 senoner 542
2220     <p>POSSIBILITIES -
2221     </p>
2222     <blockquote class="text">
2223     <p>comma separated list of possible values for this
2224     parameter, character strings are encapsulated into
2225     apostrophes
2226     (optionally returned, dependent to driver and channel
2227     parameter)
2228     </p>
2229 schoenebeck 940 </blockquote>
2230    
2231 senoner 542
2232 schoenebeck 940 </blockquote>
2233    
2234 senoner 542
2235     <p>The mentioned fields above don't have to be in particular order.
2236     </p>
2237 schoenebeck 708 </blockquote><p>
2238 schoenebeck 940
2239 schoenebeck 708 </p>
2240 senoner 542 <p>Example:
2241     </p>
2242 schoenebeck 708 <p>
2243     </p>
2244 senoner 542 <blockquote class="text">
2245     <p>C: "GET AUDIO_OUTPUT_CHANNEL_PARAMETER INFO 1 0 JACK_BINDINGS"
2246     </p>
2247     <p>S: "DESCRIPTION: bindings to other JACK clients"
2248     </p>
2249     <p>&nbsp;&nbsp;&nbsp;"TYPE: STRING"
2250     </p>
2251     <p>&nbsp;&nbsp;&nbsp;"FIX: false"
2252     </p>
2253     <p>&nbsp;&nbsp;&nbsp;"MULTIPLICITY: true"
2254     </p>
2255     <p>&nbsp;&nbsp;&nbsp;"POSSIBILITIES: 'PCM:0','PCM:1','ardour:0','ardour:1'"
2256     </p>
2257     <p>&nbsp;&nbsp;&nbsp;"."
2258     </p>
2259 schoenebeck 708 </blockquote><p>
2260 schoenebeck 940
2261 schoenebeck 708 </p>
2262 schoenebeck 940 <a name="SET AUDIO_OUTPUT_CHANNEL_PARAMETER"></a><br /><hr />
2263 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
2264     <a name="rfc.section.6.2.13"></a><h3>6.2.13.&nbsp;
2265     Changing settings of audio output channels</h3>
2266 senoner 542
2267     <p>Use the following command to alter a specific setting of an audio output channel:
2268     </p>
2269 schoenebeck 708 <p>
2270     </p>
2271 senoner 542 <blockquote class="text">
2272     <p>SET AUDIO_OUTPUT_CHANNEL_PARAMETER &lt;dev-id&gt; &lt;chn&gt; &lt;key&gt;=&lt;value&gt;
2273     </p>
2274 schoenebeck 708 </blockquote><p>
2275 schoenebeck 940
2276 schoenebeck 708 </p>
2277 schoenebeck 575 <p>Where &lt;dev-id&gt; should be replaced by the numerical ID of the audio output device as returned by the
2278 schoenebeck 974 <a class='info' href='#CREATE AUDIO_OUTPUT_DEVICE'>"CREATE AUDIO_OUTPUT_DEVICE"<span> (</span><span class='info'>Creating an audio output device</span><span>)</span></a>
2279     or <a class='info' href='#LIST AUDIO_OUTPUT_DEVICES'>"LIST AUDIO_OUTPUT_DEVICES"<span> (</span><span class='info'>Getting all created audio output device list</span><span>)</span></a>
2280 schoenebeck 575 command, &lt;chn&gt; by the audio channel number, &lt;key&gt; by the name of the
2281 senoner 542 parameter to change and &lt;value&gt; by the new value for this parameter.
2282     </p>
2283     <p>Possible Answers:
2284     </p>
2285 schoenebeck 708 <p>
2286     </p>
2287 senoner 542 <blockquote class="text">
2288     <p>"OK" -
2289     </p>
2290     <blockquote class="text">
2291     <p>in case setting was successfully changed
2292     </p>
2293 schoenebeck 940 </blockquote>
2294    
2295 senoner 542
2296     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
2297     </p>
2298     <blockquote class="text">
2299     <p>in case setting was changed successfully, but there are
2300     noteworthy issue(s) related, providing an appropriate
2301     warning code and warning message
2302     </p>
2303 schoenebeck 940 </blockquote>
2304    
2305 senoner 542
2306     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
2307     </p>
2308     <blockquote class="text">
2309     <p>in case it failed, providing an appropriate error code and
2310     error message
2311     </p>
2312 schoenebeck 940 </blockquote>
2313    
2314 senoner 542
2315 schoenebeck 708 </blockquote><p>
2316 schoenebeck 940
2317 schoenebeck 708 </p>
2318 senoner 542 <p>Example:
2319     </p>
2320 schoenebeck 708 <p>
2321     </p>
2322 senoner 542 <blockquote class="text">
2323     <p>C: "SET AUDIO_OUTPUT_CHANNEL PARAMETER 0 0 JACK_BINDINGS='PCM:0'"
2324     </p>
2325     <p>S: "OK"
2326     </p>
2327 schoenebeck 708 </blockquote><p>
2328 schoenebeck 940
2329 schoenebeck 708 </p>
2330     <p>
2331     </p>
2332 senoner 542 <blockquote class="text">
2333     <p>C: "SET AUDIO_OUTPUT_CHANNEL PARAMETER 0 0 NAME='monitor left'"
2334     </p>
2335     <p>S: "OK"
2336     </p>
2337 schoenebeck 708 </blockquote><p>
2338 schoenebeck 940
2339 schoenebeck 708 </p>
2340 schoenebeck 940 <a name="anchor10"></a><br /><hr />
2341 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
2342     <a name="rfc.section.6.3"></a><h3>6.3.&nbsp;
2343     Configuring MIDI input drivers</h3>
2344 senoner 542
2345     <p>Instances of drivers in LinuxSampler are called devices. You can use
2346     multiple MIDI devices simultaneously, e.g. to use MIDI over ethernet as
2347     MIDI input on one sampler channel and ALSA as MIDI input on another sampler
2348     channel. For particular MIDI input systems it's also possible to create
2349     several devices of the same MIDI input type. This chapter describes all
2350     commands to configure LinuxSampler's MIDI input devices and their parameters.
2351     </p>
2352     <p>Instead of defining commands and parameters for each driver individually,
2353     all possible parameters, their meanings and possible values have to be obtained
2354     at runtime. This makes the protocol a bit abstract, but has the advantage, that
2355     front-ends can be written independently of what drivers are currently implemented
2356     and what parameters these drivers are actually offering. This means front-ends can
2357     even handle drivers which are implemented somewhere in future without modifying
2358     the front-end at all.
2359     </p>
2360     <p>Commands for configuring MIDI input devices are pretty much the same as the
2361     commands for configuring audio output drivers, already described in the last
2362     chapter.
2363     </p>
2364     <p>Note: examples in this chapter showing particular parameters of drivers are
2365     not meant as specification of the drivers' parameters. Driver implementations in
2366     LinuxSampler might have complete different parameter names and meanings than shown
2367     in these examples or might change in future, so these examples are only meant for
2368     showing how to retrieve what parameters drivers are offering, how to retrieve their
2369     possible values, etc.
2370     </p>
2371 schoenebeck 940 <a name="GET AVAILABLE_MIDI_INPUT_DRIVERS"></a><br /><hr />
2372 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
2373     <a name="rfc.section.6.3.1"></a><h3>6.3.1.&nbsp;
2374     Getting amount of available MIDI input drivers</h3>
2375 senoner 542
2376     <p>Use the following command to get the number of
2377     MIDI input drivers currently available for the
2378     LinuxSampler instance:
2379     </p>
2380 schoenebeck 708 <p>
2381     </p>
2382 senoner 542 <blockquote class="text">
2383     <p>GET AVAILABLE_MIDI_INPUT_DRIVERS
2384     </p>
2385 schoenebeck 708 </blockquote><p>
2386 schoenebeck 940
2387 schoenebeck 708 </p>
2388 senoner 542 <p>Possible Answers:
2389     </p>
2390 schoenebeck 708 <p>
2391     </p>
2392 senoner 542 <blockquote class="text">
2393     <p>LinuxSampler will answer by sending the
2394     number of available MIDI input drivers.
2395     </p>
2396 schoenebeck 708 </blockquote><p>
2397 schoenebeck 940
2398 schoenebeck 708 </p>
2399 senoner 542 <p>Example:
2400     </p>
2401 schoenebeck 708 <p>
2402     </p>
2403 senoner 542 <blockquote class="text">
2404     <p>C: "GET AVAILABLE_MIDI_INPUT_DRIVERS"
2405     </p>
2406     <p>S: "2"
2407     </p>
2408 schoenebeck 708 </blockquote><p>
2409 schoenebeck 940
2410 schoenebeck 708 </p>
2411 schoenebeck 940 <a name="LIST AVAILABLE_MIDI_INPUT_DRIVERS"></a><br /><hr />
2412 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
2413     <a name="rfc.section.6.3.2"></a><h3>6.3.2.&nbsp;
2414     Getting all available MIDI input drivers</h3>
2415 senoner 542
2416     <p>Use the following command to list all MIDI input drivers currently available
2417     for the LinuxSampler instance:
2418     </p>
2419 schoenebeck 708 <p>
2420     </p>
2421 senoner 542 <blockquote class="text">
2422     <p>LIST AVAILABLE_MIDI_INPUT_DRIVERS
2423     </p>
2424 schoenebeck 708 </blockquote><p>
2425 schoenebeck 940
2426 schoenebeck 708 </p>
2427 senoner 542 <p>Possible Answers:
2428     </p>
2429 schoenebeck 708 <p>
2430     </p>
2431 senoner 542 <blockquote class="text">
2432     <p>LinuxSampler will answer by sending comma separated character
2433     strings, each symbolizing a MIDI input driver.
2434     </p>
2435 schoenebeck 708 </blockquote><p>
2436 schoenebeck 940
2437 schoenebeck 708 </p>
2438 senoner 542 <p>Example:
2439     </p>
2440 schoenebeck 708 <p>
2441     </p>
2442 senoner 542 <blockquote class="text">
2443     <p>C: "LIST AVAILABLE_MIDI_INPUT_DRIVERS"
2444     </p>
2445     <p>S: "ALSA,JACK"
2446     </p>
2447 schoenebeck 708 </blockquote><p>
2448 schoenebeck 940
2449 schoenebeck 708 </p>
2450 schoenebeck 940 <a name="GET MIDI_INPUT_DRIVER INFO"></a><br /><hr />
2451 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
2452     <a name="rfc.section.6.3.3"></a><h3>6.3.3.&nbsp;
2453     Getting information about a specific MIDI input driver</h3>
2454 senoner 542
2455     <p>Use the following command to get detailed information about a specific MIDI input driver:
2456     </p>
2457 schoenebeck 708 <p>
2458     </p>
2459 senoner 542 <blockquote class="text">
2460     <p>GET MIDI_INPUT_DRIVER INFO &lt;midi-input-driver&gt;
2461     </p>
2462 schoenebeck 708 </blockquote><p>
2463 schoenebeck 940
2464 schoenebeck 708 </p>
2465 schoenebeck 575 <p>Where &lt;midi-input-driver&gt; is the name of the MIDI input driver as returned
2466 schoenebeck 974 by the <a class='info' href='#LIST AVAILABLE_MIDI_INPUT_DRIVERS'>"LIST AVAILABLE_MIDI_INPUT_DRIVERS"<span> (</span><span class='info'>Getting all available MIDI input drivers</span><span>)</span></a> command.
2467 senoner 542 </p>
2468     <p>Possible Answers:
2469     </p>
2470 schoenebeck 708 <p>
2471     </p>
2472 senoner 542 <blockquote class="text">
2473     <p>LinuxSampler will answer by sending a &lt;CRLF&gt; separated list.
2474     Each answer line begins with the information category name
2475     followed by a colon and then a space character &lt;SP&gt; and finally
2476     the info character string to that info category. At the moment
2477     the following information categories are defined:
2478     </p>
2479 schoenebeck 708 <p>
2480     </p>
2481 senoner 542 <blockquote class="text">
2482     <p>DESCRIPTION -
2483     </p>
2484     <blockquote class="text">
2485     <p>arbitrary description text about the MIDI input driver
2486     </p>
2487 schoenebeck 940 </blockquote>
2488    
2489 senoner 542
2490     <p>VERSION -
2491     </p>
2492     <blockquote class="text">
2493     <p>arbitrary character string regarding the driver's version
2494     </p>
2495 schoenebeck 940 </blockquote>
2496    
2497 senoner 542
2498     <p>PARAMETERS -
2499     </p>
2500     <blockquote class="text">
2501     <p>comma separated list of all parameters available for the given MIDI input driver
2502     </p>
2503 schoenebeck 940 </blockquote>
2504    
2505 senoner 542
2506 schoenebeck 940 </blockquote>
2507    
2508 senoner 542
2509     <p>The mentioned fields above don't have to be in particular order.
2510     </p>
2511 schoenebeck 708 </blockquote><p>
2512 schoenebeck 940
2513 schoenebeck 708 </p>
2514 senoner 542 <p>Example:
2515     </p>
2516 schoenebeck 708 <p>
2517     </p>
2518 senoner 542 <blockquote class="text">
2519     <p>C: "GET MIDI_INPUT_DRIVER INFO ALSA"
2520     </p>
2521     <p>S: "DESCRIPTION: Advanced Linux Sound Architecture"
2522     </p>
2523     <p>&nbsp;&nbsp;&nbsp;"VERSION: 1.0"
2524     </p>
2525     <p>&nbsp;&nbsp;&nbsp;"PARAMETERS: DRIVER,ACTIVE"
2526     </p>
2527     <p>&nbsp;&nbsp;&nbsp;"."
2528     </p>
2529 schoenebeck 708 </blockquote><p>
2530 schoenebeck 940
2531 schoenebeck 708 </p>
2532 schoenebeck 940 <a name="GET MIDI_INPUT_DRIVER_PARAMETER INFO"></a><br /><hr />
2533 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
2534     <a name="rfc.section.6.3.4"></a><h3>6.3.4.&nbsp;
2535     Getting information about specific MIDI input driver parameter</h3>
2536 senoner 542
2537     <p>Use the following command to get detailed information about a specific parameter of a specific MIDI input driver:
2538     </p>
2539 schoenebeck 708 <p>
2540     </p>
2541 senoner 542 <blockquote class="text">
2542     <p>GET MIDI_INPUT_DRIVER_PARAMETER INFO &lt;midit&gt; &lt;param&gt; [&lt;deplist&gt;]
2543     </p>
2544 schoenebeck 708 </blockquote><p>
2545 schoenebeck 940
2546 schoenebeck 708 </p>
2547 schoenebeck 561 <p>Where &lt;midit&gt; is the name of the MIDI input driver as returned
2548 schoenebeck 974 by the <a class='info' href='#LIST AVAILABLE_MIDI_INPUT_DRIVERS'>"LIST AVAILABLE_MIDI_INPUT_DRIVERS"<span> (</span><span class='info'>Getting all available MIDI input drivers</span><span>)</span></a> command, &lt;param&gt; a specific
2549 senoner 542 parameter name for which information should be obtained (as returned by the
2550 schoenebeck 974 <a class='info' href='#GET MIDI_INPUT_DRIVER INFO'>"GET MIDI_INPUT_DRIVER INFO"<span> (</span><span class='info'>Getting information about a specific MIDI input driver</span><span>)</span></a> command) and &lt;deplist&gt; is an optional list
2551 senoner 542 of parameters on which the sought parameter &lt;param&gt; depends on,
2552     &lt;deplist&gt; is a key-value pair list in form of "key1=val1 key2=val2 ...",
2553     where character string values are encapsulated into apostrophes ('). Arguments
2554     given with &lt;deplist&gt; which are not dependency parameters of &lt;param&gt;
2555     will be ignored, means the front-end application can simply put all parameters
2556     in &lt;deplist&gt; with the values selected by the user.
2557     </p>
2558     <p>Possible Answers:
2559     </p>
2560     <p>LinuxSampler will answer by sending a &lt;CRLF> separated list.
2561     Each answer line begins with the information category name
2562     followed by a colon and then a space character &lt;SP> and finally
2563     the info character string to that info category. There is
2564     information which is always returned, independent of the
2565     given driver parameter and there is optional information
2566     which is only shown dependent to given driver parameter. At
2567     the moment the following information categories are defined:
2568     </p>
2569 schoenebeck 708 <p>
2570     </p>
2571 senoner 542 <blockquote class="text">
2572     <p>TYPE -
2573     </p>
2574     <blockquote class="text">
2575     <p>either "BOOL" for boolean value(s) or "INT" for integer
2576     value(s) or "FLOAT" for dotted number(s) or "STRING" for
2577     character string(s)
2578     (always returned, no matter which driver parameter)
2579     </p>
2580 schoenebeck 940 </blockquote>
2581    
2582 senoner 542
2583     <p>DESCRIPTION -
2584     </p>
2585     <blockquote class="text">
2586     <p>arbitrary text describing the purpose of the parameter
2587     (always returned, no matter which driver parameter)
2588     </p>
2589 schoenebeck 940 </blockquote>
2590    
2591 senoner 542
2592     <p>MANDATORY -
2593     </p>
2594     <blockquote class="text">
2595     <p>either true or false, defines if this parameter must be
2596     given when the device is to be created with the
2597 schoenebeck 974 <a class='info' href='#CREATE MIDI_INPUT_DEVICE'>'CREATE MIDI_INPUT_DEVICE'<span> (</span><span class='info'>Creating a MIDI input device</span><span>)</span></a> command
2598 senoner 542 (always returned, no matter which driver parameter)
2599     </p>
2600 schoenebeck 940 </blockquote>
2601    
2602 senoner 542
2603     <p>FIX -
2604     </p>
2605     <blockquote class="text">
2606     <p>either true or false, if false then this parameter can
2607     be changed at any time, once the device is created by
2608 schoenebeck 974 the <a class='info' href='#CREATE MIDI_INPUT_DEVICE'>'CREATE MIDI_INPUT_DEVICE'<span> (</span><span class='info'>Creating a MIDI input device</span><span>)</span></a> command
2609 senoner 542 (always returned, no matter which driver parameter)
2610     </p>
2611 schoenebeck 940 </blockquote>
2612    
2613 senoner 542
2614     <p>MULTIPLICITY -
2615     </p>
2616     <blockquote class="text">
2617     <p>either true or false, defines if this parameter allows
2618     only one value or a list of values, where true means
2619     multiple values and false only a single value allowed
2620     (always returned, no matter which driver parameter)
2621     </p>
2622 schoenebeck 940 </blockquote>
2623    
2624 senoner 542
2625     <p>DEPENDS -
2626     </p>
2627     <blockquote class="text">
2628 schoenebeck 561 <p>comma separated list of parameters this parameter depends
2629 senoner 542 on, means the values for fields 'DEFAULT', 'RANGE_MIN',
2630     'RANGE_MAX' and 'POSSIBILITIES' might depend on these
2631     listed parameters, for example assuming that an audio
2632     driver (like the ALSA driver) offers parameters 'card'
2633     and 'samplerate' then parameter 'samplerate' would
2634     depend on 'card' because the possible values for
2635     'samplerate' depends on the sound card which can be
2636     chosen by the 'card' parameter
2637     (optionally returned, dependent to driver parameter)
2638     </p>
2639 schoenebeck 940 </blockquote>
2640    
2641 senoner 542
2642     <p>DEFAULT -
2643     </p>
2644     <blockquote class="text">
2645     <p>reflects the default value for this parameter which is
2646     used when the device is created and not explicitly
2647 schoenebeck 974 given with the <a class='info' href='#CREATE MIDI_INPUT_DEVICE'>'CREATE MIDI_INPUT_DEVICE'<span> (</span><span class='info'>Creating a MIDI input device</span><span>)</span></a> command,
2648 senoner 542 in case of MULTIPLCITY=true, this is a comma separated
2649     list, that's why character strings are encapsulated into
2650     apostrophes (')
2651     (optionally returned, dependent to driver parameter)
2652     </p>
2653 schoenebeck 940 </blockquote>
2654    
2655 senoner 542
2656     <p>RANGE_MIN -
2657     </p>
2658     <blockquote class="text">
2659     <p>defines lower limit of the allowed value range for this
2660     parameter, can be an integer value as well as a dotted
2661     number, this parameter is often used in conjunction
2662     with RANGE_MAX, but may also appear without
2663     (optionally returned, dependent to driver parameter)
2664     </p>
2665 schoenebeck 940 </blockquote>
2666    
2667 senoner 542
2668     <p>RANGE_MAX -
2669     </p>
2670     <blockquote class="text">
2671     <p>defines upper limit of the allowed value range for this
2672     parameter, can be an integer value as well as a dotted
2673     number, this parameter is often used in conjunction with
2674     RANGE_MIN, but may also appear without
2675     (optionally returned, dependent to driver parameter)
2676     </p>
2677 schoenebeck 940 </blockquote>
2678    
2679 senoner 542
2680     <p>POSSIBILITIES -
2681     </p>
2682     <blockquote class="text">
2683     <p>comma separated list of possible values for this
2684     parameter, character strings are encapsulated into
2685     apostrophes
2686     (optionally returned, dependent to driver parameter)
2687     </p>
2688 schoenebeck 940 </blockquote>
2689    
2690 senoner 542
2691 schoenebeck 708 </blockquote><p>
2692 schoenebeck 940
2693 schoenebeck 708 </p>
2694 senoner 542 <p>The mentioned fields above don't have to be in particular order.
2695     </p>
2696     <p>Example:
2697     </p>
2698 schoenebeck 708 <p>
2699     </p>
2700 senoner 542 <blockquote class="text">
2701     <p>C: "GET MIDI_INPUT_DRIVER_PARAMETER INFO ALSA ACTIVE"
2702     </p>
2703     <p>S: "DESCRIPTION: Whether device is enabled"
2704     </p>
2705     <p>&nbsp;&nbsp;&nbsp;"TYPE: BOOL"
2706     </p>
2707     <p>&nbsp;&nbsp;&nbsp;"MANDATORY: false"
2708     </p>
2709     <p>&nbsp;&nbsp;&nbsp;"FIX: false"
2710     </p>
2711     <p>&nbsp;&nbsp;&nbsp;"MULTIPLICITY: false"
2712     </p>
2713     <p>&nbsp;&nbsp;&nbsp;"DEFAULT: true"
2714     </p>
2715     <p>&nbsp;&nbsp;&nbsp;"."
2716     </p>
2717 schoenebeck 708 </blockquote><p>
2718 schoenebeck 940
2719 schoenebeck 708 </p>
2720 schoenebeck 940 <a name="CREATE MIDI_INPUT_DEVICE"></a><br /><hr />
2721 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
2722     <a name="rfc.section.6.3.5"></a><h3>6.3.5.&nbsp;
2723     Creating a MIDI input device</h3>
2724 senoner 542
2725     <p>Use the following command to create a new MIDI input device for the desired MIDI input system:
2726     </p>
2727 schoenebeck 708 <p>
2728     </p>
2729 senoner 542 <blockquote class="text">
2730     <p>CREATE MIDI_INPUT_DEVICE &lt;midi-input-driver&gt; [&lt;param-list&gt;]
2731     </p>
2732 schoenebeck 708 </blockquote><p>
2733 schoenebeck 940
2734 schoenebeck 708 </p>
2735 schoenebeck 575 <p>Where &lt;midi-input-driver&gt; should be replaced by the desired MIDI input system as returned
2736 schoenebeck 974 by the <a class='info' href='#LIST AVAILABLE_MIDI_INPUT_DRIVERS'>"LIST AVAILABLE_MIDI_INPUT_DRIVERS"<span> (</span><span class='info'>Getting all available MIDI input drivers</span><span>)</span></a> command and &lt;param-list&gt; by an
2737 senoner 542 optional list of driver specific parameters in form of "key1=val1 key2=val2 ...", where
2738     character string values should be encapsulated into apostrophes (').
2739     Note that there might be drivers which require parameter(s) to be
2740     given with this command. Use the previously described commands in
2741     this chapter to get that information.
2742     </p>
2743     <p>Possible Answers:
2744     </p>
2745 schoenebeck 708 <p>
2746     </p>
2747 senoner 542 <blockquote class="text">
2748     <p>"OK[&lt;device-id&gt;]" -
2749     </p>
2750     <blockquote class="text">
2751     <p>in case the device was successfully created, where
2752     &lt;device-id&gt; is the numerical ID of the new device
2753     </p>
2754 schoenebeck 940 </blockquote>
2755    
2756 senoner 542
2757     <p>"WRN[&lt;device-id&gt;]:&lt;warning-code&gt;:&lt;warning-message&gt;" -
2758     </p>
2759     <blockquote class="text">
2760     <p>in case the driver was loaded successfully, where
2761     &lt;device-id&gt; is the numerical ID of the new device, but
2762     there are noteworthy issue(s) related, providing an
2763     appropriate warning code and warning message
2764     </p>
2765 schoenebeck 940 </blockquote>
2766    
2767 senoner 542
2768     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
2769     </p>
2770     <blockquote class="text">
2771     <p>in case it failed, providing an appropriate error code and error message
2772     </p>
2773 schoenebeck 940 </blockquote>
2774    
2775 senoner 542
2776 schoenebeck 708 </blockquote><p>
2777 schoenebeck 940
2778 schoenebeck 708 </p>
2779 senoner 542 <p>Example:
2780     </p>
2781 schoenebeck 708 <p>
2782     </p>
2783 senoner 542 <blockquote class="text">
2784     <p>C: "CREATE MIDI_INPUT_DEVICE ALSA"
2785     </p>
2786     <p>S: "OK[0]"
2787     </p>
2788 schoenebeck 708 </blockquote><p>
2789 schoenebeck 940
2790 schoenebeck 708 </p>
2791 schoenebeck 940 <a name="DESTROY MIDI_INPUT_DEVICE"></a><br /><hr />
2792 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
2793     <a name="rfc.section.6.3.6"></a><h3>6.3.6.&nbsp;
2794     Destroying a MIDI input device</h3>
2795 senoner 542
2796     <p>Use the following command to destroy a created MIDI input device:
2797     </p>
2798 schoenebeck 708 <p>
2799     </p>
2800 senoner 542 <blockquote class="text">
2801     <p>DESTROY MIDI_INPUT_DEVICE &lt;device-id&gt;
2802     </p>
2803 schoenebeck 708 </blockquote><p>
2804 schoenebeck 940
2805 schoenebeck 708 </p>
2806 schoenebeck 575 <p>Where &lt;device-id&gt; should be replaced by the device's numerical ID as returned by the
2807 schoenebeck 974 <a class='info' href='#CREATE MIDI_INPUT_DEVICE'>"CREATE MIDI_INPUT_DEVICE"<span> (</span><span class='info'>Creating a MIDI input device</span><span>)</span></a>
2808     or <a class='info' href='#LIST MIDI_INPUT_DEVICES'>"LIST MIDI_INPUT_DEVICES"<span> (</span><span class='info'>Getting all created MIDI input device list</span><span>)</span></a>
2809 schoenebeck 575 command.
2810 senoner 542 </p>
2811     <p>Possible Answers:
2812     </p>
2813 schoenebeck 708 <p>
2814     </p>
2815 senoner 542 <blockquote class="text">
2816     <p>"OK" -
2817     </p>
2818     <blockquote class="text">
2819     <p>in case the device was successfully destroyed
2820     </p>
2821 schoenebeck 940 </blockquote>
2822    
2823 senoner 542
2824     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
2825     </p>
2826     <blockquote class="text">
2827     <p>in case the device was destroyed, but there are noteworthy
2828     issue(s) related, providing an appropriate warning code and
2829     warning message
2830     </p>
2831 schoenebeck 940 </blockquote>
2832    
2833 senoner 542
2834     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
2835     </p>
2836     <blockquote class="text">
2837     <p>in case it failed, providing an appropriate error code and error message
2838     </p>
2839 schoenebeck 940 </blockquote>
2840    
2841 senoner 542
2842 schoenebeck 708 </blockquote><p>
2843 schoenebeck 940
2844 schoenebeck 708 </p>
2845 senoner 542 <p>Example:
2846     </p>
2847 schoenebeck 708 <p>
2848     </p>
2849 senoner 542 <blockquote class="text">
2850     <p>C: "DESTROY MIDI_INPUT_DEVICE 0"
2851     </p>
2852     <p>S: "OK"
2853     </p>
2854 schoenebeck 708 </blockquote><p>
2855 schoenebeck 940
2856 schoenebeck 708 </p>
2857 schoenebeck 940 <a name="GET MIDI_INPUT_DEVICES"></a><br /><hr />
2858 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
2859     <a name="rfc.section.6.3.7"></a><h3>6.3.7.&nbsp;
2860     Getting all created MIDI input device count</h3>
2861 senoner 542
2862     <p>Use the following command to count all created MIDI input devices:
2863     </p>
2864 schoenebeck 708 <p>
2865     </p>
2866 senoner 542 <blockquote class="text">
2867     <p>GET MIDI_INPUT_DEVICES
2868     </p>
2869 schoenebeck 708 </blockquote><p>
2870 schoenebeck 940
2871 schoenebeck 708 </p>
2872 senoner 542 <p>Possible Answers:
2873     </p>
2874 schoenebeck 708 <p>
2875     </p>
2876 senoner 542 <blockquote class="text">
2877     <p>LinuxSampler will answer by sending the current number of all
2878     MIDI input devices.
2879     </p>
2880 schoenebeck 708 </blockquote><p>
2881 schoenebeck 940
2882 schoenebeck 708 </p>
2883 senoner 542 <p>Example:
2884     </p>
2885 schoenebeck 708 <p>
2886     </p>
2887 senoner 542 <blockquote class="text">
2888     <p>C: "GET MIDI_INPUT_DEVICES"
2889     </p>
2890     <p>S: "3"
2891     </p>
2892 schoenebeck 708 </blockquote><p>
2893 schoenebeck 940
2894 schoenebeck 708 </p>
2895 schoenebeck 940 <a name="LIST MIDI_INPUT_DEVICES"></a><br /><hr />
2896 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
2897     <a name="rfc.section.6.3.8"></a><h3>6.3.8.&nbsp;
2898     Getting all created MIDI input device list</h3>
2899 senoner 542
2900     <p>Use the following command to list all created MIDI input devices:
2901     </p>
2902 schoenebeck 708 <p>
2903     </p>
2904 senoner 542 <blockquote class="text">
2905     <p>LIST MIDI_INPUT_DEVICES
2906     </p>
2907 schoenebeck 708 </blockquote><p>
2908 schoenebeck 940
2909 schoenebeck 708 </p>
2910 senoner 542 <p>Possible Answers:
2911     </p>
2912 schoenebeck 708 <p>
2913     </p>
2914 senoner 542 <blockquote class="text">
2915     <p>LinuxSampler will answer by sending a comma separated list
2916     with the numerical Ids of all created MIDI input devices.
2917     </p>
2918 schoenebeck 708 </blockquote><p>
2919 schoenebeck 940
2920 schoenebeck 708 </p>
2921 senoner 542 <p>Examples:
2922     </p>
2923 schoenebeck 708 <p>
2924     </p>
2925 senoner 542 <blockquote class="text">
2926     <p>C: "LIST MIDI_INPUT_DEVICES"
2927     </p>
2928     <p>S: "0,1,2"
2929     </p>
2930 schoenebeck 708 </blockquote><p>
2931 schoenebeck 940
2932 schoenebeck 708 </p>
2933     <p>
2934     </p>
2935 senoner 542 <blockquote class="text">
2936     <p>C: "LIST MIDI_INPUT_DEVICES"
2937     </p>
2938     <p>S: "1,3"
2939     </p>
2940 schoenebeck 708 </blockquote><p>
2941 schoenebeck 940
2942 schoenebeck 708 </p>
2943 schoenebeck 940 <a name="GET MIDI_INPUT_DEVICE INFO"></a><br /><hr />
2944 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
2945     <a name="rfc.section.6.3.9"></a><h3>6.3.9.&nbsp;
2946     Getting current settings of a MIDI input device</h3>
2947 senoner 542
2948     <p>Use the following command to get current settings of a specific, created MIDI input device:
2949     </p>
2950 schoenebeck 708 <p>
2951     </p>
2952 senoner 542 <blockquote class="text">
2953     <p>GET MIDI_INPUT_DEVICE INFO &lt;device-id&gt;
2954     </p>
2955 schoenebeck 708 </blockquote><p>
2956 schoenebeck 940
2957 schoenebeck 708 </p>
2958 schoenebeck 575 <p>Where &lt;device-id&gt; is the numerical ID of the MIDI input device as returned by the
2959 schoenebeck 974 <a class='info' href='#CREATE MIDI_INPUT_DEVICE'>"CREATE MIDI_INPUT_DEVICE"<span> (</span><span class='info'>Creating a MIDI input device</span><span>)</span></a>
2960     or <a class='info' href='#LIST MIDI_INPUT_DEVICES'>"LIST MIDI_INPUT_DEVICES"<span> (</span><span class='info'>Getting all created MIDI input device list</span><span>)</span></a>
2961 schoenebeck 575 command.
2962 senoner 542 </p>
2963     <p>Possible Answers:
2964     </p>
2965 schoenebeck 708 <p>
2966     </p>
2967 senoner 542 <blockquote class="text">
2968     <p>LinuxSampler will answer by sending a &lt;CRLF&gt; separated list.
2969     Each answer line begins with the information category name
2970     followed by a colon and then a space character &lt;SP&gt; and finally
2971     the info character string to that info category. As some
2972     parameters might allow multiple values, character strings are
2973     encapsulated into apostrophes ('). At the moment the following
2974     information categories are defined (independent of driver):
2975     </p>
2976 schoenebeck 708 <p>
2977     </p>
2978 senoner 542 <blockquote class="text">
2979     <p>DRIVER -
2980     </p>
2981     <blockquote class="text">
2982     <p>identifier of the used MIDI input driver, as e.g.
2983 schoenebeck 974 returned by the <a class='info' href='#LIST AVAILABLE_MIDI_INPUT_DRIVERS'>"LIST AVAILABLE_MIDI_INPUT_DRIVERS"<span> (</span><span class='info'>Getting all available MIDI input drivers</span><span>)</span></a>
2984 senoner 542 command
2985     </p>
2986 schoenebeck 940 </blockquote>
2987    
2988 senoner 542
2989 schoenebeck 940 </blockquote>
2990    
2991 senoner 542 <blockquote class="text">
2992 schoenebeck 708 <p>ACTIVE -
2993 senoner 542 </p>
2994     <blockquote class="text">
2995     <p>either true or false, if false then the MIDI device is
2996     inactive and doesn't listen to any incoming MIDI events
2997     and thus doesn't forward them to connected sampler
2998     channels
2999     </p>
3000 schoenebeck 940 </blockquote>
3001    
3002 senoner 542
3003 schoenebeck 940 </blockquote>
3004    
3005 senoner 542
3006 schoenebeck 708 </blockquote><p>
3007 schoenebeck 940
3008 schoenebeck 708 </p>
3009 senoner 542 <p>The mentioned fields above don't have to be in particular
3010     order. The fields above are only those fields which are
3011     returned by all MIDI input devices. Every MIDI input driver
3012     might have its own, additional driver specific parameters (see
3013 schoenebeck 974 <a class='info' href='#GET MIDI_INPUT_DRIVER INFO'>"GET MIDI_INPUT_DRIVER INFO"<span> (</span><span class='info'>Getting information about a specific MIDI input driver</span><span>)</span></a> command) which are also returned
3014 senoner 542 by this command.
3015     </p>
3016     <p>Example:
3017     </p>
3018 schoenebeck 708 <p>
3019     </p>
3020 senoner 542 <blockquote class="text">
3021     <p>C: "GET MIDI_INPUT_DEVICE INFO 0"
3022     </p>
3023     <p>S: "DRIVER: ALSA"
3024     </p>
3025     <p>&nbsp;&nbsp;&nbsp;"ACTIVE: true"
3026     </p>
3027     <p>&nbsp;&nbsp;&nbsp;"."
3028     </p>
3029 schoenebeck 708 </blockquote><p>
3030 schoenebeck 940
3031 schoenebeck 708 </p>
3032 schoenebeck 940 <a name="SET MIDI_INPUT_DEVICE_PARAMETER"></a><br /><hr />
3033 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
3034     <a name="rfc.section.6.3.10"></a><h3>6.3.10.&nbsp;
3035     Changing settings of MIDI input devices</h3>
3036 senoner 542
3037     <p>Use the following command to alter a specific setting of a created MIDI input device:
3038     </p>
3039 schoenebeck 708 <p>
3040     </p>
3041 senoner 542 <blockquote class="text">
3042     <p>SET MIDI_INPUT_DEVICE_PARAMETER &lt;device-id&gt; &lt;key&gt;=&lt;value&gt;
3043     </p>
3044 schoenebeck 708 </blockquote><p>
3045 schoenebeck 940
3046 schoenebeck 708 </p>
3047 senoner 542 <p>Where &lt;device-id&gt; should be replaced by the numerical ID of the
3048 schoenebeck 575 MIDI input device as returned by the
3049 schoenebeck 974 <a class='info' href='#CREATE MIDI_INPUT_DEVICE'>"CREATE MIDI_INPUT_DEVICE"<span> (</span><span class='info'>Creating a MIDI input device</span><span>)</span></a>
3050     or <a class='info' href='#LIST MIDI_INPUT_DEVICES'>"LIST MIDI_INPUT_DEVICES"<span> (</span><span class='info'>Getting all created MIDI input device list</span><span>)</span></a>
3051 schoenebeck 575 command, &lt;key&gt; by the name of the parameter to change and
3052 senoner 542 &lt;value&gt; by the new value for this parameter.
3053     </p>
3054     <p>Possible Answers:
3055     </p>
3056 schoenebeck 708 <p>
3057     </p>
3058 senoner 542 <blockquote class="text">
3059     <p>"OK" -
3060     </p>
3061     <blockquote class="text">
3062     <p>in case setting was successfully changed
3063     </p>
3064 schoenebeck 940 </blockquote>
3065    
3066 senoner 542
3067     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
3068     </p>
3069     <blockquote class="text">
3070     <p>in case setting was changed successfully, but there are
3071     noteworthy issue(s) related, providing an appropriate
3072     warning code and warning message
3073     </p>
3074 schoenebeck 940 </blockquote>
3075    
3076 senoner 542
3077     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
3078     </p>
3079     <blockquote class="text">
3080     <p>in case it failed, providing an appropriate error code and error message
3081     </p>
3082 schoenebeck 940 </blockquote>
3083    
3084 senoner 542
3085 schoenebeck 708 </blockquote><p>
3086 schoenebeck 940
3087 schoenebeck 708 </p>
3088 senoner 542 <p>Example:
3089     </p>
3090 schoenebeck 708 <p>
3091     </p>
3092 senoner 542 <blockquote class="text">
3093     <p>C: "SET MIDI_INPUT_DEVICE_PARAMETER 0 ACTIVE=false"
3094     </p>
3095     <p>S: "OK"
3096     </p>
3097 schoenebeck 708 </blockquote><p>
3098 schoenebeck 940
3099 schoenebeck 708 </p>
3100 schoenebeck 940 <a name="GET MIDI_INPUT_PORT INFO"></a><br /><hr />
3101 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
3102     <a name="rfc.section.6.3.11"></a><h3>6.3.11.&nbsp;
3103     Getting information about a MIDI port</h3>
3104 senoner 542
3105     <p>Use the following command to get information about a MIDI port:
3106     </p>
3107 schoenebeck 708 <p>
3108     </p>
3109 senoner 542 <blockquote class="text">
3110     <p>GET MIDI_INPUT_PORT INFO &lt;device-id&gt; &lt;midi-port&gt;
3111     </p>
3112 schoenebeck 708 </blockquote><p>
3113 schoenebeck 940
3114 schoenebeck 708 </p>
3115 schoenebeck 575 <p>Where &lt;device-id&gt; is the numerical ID of the MIDI input device as returned by the
3116 schoenebeck 974 <a class='info' href='#CREATE MIDI_INPUT_DEVICE'>"CREATE MIDI_INPUT_DEVICE"<span> (</span><span class='info'>Creating a MIDI input device</span><span>)</span></a>
3117     or <a class='info' href='#LIST MIDI_INPUT_DEVICES'>"LIST MIDI_INPUT_DEVICES"<span> (</span><span class='info'>Getting all created MIDI input device list</span><span>)</span></a>
3118 schoenebeck 575 command and &lt;midi-port&gt; the MIDI input port number.
3119 senoner 542 </p>
3120     <p>Possible Answers:
3121     </p>
3122 schoenebeck 708 <p>
3123     </p>
3124 senoner 542 <blockquote class="text">
3125     <p>LinuxSampler will answer by sending a &lt;CRLF&gt; separated list.
3126     Each answer line begins with the information category name
3127     followed by a colon and then a space character &lt;SP&gt; and finally
3128     the info character string to that info category. At the moment
3129     the following information categories are defined:
3130     </p>
3131     <p>NAME -
3132     </p>
3133     <blockquote class="text">
3134     <p>arbitrary character string naming the port
3135     </p>
3136 schoenebeck 940 </blockquote>
3137    
3138 senoner 542
3139 schoenebeck 708 </blockquote><p>
3140 schoenebeck 940
3141 schoenebeck 708 </p>
3142 senoner 542 <p>The field above is only the one which is returned by all MIDI
3143     ports regardless of the MIDI driver and port. Every MIDI port
3144     might have its own, additional driver and port specific
3145     parameters.
3146     </p>
3147     <p>Example:
3148     </p>
3149 schoenebeck 708 <p>
3150     </p>
3151 senoner 542 <blockquote class="text">
3152     <p>C: "GET MIDI_INPUT_PORT INFO 0 0"
3153     </p>
3154     <p>S: "NAME: 'Masterkeyboard'"
3155     </p>
3156     <p>&nbsp;&nbsp;&nbsp;"ALSA_SEQ_BINDINGS: '64:0'"
3157     </p>
3158     <p>&nbsp;&nbsp;&nbsp;"."
3159     </p>
3160 schoenebeck 708 </blockquote><p>
3161 schoenebeck 940
3162 schoenebeck 708 </p>
3163 schoenebeck 940 <a name="GET MIDI_INPUT_PORT_PARAMETER INFO"></a><br /><hr />
3164 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
3165     <a name="rfc.section.6.3.12"></a><h3>6.3.12.&nbsp;
3166     Getting information about specific MIDI port parameter</h3>
3167 senoner 542
3168     <p>Use the following command to get detailed information about specific MIDI port parameter:
3169     </p>
3170 schoenebeck 708 <p>
3171     </p>
3172 senoner 542 <blockquote class="text">
3173     <p>GET MIDI_INPUT_PORT_PARAMETER INFO &lt;dev-id&gt; &lt;port&gt; &lt;param&gt;
3174     </p>
3175 schoenebeck 708 </blockquote><p>
3176 schoenebeck 940
3177 schoenebeck 708 </p>
3178 schoenebeck 575 <p>Where &lt;dev-id&gt; is the numerical ID of the MIDI input device as returned by the
3179 schoenebeck 974 <a class='info' href='#CREATE MIDI_INPUT_DEVICE'>"CREATE MIDI_INPUT_DEVICE"<span> (</span><span class='info'>Creating a MIDI input device</span><span>)</span></a>
3180     or <a class='info' href='#LIST MIDI_INPUT_DEVICES'>"LIST MIDI_INPUT_DEVICES"<span> (</span><span class='info'>Getting all created MIDI input device list</span><span>)</span></a>
3181 schoenebeck 575 command, &lt;port&gt; the MIDI port number and
3182 senoner 542 &lt;param&gt; a specific port parameter name for which information should be
3183 schoenebeck 974 obtained (as returned by the <a class='info' href='#GET MIDI_INPUT_PORT INFO'>"GET MIDI_INPUT_PORT INFO"<span> (</span><span class='info'>Getting information about a MIDI port</span><span>)</span></a> command).
3184 senoner 542 </p>
3185     <p>Possible Answers:
3186     </p>
3187 schoenebeck 708 <p>
3188     </p>
3189 senoner 542 <blockquote class="text">
3190     <p>LinuxSampler will answer by sending a &lt;CRLF&gt; separated list.
3191     Each answer line begins with the information category name
3192     followed by a colon and then a space character &lt;SP&gt; and finally
3193     the info character string to that info category. There is
3194     information which is always returned, independently of the
3195     given channel parameter and there is optional information
3196     which are only shown dependently to the given MIDI port. At the
3197     moment the following information categories are defined:
3198     </p>
3199     <p>TYPE -
3200     </p>
3201     <blockquote class="text">
3202     <p>either "BOOL" for boolean value(s) or "INT" for integer
3203     value(s) or "FLOAT" for dotted number(s) or "STRING" for
3204     character string(s)
3205     (always returned)
3206     </p>
3207 schoenebeck 940 </blockquote>
3208    
3209 senoner 542
3210     <p>DESCRIPTION -
3211     </p>
3212     <blockquote class="text">
3213     <p>arbitrary text describing the purpose of the parameter
3214     (always returned)
3215     </p>
3216 schoenebeck 940 </blockquote>
3217    
3218 senoner 542
3219     <p>FIX -
3220     </p>
3221     <blockquote class="text">
3222     <p>either true or false, if true then this parameter is
3223     read only, thus cannot be altered
3224     (always returned)
3225     </p>
3226 schoenebeck 940 </blockquote>
3227    
3228 senoner 542
3229     <p>MULTIPLICITY -
3230     </p>
3231     <blockquote class="text">
3232     <p>either true or false, defines if this parameter allows
3233     only one value or a list of values, where true means
3234     multiple values and false only a single value allowed
3235     (always returned)
3236     </p>
3237 schoenebeck 940 </blockquote>
3238    
3239 senoner 542
3240     <p>RANGE_MIN -
3241     </p>
3242     <blockquote class="text">
3243     <p>defines lower limit of the allowed value range for this
3244     parameter, can be an integer value as well as a dotted
3245     number, this parameter is usually used in conjunction
3246     with 'RANGE_MAX' but may also appear without
3247     (optionally returned, dependent to driver and port
3248     parameter)
3249     </p>
3250 schoenebeck 940 </blockquote>
3251    
3252 senoner 542
3253     <p>RANGE_MAX -
3254     </p>
3255     <blockquote class="text">
3256     <p>defines upper limit of the allowed value range for this
3257     parameter, can be an integer value as well as a dotted
3258     number, this parameter is usually used in conjunction
3259     with 'RANGE_MIN' but may also appear without
3260     (optionally returned, dependent to driver and port
3261     parameter)
3262     </p>
3263 schoenebeck 940 </blockquote>
3264    
3265 senoner 542
3266     <p>POSSIBILITIES -
3267     </p>
3268     <blockquote class="text">
3269     <p>comma separated list of possible values for this
3270     parameter, character strings are encapsulated into
3271     apostrophes
3272     (optionally returned, dependent to device and port
3273     parameter)
3274     </p>
3275 schoenebeck 940 </blockquote>
3276    
3277 senoner 542
3278 schoenebeck 708 </blockquote><p>
3279 schoenebeck 940
3280 schoenebeck 708 </p>
3281 senoner 542 <p>The mentioned fields above don't have to be in particular order.
3282     </p>
3283     <p>Example:
3284     </p>
3285 schoenebeck 708 <p>
3286     </p>
3287 senoner 542 <blockquote class="text">
3288     <p>C: "GET MIDI_INPUT_PORT_PARAMETER INFO 0 0 ALSA_SEQ_BINDINGS"
3289     </p>
3290     <p>S: "DESCRIPTION: bindings to other ALSA sequencer clients"
3291     </p>
3292     <p>&nbsp;&nbsp;&nbsp;"TYPE: STRING"
3293     </p>
3294     <p>&nbsp;&nbsp;&nbsp;"FIX: false"
3295     </p>
3296     <p>&nbsp;&nbsp;&nbsp;"MULTIPLICITY: true"
3297     </p>
3298     <p>&nbsp;&nbsp;&nbsp;"POSSIBILITIES: '64:0','68:0','68:1'"
3299     </p>
3300     <p>&nbsp;&nbsp;&nbsp;"."
3301     </p>
3302 schoenebeck 708 </blockquote><p>
3303 schoenebeck 940
3304 schoenebeck 708 </p>
3305 schoenebeck 940 <a name="SET MIDI_INPUT_PORT_PARAMETER"></a><br /><hr />
3306 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
3307     <a name="rfc.section.6.3.13"></a><h3>6.3.13.&nbsp;
3308     Changing settings of MIDI input ports</h3>
3309 senoner 542
3310     <p>Use the following command to alter a specific setting of a MIDI input port:
3311     </p>
3312 schoenebeck 708 <p>
3313     </p>
3314 senoner 542 <blockquote class="text">
3315     <p>SET MIDI_INPUT_PORT_PARAMETER &lt;device-id&gt; &lt;port&gt; &lt;key&gt;=&lt;value&gt;
3316     </p>
3317 schoenebeck 708 </blockquote><p>
3318 schoenebeck 940
3319 schoenebeck 708 </p>
3320 senoner 542 <p>Where &lt;device-id&gt; should be replaced by the numerical ID of the
3321 schoenebeck 575 MIDI device as returned by the
3322 schoenebeck 974 <a class='info' href='#CREATE MIDI_INPUT_DEVICE'>"CREATE MIDI_INPUT_DEVICE"<span> (</span><span class='info'>Creating a MIDI input device</span><span>)</span></a>
3323     or <a class='info' href='#LIST MIDI_INPUT_DEVICES'>"LIST MIDI_INPUT_DEVICES"<span> (</span><span class='info'>Getting all created MIDI input device list</span><span>)</span></a>
3324 schoenebeck 575 command, &lt;port&gt; by the MIDI port number, &lt;key&gt; by the name of
3325 senoner 542 the parameter to change and &lt;value&gt; by the new value for this
3326 schoenebeck 1363 parameter (encapsulated into apostrophes) or NONE (not encapsulated into apostrophes)
3327     for specifying no value for parameters allowing a list of values.
3328 senoner 542 </p>
3329     <p>Possible Answers:
3330     </p>
3331 schoenebeck 708 <p>
3332     </p>
3333 senoner 542 <blockquote class="text">
3334     <p>"OK" -
3335     </p>
3336     <blockquote class="text">
3337     <p>in case setting was successfully changed
3338     </p>
3339 schoenebeck 940 </blockquote>
3340    
3341 senoner 542
3342     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
3343     </p>
3344     <blockquote class="text">
3345     <p>in case setting was changed successfully, but there are
3346     noteworthy issue(s) related, providing an appropriate
3347     warning code and warning message
3348     </p>
3349 schoenebeck 940 </blockquote>
3350    
3351 senoner 542
3352     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
3353     </p>
3354     <blockquote class="text">
3355     <p>in case it failed, providing an appropriate error code and error message
3356     </p>
3357 schoenebeck 940 </blockquote>
3358    
3359 senoner 542
3360 schoenebeck 708 </blockquote><p>
3361 schoenebeck 940
3362 schoenebeck 708 </p>
3363 senoner 542 <p>Example:
3364     </p>
3365 schoenebeck 708 <p>
3366     </p>
3367 senoner 542 <blockquote class="text">
3368 schoenebeck 1363 <p>C: "SET MIDI_INPUT_PORT_PARAMETER 0 0 ALSA_SEQ_BINDINGS='20:0'"
3369     </p>
3370     <p>S: "OK"
3371     </p>
3372     </blockquote><p>
3373    
3374     </p>
3375 senoner 542 <p>
3376 schoenebeck 1363 </p>
3377     <blockquote class="text">
3378     <p>C: "SET MIDI_INPUT_PORT_PARAMETER 0 0 ALSA_SEQ_BINDINGS=NONE"
3379 senoner 542 </p>
3380 schoenebeck 1363 <p>S: "OK"
3381     </p>
3382 schoenebeck 708 </blockquote><p>
3383 schoenebeck 940
3384 schoenebeck 708 </p>
3385 schoenebeck 940 <a name="anchor11"></a><br /><hr />
3386 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
3387     <a name="rfc.section.6.4"></a><h3>6.4.&nbsp;
3388     Configuring sampler channels</h3>
3389 senoner 542
3390 schoenebeck 575 <p>The following commands describe how to add and remove sampler channels, associate a
3391     sampler channel with a sampler engine, load instruments and connect sampler channels to
3392     MIDI and audio devices.
3393 senoner 542 </p>
3394 schoenebeck 940 <a name="LOAD INSTRUMENT"></a><br /><hr />
3395 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
3396     <a name="rfc.section.6.4.1"></a><h3>6.4.1.&nbsp;
3397     Loading an instrument</h3>
3398 senoner 542
3399     <p>An instrument file can be loaded and assigned to a sampler channel by one of the following commands:
3400     </p>
3401 schoenebeck 708 <p>
3402     </p>
3403 senoner 542 <blockquote class="text">
3404     <p>LOAD INSTRUMENT [NON_MODAL] '&lt;filename&gt;' &lt;instr-index&gt; &lt;sampler-channel&gt;
3405     </p>
3406 schoenebeck 708 </blockquote><p>
3407 schoenebeck 940
3408 schoenebeck 708 </p>
3409 senoner 542 <p>Where &lt;filename&gt; is the name of the instrument file on the
3410     LinuxSampler instance's host system, &lt;instr-index&gt; the index of the
3411     instrument in the instrument file and &lt;sampler-channel> is the
3412     number of the sampler channel the instrument should be assigned to.
3413     Each sampler channel can only have one instrument.
3414     </p>
3415 schoenebeck 1251 <p>Notice: since LSCP 1.2 the &lt;filename&gt; argument supports
3416     escape characters for special characters (see chapter
3417     "<a class='info' href='#character_set'>Character Set and Escape Sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>"
3418     for details) and accordingly backslash characters in the filename
3419     MUST now be escaped as well!
3420     </p>
3421 senoner 542 <p>The difference between regular and NON_MODAL versions of the command
3422     is that the regular command returns OK only after the instrument has been
3423     fully loaded and the channel is ready to be used while NON_MODAL version
3424     returns immediately and a background process is launched to load the instrument
3425 schoenebeck 974 on the channel. The <a class='info' href='#GET CHANNEL INFO'>GET CHANNEL INFO<span> (</span><span class='info'>Getting sampler channel information</span><span>)</span></a>
3426 senoner 542 command can be used to obtain loading
3427     progress from INSTRUMENT_STATUS field. LOAD command will perform sanity checks
3428     such as making sure that the file could be read and it is of a proper format
3429     and SHOULD return ERR and SHOULD not launch the background process should any
3430     errors be detected at that point.
3431     </p>
3432     <p>Possible Answers:
3433     </p>
3434 schoenebeck 708 <p>
3435     </p>
3436 senoner 542 <blockquote class="text">
3437     <p>"OK" -
3438     </p>
3439     <blockquote class="text">
3440     <p>in case the instrument was successfully loaded
3441     </p>
3442 schoenebeck 940 </blockquote>
3443    
3444 senoner 542
3445     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
3446     </p>
3447     <blockquote class="text">
3448     <p>in case the instrument was loaded successfully, but there
3449     are noteworthy issue(s) related (e.g. Engine doesn't support
3450     one or more patch parameters provided by the loaded
3451     instrument file), providing an appropriate warning code and
3452     warning message
3453     </p>
3454 schoenebeck 940 </blockquote>
3455    
3456 senoner 542
3457     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
3458     </p>
3459     <blockquote class="text">
3460     <p>in case it failed, providing an appropriate error code and error message
3461     </p>
3462 schoenebeck 940 </blockquote>
3463    
3464 senoner 542
3465 schoenebeck 708 </blockquote><p>
3466 schoenebeck 940
3467 schoenebeck 708 </p>
3468 schoenebeck 1572 <p>Example (Unix):
3469 senoner 542 </p>
3470 schoenebeck 708 <p>
3471     </p>
3472 senoner 542 <blockquote class="text">
3473 schoenebeck 1572 <p>C: LOAD INSTRUMENT '/home/joe/gigs/cello.gig' 0 0
3474     </p>
3475     <p>S: OK
3476     </p>
3477     </blockquote><p>
3478    
3479     </p>
3480     <p>Example (Windows):
3481     </p>
3482 senoner 542 <p>
3483 schoenebeck 1572 </p>
3484     <blockquote class="text">
3485     <p>C: LOAD INSTRUMENT 'D:/MySounds/cello.gig' 0 0
3486 senoner 542 </p>
3487 schoenebeck 1572 <p>S: OK
3488     </p>
3489 schoenebeck 708 </blockquote><p>
3490 schoenebeck 940
3491 schoenebeck 708 </p>
3492 schoenebeck 940 <a name="LOAD ENGINE"></a><br /><hr />
3493 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
3494     <a name="rfc.section.6.4.2"></a><h3>6.4.2.&nbsp;
3495     Loading a sampler engine</h3>
3496 senoner 542
3497 schoenebeck 575 <p>A sampler engine type can be associated to a specific sampler
3498 senoner 542 channel by the following command:
3499     </p>
3500 schoenebeck 708 <p>
3501     </p>
3502 senoner 542 <blockquote class="text">
3503     <p>LOAD ENGINE &lt;engine-name&gt; &lt;sampler-channel&gt;
3504     </p>
3505 schoenebeck 708 </blockquote><p>
3506 schoenebeck 940
3507 schoenebeck 708 </p>
3508 senoner 542 <p>Where &lt;engine-name&gt; is an engine name as obtained by the
3509 schoenebeck 974 <a class='info' href='#LIST AVAILABLE_ENGINES'>"LIST AVAILABLE_ENGINES"<span> (</span><span class='info'>Getting all available engines</span><span>)</span></a> command and &lt;sampler-channel&gt;
3510 schoenebeck 575 the sampler channel as returned by the
3511 schoenebeck 974 <a class='info' href='#ADD CHANNEL'>"ADD CHANNEL"<span> (</span><span class='info'>Adding a new sampler channel</span><span>)</span></a> or
3512     <a class='info' href='#LIST CHANNELS'>"LIST CHANNELS"<span> (</span><span class='info'>Getting all created sampler channel list</span><span>)</span></a> command where
3513 schoenebeck 575 the engine type should be assigned to. This command should be issued
3514     after adding a new sampler channel and before any other control
3515     commands on the new sampler channel. It can also be used to change
3516     the engine type of a sampler channel. This command has (currently) no
3517     way to define or force if a new engine instance should be created and
3518     assigned to the given sampler channel or if an already existing
3519     instance of that engine type, shared with other sampler channels,
3520     should be used.
3521 senoner 542 </p>
3522     <p>Possible Answers:
3523     </p>
3524 schoenebeck 708 <p>
3525     </p>
3526 senoner 542 <blockquote class="text">
3527     <p>"OK" -
3528     </p>
3529     <blockquote class="text">
3530     <p>in case the engine was successfully deployed
3531     </p>
3532 schoenebeck 940 </blockquote>
3533    
3534 senoner 542
3535     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
3536     </p>
3537     <blockquote class="text">
3538     <p>in case the engine was deployed successfully, but there
3539     are noteworthy issue(s) related, providing an appropriate
3540     warning code and warning message
3541     </p>
3542 schoenebeck 940 </blockquote>
3543    
3544 senoner 542
3545     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
3546     </p>
3547     <blockquote class="text">
3548     <p>in case it failed, providing an appropriate error code and
3549     error message
3550     </p>
3551 schoenebeck 940 </blockquote>
3552    
3553 senoner 542
3554 schoenebeck 708 </blockquote><p>
3555 schoenebeck 940
3556 schoenebeck 708 </p>
3557 senoner 542 <p>Example:
3558     </p>
3559 schoenebeck 708 <p>
3560     </p>
3561 senoner 542 <blockquote class="text">
3562     <p>
3563     </p>
3564 schoenebeck 708 </blockquote><p>
3565 schoenebeck 940
3566 schoenebeck 708 </p>
3567 schoenebeck 940 <a name="GET CHANNELS"></a><br /><hr />
3568 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
3569     <a name="rfc.section.6.4.3"></a><h3>6.4.3.&nbsp;
3570     Getting all created sampler channel count</h3>
3571 senoner 542
3572     <p>The number of sampler channels can change on runtime. To get the
3573     current amount of sampler channels, the front-end can send the
3574     following command:
3575     </p>
3576 schoenebeck 708 <p>
3577     </p>
3578 senoner 542 <blockquote class="text">
3579     <p>GET CHANNELS
3580     </p>
3581 schoenebeck 708 </blockquote><p>
3582 schoenebeck 940
3583 schoenebeck 708 </p>
3584 senoner 542 <p>Possible Answers:
3585     </p>
3586 schoenebeck 708 <p>
3587     </p>
3588 senoner 542 <blockquote class="text">
3589     <p>LinuxSampler will answer by returning the current number of sampler channels.
3590     </p>
3591 schoenebeck 708 </blockquote><p>
3592 schoenebeck 940
3593 schoenebeck 708 </p>
3594 senoner 542 <p>Example:
3595     </p>
3596 schoenebeck 708 <p>
3597     </p>
3598 senoner 542 <blockquote class="text">
3599     <p>C: "GET CHANNELS"
3600     </p>
3601     <p>S: "12"
3602     </p>
3603 schoenebeck 708 </blockquote><p>
3604 schoenebeck 940
3605 schoenebeck 708 </p>
3606 schoenebeck 940 <a name="LIST CHANNELS"></a><br /><hr />
3607 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
3608     <a name="rfc.section.6.4.4"></a><h3>6.4.4.&nbsp;
3609     Getting all created sampler channel list</h3>
3610 senoner 542
3611     <p>The number of sampler channels can change on runtime. To get the
3612     current list of sampler channels, the front-end can send the
3613     following command:
3614     </p>
3615 schoenebeck 708 <p>
3616     </p>
3617 senoner 542 <blockquote class="text">
3618     <p>LIST CHANNELS
3619     </p>
3620 schoenebeck 708 </blockquote><p>
3621 schoenebeck 940
3622 schoenebeck 708 </p>
3623 senoner 542 <p>Possible Answers:
3624     </p>
3625 schoenebeck 708 <p>
3626     </p>
3627 senoner 542 <blockquote class="text">
3628     <p>LinuxSampler will answer by returning a comma separated list
3629     with all sampler channels numerical IDs.
3630     </p>
3631 schoenebeck 708 </blockquote><p>
3632 schoenebeck 940
3633 schoenebeck 708 </p>
3634 senoner 542 <p>Example:
3635     </p>
3636 schoenebeck 708 <p>
3637     </p>
3638 senoner 542 <blockquote class="text">
3639     <p>C: "LIST CHANNELS"
3640     </p>
3641     <p>S: "0,1,2,3,4,5,6,9,10,11,15,20"
3642     </p>
3643 schoenebeck 708 </blockquote><p>
3644 schoenebeck 940
3645 schoenebeck 708 </p>
3646 schoenebeck 940 <a name="ADD CHANNEL"></a><br /><hr />
3647 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
3648     <a name="rfc.section.6.4.5"></a><h3>6.4.5.&nbsp;
3649     Adding a new sampler channel</h3>
3650 senoner 542
3651     <p>A new sampler channel can be added to the end of the sampler
3652     channel list by sending the following command:
3653     </p>
3654 schoenebeck 708 <p>
3655     </p>
3656 senoner 542 <blockquote class="text">
3657     <p>ADD CHANNEL
3658     </p>
3659 schoenebeck 708 </blockquote><p>
3660 schoenebeck 940
3661 schoenebeck 708 </p>
3662 senoner 542 <p>This will increment the sampler channel count by one and the new
3663     sampler channel will be appended to the end of the sampler channel
3664     list. The front-end should send the respective, related commands
3665     right after to e.g. load an engine, load an instrument and setting
3666     input, output method and eventually other commands to initialize
3667     the new channel. The front-end should use the sampler channel
3668     returned by the answer of this command to perform the previously
3669     recommended commands, to avoid race conditions e.g. with other
3670     front-ends that might also have sent an "ADD CHANNEL" command.
3671     </p>
3672     <p>Possible Answers:
3673     </p>
3674 schoenebeck 708 <p>
3675     </p>
3676 senoner 542 <blockquote class="text">
3677     <p>"OK[&lt;sampler-channel&gt;]" -
3678     </p>
3679     <blockquote class="text">
3680     <p>in case a new sampler channel could be added, where
3681     &lt;sampler-channel&gt; reflects the channel number of the new
3682 schoenebeck 561 created sampler channel which should be used to set up
3683     the sampler channel by sending subsequent initialization
3684 senoner 542 commands
3685     </p>
3686 schoenebeck 940 </blockquote>
3687    
3688 senoner 542
3689     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
3690     </p>
3691     <blockquote class="text">
3692     <p>in case a new channel was added successfully, but there are
3693     noteworthy issue(s) related, providing an appropriate
3694     warning code and warning message
3695     </p>
3696 schoenebeck 940 </blockquote>
3697    
3698 senoner 542
3699     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
3700     </p>
3701     <blockquote class="text">
3702     <p>in case it failed, providing an appropriate error code and
3703     error message
3704     </p>
3705 schoenebeck 940 </blockquote>
3706    
3707 senoner 542
3708 schoenebeck 708 </blockquote><p>
3709 schoenebeck 940
3710 schoenebeck 708 </p>
3711 senoner 542 <p>Example:
3712     </p>
3713 schoenebeck 708 <p>
3714     </p>
3715 senoner 542 <blockquote class="text">
3716     <p>
3717     </p>
3718 schoenebeck 708 </blockquote><p>
3719 schoenebeck 940
3720 schoenebeck 708 </p>
3721 schoenebeck 940 <a name="REMOVE CHANNEL"></a><br /><hr />
3722 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
3723     <a name="rfc.section.6.4.6"></a><h3>6.4.6.&nbsp;
3724     Removing a sampler channel</h3>
3725 senoner 542
3726     <p>A sampler channel can be removed by sending the following command:
3727     </p>
3728 schoenebeck 708 <p>
3729     </p>
3730 senoner 542 <blockquote class="text">
3731     <p>REMOVE CHANNEL &lt;sampler-channel&gt;
3732     </p>
3733 schoenebeck 708 </blockquote><p>
3734 schoenebeck 940
3735 schoenebeck 708 </p>
3736 schoenebeck 561 <p>Where &lt;sampler-channel&gt; should be replaced by the
3737     number of the sampler channel as given by the
3738 schoenebeck 974 <a class='info' href='#ADD CHANNEL'>"ADD CHANNEL"<span> (</span><span class='info'>Adding a new sampler channel</span><span>)</span></a>
3739     or <a class='info' href='#LIST CHANNELS'>"LIST CHANNELS"<span> (</span><span class='info'>Getting all created sampler channel list</span><span>)</span></a>
3740 schoenebeck 561 command. The channel numbers of all subsequent sampler channels
3741     remain the same.
3742 senoner 542 </p>
3743     <p>Possible Answers:
3744     </p>
3745 schoenebeck 708 <p>
3746     </p>
3747 senoner 542 <blockquote class="text">
3748     <p>"OK" -
3749     </p>
3750     <blockquote class="text">
3751     <p>in case the given sampler channel could be removed
3752     </p>
3753 schoenebeck 940 </blockquote>
3754    
3755 senoner 542
3756     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
3757     </p>
3758     <blockquote class="text">
3759     <p>in case the given channel was removed, but there are
3760     noteworthy issue(s) related, providing an appropriate
3761     warning code and warning message
3762     </p>
3763 schoenebeck 940 </blockquote>
3764    
3765 senoner 542
3766     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
3767     </p>
3768     <blockquote class="text">
3769     <p>in case it failed, providing an appropriate error code and
3770     error message
3771     </p>
3772 schoenebeck 940 </blockquote>
3773    
3774 senoner 542
3775 schoenebeck 708 </blockquote><p>
3776 schoenebeck 940
3777 schoenebeck 708 </p>
3778 senoner 542 <p>Example:
3779     </p>
3780 schoenebeck 708 <p>
3781     </p>
3782 senoner 542 <blockquote class="text">
3783     <p>
3784     </p>
3785 schoenebeck 708 </blockquote><p>
3786 schoenebeck 940
3787 schoenebeck 708 </p>
3788 schoenebeck 940 <a name="GET AVAILABLE_ENGINES"></a><br /><hr />
3789 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
3790     <a name="rfc.section.6.4.7"></a><h3>6.4.7.&nbsp;
3791     Getting amount of available engines</h3>
3792 senoner 542
3793     <p>The front-end can ask for the number of available engines by sending the following command:
3794     </p>
3795 schoenebeck 708 <p>
3796     </p>
3797 senoner 542 <blockquote class="text">
3798     <p>GET AVAILABLE_ENGINES
3799     </p>
3800 schoenebeck 708 </blockquote><p>
3801 schoenebeck 940
3802 schoenebeck 708 </p>
3803 senoner 542 <p>Possible Answers:
3804     </p>
3805 schoenebeck 708 <p>
3806     </p>
3807 senoner 542 <blockquote class="text">
3808     <p>LinuxSampler will answer by sending the number of available engines.
3809     </p>
3810 schoenebeck 708 </blockquote><p>
3811 schoenebeck 940
3812 schoenebeck 708 </p>
3813 senoner 542 <p>Example:
3814     </p>
3815 schoenebeck 708 <p>
3816     </p>
3817 senoner 542 <blockquote class="text">
3818     <p>C: "GET AVAILABLE_ENGINES"
3819     </p>
3820     <p>S: "4"
3821     </p>
3822 schoenebeck 708 </blockquote><p>
3823 schoenebeck 940
3824 schoenebeck 708 </p>
3825 schoenebeck 940 <a name="LIST AVAILABLE_ENGINES"></a><br /><hr />
3826 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
3827     <a name="rfc.section.6.4.8"></a><h3>6.4.8.&nbsp;
3828     Getting all available engines</h3>
3829 senoner 542
3830     <p>The front-end can ask for a list of all available engines by sending the following command:
3831     </p>
3832 schoenebeck 708 <p>
3833     </p>
3834 senoner 542 <blockquote class="text">
3835     <p>LIST AVAILABLE_ENGINES
3836     </p>
3837 schoenebeck 708 </blockquote><p>
3838 schoenebeck 940
3839 schoenebeck 708 </p>
3840 senoner 542 <p>Possible Answers:
3841     </p>
3842 schoenebeck 708 <p>
3843     </p>
3844 senoner 542 <blockquote class="text">
3845 schoenebeck 561 <p>LinuxSampler will answer by sending a comma separated list
3846     of the engines' names encapsulated into apostrophes (').
3847     Engine names can consist of lower and upper cases,
3848     digits and underlines ("_" character).
3849 senoner 542 </p>
3850 schoenebeck 708 </blockquote><p>
3851 schoenebeck 940
3852 schoenebeck 708 </p>
3853 senoner 542 <p>Example:
3854     </p>
3855 schoenebeck 708 <p>
3856     </p>
3857 senoner 542 <blockquote class="text">
3858     <p>C: "LIST AVAILABLE_ENGINES"
3859     </p>
3860 schoenebeck 561 <p>S: "'GigEngine','AkaiEngine','DLSEngine','JoesCustomEngine'"
3861 senoner 542 </p>
3862 schoenebeck 708 </blockquote><p>
3863 schoenebeck 940
3864 schoenebeck 708 </p>
3865 schoenebeck 940 <a name="GET ENGINE INFO"></a><br /><hr />
3866 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
3867     <a name="rfc.section.6.4.9"></a><h3>6.4.9.&nbsp;
3868     Getting information about an engine</h3>
3869 senoner 542
3870     <p>The front-end can ask for information about a specific engine by
3871     sending the following command:
3872     </p>
3873 schoenebeck 708 <p>
3874     </p>
3875 senoner 542 <blockquote class="text">
3876     <p>GET ENGINE INFO &lt;engine-name&gt;
3877     </p>
3878 schoenebeck 708 </blockquote><p>
3879 schoenebeck 940
3880 schoenebeck 708 </p>
3881 senoner 542 <p>Where &lt;engine-name&gt; is an engine name as obtained by the
3882 schoenebeck 974 <a class='info' href='#LIST AVAILABLE_ENGINES'>"LIST AVAILABLE_ENGINES"<span> (</span><span class='info'>Getting all available engines</span><span>)</span></a> command.
3883 senoner 542 </p>
3884     <p>Possible Answers:
3885     </p>
3886 schoenebeck 708 <p>
3887     </p>
3888 senoner 542 <blockquote class="text">
3889     <p>LinuxSampler will answer by sending a &lt;CRLF&gt; separated list.
3890     Each answer line begins with the information category name
3891     followed by a colon and then a space character &lt;SP&gt; and finally
3892     the info character string to that info category. At the moment
3893     the following categories are defined:
3894     </p>
3895 schoenebeck 708 <p>
3896     </p>
3897 senoner 542 <blockquote class="text">
3898     <p>DESCRIPTION -
3899     </p>
3900     <blockquote class="text">
3901     <p>arbitrary description text about the engine
3902 schoenebeck 1400 (note that the character string may contain
3903     <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>)
3904 senoner 542 </p>
3905 schoenebeck 940 </blockquote>
3906    
3907 senoner 542
3908     <p>VERSION -
3909     </p>
3910     <blockquote class="text">
3911     <p>arbitrary character string regarding the engine's version
3912     </p>
3913 schoenebeck 940 </blockquote>
3914    
3915 senoner 542
3916 schoenebeck 940 </blockquote>
3917    
3918 senoner 542
3919 schoenebeck 708 </blockquote><p>
3920 schoenebeck 940
3921 schoenebeck 708 </p>
3922 senoner 542 <p>The mentioned fields above don't have to be in particular order.
3923     </p>
3924     <p>Example:
3925     </p>
3926 schoenebeck 708 <p>
3927     </p>
3928 senoner 542 <blockquote class="text">
3929     <p>C: "GET ENGINE INFO JoesCustomEngine"
3930     </p>
3931     <p>S: "DESCRIPTION: this is Joe's custom sampler engine"
3932     </p>
3933     <p>&nbsp;&nbsp;&nbsp;"VERSION: testing-1.0"
3934     </p>
3935     <p>&nbsp;&nbsp;&nbsp;"."
3936     </p>
3937 schoenebeck 708 </blockquote><p>
3938 schoenebeck 940
3939 schoenebeck 708 </p>
3940 schoenebeck 940 <a name="GET CHANNEL INFO"></a><br /><hr />
3941 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
3942     <a name="rfc.section.6.4.10"></a><h3>6.4.10.&nbsp;
3943     Getting sampler channel information</h3>
3944 senoner 542
3945     <p>The front-end can ask for the current settings of a sampler channel
3946     by sending the following command:
3947     </p>
3948 schoenebeck 708 <p>
3949     </p>
3950 senoner 542 <blockquote class="text">
3951     <p>GET CHANNEL INFO &lt;sampler-channel&gt;
3952     </p>
3953 schoenebeck 708 </blockquote><p>
3954 schoenebeck 940
3955 schoenebeck 708 </p>
3956 schoenebeck 575 <p>Where &lt;sampler-channel&gt; is the sampler channel number the front-end is interested in
3957 schoenebeck 974 as returned by the <a class='info' href='#ADD CHANNEL'>"ADD CHANNEL"<span> (</span><span class='info'>Adding a new sampler channel</span><span>)</span></a>
3958     or <a class='info' href='#LIST CHANNELS'>"LIST CHANNELS"<span> (</span><span class='info'>Getting all created sampler channel list</span><span>)</span></a> command.
3959 senoner 542 </p>
3960     <p>Possible Answers:
3961     </p>
3962 schoenebeck 708 <p>
3963     </p>
3964 senoner 542 <blockquote class="text">
3965     <p>LinuxSampler will answer by sending a &lt;CRLF&gt; separated list.
3966     Each answer line begins with the settings category name
3967     followed by a colon and then a space character &lt;SP&gt; and finally
3968     the info character string to that setting category. At the
3969     moment the following categories are defined:
3970     </p>
3971 schoenebeck 708 <p>
3972     </p>
3973 senoner 542 <blockquote class="text">
3974     <p>ENGINE_NAME -
3975     </p>
3976     <blockquote class="text">
3977 schoenebeck 575 <p>name of the engine that is associated with the sampler
3978     channel, "NONE" if there's no engine associated yet for
3979 senoner 542 this sampler channel
3980     </p>
3981 schoenebeck 940 </blockquote>
3982    
3983 senoner 542
3984     <p>AUDIO_OUTPUT_DEVICE -
3985     </p>
3986     <blockquote class="text">
3987     <p>numerical ID of the audio output device which is
3988     currently connected to this sampler channel to output
3989     the audio signal, "NONE" if there's no device
3990     connected to this sampler channel
3991     </p>
3992 schoenebeck 940 </blockquote>
3993    
3994 senoner 542
3995     <p>AUDIO_OUTPUT_CHANNELS -
3996     </p>
3997     <blockquote class="text">
3998     <p>number of output channels the sampler channel offers
3999     (dependent to used sampler engine and loaded instrument)
4000     </p>
4001 schoenebeck 940 </blockquote>
4002    
4003 senoner 542
4004     <p>AUDIO_OUTPUT_ROUTING -
4005     </p>
4006     <blockquote class="text">
4007     <p>comma separated list which reflects to which audio
4008     channel of the selected audio output device each
4009     sampler output channel is routed to, e.g. "0,3" would
4010     mean the engine's output channel 0 is routed to channel
4011     0 of the audio output device and the engine's output
4012     channel 1 is routed to the channel 3 of the audio
4013     output device
4014     </p>
4015 schoenebeck 940 </blockquote>
4016    
4017 senoner 542
4018     <p>INSTRUMENT_FILE -
4019     </p>
4020     <blockquote class="text">
4021     <p>the file name of the loaded instrument, "NONE" if
4022     there's no instrument yet loaded for this sampler
4023 schoenebeck 1400 channel (note: since LSCP 1.2 this path may contain
4024     <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>)
4025 senoner 542 </p>
4026 schoenebeck 940 </blockquote>
4027    
4028 senoner 542
4029     <p>INSTRUMENT_NR -
4030     </p>
4031     <blockquote class="text">
4032     <p>the instrument index number of the loaded instrument
4033     </p>
4034 schoenebeck 940 </blockquote>
4035    
4036 senoner 542
4037     <p>INSTRUMENT_NAME -
4038     </p>
4039     <blockquote class="text">
4040     <p>the instrument name of the loaded instrument
4041 schoenebeck 1400 (note: since LSCP 1.2 this character string may contain
4042     <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>)
4043 senoner 542 </p>
4044 schoenebeck 940 </blockquote>
4045    
4046 senoner 542
4047     <p>INSTRUMENT_STATUS -
4048     </p>
4049     <blockquote class="text">
4050     <p>integer values 0 to 100 indicating loading progress percentage for the instrument. Negative
4051     value indicates a loading exception. Value of 100 indicates that the instrument is fully
4052     loaded.
4053     </p>
4054 schoenebeck 940 </blockquote>
4055    
4056 senoner 542
4057     <p>MIDI_INPUT_DEVICE -
4058     </p>
4059     <blockquote class="text">
4060     <p>numerical ID of the MIDI input device which is
4061     currently connected to this sampler channel to deliver
4062     MIDI input commands, "NONE" if there's no device
4063     connected to this sampler channel
4064     </p>
4065 schoenebeck 940 </blockquote>
4066    
4067 senoner 542
4068     <p>MIDI_INPUT_PORT -
4069     </p>
4070     <blockquote class="text">
4071     <p>port number of the MIDI input device
4072     </p>
4073 schoenebeck 940 </blockquote>
4074    
4075 senoner 542
4076     <p>MIDI_INPUT_CHANNEL -
4077     </p>
4078     <blockquote class="text">
4079     <p>the MIDI input channel number this sampler channel
4080     should listen to or "ALL" to listen on all MIDI channels
4081     </p>
4082 schoenebeck 940 </blockquote>
4083    
4084 senoner 542
4085     <p>VOLUME -
4086     </p>
4087     <blockquote class="text">
4088     <p>optionally dotted number for the channel volume factor
4089 schoenebeck 1028 (where a value &lt; 1.0 means attenuation and a value >
4090 senoner 542 1.0 means amplification)
4091     </p>
4092 schoenebeck 940 </blockquote>
4093    
4094 senoner 542
4095 schoenebeck 708 <p>MUTE -
4096     </p>
4097     <blockquote class="text">
4098     <p>Determines whether the channel is muted, "true" if the
4099     channel is muted, "false" if the channel is not muted, and
4100     "MUTED_BY_SOLO" if the channel is muted because of the
4101     presence of a solo channel and will be unmuted when
4102     there are no solo channels left
4103     </p>
4104 schoenebeck 940 </blockquote>
4105    
4106 senoner 542
4107 schoenebeck 708 <p>SOLO -
4108     </p>
4109     <blockquote class="text">
4110     <p>Determines whether this is a solo channel, "true" if
4111     the channel is a solo channel; "false" otherwise
4112     </p>
4113 schoenebeck 940 </blockquote>
4114    
4115 senoner 542
4116 schoenebeck 974 <p>MIDI_INSTRUMENT_MAP -
4117     </p>
4118     <blockquote class="text">
4119     <p>Determines to which MIDI instrument map this sampler
4120     channel is assigned to. Read chapter
4121     <a class='info' href='#SET CHANNEL MIDI_INSTRUMENT_MAP'>"SET CHANNEL MIDI_INSTRUMENT_MAP"<span> (</span><span class='info'>Assigning a MIDI instrument map to a sampler channel</span><span>)</span></a>
4122     for a list of possible values.
4123     </p>
4124 schoenebeck 940 </blockquote>
4125 schoenebeck 974
4126    
4127     </blockquote>
4128 schoenebeck 940
4129 schoenebeck 708
4130     </blockquote><p>
4131 schoenebeck 940
4132 schoenebeck 708 </p>
4133 senoner 542 <p>The mentioned fields above don't have to be in particular order.
4134     </p>
4135     <p>Example:
4136     </p>
4137 schoenebeck 708 <p>
4138     </p>
4139 senoner 542 <blockquote class="text">
4140     <p>C: "GET CHANNEL INFO 34"
4141     </p>
4142     <p>S: "ENGINE_NAME: GigEngine"
4143     </p>
4144     <p>&nbsp;&nbsp;&nbsp;"VOLUME: 1.0"
4145     </p>
4146     <p>&nbsp;&nbsp;&nbsp;"AUDIO_OUTPUT_DEVICE: 0"
4147     </p>
4148     <p>&nbsp;&nbsp;&nbsp;"AUDIO_OUTPUT_CHANNELS: 2"
4149     </p>
4150     <p>&nbsp;&nbsp;&nbsp;"AUDIO_OUTPUT_ROUTING: 0,1"
4151     </p>
4152     <p>&nbsp;&nbsp;&nbsp;"INSTRUMENT_FILE: /home/joe/FazioliPiano.gig"
4153     </p>
4154     <p>&nbsp;&nbsp;&nbsp;"INSTRUMENT_NR: 0"
4155     </p>
4156     <p>&nbsp;&nbsp;&nbsp;"INSTRUMENT_NAME: Fazioli Piano"
4157     </p>
4158     <p>&nbsp;&nbsp;&nbsp;"INSTRUMENT_STATUS: 100"
4159     </p>
4160     <p>&nbsp;&nbsp;&nbsp;"MIDI_INPUT_DEVICE: 0"
4161     </p>
4162     <p>&nbsp;&nbsp;&nbsp;"MIDI_INPUT_PORT: 0"
4163     </p>
4164     <p>&nbsp;&nbsp;&nbsp;"MIDI_INPUT_CHANNEL: 5"
4165     </p>
4166 schoenebeck 974 <p>&nbsp;&nbsp;&nbsp;"VOLUME: 1.0"
4167     </p>
4168     <p>&nbsp;&nbsp;&nbsp;"MUTE: false"
4169     </p>
4170     <p>&nbsp;&nbsp;&nbsp;"SOLO: false"
4171     </p>
4172     <p>&nbsp;&nbsp;&nbsp;"MIDI_INSTRUMENT_MAP: NONE"
4173     </p>
4174 senoner 542 <p>&nbsp;&nbsp;&nbsp;"."
4175     </p>
4176 schoenebeck 708 </blockquote><p>
4177 schoenebeck 940
4178 schoenebeck 708 </p>
4179 schoenebeck 940 <a name="GET CHANNEL VOICE_COUNT"></a><br /><hr />
4180 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
4181     <a name="rfc.section.6.4.11"></a><h3>6.4.11.&nbsp;
4182     Current number of active voices</h3>
4183 senoner 542
4184     <p>The front-end can ask for the current number of active voices on a
4185     sampler channel by sending the following command:
4186     </p>
4187 schoenebeck 708 <p>
4188     </p>
4189 senoner 542 <blockquote class="text">
4190     <p>GET CHANNEL VOICE_COUNT &lt;sampler-channel&gt;
4191     </p>
4192 schoenebeck 708 </blockquote><p>
4193 schoenebeck 940
4194 schoenebeck 708 </p>
4195 schoenebeck 575 <p>Where &lt;sampler-channel&gt; is the sampler channel number the front-end is interested in
4196 schoenebeck 974 as returned by the <a class='info' href='#ADD CHANNEL'>"ADD CHANNEL"<span> (</span><span class='info'>Adding a new sampler channel</span><span>)</span></a>
4197     or <a class='info' href='#LIST CHANNELS'>"LIST CHANNELS"<span> (</span><span class='info'>Getting all created sampler channel list</span><span>)</span></a> command.
4198 senoner 542 </p>
4199     <p>Possible Answers:
4200     </p>
4201 schoenebeck 708 <p>
4202     </p>
4203 senoner 542 <blockquote class="text">
4204     <p>LinuxSampler will answer by returning the number of active
4205     voices on that channel.
4206     </p>
4207 schoenebeck 708 </blockquote><p>
4208 schoenebeck 940
4209 schoenebeck 708 </p>
4210 senoner 542 <p>Example:
4211     </p>
4212 schoenebeck 708 <p>
4213     </p>
4214 senoner 542 <blockquote class="text">
4215     <p>
4216     </p>
4217 schoenebeck 708 </blockquote><p>
4218 schoenebeck 940
4219 schoenebeck 708 </p>
4220 schoenebeck 940 <a name="GET CHANNEL STREAM_COUNT"></a><br /><hr />
4221 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
4222     <a name="rfc.section.6.4.12"></a><h3>6.4.12.&nbsp;
4223     Current number of active disk streams</h3>
4224 senoner 542
4225     <p>The front-end can ask for the current number of active disk streams
4226     on a sampler channel by sending the following command:
4227     </p>
4228 schoenebeck 708 <p>
4229     </p>
4230 senoner 542 <blockquote class="text">
4231     <p>GET CHANNEL STREAM_COUNT &lt;sampler-channel&gt;
4232     </p>
4233 schoenebeck 708 </blockquote><p>
4234 schoenebeck 940
4235 schoenebeck 708 </p>
4236 schoenebeck 575 <p>Where &lt;sampler-channel&gt; is the sampler channel number the front-end is interested in
4237 schoenebeck 974 as returned by the <a class='info' href='#ADD CHANNEL'>"ADD CHANNEL"<span> (</span><span class='info'>Adding a new sampler channel</span><span>)</span></a>
4238     or <a class='info' href='#LIST CHANNELS'>"LIST CHANNELS"<span> (</span><span class='info'>Getting all created sampler channel list</span><span>)</span></a> command.
4239 senoner 542 </p>
4240     <p>Possible Answers:
4241     </p>
4242 schoenebeck 708 <p>
4243     </p>
4244 senoner 542 <blockquote class="text">
4245     <p>LinuxSampler will answer by returning the number of active
4246     disk streams on that channel in case the engine supports disk
4247     streaming, if the engine doesn't support disk streaming it will
4248     return "NA" for not available.
4249     </p>
4250 schoenebeck 708 </blockquote><p>
4251 schoenebeck 940
4252 schoenebeck 708 </p>
4253 senoner 542 <p>Example:
4254     </p>
4255 schoenebeck 708 <p>
4256     </p>
4257 senoner 542 <blockquote class="text">
4258     <p>
4259     </p>
4260 schoenebeck 708 </blockquote><p>
4261 schoenebeck 940
4262 schoenebeck 708 </p>
4263 schoenebeck 940 <a name="GET CHANNEL BUFFER_FILL"></a><br /><hr />
4264 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
4265     <a name="rfc.section.6.4.13"></a><h3>6.4.13.&nbsp;
4266     Current fill state of disk stream buffers</h3>
4267 senoner 542
4268     <p>The front-end can ask for the current fill state of all disk streams
4269     on a sampler channel by sending the following command:
4270     </p>
4271 schoenebeck 708 <p>
4272     </p>
4273 senoner 542 <blockquote class="text">
4274     <p>GET CHANNEL BUFFER_FILL BYTES &lt;sampler-channel&gt;
4275     </p>
4276 schoenebeck 708 </blockquote><p>
4277 schoenebeck 940
4278 schoenebeck 708 </p>
4279 senoner 542 <p>to get the fill state in bytes or
4280     </p>
4281 schoenebeck 708 <p>
4282     </p>
4283 senoner 542 <blockquote class="text">
4284     <p>GET CHANNEL BUFFER_FILL PERCENTAGE &lt;sampler-channel&gt;
4285     </p>
4286 schoenebeck 708 </blockquote><p>
4287 schoenebeck 940
4288 schoenebeck 708 </p>
4289 senoner 542 <p>to get the fill state in percent, where &lt;sampler-channel&gt; is the
4290 schoenebeck 575 sampler channel number the front-end is interested in
4291 schoenebeck 974 as returned by the <a class='info' href='#ADD CHANNEL'>"ADD CHANNEL"<span> (</span><span class='info'>Adding a new sampler channel</span><span>)</span></a>
4292     or <a class='info' href='#LIST CHANNELS'>"LIST CHANNELS"<span> (</span><span class='info'>Getting all created sampler channel list</span><span>)</span></a> command.
4293 senoner 542 </p>
4294     <p>Possible Answers:
4295     </p>
4296 schoenebeck 708 <p>
4297     </p>
4298 senoner 542 <blockquote class="text">
4299     <p>LinuxSampler will either answer by returning a comma separated
4300     string with the fill state of all disk stream buffers on that
4301     channel or an empty line if there are no active disk streams or
4302     "NA" for *not available* in case the engine which is deployed
4303     doesn't support disk streaming. Each entry in the answer list
4304     will begin with the stream's ID in brackets followed by the
4305     numerical representation of the fill size (either in bytes or
4306     percentage). Note: due to efficiency reasons the fill states in
4307     the response are not in particular order, thus the front-end has
4308     to sort them by itself if necessary.
4309     </p>
4310 schoenebeck 708 </blockquote><p>
4311 schoenebeck 940
4312 schoenebeck 708 </p>
4313 senoner 542 <p>Examples:
4314     </p>
4315 schoenebeck 708 <p>
4316     </p>
4317 senoner 542 <blockquote class="text">
4318     <p>C: "GET CHANNEL BUFFER_FILL BYTES 4"
4319     </p>
4320     <p>S: "[115]420500,[116]510300,[75]110000,[120]230700"
4321     </p>
4322 schoenebeck 708 </blockquote><p>
4323    
4324     </p>
4325 senoner 542 <blockquote class="text">
4326 schoenebeck 708 <p>C: "GET CHANNEL BUFFER_FILL PERCENTAGE 4"
4327 senoner 542 </p>
4328     <p>S: "[115]90%,[116]98%,[75]40%,[120]62%"
4329     </p>
4330 schoenebeck 708 </blockquote><p>
4331    
4332     </p>
4333 senoner 542 <blockquote class="text">
4334 schoenebeck 708 <p>C: "GET CHANNEL BUFFER_FILL PERCENTAGE 4"
4335 senoner 542 </p>
4336     <p>S: ""
4337     </p>
4338 schoenebeck 708 </blockquote><p>
4339 schoenebeck 940
4340 schoenebeck 708 </p>
4341 schoenebeck 940 <a name="SET CHANNEL AUDIO_OUTPUT_DEVICE"></a><br /><hr />
4342 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
4343     <a name="rfc.section.6.4.14"></a><h3>6.4.14.&nbsp;
4344     Setting audio output device</h3>
4345 senoner 542
4346     <p>The front-end can set the audio output device on a specific sampler
4347     channel by sending the following command:
4348     </p>
4349 schoenebeck 708 <p>
4350     </p>
4351 senoner 542 <blockquote class="text">
4352     <p>SET CHANNEL AUDIO_OUTPUT_DEVICE &lt;sampler-channel&gt; &lt;audio-device-id&gt;
4353     </p>
4354 schoenebeck 708 </blockquote><p>
4355 schoenebeck 940
4356 schoenebeck 708 </p>
4357 schoenebeck 575 <p>Where &lt;sampler-channel&gt; is the respective sampler channel
4358 schoenebeck 974 number as returned by the <a class='info' href='#ADD CHANNEL'>"ADD CHANNEL"<span> (</span><span class='info'>Adding a new sampler channel</span><span>)</span></a>
4359     or <a class='info' href='#LIST CHANNELS'>"LIST CHANNELS"<span> (</span><span class='info'>Getting all created sampler channel list</span><span>)</span></a> command and
4360 schoenebeck 575 &lt;audio-device-id&gt; is the numerical ID of the audio output device as given by the
4361 schoenebeck 974 <a class='info' href='#CREATE AUDIO_OUTPUT_DEVICE'>"CREATE AUDIO_OUTPUT_DEVICE"<span> (</span><span class='info'>Creating an audio output device</span><span>)</span></a>
4362     or <a class='info' href='#LIST AUDIO_OUTPUT_DEVICES'>"LIST AUDIO_OUTPUT_DEVICES"<span> (</span><span class='info'>Getting all created audio output device list</span><span>)</span></a>
4363 schoenebeck 575 command.
4364 senoner 542 </p>
4365     <p>Possible Answers:
4366     </p>
4367 schoenebeck 708 <p>
4368     </p>
4369 senoner 542 <blockquote class="text">
4370     <p>"OK" -
4371     </p>
4372     <blockquote class="text">
4373     <p>on success
4374     </p>
4375 schoenebeck 940 </blockquote>
4376    
4377 senoner 542
4378     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
4379     </p>
4380     <blockquote class="text">
4381     <p>if audio output device was set, but there are noteworthy
4382     issue(s) related, providing an appropriate warning code and
4383     warning message
4384     </p>
4385 schoenebeck 940 </blockquote>
4386    
4387 senoner 542
4388     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
4389     </p>
4390     <blockquote class="text">
4391     <p>in case it failed, providing an appropriate error code and error message
4392     </p>
4393 schoenebeck 940 </blockquote>
4394    
4395 senoner 542
4396 schoenebeck 708 </blockquote><p>
4397 schoenebeck 940
4398 schoenebeck 708 </p>
4399 senoner 542 <p>Examples:
4400     </p>
4401 schoenebeck 708 <p>
4402     </p>
4403 senoner 542 <blockquote class="text">
4404     <p>
4405     </p>
4406 schoenebeck 708 </blockquote><p>
4407 schoenebeck 940
4408 schoenebeck 708 </p>
4409 schoenebeck 974 <a name="SET CHANNEL AUDIO_OUTPUT_TYPE"></a><br /><hr />
4410     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
4411     <a name="rfc.section.6.4.15"></a><h3>6.4.15.&nbsp;
4412     Setting audio output type</h3>
4413 senoner 542
4414     <p>DEPRECATED: THIS COMMAND WILL DISAPPEAR SOON!
4415     </p>
4416     <p>The front-end can alter the audio output type on a specific sampler
4417     channel by sending the following command:
4418     </p>
4419 schoenebeck 708 <p>
4420     </p>
4421 senoner 542 <blockquote class="text">
4422     <p>SET CHANNEL AUDIO_OUTPUT_TYPE &lt;sampler-channel&gt; &lt;audio-output-type&gt;
4423     </p>
4424 schoenebeck 708 </blockquote><p>
4425 schoenebeck 940
4426 schoenebeck 708 </p>
4427 senoner 542 <p>Where &lt;audio-output-type&gt; is currently either "ALSA" or "JACK" and
4428     &lt;sampler-channel&gt; is the respective sampler channel number.
4429     </p>
4430     <p>Possible Answers:
4431     </p>
4432 schoenebeck 708 <p>
4433     </p>
4434 senoner 542 <blockquote class="text">
4435     <p>"OK" -
4436     </p>
4437     <blockquote class="text">
4438     <p>on success
4439     </p>
4440 schoenebeck 940 </blockquote>
4441    
4442 senoner 542
4443     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
4444     </p>
4445     <blockquote class="text">
4446     <p>if audio output type was set, but there are noteworthy
4447     issue(s) related, providing an appropriate warning code and
4448     warning message
4449     </p>
4450 schoenebeck 940 </blockquote>
4451    
4452 senoner 542
4453     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
4454     </p>
4455     <blockquote class="text">
4456     <p>in case it failed, providing an appropriate error code and error message
4457     </p>
4458 schoenebeck 940 </blockquote>
4459    
4460 senoner 542
4461 schoenebeck 708 </blockquote><p>
4462 schoenebeck 940
4463 schoenebeck 708 </p>
4464 senoner 542 <p>Examples:
4465     </p>
4466 schoenebeck 708 <p>
4467     </p>
4468 senoner 542 <blockquote class="text">
4469     <p>
4470     </p>
4471 schoenebeck 708 </blockquote><p>
4472 schoenebeck 940
4473 schoenebeck 708 </p>
4474 schoenebeck 940 <a name="SET CHANNEL AUDIO_OUTPUT_CHANNEL"></a><br /><hr />
4475 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
4476     <a name="rfc.section.6.4.16"></a><h3>6.4.16.&nbsp;
4477     Setting audio output channel</h3>
4478 senoner 542
4479     <p>The front-end can alter the audio output channel on a specific
4480     sampler channel by sending the following command:
4481     </p>
4482 schoenebeck 708 <p>
4483     </p>
4484 senoner 542 <blockquote class="text">
4485     <p>SET CHANNEL AUDIO_OUTPUT_CHANNEL &lt;sampler-chan&gt; &lt;audio-out&gt; &lt;audio-in&gt;
4486     </p>
4487 schoenebeck 708 </blockquote><p>
4488 schoenebeck 940
4489 schoenebeck 708 </p>
4490 schoenebeck 575 <p>Where &lt;sampler-chan&gt; is the sampler channel number
4491 schoenebeck 974 as returned by the <a class='info' href='#ADD CHANNEL'>"ADD CHANNEL"<span> (</span><span class='info'>Adding a new sampler channel</span><span>)</span></a>
4492     or <a class='info' href='#LIST CHANNELS'>"LIST CHANNELS"<span> (</span><span class='info'>Getting all created sampler channel list</span><span>)</span></a> command, &lt;audio-out&gt; is the
4493 senoner 542 numerical ID of the sampler channel's audio output channel which should be
4494     rerouted and &lt;audio-in&gt; is the numerical ID of the audio channel of the selected audio
4495     output device where &lt;audio-out&gt; should be routed to.
4496     </p>
4497     <p>Possible Answers:
4498     </p>
4499 schoenebeck 708 <p>
4500     </p>
4501 senoner 542 <blockquote class="text">
4502     <p>"OK" -
4503     </p>
4504     <blockquote class="text">
4505     <p>on success
4506     </p>
4507 schoenebeck 940 </blockquote>
4508    
4509 senoner 542
4510     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
4511     </p>
4512     <blockquote class="text">
4513     <p>if audio output channel was set, but there are noteworthy
4514     issue(s) related, providing an appropriate warning code and
4515     warning message
4516     </p>
4517 schoenebeck 940 </blockquote>
4518    
4519 senoner 542
4520     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
4521     </p>
4522     <blockquote class="text">
4523     <p>in case it failed, providing an appropriate error code and error message
4524     </p>
4525 schoenebeck 940 </blockquote>
4526    
4527 senoner 542
4528 schoenebeck 708 </blockquote><p>
4529 schoenebeck 940
4530 schoenebeck 708 </p>
4531 senoner 542 <p>Examples:
4532     </p>
4533 schoenebeck 708 <p>
4534     </p>
4535 senoner 542 <blockquote class="text">
4536     <p>
4537     </p>
4538 schoenebeck 708 </blockquote><p>
4539 schoenebeck 940
4540 schoenebeck 708 </p>
4541 schoenebeck 940 <a name="SET CHANNEL MIDI_INPUT_DEVICE"></a><br /><hr />
4542 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
4543     <a name="rfc.section.6.4.17"></a><h3>6.4.17.&nbsp;
4544     Setting MIDI input device</h3>
4545 senoner 542
4546     <p>The front-end can set the MIDI input device on a specific sampler
4547     channel by sending the following command:
4548     </p>
4549 schoenebeck 708 <p>
4550     </p>
4551 senoner 542 <blockquote class="text">
4552     <p>SET CHANNEL MIDI_INPUT_DEVICE &lt;sampler-channel&gt; &lt;midi-device-id&gt;
4553     </p>
4554 schoenebeck 708 </blockquote><p>
4555 schoenebeck 940
4556 schoenebeck 708 </p>
4557 schoenebeck 575 <p>Where &lt;sampler-channel&gt; is the sampler channel number
4558 schoenebeck 974 as returned by the <a class='info' href='#ADD CHANNEL'>"ADD CHANNEL"<span> (</span><span class='info'>Adding a new sampler channel</span><span>)</span></a>
4559     or <a class='info' href='#LIST CHANNELS'>"LIST CHANNELS"<span> (</span><span class='info'>Getting all created sampler channel list</span><span>)</span></a> command
4560 schoenebeck 575 and &lt;midi-device-id&gt; is the numerical ID of the MIDI input device as returned by the
4561 schoenebeck 974 <a class='info' href='#CREATE MIDI_INPUT_DEVICE'>"CREATE MIDI_INPUT_DEVICE"<span> (</span><span class='info'>Creating a MIDI input device</span><span>)</span></a>
4562     or <a class='info' href='#LIST MIDI_INPUT_DEVICES'>"LIST MIDI_INPUT_DEVICES"<span> (</span><span class='info'>Getting all created MIDI input device list</span><span>)</span></a> command.
4563 senoner 542 </p>
4564     <p>Possible Answers:
4565     </p>
4566 schoenebeck 708 <p>
4567     </p>
4568 senoner 542 <blockquote class="text">
4569     <p>"OK" -
4570     </p>
4571     <blockquote class="text">
4572     <p>on success
4573     </p>
4574 schoenebeck 940 </blockquote>
4575    
4576 senoner 542
4577     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
4578     </p>
4579     <blockquote class="text">
4580     <p>if MIDI input device was set, but there are noteworthy
4581     issue(s) related, providing an appropriate warning code and
4582     warning message
4583     </p>
4584 schoenebeck 940 </blockquote>
4585    
4586 senoner 542
4587     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
4588     </p>
4589     <blockquote class="text">
4590     <p>in case it failed, providing an appropriate error code and error message
4591     </p>
4592 schoenebeck 940 </blockquote>
4593    
4594 senoner 542
4595 schoenebeck 708 </blockquote><p>
4596 schoenebeck 940
4597 schoenebeck 708 </p>
4598 senoner 542 <p>Examples:
4599     </p>
4600 schoenebeck 708 <p>
4601     </p>
4602 senoner 542 <blockquote class="text">
4603     <p>
4604     </p>
4605 schoenebeck 708 </blockquote><p>
4606 schoenebeck 940
4607 schoenebeck 708 </p>
4608 schoenebeck 940 <a name="SET CHANNEL MIDI_INPUT_TYPE"></a><br /><hr />
4609 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
4610     <a name="rfc.section.6.4.18"></a><h3>6.4.18.&nbsp;
4611     Setting MIDI input type</h3>
4612 senoner 542
4613     <p>DEPRECATED: THIS COMMAND WILL DISAPPEAR SOON!
4614     </p>
4615     <p>The front-end can alter the MIDI input type on a specific sampler
4616     channel by sending the following command:
4617     </p>
4618 schoenebeck 708 <p>
4619     </p>
4620 senoner 542 <blockquote class="text">
4621     <p>SET CHANNEL MIDI_INPUT_TYPE &lt;sampler-channel&gt; &lt;midi-input-type&gt;
4622     </p>
4623 schoenebeck 708 </blockquote><p>
4624 schoenebeck 940
4625 schoenebeck 708 </p>
4626 senoner 542 <p>Where &lt;midi-input-type&gt; is currently only "ALSA" and
4627     &lt;sampler-channel&gt; is the respective sampler channel number.
4628     </p>
4629     <p>Possible Answers:
4630     </p>
4631 schoenebeck 708 <p>
4632     </p>
4633 senoner 542 <blockquote class="text">
4634     <p>"OK" -
4635     </p>
4636     <blockquote class="text">
4637     <p>on success
4638     </p>
4639 schoenebeck 940 </blockquote>
4640    
4641 senoner 542
4642     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
4643     </p>
4644     <blockquote class="text">
4645     <p>if MIDI input type was set, but there are noteworthy
4646     issue(s) related, providing an appropriate warning code and
4647     warning message
4648     </p>
4649 schoenebeck 940 </blockquote>
4650    
4651 senoner 542
4652     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
4653     </p>
4654     <blockquote class="text">
4655     <p>in case it failed, providing an appropriate error code and error message
4656     </p>
4657 schoenebeck 940 </blockquote>
4658    
4659 senoner 542
4660 schoenebeck 708 </blockquote><p>
4661 schoenebeck 940
4662 schoenebeck 708 </p>
4663 senoner 542 <p>Examples:
4664     </p>
4665 schoenebeck 708 <p>
4666     </p>
4667 senoner 542 <blockquote class="text">
4668     <p>
4669     </p>
4670 schoenebeck 708 </blockquote><p>
4671 schoenebeck 940
4672 schoenebeck 708 </p>
4673 schoenebeck 940 <a name="SET CHANNEL MIDI_INPUT_PORT"></a><br /><hr />
4674 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
4675     <a name="rfc.section.6.4.19"></a><h3>6.4.19.&nbsp;
4676     Setting MIDI input port</h3>
4677 senoner 542
4678     <p>The front-end can alter the MIDI input port on a specific sampler
4679     channel by sending the following command:
4680     </p>
4681 schoenebeck 708 <p>
4682     </p>
4683 senoner 542 <blockquote class="text">
4684     <p>SET CHANNEL MIDI_INPUT_PORT &lt;sampler-channel&gt; &lt;midi-input-port&gt;
4685     </p>
4686 schoenebeck 708 </blockquote><p>
4687 schoenebeck 940
4688 schoenebeck 708 </p>
4689 senoner 542 <p>Where &lt;midi-input-port&gt; is a MIDI input port number of the
4690     MIDI input device connected to the sampler channel given by
4691     &lt;sampler-channel&gt;.
4692     </p>
4693     <p>Possible Answers:
4694     </p>
4695 schoenebeck 708 <p>
4696     </p>
4697 senoner 542 <blockquote class="text">
4698     <p>"OK" -
4699     </p>
4700     <blockquote class="text">
4701     <p>on success
4702     </p>
4703 schoenebeck 940 </blockquote>
4704    
4705 senoner 542
4706     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
4707     </p>
4708     <blockquote class="text">
4709     <p>if MIDI input port was set, but there are noteworthy
4710     issue(s) related, providing an appropriate warning code and
4711     warning message
4712     </p>
4713 schoenebeck 940 </blockquote>
4714    
4715 senoner 542
4716     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
4717     </p>
4718     <blockquote class="text">
4719 schoenebeck 561 <p>in case it failed, providing an appropriate error code and error message
4720 senoner 542 </p>
4721 schoenebeck 940 </blockquote>
4722    
4723 senoner 542
4724 schoenebeck 708 </blockquote><p>
4725 schoenebeck 940
4726 schoenebeck 708 </p>
4727 senoner 542 <p>Examples:
4728     </p>
4729 schoenebeck 708 <p>
4730     </p>
4731 senoner 542 <blockquote class="text">
4732     <p>
4733     </p>
4734 schoenebeck 708 </blockquote><p>
4735 schoenebeck 940
4736 schoenebeck 708 </p>
4737 schoenebeck 940 <a name="SET CHANNEL MIDI_INPUT_CHANNEL"></a><br /><hr />
4738 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
4739     <a name="rfc.section.6.4.20"></a><h3>6.4.20.&nbsp;
4740     Setting MIDI input channel</h3>
4741 senoner 542
4742     <p>The front-end can alter the MIDI channel a sampler channel should
4743     listen to by sending the following command:
4744     </p>
4745 schoenebeck 708 <p>
4746     </p>
4747 senoner 542 <blockquote class="text">
4748     <p>SET CHANNEL MIDI_INPUT_CHANNEL &lt;sampler-channel&gt; &lt;midi-input-chan&gt;
4749     </p>
4750 schoenebeck 708 </blockquote><p>
4751 schoenebeck 940
4752 schoenebeck 708 </p>
4753 senoner 542 <p>Where &lt;midi-input-chan&gt; is the number of the new MIDI input channel where
4754     &lt;sampler-channel&gt; should listen to or "ALL" to listen on all 16 MIDI
4755     channels.
4756     </p>
4757     <p>Possible Answers:
4758     </p>
4759 schoenebeck 708 <p>
4760     </p>
4761 senoner 542 <blockquote class="text">
4762     <p>"OK" -
4763     </p>
4764     <blockquote class="text">
4765     <p>on success
4766     </p>
4767 schoenebeck 940 </blockquote>
4768    
4769 senoner 542
4770     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
4771     </p>
4772     <blockquote class="text">
4773     <p>if MIDI input channel was set, but there are noteworthy
4774     issue(s) related, providing an appropriate warning code and
4775     warning message
4776     </p>
4777 schoenebeck 940 </blockquote>
4778    
4779 senoner 542
4780     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
4781     </p>
4782     <blockquote class="text">
4783     <p>in case it failed, providing an appropriate error code and error message
4784     </p>
4785 schoenebeck 940 </blockquote>
4786    
4787 senoner 542
4788 schoenebeck 708 </blockquote><p>
4789 schoenebeck 940
4790 schoenebeck 708 </p>
4791 senoner 542 <p>Examples:
4792     </p>
4793 schoenebeck 708 <p>
4794     </p>
4795 senoner 542 <blockquote class="text">
4796     <p>
4797     </p>
4798 schoenebeck 708 </blockquote><p>
4799 schoenebeck 940
4800 schoenebeck 708 </p>
4801 schoenebeck 940 <a name="SET CHANNEL VOLUME"></a><br /><hr />
4802 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
4803     <a name="rfc.section.6.4.21"></a><h3>6.4.21.&nbsp;
4804     Setting channel volume</h3>
4805 senoner 542
4806     <p>The front-end can alter the volume of a sampler channel by sending
4807     the following command:
4808     </p>
4809 schoenebeck 708 <p>
4810     </p>
4811 senoner 542 <blockquote class="text">
4812     <p>SET CHANNEL VOLUME &lt;sampler-channel&gt; &lt;volume&gt;
4813     </p>
4814 schoenebeck 708 </blockquote><p>
4815 schoenebeck 940
4816 schoenebeck 708 </p>
4817 senoner 542 <p>Where &lt;volume&gt; is an optionally dotted positive number (a value
4818     smaller than 1.0 means attenuation, whereas a value greater than
4819     1.0 means amplification) and &lt;sampler-channel&gt; defines the sampler
4820     channel where this volume factor should be set.
4821     </p>
4822     <p>Possible Answers:
4823     </p>
4824 schoenebeck 708 <p>
4825     </p>
4826 senoner 542 <blockquote class="text">
4827     <p>"OK" -
4828     </p>
4829     <blockquote class="text">
4830     <p>on success
4831     </p>
4832 schoenebeck 940 </blockquote>
4833    
4834 senoner 542
4835     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
4836     </p>
4837     <blockquote class="text">
4838     <p>if channel volume was set, but there are noteworthy
4839     issue(s) related, providing an appropriate warning code and
4840     warning message
4841     </p>
4842 schoenebeck 940 </blockquote>
4843    
4844 senoner 542
4845     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
4846     </p>
4847     <blockquote class="text">
4848     <p>in case it failed, providing an appropriate error code and error message
4849     </p>
4850 schoenebeck 940 </blockquote>
4851    
4852 senoner 542
4853 schoenebeck 708 </blockquote><p>
4854 schoenebeck 940
4855 schoenebeck 708 </p>
4856 senoner 542 <p>Examples:
4857     </p>
4858 schoenebeck 708 <p>
4859     </p>
4860 senoner 542 <blockquote class="text">
4861     <p>
4862     </p>
4863 schoenebeck 708 </blockquote><p>
4864 schoenebeck 940
4865 schoenebeck 708 </p>
4866 schoenebeck 940 <a name="SET CHANNEL MUTE"></a><br /><hr />
4867 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
4868     <a name="rfc.section.6.4.22"></a><h3>6.4.22.&nbsp;
4869     Muting a sampler channel</h3>
4870 senoner 542
4871 schoenebeck 708 <p>The front-end can mute/unmute a specific sampler
4872     channel by sending the following command:
4873     </p>
4874     <p>
4875     </p>
4876     <blockquote class="text">
4877     <p>SET CHANNEL MUTE &lt;sampler-channel&gt; &lt;mute&gt;
4878     </p>
4879     </blockquote><p>
4880 schoenebeck 940
4881 schoenebeck 708 </p>
4882     <p>Where &lt;sampler-channel&gt; is the respective sampler channel
4883 schoenebeck 974 number as returned by the <a class='info' href='#ADD CHANNEL'>"ADD CHANNEL"<span> (</span><span class='info'>Adding a new sampler channel</span><span>)</span></a>
4884     or <a class='info' href='#LIST CHANNELS'>"LIST CHANNELS"<span> (</span><span class='info'>Getting all created sampler channel list</span><span>)</span></a> command and
4885 schoenebeck 708 &lt;mute&gt; should be replaced either by "1" to mute the channel or "0"
4886     to unmute the channel.
4887     </p>
4888     <p>Possible Answers:
4889     </p>
4890     <p>
4891     </p>
4892     <blockquote class="text">
4893     <p>"OK" -
4894     </p>
4895     <blockquote class="text">
4896     <p>on success
4897     </p>
4898 schoenebeck 940 </blockquote>
4899    
4900 schoenebeck 708
4901     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
4902     </p>
4903     <blockquote class="text">
4904     <p>if the channel was muted/unmuted, but there are noteworthy
4905     issue(s) related, providing an appropriate warning code and
4906     warning message
4907     </p>
4908 schoenebeck 940 </blockquote>
4909    
4910 schoenebeck 708
4911     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
4912     </p>
4913     <blockquote class="text">
4914     <p>in case it failed, providing an appropriate error code and error message
4915     </p>
4916 schoenebeck 940 </blockquote>
4917    
4918 schoenebeck 708
4919     </blockquote><p>
4920 schoenebeck 940
4921 schoenebeck 708 </p>
4922     <p>Examples:
4923     </p>
4924     <p>
4925     </p>
4926     <blockquote class="text">
4927     <p>
4928     </p>
4929     </blockquote><p>
4930 schoenebeck 940
4931 schoenebeck 708 </p>
4932 schoenebeck 940 <a name="SET CHANNEL SOLO"></a><br /><hr />
4933 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
4934     <a name="rfc.section.6.4.23"></a><h3>6.4.23.&nbsp;
4935     Soloing a sampler channel</h3>
4936 schoenebeck 708
4937     <p>The front-end can solo/unsolo a specific sampler channel
4938     by sending the following command:
4939     </p>
4940     <p>
4941     </p>
4942     <blockquote class="text">
4943     <p>SET CHANNEL SOLO &lt;sampler-channel&gt; &lt;solo&gt;
4944     </p>
4945     </blockquote><p>
4946 schoenebeck 940
4947 schoenebeck 708 </p>
4948     <p>Where &lt;sampler-channel&gt; is the respective sampler channel
4949 schoenebeck 974 number as returned by the <a class='info' href='#ADD CHANNEL'>"ADD CHANNEL"<span> (</span><span class='info'>Adding a new sampler channel</span><span>)</span></a>
4950     or <a class='info' href='#LIST CHANNELS'>"LIST CHANNELS"<span> (</span><span class='info'>Getting all created sampler channel list</span><span>)</span></a> command and
4951 schoenebeck 708 &lt;solo&gt; should be replaced either by "1" to solo the channel or "0"
4952     to unsolo the channel.
4953     </p>
4954     <p>Possible Answers:
4955     </p>
4956     <p>
4957     </p>
4958     <blockquote class="text">
4959     <p>"OK" -
4960     </p>
4961     <blockquote class="text">
4962     <p>on success
4963     </p>
4964 schoenebeck 940 </blockquote>
4965    
4966 schoenebeck 708
4967     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
4968     </p>
4969     <blockquote class="text">
4970     <p>if the channel was soloed/unsoloed, but there are noteworthy
4971     issue(s) related, providing an appropriate warning code and
4972     warning message
4973     </p>
4974 schoenebeck 940 </blockquote>
4975    
4976 schoenebeck 708
4977     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
4978     </p>
4979     <blockquote class="text">
4980     <p>in case it failed, providing an appropriate error code and error message
4981     </p>
4982 schoenebeck 940 </blockquote>
4983    
4984 schoenebeck 708
4985     </blockquote><p>
4986 schoenebeck 940
4987 schoenebeck 708 </p>
4988     <p>Examples:
4989     </p>
4990     <p>
4991     </p>
4992     <blockquote class="text">
4993     <p>
4994     </p>
4995     </blockquote><p>
4996 schoenebeck 940
4997 schoenebeck 708 </p>
4998 schoenebeck 974 <a name="SET CHANNEL MIDI_INSTRUMENT_MAP"></a><br /><hr />
4999     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
5000     <a name="rfc.section.6.4.24"></a><h3>6.4.24.&nbsp;
5001     Assigning a MIDI instrument map to a sampler channel</h3>
5002    
5003     <p>The front-end can assign a MIDI instrument map to a specific sampler channel
5004     by sending the following command:
5005     </p>
5006     <p>
5007     </p>
5008     <blockquote class="text">
5009     <p>SET CHANNEL MIDI_INSTRUMENT_MAP &lt;sampler-channel&gt; &lt;map&gt;
5010     </p>
5011     </blockquote><p>
5012    
5013     </p>
5014     <p>Where &lt;sampler-channel&gt; is the respective sampler channel
5015     number as returned by the <a class='info' href='#ADD CHANNEL'>"ADD CHANNEL"<span> (</span><span class='info'>Adding a new sampler channel</span><span>)</span></a>
5016     or <a class='info' href='#LIST CHANNELS'>"LIST CHANNELS"<span> (</span><span class='info'>Getting all created sampler channel list</span><span>)</span></a> command and
5017     &lt;map&gt; can have the following possibilites:
5018     </p>
5019     <p>
5020     </p>
5021     <blockquote class="text">
5022     <p>"NONE" -
5023     </p>
5024     <blockquote class="text">
5025     <p>This is the default setting. In this case
5026     the sampler channel is not assigned any MIDI
5027     instrument map and thus will ignore all MIDI
5028     program change messages.
5029     </p>
5030     </blockquote>
5031    
5032    
5033     <p>"DEFAULT" -
5034     </p>
5035     <blockquote class="text">
5036     <p>The sampler channel will always use the
5037     default MIDI instrument map to handle MIDI
5038     program change messages.
5039     </p>
5040     </blockquote>
5041    
5042    
5043     <p>numeric ID -
5044     </p>
5045     <blockquote class="text">
5046     <p>You can assign a specific MIDI instrument map
5047     by replacing &lt;map&gt; with the respective numeric
5048     ID of the MIDI instrument map as returned by the
5049     <a class='info' href='#LIST MIDI_INSTRUMENT_MAPS'>"LIST MIDI_INSTRUMENT_MAPS"<span> (</span><span class='info'>Getting all created MIDI instrument maps</span><span>)</span></a>
5050     command. Once that map will be deleted, the sampler
5051     channel would fall back to "NONE".
5052     </p>
5053     </blockquote>
5054    
5055    
5056     </blockquote><p>
5057    
5058     </p>
5059     <p>Read chapter <a class='info' href='#MIDI Instrument Mapping'>"MIDI Instrument Mapping"<span> (</span><span class='info'>MIDI Instrument Mapping</span><span>)</span></a>
5060     for details regarding MIDI instrument mapping.
5061     </p>
5062     <p>Possible Answers:
5063     </p>
5064     <p>
5065     </p>
5066     <blockquote class="text">
5067     <p>"OK" -
5068     </p>
5069     <blockquote class="text">
5070     <p>on success
5071     </p>
5072     </blockquote>
5073    
5074    
5075     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
5076     </p>
5077     <blockquote class="text">
5078     <p>in case it failed, providing an appropriate error code and error message
5079     </p>
5080     </blockquote>
5081    
5082    
5083     </blockquote><p>
5084    
5085     </p>
5086     <p>Examples:
5087     </p>
5088     <p>
5089     </p>
5090     <blockquote class="text">
5091     <p>
5092     </p>
5093     </blockquote><p>
5094    
5095     </p>
5096 schoenebeck 1002 <a name="CREATE FX_SEND"></a><br /><hr />
5097     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
5098     <a name="rfc.section.6.4.25"></a><h3>6.4.25.&nbsp;
5099     Adding an effect send to a sampler channel</h3>
5100    
5101     <p>The front-end can create an additional effect send on a specific sampler channel
5102     by sending the following command:
5103     </p>
5104     <p>
5105     </p>
5106     <blockquote class="text">
5107     <p>CREATE FX_SEND &lt;sampler-channel&gt; &lt;midi-ctrl&gt; [&lt;name&gt;]
5108     </p>
5109     </blockquote><p>
5110    
5111     </p>
5112     <p>Where &lt;sampler-channel&gt; is the respective sampler channel
5113     number as returned by the <a class='info' href='#ADD CHANNEL'>"ADD CHANNEL"<span> (</span><span class='info'>Adding a new sampler channel</span><span>)</span></a>
5114     or <a class='info' href='#LIST CHANNELS'>"LIST CHANNELS"<span> (</span><span class='info'>Getting all created sampler channel list</span><span>)</span></a> command, that is the
5115     sampler channel on which the effect send should be created on, &lt;midi-ctrl&gt;
5116     is a number between 0..127 defining the MIDI controller which can alter the
5117     effect send level and &lt;name&gt; is an optional argument defining a name
5118 schoenebeck 1390 for the effect send entity. The name does not have to be unique, but MUST be
5119     encapsulated into apostrophes and supports escape sequences as described in chapter
5120     "<a class='info' href='#character_set'>Character Set and Escape Sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>".
5121 schoenebeck 1002 </p>
5122     <p>By default, that is as initial routing, the effect send's audio channels
5123     are automatically routed to the last audio channels of the sampler channel's
5124     audio output device, that way you can i.e. first increase the amount of audio
5125     channels on the audio output device for having dedicated effect send output
5126     channels and when "CREATE FX_SEND" is called, those channels will automatically
5127     be picked. You can alter the destination channels however with
5128     <a class='info' href='#SET FX_SEND AUDIO_OUTPUT_CHANNEL'>"SET FX_SEND AUDIO_OUTPUT_CHANNEL"<span> (</span><span class='info'>Altering effect send's audio routing</span><span>)</span></a>.
5129    
5130     </p>
5131     <p>Note: Create effect sends on a sampler channel only when needed, because having effect
5132     sends on a sampler channel will decrease runtime performance, because for implementing channel
5133     effect sends, separate (sampler channel local) audio buffers are needed to render and mix
5134     the voices and route the audio signal afterwards to the master outputs and effect send
5135     outputs (along with their respective effect send levels). A sampler channel without effect
5136     sends however can mix its voices directly into the audio output devices's audio buffers
5137     and is thus faster.
5138    
5139     </p>
5140     <p>Possible Answers:
5141     </p>
5142     <p>
5143     </p>
5144     <blockquote class="text">
5145     <p>"OK[&lt;fx-send-id&gt;]" -
5146     </p>
5147     <blockquote class="text">
5148     <p>in case a new effect send could be added to the
5149     sampler channel, where &lt;fx-send-id&gt; reflects the
5150     unique ID of the newly created effect send entity
5151     </p>
5152     </blockquote>
5153    
5154    
5155     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
5156     </p>
5157     <blockquote class="text">
5158     <p>when a new effect send could not be added, i.e.
5159     due to invalid parameters
5160     </p>
5161     </blockquote>
5162    
5163    
5164     </blockquote><p>
5165    
5166     </p>
5167     <p>Examples:
5168     </p>
5169     <p>
5170     </p>
5171     <blockquote class="text">
5172     <p>C: "CREATE FX_SEND 0 91 'Reverb Send'"
5173     </p>
5174     <p>S: "OK[0]"
5175     </p>
5176     </blockquote><p>
5177    
5178     </p>
5179     <p>
5180     </p>
5181     <blockquote class="text">
5182     <p>C: "CREATE FX_SEND 0 93"
5183     </p>
5184     <p>S: "OK[1]"
5185     </p>
5186     </blockquote><p>
5187    
5188     </p>
5189     <a name="DESTROY FX_SEND"></a><br /><hr />
5190     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
5191     <a name="rfc.section.6.4.26"></a><h3>6.4.26.&nbsp;
5192     Removing an effect send from a sampler channel</h3>
5193    
5194     <p>The front-end can remove an existing effect send on a specific sampler channel
5195     by sending the following command:
5196     </p>
5197     <p>
5198     </p>
5199     <blockquote class="text">
5200     <p>DESTROY FX_SEND &lt;sampler-channel&gt; &lt;fx-send-id&gt;
5201     </p>
5202     </blockquote><p>
5203    
5204     </p>
5205     <p>Where &lt;sampler-channel&gt; is the respective sampler channel
5206     number as returned by the <a class='info' href='#ADD CHANNEL'>"ADD CHANNEL"<span> (</span><span class='info'>Adding a new sampler channel</span><span>)</span></a>
5207     or <a class='info' href='#LIST CHANNELS'>"LIST CHANNELS"<span> (</span><span class='info'>Getting all created sampler channel list</span><span>)</span></a> command, that is the
5208     sampler channel from which the effect send should be removed from and
5209     &lt;fx-send-id&gt; is the respective effect send number as returned by the
5210     <a class='info' href='#CREATE FX_SEND'>"CREATE FX_SEND"<span> (</span><span class='info'>Adding an effect send to a sampler channel</span><span>)</span></a>
5211     or <a class='info' href='#LIST FX_SENDS'>"LIST FX_SENDS"<span> (</span><span class='info'>Listing all effect sends on a sampler channel</span><span>)</span></a> command.
5212     </p>
5213     <p>Possible Answers:
5214     </p>
5215     <p>
5216     </p>
5217     <blockquote class="text">
5218     <p>"OK" -
5219     </p>
5220     <blockquote class="text">
5221     <p>on success
5222     </p>
5223     </blockquote>
5224    
5225    
5226     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
5227     </p>
5228     <blockquote class="text">
5229     <p>in case it failed, providing an appropriate error code and
5230     error message
5231     </p>
5232     </blockquote>
5233    
5234    
5235     </blockquote><p>
5236    
5237     </p>
5238     <p>Example:
5239     </p>
5240     <p>
5241     </p>
5242     <blockquote class="text">
5243     <p>C: "DESTROY FX_SEND 0 0"
5244     </p>
5245     <p>S: "OK"
5246     </p>
5247     </blockquote><p>
5248    
5249     </p>
5250     <a name="GET FX_SENDS"></a><br /><hr />
5251     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
5252     <a name="rfc.section.6.4.27"></a><h3>6.4.27.&nbsp;
5253     Getting amount of effect sends on a sampler channel</h3>
5254    
5255     <p>The front-end can ask for the amount of effect sends on a specific sampler channel
5256     by sending the following command:
5257     </p>
5258     <p>
5259     </p>
5260     <blockquote class="text">
5261     <p>GET FX_SENDS &lt;sampler-channel&gt;
5262     </p>
5263     </blockquote><p>
5264    
5265     </p>
5266     <p>Where &lt;sampler-channel&gt; is the respective sampler channel
5267     number as returned by the <a class='info' href='#ADD CHANNEL'>"ADD CHANNEL"<span> (</span><span class='info'>Adding a new sampler channel</span><span>)</span></a>
5268     or <a class='info' href='#LIST CHANNELS'>"LIST CHANNELS"<span> (</span><span class='info'>Getting all created sampler channel list</span><span>)</span></a> command.
5269     </p>
5270     <p>Possible Answers:
5271     </p>
5272     <p>
5273     </p>
5274     <blockquote class="text">
5275     <p>The sampler will answer by returning the number of effect
5276     sends on the given sampler channel.
5277     </p>
5278     </blockquote><p>
5279    
5280     </p>
5281     <p>Example:
5282     </p>
5283     <p>
5284     </p>
5285     <blockquote class="text">
5286     <p>C: "GET FX_SENDS 0"
5287     </p>
5288     <p>S: "2"
5289     </p>
5290     </blockquote><p>
5291    
5292     </p>
5293     <a name="LIST FX_SENDS"></a><br /><hr />
5294     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
5295     <a name="rfc.section.6.4.28"></a><h3>6.4.28.&nbsp;
5296     Listing all effect sends on a sampler channel</h3>
5297    
5298     <p>The front-end can ask for a list of effect sends on a specific sampler channel
5299     by sending the following command:
5300     </p>
5301     <p>
5302     </p>
5303     <blockquote class="text">
5304     <p>LIST FX_SENDS &lt;sampler-channel&gt;
5305     </p>
5306     </blockquote><p>
5307    
5308     </p>
5309     <p>Where &lt;sampler-channel&gt; is the respective sampler channel
5310     number as returned by the <a class='info' href='#ADD CHANNEL'>"ADD CHANNEL"<span> (</span><span class='info'>Adding a new sampler channel</span><span>)</span></a>
5311     or <a class='info' href='#LIST CHANNELS'>"LIST CHANNELS"<span> (</span><span class='info'>Getting all created sampler channel list</span><span>)</span></a> command.
5312     </p>
5313     <p>Possible Answers:
5314     </p>
5315     <p>
5316     </p>
5317     <blockquote class="text">
5318     <p>The sampler will answer by returning a comma separated list
5319     with all effect sends' numerical IDs on the given sampler
5320     channel.
5321     </p>
5322     </blockquote><p>
5323    
5324     </p>
5325     <p>Examples:
5326     </p>
5327     <p>
5328     </p>
5329     <blockquote class="text">
5330     <p>C: "LIST FX_SENDS 0"
5331     </p>
5332     <p>S: "0,1"
5333     </p>
5334     </blockquote><p>
5335    
5336     </p>
5337     <p>
5338     </p>
5339     <blockquote class="text">
5340     <p>C: "LIST FX_SENDS 1"
5341     </p>
5342     <p>S: ""
5343     </p>
5344     </blockquote><p>
5345    
5346     </p>
5347     <a name="GET FX_SEND INFO"></a><br /><hr />
5348     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
5349     <a name="rfc.section.6.4.29"></a><h3>6.4.29.&nbsp;
5350     Getting effect send information</h3>
5351    
5352     <p>The front-end can ask for the current settings of an effect send entity
5353     by sending the following command:
5354     </p>
5355     <p>
5356     </p>
5357     <blockquote class="text">
5358     <p>GET FX_SEND INFO &lt;sampler-channel&gt; &lt;fx-send-id&gt;
5359     </p>
5360     </blockquote><p>
5361    
5362     </p>
5363     <p>Where &lt;sampler-channel&gt; is the sampler channel number
5364     as returned by the <a class='info' href='#ADD CHANNEL'>"ADD CHANNEL"<span> (</span><span class='info'>Adding a new sampler channel</span><span>)</span></a>
5365     or <a class='info' href='#LIST CHANNELS'>"LIST CHANNELS"<span> (</span><span class='info'>Getting all created sampler channel list</span><span>)</span></a> command and
5366     &lt;fx-send-id&gt; reflects the numerical ID of the effect send entity
5367     as returned by the <a class='info' href='#CREATE FX_SEND'>"CREATE FX_SEND"<span> (</span><span class='info'>Adding an effect send to a sampler channel</span><span>)</span></a>
5368     or <a class='info' href='#LIST FX_SENDS'>"LIST FX_SENDS"<span> (</span><span class='info'>Listing all effect sends on a sampler channel</span><span>)</span></a> command.
5369    
5370     </p>
5371     <p>Possible Answers:
5372     </p>
5373     <p>
5374     </p>
5375     <blockquote class="text">
5376     <p>The sampler will answer by sending a &lt;CRLF&gt; separated list.
5377     Each answer line begins with the settings category name
5378     followed by a colon and then a space character &lt;SP&gt; and finally
5379     the info character string to that setting category. At the
5380     moment the following categories are defined:
5381     </p>
5382     <p>
5383     </p>
5384     <blockquote class="text">
5385     <p>NAME -
5386     </p>
5387     <blockquote class="text">
5388     <p>name of the effect send entity
5389 schoenebeck 1400 (note that this character string may contain
5390     <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>)
5391 schoenebeck 1002 </p>
5392     </blockquote>
5393    
5394    
5395 schoenebeck 1028 <p>MIDI_CONTROLLER -
5396     </p>
5397     <blockquote class="text">
5398     <p>a value between 0 and 127 reflecting the MIDI controller
5399     which is able to modify the effect send's send level
5400     </p>
5401     </blockquote>
5402    
5403    
5404     <p>LEVEL -
5405     </p>
5406     <blockquote class="text">
5407     <p>optionally dotted number reflecting the effect send's
5408     current send level (where a value &lt; 1.0 means attenuation
5409     and a value > 1.0 means amplification)
5410     </p>
5411     </blockquote>
5412    
5413    
5414 schoenebeck 1002 <p>AUDIO_OUTPUT_ROUTING -
5415     </p>
5416     <blockquote class="text">
5417     <p>comma separated list which reflects to which audio
5418     channel of the selected audio output device each
5419     effect send output channel is routed to, e.g. "0,3" would
5420     mean the effect send's output channel 0 is routed to channel
5421     0 of the audio output device and the effect send's output
5422     channel 1 is routed to the channel 3 of the audio
5423     output device (see
5424     <a class='info' href='#SET FX_SEND AUDIO_OUTPUT_CHANNEL'>"SET FX_SEND AUDIO_OUTPUT_CHANNEL"<span> (</span><span class='info'>Altering effect send's audio routing</span><span>)</span></a>
5425     for details)
5426     </p>
5427     </blockquote>
5428    
5429    
5430     </blockquote>
5431    
5432    
5433     </blockquote><p>
5434    
5435     </p>
5436     <p>The mentioned fields above don't have to be in particular order.
5437     </p>
5438     <p>Example:
5439     </p>
5440     <p>
5441     </p>
5442     <blockquote class="text">
5443     <p>C: "GET FX_SEND INFO 0 0"
5444     </p>
5445     <p>S: "NAME: Reverb Send"
5446     </p>
5447 schoenebeck 1028 <p>&nbsp;&nbsp;&nbsp;"MIDI_CONTROLLER: 91"
5448     </p>
5449     <p>&nbsp;&nbsp;&nbsp;"LEVEL: 0.3"
5450     </p>
5451 schoenebeck 1002 <p>&nbsp;&nbsp;&nbsp;"AUDIO_OUTPUT_ROUTING: 2,3"
5452     </p>
5453     <p>&nbsp;&nbsp;&nbsp;"."
5454     </p>
5455     </blockquote><p>
5456    
5457     </p>
5458 iliev 1137 <a name="SET FX_SEND NAME"></a><br /><hr />
5459     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
5460     <a name="rfc.section.6.4.30"></a><h3>6.4.30.&nbsp;
5461     Changing effect send's name</h3>
5462    
5463     <p>The front-end can alter the current name of an effect
5464     send entity by sending the following command:
5465     </p>
5466     <p>
5467     </p>
5468     <blockquote class="text">
5469     <p>SET FX_SEND NAME &lt;sampler-chan&gt; &lt;fx-send-id&gt; &lt;name&gt;
5470     </p>
5471     </blockquote><p>
5472    
5473     </p>
5474     <p>Where &lt;sampler-chan&gt; is the sampler channel number
5475     as returned by the <a class='info' href='#ADD CHANNEL'>"ADD CHANNEL"<span> (</span><span class='info'>Adding a new sampler channel</span><span>)</span></a>
5476     or <a class='info' href='#LIST CHANNELS'>"LIST CHANNELS"<span> (</span><span class='info'>Getting all created sampler channel list</span><span>)</span></a> command,
5477     &lt;fx-send-id&gt; reflects the numerical ID of the effect send entity
5478     as returned by the <a class='info' href='#CREATE FX_SEND'>"CREATE FX_SEND"<span> (</span><span class='info'>Adding an effect send to a sampler channel</span><span>)</span></a>
5479     or <a class='info' href='#LIST FX_SENDS'>"LIST FX_SENDS"<span> (</span><span class='info'>Listing all effect sends on a sampler channel</span><span>)</span></a> command and
5480     &lt;name&gt; is the new name of the effect send entity, which
5481 schoenebeck 1390 does not have to be unique (name MUST be encapsulated into apostrophes
5482     and supports escape sequences as described in chapter
5483     "<a class='info' href='#character_set'>Character Set and Escape Sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>").
5484    
5485 iliev 1137 </p>
5486     <p>Possible Answers:
5487     </p>
5488     <p>
5489     </p>
5490     <blockquote class="text">
5491     <p>"OK" -
5492     </p>
5493     <blockquote class="text">
5494     <p>on success
5495     </p>
5496     </blockquote>
5497    
5498    
5499     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
5500     </p>
5501     <blockquote class="text">
5502     <p>in case it failed, providing an appropriate error code and error message
5503     </p>
5504     </blockquote>
5505    
5506    
5507     </blockquote><p>
5508    
5509     </p>
5510     <p>Example:
5511     </p>
5512     <p>
5513     </p>
5514     <blockquote class="text">
5515     <p>C: "SET FX_SEND NAME 0 0 'Fx Send 1'"
5516     </p>
5517     <p>S: "OK"
5518     </p>
5519     </blockquote><p>
5520    
5521     </p>
5522 schoenebeck 1002 <a name="SET FX_SEND AUDIO_OUTPUT_CHANNEL"></a><br /><hr />
5523     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
5524 iliev 1137 <a name="rfc.section.6.4.31"></a><h3>6.4.31.&nbsp;
5525 schoenebeck 1002 Altering effect send's audio routing</h3>
5526    
5527     <p>The front-end can alter the destination of an effect send's audio channel on a specific
5528     sampler channel by sending the following command:
5529     </p>
5530     <p>
5531     </p>
5532     <blockquote class="text">
5533     <p>SET FX_SEND AUDIO_OUTPUT_CHANNEL &lt;sampler-chan&gt; &lt;fx-send-id&gt; &lt;audio-src&gt; &lt;audio-dst&gt;
5534     </p>
5535     </blockquote><p>
5536    
5537     </p>
5538     <p>Where &lt;sampler-chan&gt; is the sampler channel number
5539     as returned by the <a class='info' href='#ADD CHANNEL'>"ADD CHANNEL"<span> (</span><span class='info'>Adding a new sampler channel</span><span>)</span></a>
5540     or <a class='info' href='#LIST CHANNELS'>"LIST CHANNELS"<span> (</span><span class='info'>Getting all created sampler channel list</span><span>)</span></a> command,
5541     &lt;fx-send-id&gt; reflects the numerical ID of the effect send entity
5542     as returned by the <a class='info' href='#CREATE FX_SEND'>"CREATE FX_SEND"<span> (</span><span class='info'>Adding an effect send to a sampler channel</span><span>)</span></a>
5543     or <a class='info' href='#LIST FX_SENDS'>"LIST FX_SENDS"<span> (</span><span class='info'>Listing all effect sends on a sampler channel</span><span>)</span></a> command,
5544     &lt;audio-src&gt; is the numerical ID of the effect send's audio channel
5545     which should be rerouted and &lt;audio-dst&gt; is the numerical ID of
5546     the audio channel of the selected audio output device where &lt;audio-src&gt;
5547     should be routed to.
5548     </p>
5549     <p>Note that effect sends can only route audio to the same audio output
5550     device as assigned to the effect send's sampler channel. Also note that an
5551     effect send entity does always have exactly as much audio channels as its
5552     sampler channel. So if the sampler channel is stereo, the effect send does
5553     have two audio channels as well. Also keep in mind that the amount of audio
5554     channels on a sampler channel might be dependant not only to the deployed
5555     sampler engine on the sampler channel, but also dependant to the instrument
5556     currently loaded. However you can (effectively) turn an i.e. stereo effect
5557     send into a mono one by simply altering its audio routing appropriately.
5558     </p>
5559     <p>Possible Answers:
5560     </p>
5561     <p>
5562     </p>
5563     <blockquote class="text">
5564     <p>"OK" -
5565     </p>
5566     <blockquote class="text">
5567     <p>on success
5568     </p>
5569     </blockquote>
5570    
5571    
5572     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
5573     </p>
5574     <blockquote class="text">
5575     <p>if audio output channel was set, but there are noteworthy
5576     issue(s) related, providing an appropriate warning code and
5577     warning message
5578     </p>
5579     </blockquote>
5580    
5581    
5582     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
5583     </p>
5584     <blockquote class="text">
5585     <p>in case it failed, providing an appropriate error code and error message
5586     </p>
5587     </blockquote>
5588    
5589    
5590     </blockquote><p>
5591    
5592     </p>
5593     <p>Example:
5594     </p>
5595     <p>
5596     </p>
5597     <blockquote class="text">
5598     <p>C: "SET FX_SEND AUDIO_OUTPUT_CHANNEL 0 0 0 2"
5599     </p>
5600     <p>S: "OK"
5601     </p>
5602     </blockquote><p>
5603    
5604     </p>
5605 schoenebeck 1028 <a name="SET FX_SEND MIDI_CONTROLLER"></a><br /><hr />
5606     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
5607 iliev 1137 <a name="rfc.section.6.4.32"></a><h3>6.4.32.&nbsp;
5608 schoenebeck 1028 Altering effect send's MIDI controller</h3>
5609    
5610     <p>The front-end can alter the MIDI controller of an effect
5611     send entity by sending the following command:
5612     </p>
5613     <p>
5614     </p>
5615     <blockquote class="text">
5616     <p>SET FX_SEND MIDI_CONTROLLER &lt;sampler-chan&gt; &lt;fx-send-id&gt; &lt;midi-ctrl&gt;
5617     </p>
5618     </blockquote><p>
5619    
5620     </p>
5621     <p>Where &lt;sampler-chan&gt; is the sampler channel number
5622     as returned by the <a class='info' href='#ADD CHANNEL'>"ADD CHANNEL"<span> (</span><span class='info'>Adding a new sampler channel</span><span>)</span></a>
5623     or <a class='info' href='#LIST CHANNELS'>"LIST CHANNELS"<span> (</span><span class='info'>Getting all created sampler channel list</span><span>)</span></a> command,
5624     &lt;fx-send-id&gt; reflects the numerical ID of the effect send entity
5625     as returned by the <a class='info' href='#CREATE FX_SEND'>"CREATE FX_SEND"<span> (</span><span class='info'>Adding an effect send to a sampler channel</span><span>)</span></a>
5626     or <a class='info' href='#LIST FX_SENDS'>"LIST FX_SENDS"<span> (</span><span class='info'>Listing all effect sends on a sampler channel</span><span>)</span></a> command and
5627     &lt;midi-ctrl&gt; reflects the MIDI controller which shall be
5628     able to modify the effect send's send level.
5629     </p>
5630     <p>Possible Answers:
5631     </p>
5632     <p>
5633     </p>
5634     <blockquote class="text">
5635     <p>"OK" -
5636     </p>
5637     <blockquote class="text">
5638     <p>on success
5639     </p>
5640     </blockquote>
5641    
5642    
5643     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
5644     </p>
5645     <blockquote class="text">
5646     <p>if MIDI controller was set, but there are noteworthy
5647     issue(s) related, providing an appropriate warning code and
5648     warning message
5649     </p>
5650     </blockquote>
5651    
5652    
5653     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
5654     </p>
5655     <blockquote class="text">
5656     <p>in case it failed, providing an appropriate error code and error message
5657     </p>
5658     </blockquote>
5659    
5660    
5661     </blockquote><p>
5662    
5663     </p>
5664     <p>Example:
5665     </p>
5666     <p>
5667     </p>
5668     <blockquote class="text">
5669     <p>C: "SET FX_SEND MIDI_CONTROLLER 0 0 91"
5670     </p>
5671     <p>S: "OK"
5672     </p>
5673     </blockquote><p>
5674    
5675     </p>
5676     <a name="SET FX_SEND LEVEL"></a><br /><hr />
5677     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
5678 iliev 1137 <a name="rfc.section.6.4.33"></a><h3>6.4.33.&nbsp;
5679 schoenebeck 1028 Altering effect send's send level</h3>
5680    
5681     <p>The front-end can alter the current send level of an effect
5682     send entity by sending the following command:
5683     </p>
5684     <p>
5685     </p>
5686     <blockquote class="text">
5687     <p>SET FX_SEND LEVEL &lt;sampler-chan&gt; &lt;fx-send-id&gt; &lt;volume&gt;
5688     </p>
5689     </blockquote><p>
5690    
5691     </p>
5692     <p>Where &lt;sampler-chan&gt; is the sampler channel number
5693     as returned by the <a class='info' href='#ADD CHANNEL'>"ADD CHANNEL"<span> (</span><span class='info'>Adding a new sampler channel</span><span>)</span></a>
5694     or <a class='info' href='#LIST CHANNELS'>"LIST CHANNELS"<span> (</span><span class='info'>Getting all created sampler channel list</span><span>)</span></a> command,
5695     &lt;fx-send-id&gt; reflects the numerical ID of the effect send entity
5696     as returned by the <a class='info' href='#CREATE FX_SEND'>"CREATE FX_SEND"<span> (</span><span class='info'>Adding an effect send to a sampler channel</span><span>)</span></a>
5697     or <a class='info' href='#LIST FX_SENDS'>"LIST FX_SENDS"<span> (</span><span class='info'>Listing all effect sends on a sampler channel</span><span>)</span></a> command and
5698     &lt;volume&gt; is an optionally dotted positive number (a value
5699     smaller than 1.0 means attenuation, whereas a value greater than
5700     1.0 means amplification) reflecting the new send level.
5701     </p>
5702     <p>Possible Answers:
5703     </p>
5704     <p>
5705     </p>
5706     <blockquote class="text">
5707     <p>"OK" -
5708     </p>
5709     <blockquote class="text">
5710     <p>on success
5711     </p>
5712     </blockquote>
5713    
5714    
5715     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
5716     </p>
5717     <blockquote class="text">
5718     <p>if new send level was set, but there are noteworthy
5719     issue(s) related, providing an appropriate warning code and
5720     warning message
5721     </p>
5722     </blockquote>
5723    
5724    
5725     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
5726     </p>
5727     <blockquote class="text">
5728     <p>in case it failed, providing an appropriate error code and error message
5729     </p>
5730     </blockquote>
5731    
5732    
5733     </blockquote><p>
5734    
5735     </p>
5736     <p>Example:
5737     </p>
5738     <p>
5739     </p>
5740     <blockquote class="text">
5741     <p>C: "SET FX_SEND LEVEL 0 0 0.15"
5742     </p>
5743     <p>S: "OK"
5744     </p>
5745     </blockquote><p>
5746    
5747     </p>
5748 schoenebeck 940 <a name="RESET CHANNEL"></a><br /><hr />
5749 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
5750 iliev 1137 <a name="rfc.section.6.4.34"></a><h3>6.4.34.&nbsp;
5751 schoenebeck 974 Resetting a sampler channel</h3>
5752 schoenebeck 708
5753 senoner 542 <p>The front-end can reset a particular sampler channel by sending the following command:
5754     </p>
5755 schoenebeck 708 <p>
5756     </p>
5757 senoner 542 <blockquote class="text">
5758     <p>RESET CHANNEL &lt;sampler-channel&gt;
5759     </p>
5760 schoenebeck 708 </blockquote><p>
5761 schoenebeck 940
5762 schoenebeck 708 </p>
5763 senoner 542 <p>
5764     Where &lt;sampler-channel&gt; defines the sampler channel to be reset.
5765     This will cause the engine on that sampler channel, its voices and
5766     eventually disk streams and all control and status variables to be
5767     reset.
5768     </p>
5769     <p>Possible Answers:
5770     </p>
5771 schoenebeck 708 <p>
5772     </p>
5773 senoner 542 <blockquote class="text">
5774     <p>"OK" -
5775     </p>
5776     <blockquote class="text">
5777     <p>on success
5778     </p>
5779 schoenebeck 940 </blockquote>
5780    
5781 senoner 542
5782     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
5783     </p>
5784     <blockquote class="text">
5785     <p>if channel was reset, but there are noteworthy issue(s)
5786     related, providing an appropriate warning code and warning
5787     message
5788     </p>
5789 schoenebeck 940 </blockquote>
5790    
5791 senoner 542
5792     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
5793     </p>
5794     <blockquote class="text">
5795     <p>in case it failed, providing an appropriate error code and
5796     error message
5797     </p>
5798 schoenebeck 940 </blockquote>
5799    
5800 senoner 542
5801 schoenebeck 708 </blockquote><p>
5802 schoenebeck 940
5803 schoenebeck 708 </p>
5804 senoner 542 <p>Examples:
5805     </p>
5806 schoenebeck 708 <p>
5807     </p>
5808 senoner 542 <blockquote class="text">
5809     <p>
5810     </p>
5811 schoenebeck 708 </blockquote><p>
5812 schoenebeck 940
5813 schoenebeck 708 </p>
5814 schoenebeck 940 <a name="anchor12"></a><br /><hr />
5815 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
5816     <a name="rfc.section.6.5"></a><h3>6.5.&nbsp;
5817     Controlling connection</h3>
5818 senoner 542
5819     <p>The following commands are used to control the connection to LinuxSampler.
5820     </p>
5821 schoenebeck 940 <a name="SUBSCRIBE"></a><br /><hr />
5822 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
5823     <a name="rfc.section.6.5.1"></a><h3>6.5.1.&nbsp;
5824     Register front-end for receiving event messages</h3>
5825 senoner 542
5826     <p>The front-end can register itself to the LinuxSampler application to
5827     be informed about noteworthy events by sending this command:
5828     </p>
5829 schoenebeck 708 <p>
5830     </p>
5831 senoner 542 <blockquote class="text">
5832     <p>SUBSCRIBE &lt;event-id&gt;
5833     </p>
5834 schoenebeck 708 </blockquote><p>
5835 schoenebeck 940
5836 schoenebeck 708 </p>
5837 senoner 542 <p>where &lt;event-id&gt; will be replaced by the respective event that
5838     client wants to subscribe to.
5839     </p>
5840     <p>Possible Answers:
5841     </p>
5842 schoenebeck 708 <p>
5843     </p>
5844 senoner 542 <blockquote class="text">
5845     <p>"OK" -
5846     </p>
5847     <blockquote class="text">
5848     <p>on success
5849     </p>
5850 schoenebeck 940 </blockquote>
5851    
5852 senoner 542
5853     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
5854     </p>
5855     <blockquote class="text">
5856     <p>if registration succeeded, but there are noteworthy
5857     issue(s) related, providing an appropriate warning code and
5858     warning message
5859     </p>
5860 schoenebeck 940 </blockquote>
5861    
5862 senoner 542
5863     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
5864     </p>
5865     <blockquote class="text">
5866     <p>in case it failed, providing an appropriate error code and
5867     error message
5868     </p>
5869 schoenebeck 940 </blockquote>
5870    
5871 senoner 542
5872 schoenebeck 708 </blockquote><p>
5873 schoenebeck 940
5874 schoenebeck 708 </p>
5875 senoner 542 <p>Examples:
5876     </p>
5877 schoenebeck 708 <p>
5878     </p>
5879 senoner 542 <blockquote class="text">
5880     <p>
5881     </p>
5882 schoenebeck 708 </blockquote><p>
5883 schoenebeck 940
5884 schoenebeck 708 </p>
5885 schoenebeck 940 <a name="UNSUBSCRIBE"></a><br /><hr />
5886 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
5887     <a name="rfc.section.6.5.2"></a><h3>6.5.2.&nbsp;
5888     Unregister front-end for not receiving event messages</h3>
5889 senoner 542
5890     <p>The front-end can unregister itself if it doesn't want to receive event
5891     messages anymore by sending the following command:
5892     </p>
5893 schoenebeck 708 <p>
5894     </p>
5895 senoner 542 <blockquote class="text">
5896     <p>UNSUBSCRIBE &lt;event-id&gt;
5897     </p>
5898 schoenebeck 708 </blockquote><p>
5899 schoenebeck 940
5900 schoenebeck 708 </p>
5901 senoner 542 <p>Where &lt;event-id&gt; will be replaced by the respective event that
5902     client doesn't want to receive anymore.
5903     </p>
5904     <p>Possible Answers:
5905     </p>
5906 schoenebeck 708 <p>
5907     </p>
5908 senoner 542 <blockquote class="text">
5909     <p>"OK" -
5910     </p>
5911     <blockquote class="text">
5912     <p>on success
5913     </p>
5914 schoenebeck 940 </blockquote>
5915    
5916 senoner 542
5917     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
5918     </p>
5919     <blockquote class="text">
5920     <p>if unregistration succeeded, but there are noteworthy
5921     issue(s) related, providing an appropriate warning code and
5922     warning message
5923     </p>
5924 schoenebeck 940 </blockquote>
5925    
5926 senoner 542
5927     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
5928     </p>
5929     <blockquote class="text">
5930     <p>in case it failed, providing an appropriate error code and
5931     error message
5932     </p>
5933 schoenebeck 940 </blockquote>
5934    
5935 senoner 542
5936 schoenebeck 708 </blockquote><p>
5937 schoenebeck 940
5938 schoenebeck 708 </p>
5939 senoner 542 <p>Examples:
5940     </p>
5941 schoenebeck 708 <p>
5942     </p>
5943 senoner 542 <blockquote class="text">
5944     <p>
5945     </p>
5946 schoenebeck 708 </blockquote><p>
5947 schoenebeck 940
5948 schoenebeck 708 </p>
5949 schoenebeck 940 <a name="SET ECHO"></a><br /><hr />
5950 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
5951     <a name="rfc.section.6.5.3"></a><h3>6.5.3.&nbsp;
5952     Enable or disable echo of commands</h3>
5953 senoner 542
5954     <p>To enable or disable back sending of commands to the client the following command can be used:
5955     </p>
5956 schoenebeck 708 <p>
5957     </p>
5958 senoner 542 <blockquote class="text">
5959     <p>SET ECHO &lt;value&gt;
5960     </p>
5961 schoenebeck 708 </blockquote><p>
5962 schoenebeck 940
5963 schoenebeck 708 </p>
5964 senoner 542 <p>Where &lt;value&gt; should be replaced either by "1" to enable echo mode
5965     or "0" to disable echo mode. When echo mode is enabled, all
5966     commands send to LinuxSampler will be immediately send back and
5967     after this echo the actual response to the command will be
5968     returned. Echo mode will only be altered for the client connection
5969     that issued the "SET ECHO" command, not globally for all client
5970     connections.
5971     </p>
5972     <p>Possible Answers:
5973     </p>
5974 schoenebeck 708 <p>
5975     </p>
5976 senoner 542 <blockquote class="text">
5977     <p>"OK" -
5978     </p>
5979     <blockquote class="text">
5980     <p>usually
5981     </p>
5982 schoenebeck 940 </blockquote>
5983    
5984 senoner 542
5985     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
5986     </p>
5987     <blockquote class="text">
5988     <p>on syntax error, e.g. non boolean value
5989     </p>
5990 schoenebeck 940 </blockquote>
5991    
5992 senoner 542
5993 schoenebeck 708 </blockquote><p>
5994 schoenebeck 940
5995 schoenebeck 708 </p>
5996 senoner 542 <p>Examples:
5997     </p>
5998 schoenebeck 708 <p>
5999     </p>
6000 senoner 542 <blockquote class="text">
6001     <p>
6002     </p>
6003 schoenebeck 708 </blockquote><p>
6004 schoenebeck 940
6005 schoenebeck 708 </p>
6006 schoenebeck 940 <a name="QUIT"></a><br /><hr />
6007 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
6008     <a name="rfc.section.6.5.4"></a><h3>6.5.4.&nbsp;
6009     Close client connection</h3>
6010 senoner 542
6011     <p>The client can close its network connection to LinuxSampler by sending the following command:
6012     </p>
6013 schoenebeck 708 <p>
6014     </p>
6015 senoner 542 <blockquote class="text">
6016     <p>QUIT
6017     </p>
6018 schoenebeck 708 </blockquote><p>
6019 schoenebeck 940
6020 schoenebeck 708 </p>
6021 senoner 542 <p>This is probably more interesting for manual telnet connections to
6022     LinuxSampler than really useful for a front-end implementation.
6023     </p>
6024 schoenebeck 940 <a name="anchor13"></a><br /><hr />
6025 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
6026     <a name="rfc.section.6.6"></a><h3>6.6.&nbsp;
6027     Global commands</h3>
6028 senoner 542
6029     <p>The following commands have global impact on the sampler.
6030     </p>
6031 schoenebeck 940 <a name="GET TOTAL_VOICE_COUNT"></a><br /><hr />
6032 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
6033     <a name="rfc.section.6.6.1"></a><h3>6.6.1.&nbsp;
6034     Current number of active voices</h3>
6035 senoner 542
6036 schoenebeck 940 <p>The front-end can ask for the current number of active voices on
6037     the sampler by sending the following command:
6038     </p>
6039     <p>
6040     </p>
6041     <blockquote class="text">
6042     <p>GET TOTAL_VOICE_COUNT
6043     </p>
6044     </blockquote><p>
6045    
6046     </p>
6047     <p>Possible Answers:
6048     </p>
6049     <p>
6050     </p>
6051     <blockquote class="text">
6052     <p>LinuxSampler will answer by returning the number of all active
6053     voices on the sampler.
6054     </p>
6055     </blockquote><p>
6056    
6057     </p>
6058     <a name="GET TOTAL_VOICE_COUNT_MAX"></a><br /><hr />
6059 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
6060     <a name="rfc.section.6.6.2"></a><h3>6.6.2.&nbsp;
6061     Maximum amount of active voices</h3>
6062 schoenebeck 940
6063     <p>The front-end can ask for the maximum number of active voices
6064     by sending the following command:
6065     </p>
6066     <p>
6067     </p>
6068     <blockquote class="text">
6069     <p>GET TOTAL_VOICE_COUNT_MAX
6070     </p>
6071     </blockquote><p>
6072    
6073     </p>
6074     <p>Possible Answers:
6075     </p>
6076     <p>
6077     </p>
6078     <blockquote class="text">
6079     <p>LinuxSampler will answer by returning the maximum number
6080     of active voices.
6081     </p>
6082     </blockquote><p>
6083    
6084     </p>
6085 schoenebeck 1572 <a name="GET TOTAL_STREAM_COUNT"></a><br /><hr />
6086     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
6087     <a name="rfc.section.6.6.3"></a><h3>6.6.3.&nbsp;
6088     Current number of active disk streams</h3>
6089    
6090     <p>The front-end can ask for the current number of active disk streams on
6091     the sampler by sending the following command:
6092     </p>
6093     <p>
6094     </p>
6095     <blockquote class="text">
6096     <p>GET TOTAL_STREAM_COUNT
6097     </p>
6098     </blockquote><p>
6099    
6100     </p>
6101     <p>Possible Answers:
6102     </p>
6103     <p>
6104     </p>
6105     <blockquote class="text">
6106     <p>LinuxSampler will answer by returning the number of all active
6107     disk streams on the sampler.
6108     </p>
6109     </blockquote><p>
6110    
6111     </p>
6112 schoenebeck 940 <a name="RESET"></a><br /><hr />
6113 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
6114 schoenebeck 1572 <a name="rfc.section.6.6.4"></a><h3>6.6.4.&nbsp;
6115 schoenebeck 974 Reset sampler</h3>
6116 schoenebeck 940
6117 senoner 542 <p>The front-end can reset the whole sampler by sending the following command:
6118     </p>
6119 schoenebeck 708 <p>
6120     </p>
6121 senoner 542 <blockquote class="text">
6122     <p>RESET
6123     </p>
6124 schoenebeck 708 </blockquote><p>
6125 schoenebeck 940
6126 schoenebeck 708 </p>
6127 senoner 542 <p>Possible Answers:
6128     </p>
6129 schoenebeck 708 <p>
6130     </p>
6131 senoner 542 <blockquote class="text">
6132     <p>"OK" -
6133     </p>
6134     <blockquote class="text">
6135     <p>always
6136     </p>
6137 schoenebeck 940 </blockquote>
6138    
6139 senoner 542
6140 schoenebeck 708 </blockquote><p>
6141 schoenebeck 940
6142 schoenebeck 708 </p>
6143 senoner 542 <p>Examples:
6144     </p>
6145 schoenebeck 708 <p>
6146     </p>
6147 senoner 542 <blockquote class="text">
6148     <p>
6149     </p>
6150 schoenebeck 708 </blockquote><p>
6151 schoenebeck 940
6152 schoenebeck 708 </p>
6153 schoenebeck 940 <a name="GET SERVER INFO"></a><br /><hr />
6154 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
6155 schoenebeck 1572 <a name="rfc.section.6.6.5"></a><h3>6.6.5.&nbsp;
6156 schoenebeck 974 General sampler informations</h3>
6157 schoenebeck 575
6158     <p>The client can ask for general informations about the LinuxSampler
6159     instance by sending the following command:
6160     </p>
6161 schoenebeck 708 <p>
6162     </p>
6163 schoenebeck 575 <blockquote class="text">
6164     <p>GET SERVER INFO
6165     </p>
6166 schoenebeck 708 </blockquote><p>
6167 schoenebeck 940
6168 schoenebeck 708 </p>
6169 schoenebeck 575 <p>Possible Answers:
6170     </p>
6171 schoenebeck 708 <p>
6172     </p>
6173 schoenebeck 575 <blockquote class="text">
6174     <p>LinuxSampler will answer by sending a &lt;CRLF&gt; separated list.
6175     Each answer line begins with the information category name
6176     followed by a colon and then a space character &lt;SP&gt; and finally
6177     the info character string to that information category. At the
6178     moment the following categories are defined:
6179 schoenebeck 940
6180 schoenebeck 575 </p>
6181 schoenebeck 708 <p>
6182     </p>
6183 schoenebeck 575 <blockquote class="text">
6184     <p>DESCRIPTION -
6185     </p>
6186     <blockquote class="text">
6187     <p>arbitrary textual description about the sampler
6188 schoenebeck 1390 (note that the character string may contain
6189     <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>)
6190 schoenebeck 575 </p>
6191 schoenebeck 940 </blockquote>
6192    
6193 schoenebeck 575
6194     <p>VERSION -
6195     </p>
6196     <blockquote class="text">
6197     <p>version of the sampler
6198     </p>
6199 schoenebeck 940 </blockquote>
6200    
6201 schoenebeck 575
6202     <p>PROTOCOL_VERSION -
6203     </p>
6204     <blockquote class="text">
6205     <p>version of the LSCP specification the sampler
6206 schoenebeck 974 complies with (see <a class='info' href='#LSCP versioning'>Section&nbsp;2<span> (</span><span class='info'>Versioning of this specification</span><span>)</span></a> for details)
6207 schoenebeck 575 </p>
6208 schoenebeck 940 </blockquote>
6209    
6210 schoenebeck 575
6211 iliev 1162 <p>INSTRUMENTS_DB_SUPPORT -
6212     </p>
6213     <blockquote class="text">
6214     <p>either yes or no, specifies whether the
6215     sampler is build with instruments database support.
6216     </p>
6217 schoenebeck 940 </blockquote>
6218 iliev 1162
6219    
6220     </blockquote>
6221 schoenebeck 940
6222 schoenebeck 575
6223 schoenebeck 708 </blockquote><p>
6224 schoenebeck 940
6225 schoenebeck 708 </p>
6226 schoenebeck 575 <p>The mentioned fields above don't have to be in particular order.
6227     Other fields might be added in future.
6228     </p>
6229 schoenebeck 1006 <a name="GET VOLUME"></a><br /><hr />
6230     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
6231 schoenebeck 1572 <a name="rfc.section.6.6.6"></a><h3>6.6.6.&nbsp;
6232 schoenebeck 1006 Getting global volume attenuation</h3>
6233    
6234     <p>The client can ask for the current global sampler-wide volume
6235     attenuation by sending the following command:
6236     </p>
6237     <p>
6238     </p>
6239     <blockquote class="text">
6240     <p>GET VOLUME
6241     </p>
6242     </blockquote><p>
6243    
6244     </p>
6245     <p>Possible Answers:
6246     </p>
6247     <p>
6248     </p>
6249     <blockquote class="text">
6250     <p>The sampler will always answer by returning the optional
6251     dotted floating point coefficient, reflecting the current
6252     global volume attenuation.
6253    
6254     </p>
6255     </blockquote><p>
6256    
6257     </p>
6258     <p>Note: it is up to the respective sampler engine whether to obey
6259     that global volume parameter or not, but in general all engines SHOULD
6260     use this parameter.
6261     </p>
6262     <a name="SET VOLUME"></a><br /><hr />
6263     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
6264 schoenebeck 1572 <a name="rfc.section.6.6.7"></a><h3>6.6.7.&nbsp;
6265 schoenebeck 1006 Setting global volume attenuation</h3>
6266    
6267     <p>The client can alter the current global sampler-wide volume
6268     attenuation by sending the following command:
6269     </p>
6270     <p>
6271     </p>
6272     <blockquote class="text">
6273     <p>SET VOLUME &lt;volume&gt;
6274     </p>
6275     </blockquote><p>
6276    
6277     </p>
6278     <p>Where &lt;volume&gt; should be replaced by the optional dotted
6279     floating point value, reflecting the new global volume parameter.
6280     This value might usually be in the range between 0.0 and 1.0, that
6281     is for attenuating the overall volume.
6282     </p>
6283     <p>Possible Answers:
6284     </p>
6285     <p>
6286     </p>
6287     <blockquote class="text">
6288     <p>"OK" -
6289     </p>
6290     <blockquote class="text">
6291     <p>on success
6292     </p>
6293     </blockquote>
6294    
6295    
6296     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
6297     </p>
6298     <blockquote class="text">
6299     <p>if the global volume was set, but there are noteworthy
6300     issue(s) related, providing an appropriate warning code and
6301     warning message
6302     </p>
6303     </blockquote>
6304    
6305    
6306     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
6307     </p>
6308     <blockquote class="text">
6309     <p>in case it failed, providing an appropriate error code and error message
6310     </p>
6311     </blockquote>
6312    
6313    
6314     </blockquote><p>
6315    
6316     </p>
6317 schoenebeck 974 <a name="MIDI Instrument Mapping"></a><br /><hr />
6318     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
6319     <a name="rfc.section.6.7"></a><h3>6.7.&nbsp;
6320     MIDI Instrument Mapping</h3>
6321 schoenebeck 945
6322     <p>The MIDI protocol provides a way to switch between instruments
6323     by sending so called MIDI bank select and MIDI program change
6324     messages which are essentially just numbers. The following commands
6325     allow to actually map arbitrary MIDI bank select / program change
6326     numbers with real instruments.
6327     </p>
6328 schoenebeck 974 <p>The sampler allows to manage an arbitrary amount of MIDI
6329     instrument maps which define which instrument to load on
6330     which MIDI program change message.
6331 schoenebeck 945 </p>
6332 schoenebeck 974 <p>By default, that is when the sampler is launched, there is no
6333     map, thus the sampler will simply ignore all program change
6334     messages. The front-end has to explicitly create at least one
6335     map, add entries to the map and tell the respective sampler
6336     channel(s) which MIDI instrument map to use, so the sampler
6337     knows how to react on a given program change message on the
6338     respective sampler channel, that is by switching to the
6339     respectively defined engine type and loading the respective
6340     instrument. See command
6341     <a class='info' href='#SET CHANNEL MIDI_INSTRUMENT_MAP'>"SET CHANNEL MIDI_INSTRUMENT_MAP"<span> (</span><span class='info'>Assigning a MIDI instrument map to a sampler channel</span><span>)</span></a>
6342     for how to assign a MIDI instrument map to a sampler channel.
6343     </p>
6344 schoenebeck 945 <p>Also note per MIDI specification a bank select message does not
6345     cause to switch to another instrument. Instead when receiving a
6346     bank select message the bank value will be stored and a subsequent
6347     program change message (which may occur at any time) will finally
6348     cause the sampler to switch to the respective instrument as
6349     reflected by the current MIDI instrument map.
6350     </p>
6351 schoenebeck 1390 <a name="ADD MIDI_INSTRUMENT_MAP"></a><br /><hr />
6352 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
6353     <a name="rfc.section.6.7.1"></a><h3>6.7.1.&nbsp;
6354     Create a new MIDI instrument map</h3>
6355    
6356     <p>The front-end can add a new MIDI instrument map by sending
6357     the following command:
6358     </p>
6359     <p>
6360     </p>
6361     <blockquote class="text">
6362     <p>ADD MIDI_INSTRUMENT_MAP [&lt;name&gt;]
6363     </p>
6364     </blockquote><p>
6365    
6366     </p>
6367     <p>Where &lt;name&gt; is an optional argument allowing to
6368     assign a custom name to the new map. MIDI instrument Map
6369 schoenebeck 1390 names do not have to be unique, but MUST be encapsulated
6370     into apostrophes and support escape sequences as described
6371     in chapter "<a class='info' href='#character_set'>Character Set and Escape Sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>".
6372    
6373 schoenebeck 974 </p>
6374     <p>Possible Answers:
6375     </p>
6376     <p>
6377     </p>
6378     <blockquote class="text">
6379     <p>"OK[&lt;map&gt;]" -
6380     </p>
6381     <blockquote class="text">
6382     <p>in case a new MIDI instrument map could
6383     be added, where &lt;map&gt; reflects the
6384     unique ID of the newly created MIDI
6385     instrument map
6386     </p>
6387     </blockquote>
6388    
6389    
6390     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
6391     </p>
6392     <blockquote class="text">
6393     <p>when a new map could not be created, which
6394     might never occur in practice
6395     </p>
6396     </blockquote>
6397    
6398    
6399     </blockquote><p>
6400    
6401     </p>
6402     <p>Examples:
6403     </p>
6404     <p>
6405     </p>
6406     <blockquote class="text">
6407     <p>C: "ADD MIDI_INSTRUMENT_MAP 'Standard Map'"
6408     </p>
6409     <p>S: "OK[0]"
6410     </p>
6411     </blockquote><p>
6412    
6413     </p>
6414     <p>
6415     </p>
6416     <blockquote class="text">
6417     <p>C: "ADD MIDI_INSTRUMENT_MAP 'Standard Drumkit'"
6418     </p>
6419     <p>S: "OK[1]"
6420     </p>
6421     </blockquote><p>
6422    
6423     </p>
6424     <p>
6425     </p>
6426     <blockquote class="text">
6427     <p>C: "ADD MIDI_INSTRUMENT_MAP"
6428     </p>
6429     <p>S: "OK[5]"
6430     </p>
6431     </blockquote><p>
6432    
6433     </p>
6434     <a name="REMOVE MIDI_INSTRUMENT_MAP"></a><br /><hr />
6435     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
6436     <a name="rfc.section.6.7.2"></a><h3>6.7.2.&nbsp;
6437     Delete one particular or all MIDI instrument maps</h3>
6438    
6439     <p>The front-end can delete a particular MIDI instrument map
6440     by sending the following command:
6441     </p>
6442     <p>
6443     </p>
6444     <blockquote class="text">
6445     <p>REMOVE MIDI_INSTRUMENT_MAP &lt;map&gt;
6446     </p>
6447     </blockquote><p>
6448    
6449     </p>
6450     <p>Where &lt;map&gt; reflects the unique ID of the map to delete
6451     as returned by the <a class='info' href='#LIST MIDI_INSTRUMENT_MAPS'>"LIST MIDI_INSTRUMENT_MAPS"<span> (</span><span class='info'>Getting all created MIDI instrument maps</span><span>)</span></a>
6452     command.
6453     </p>
6454     <p>The front-end can delete all MIDI instrument maps by
6455     sending the following command:
6456     </p>
6457     <p>
6458     </p>
6459     <blockquote class="text">
6460     <p>REMOVE MIDI_INSTRUMENT_MAP ALL
6461     </p>
6462     </blockquote><p>
6463    
6464     </p>
6465     <p>Possible Answers:
6466     </p>
6467     <p>
6468     </p>
6469     <blockquote class="text">
6470     <p>"OK" -
6471     </p>
6472     <blockquote class="text">
6473     <p>in case the map(s) could be deleted
6474     </p>
6475     </blockquote>
6476    
6477    
6478     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
6479     </p>
6480     <blockquote class="text">
6481     <p>when the given map does not exist
6482     </p>
6483     </blockquote>
6484    
6485    
6486     </blockquote><p>
6487    
6488     </p>
6489     <p>Examples:
6490     </p>
6491     <p>
6492     </p>
6493     <blockquote class="text">
6494     <p>C: "REMOVE MIDI_INSTRUMENT_MAP 0"
6495     </p>
6496     <p>S: "OK"
6497     </p>
6498     </blockquote><p>
6499    
6500     </p>
6501     <p>
6502     </p>
6503     <blockquote class="text">
6504     <p>C: "REMOVE MIDI_INSTRUMENT_MAP ALL"
6505     </p>
6506     <p>S: "OK"
6507     </p>
6508     </blockquote><p>
6509    
6510     </p>
6511     <a name="GET MIDI_INSTRUMENT_MAPS"></a><br /><hr />
6512     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
6513     <a name="rfc.section.6.7.3"></a><h3>6.7.3.&nbsp;
6514     Get amount of existing MIDI instrument maps</h3>
6515    
6516     <p>The front-end can retrieve the current amount of MIDI
6517     instrument maps by sending the following command:
6518     </p>
6519     <p>
6520     </p>
6521     <blockquote class="text">
6522     <p>GET MIDI_INSTRUMENT_MAPS
6523     </p>
6524     </blockquote><p>
6525    
6526     </p>
6527     <p>Possible Answers:
6528     </p>
6529     <p>
6530     </p>
6531     <blockquote class="text">
6532     <p>The sampler will answer by returning the current
6533     number of MIDI instrument maps.
6534     </p>
6535     </blockquote><p>
6536    
6537     </p>
6538     <p>Example:
6539     </p>
6540     <p>
6541     </p>
6542     <blockquote class="text">
6543     <p>C: "GET MIDI_INSTRUMENT_MAPS"
6544     </p>
6545     <p>S: "2"
6546     </p>
6547     </blockquote><p>
6548    
6549     </p>
6550     <a name="LIST MIDI_INSTRUMENT_MAPS"></a><br /><hr />
6551     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
6552     <a name="rfc.section.6.7.4"></a><h3>6.7.4.&nbsp;
6553     Getting all created MIDI instrument maps</h3>
6554    
6555     <p>The number of MIDI instrument maps can change on runtime. To get the
6556     current list of MIDI instrument maps, the front-end can send the
6557     following command:
6558     </p>
6559     <p>
6560     </p>
6561     <blockquote class="text">
6562     <p>LIST MIDI_INSTRUMENT_MAPS
6563     </p>
6564     </blockquote><p>
6565    
6566     </p>
6567     <p>Possible Answers:
6568     </p>
6569     <p>
6570     </p>
6571     <blockquote class="text">
6572     <p>The sampler will answer by returning a comma separated list
6573     with all MIDI instrument maps' numerical IDs.
6574     </p>
6575     </blockquote><p>
6576    
6577     </p>
6578     <p>Example:
6579     </p>
6580     <p>
6581     </p>
6582     <blockquote class="text">
6583     <p>C: "LIST MIDI_INSTRUMENT_MAPS"
6584     </p>
6585     <p>S: "0,1,5,12"
6586     </p>
6587     </blockquote><p>
6588    
6589     </p>
6590     <a name="GET MIDI_INSTRUMENT_MAP INFO"></a><br /><hr />
6591     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
6592     <a name="rfc.section.6.7.5"></a><h3>6.7.5.&nbsp;
6593     Getting MIDI instrument map information</h3>
6594    
6595     <p>The front-end can ask for the current settings of a MIDI
6596     instrument map by sending the following command:
6597     </p>
6598     <p>
6599     </p>
6600     <blockquote class="text">
6601     <p>GET MIDI_INSTRUMENT_MAP INFO &lt;map&gt;
6602     </p>
6603     </blockquote><p>
6604    
6605     </p>
6606     <p>Where &lt;map&gt; is the numerical ID of the map the
6607     front-end is interested in as returned by the
6608     <a class='info' href='#LIST MIDI_INSTRUMENT_MAPS'>"LIST MIDI_INSTRUMENT_MAPS"<span> (</span><span class='info'>Getting all created MIDI instrument maps</span><span>)</span></a>
6609     command.
6610     </p>
6611     <p>Possible Answers:
6612     </p>
6613     <p>
6614     </p>
6615     <blockquote class="text">
6616     <p>LinuxSampler will answer by sending a &lt;CRLF&gt; separated list.
6617     Each answer line begins with the settings category name
6618     followed by a colon and then a space character &lt;SP&gt; and finally
6619     the info character string to that setting category. At the
6620     moment the following categories are defined:
6621     </p>
6622     <p>
6623     </p>
6624     <blockquote class="text">
6625     <p>NAME -
6626     </p>
6627     <blockquote class="text">
6628     <p>custom name of the given map,
6629     which does not have to be unique
6630 schoenebeck 1400 (note that this character string may contain
6631     <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>)
6632 schoenebeck 974 </p>
6633     </blockquote>
6634    
6635    
6636 iliev 1137 <p>DEFAULT -
6637     </p>
6638     <blockquote class="text">
6639     <p>either true or false,
6640     defines whether this map is the default map
6641     </p>
6642 schoenebeck 974 </blockquote>
6643 iliev 1137
6644    
6645     </blockquote>
6646 schoenebeck 974
6647    
6648     </blockquote><p>
6649    
6650     </p>
6651     <p>The mentioned fields above don't have to be in particular order.
6652     </p>
6653     <p>Example:
6654     </p>
6655     <p>
6656     </p>
6657     <blockquote class="text">
6658     <p>C: "GET MIDI_INSTRUMENT_MAP INFO 0"
6659     </p>
6660     <p>S: "NAME: Standard Map"
6661     </p>
6662 iliev 1137 <p>&nbsp;&nbsp;&nbsp;"DEFAULT: true"
6663     </p>
6664 schoenebeck 974 <p>&nbsp;&nbsp;&nbsp;"."
6665     </p>
6666     </blockquote><p>
6667    
6668     </p>
6669     <a name="SET MIDI_INSTRUMENT_MAP NAME"></a><br /><hr />
6670     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
6671     <a name="rfc.section.6.7.6"></a><h3>6.7.6.&nbsp;
6672     Renaming a MIDI instrument map</h3>
6673    
6674     <p>The front-end can alter the custom name of a MIDI
6675     instrument map by sending the following command:
6676     </p>
6677     <p>
6678     </p>
6679     <blockquote class="text">
6680     <p>SET MIDI_INSTRUMENT_MAP NAME &lt;map&gt; &lt;name&gt;
6681     </p>
6682     </blockquote><p>
6683    
6684     </p>
6685     <p>Where &lt;map&gt; is the numerical ID of the map and
6686     &lt;name&gt; the new custom name of the map, which does not
6687 schoenebeck 1390 have to be unique (name MUST be encapsulated into apostrophes
6688     and supports escape sequences as described in chapter
6689     "<a class='info' href='#character_set'>Character Set and Escape Sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>").
6690    
6691 schoenebeck 974 </p>
6692     <p>Possible Answers:
6693     </p>
6694     <p>
6695     </p>
6696     <blockquote class="text">
6697     <p>"OK" -
6698     </p>
6699     <blockquote class="text">
6700     <p>on success
6701     </p>
6702     </blockquote>
6703    
6704    
6705     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
6706     </p>
6707     <blockquote class="text">
6708     <p>in case the given map does not exist
6709     </p>
6710     </blockquote>
6711    
6712    
6713     </blockquote><p>
6714    
6715     </p>
6716     <p>Example:
6717     </p>
6718     <p>
6719     </p>
6720     <blockquote class="text">
6721     <p>C: "SET MIDI_INSTRUMENT_MAP NAME 0 'Foo instruments'"
6722     </p>
6723     <p>S: "OK"
6724     </p>
6725     </blockquote><p>
6726    
6727     </p>
6728 schoenebeck 945 <a name="MAP MIDI_INSTRUMENT"></a><br /><hr />
6729 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
6730     <a name="rfc.section.6.7.7"></a><h3>6.7.7.&nbsp;
6731     Create or replace a MIDI instrument map entry</h3>
6732 schoenebeck 945
6733     <p>The front-end can create a new or replace an existing entry
6734 schoenebeck 974 in a sampler's MIDI instrument map by sending the following
6735 schoenebeck 945 command:
6736     </p>
6737     <p>
6738     </p>
6739     <blockquote class="text">
6740 schoenebeck 1048 <p>MAP MIDI_INSTRUMENT [NON_MODAL] &lt;map&gt;
6741 schoenebeck 974 &lt;midi_bank&gt; &lt;midi_prog&gt; &lt;engine_name&gt;
6742 schoenebeck 945 &lt;filename&gt; &lt;instrument_index&gt; &lt;volume_value&gt;
6743     [&lt;instr_load_mode&gt;] [&lt;name&gt;]
6744     </p>
6745     </blockquote><p>
6746    
6747     </p>
6748 schoenebeck 974 <p>Where &lt;map&gt; is the numeric ID of the map to alter,
6749     &lt;midi_bank&gt; is an integer value between
6750     0..16383 reflecting the MIDI bank select index,
6751     &lt;midi_prog&gt; an
6752 schoenebeck 945 integer value between 0..127 reflecting the MIDI program change
6753     index, &lt;engine_name&gt; a sampler engine name as returned by
6754 schoenebeck 974 the <a class='info' href='#LIST AVAILABLE_ENGINES'>"LIST AVAILABLE_ENGINES"<span> (</span><span class='info'>Getting all available engines</span><span>)</span></a>
6755 schoenebeck 945 command (not encapsulated into apostrophes), &lt;filename&gt; the name
6756 schoenebeck 1251 of the instrument's file to be deployed (encapsulated into apostrophes,
6757     supporting escape sequences as described in chapter
6758     "<a class='info' href='#character_set'>Character Set and Escape Sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>"),
6759 schoenebeck 974 &lt;instrument_index&gt; the index (integer value) of the instrument
6760 schoenebeck 945 within the given file, &lt;volume_value&gt; reflects the master
6761     volume of the instrument as optionally dotted number (where a
6762 schoenebeck 1028 value &lt; 1.0 means attenuation and a value > 1.0 means
6763 schoenebeck 945 amplification). This parameter easily allows to adjust the
6764     volume of all intruments within a custom instrument map
6765     without having to adjust their instrument files. The
6766     OPTIONAL &lt;instr_load_mode&gt; argument defines the life
6767     time of the instrument, that is when the instrument should
6768     be loaded, when freed and has exactly the following
6769     possibilities:
6770     </p>
6771     <p>
6772     </p>
6773     <blockquote class="text">
6774     <p>"ON_DEMAND" -
6775     </p>
6776     <blockquote class="text">
6777     <p>The instrument will be loaded when needed,
6778     that is when demanded by at least one sampler
6779     channel. It will immediately be freed from memory
6780     when not needed by any sampler channel anymore.
6781     </p>
6782     </blockquote>
6783    
6784    
6785     <p>"ON_DEMAND_HOLD" -
6786     </p>
6787     <blockquote class="text">
6788     <p>The instrument will be loaded when needed,
6789     that is when demanded by at least one sampler
6790     channel. It will be kept in memory even when
6791     not needed by any sampler channel anymore.
6792     Instruments with this mode are only freed
6793     when the sampler is reset or all mapping
6794     entries with this mode (and respective
6795     instrument) are explicitly changed to
6796     "ON_DEMAND" and no sampler channel is using
6797     the instrument anymore.
6798     </p>
6799     </blockquote>
6800    
6801    
6802     <p>"PERSISTENT" -
6803     </p>
6804     <blockquote class="text">
6805     <p>The instrument will immediately be loaded
6806 schoenebeck 1048 into memory when this mapping
6807 schoenebeck 945 command is sent and the instrument is kept all
6808     the time. Instruments with this mode are
6809     only freed when the sampler is reset or all
6810     mapping entries with this mode (and
6811     respective instrument) are explicitly
6812     changed to "ON_DEMAND" and no sampler
6813     channel is using the instrument anymore.
6814     </p>
6815     </blockquote>
6816    
6817    
6818     <p>not supplied -
6819     </p>
6820     <blockquote class="text">
6821     <p>In case there is no &lt;instr_load_mode&gt;
6822     argument given, it will be up to the
6823     InstrumentManager to decide which mode to use.
6824     Usually it will use "ON_DEMAND" if an entry
6825     for the given instrument does not exist in
6826     the InstrumentManager's list yet, otherwise
6827     if an entry already exists, it will simply
6828     stick with the mode currently reflected by
6829     the already existing entry, that is it will
6830     not change the mode.
6831     </p>
6832     </blockquote>
6833    
6834    
6835     </blockquote><p>
6836    
6837     </p>
6838     <p>
6839     The &lt;instr_load_mode&gt; argument thus allows to define an
6840     appropriate strategy (low memory consumption vs. fast
6841     instrument switching) for each instrument individually. Note, the
6842     following restrictions apply to this argument: "ON_DEMAND_HOLD" and
6843     "PERSISTENT" have to be supported by the respective sampler engine
6844     (which is technically the case when the engine provides an
6845     InstrumentManager for its format). If this is not the case the
6846     argument will automatically fall back to the default value
6847     "ON_DEMAND". Also the load mode of one instrument may
6848     automatically change the laod mode of other instrument(s), i.e.
6849     because the instruments are part of the same file and the
6850     engine does not allow a way to manage load modes for them
6851     individually. Due to this, in case the frontend shows the
6852     load modes of entries, the frontend should retrieve the actual
6853     mode by i.e. sending
6854 schoenebeck 974 <a class='info' href='#GET MIDI_INSTRUMENT INFO'>"GET MIDI_INSTRUMENT INFO"<span> (</span><span class='info'>Get current settings of MIDI instrument map entry</span><span>)</span></a>
6855 schoenebeck 1390 command(s). Finally the OPTIONAL &lt;name&gt; argument allows to set a custom name
6856     (encapsulated into apostrophes, supporting escape sequences as described in chapter
6857     "<a class='info' href='#character_set'>Character Set and Escape Sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>") for the
6858     mapping entry, useful for frontends for displaying an appropriate name for
6859 schoenebeck 945 mapped instruments (using
6860 schoenebeck 974 <a class='info' href='#GET MIDI_INSTRUMENT INFO'>"GET MIDI_INSTRUMENT INFO"<span> (</span><span class='info'>Get current settings of MIDI instrument map entry</span><span>)</span></a>).
6861 schoenebeck 945
6862     </p>
6863     <p>
6864 schoenebeck 1048 By default, "MAP MIDI_INSTRUMENT" commands block until the mapping is
6865     completely established in the sampler. The OPTIONAL "NON_MODAL" argument
6866     however causes the respective "MAP MIDI_INSTRUMENT" command to return
6867     immediately, that is to let the sampler establish the mapping in the
6868     background. So this argument might be especially useful for mappings with
6869     a "PERSISTENT" type, because these have to load the respective instruments
6870     immediately and might thus block for a very long time. It is recommended
6871     however to use the OPTIONAL "NON_MODAL" argument only if really necessary,
6872     because it has the following drawbacks: as "NON_MODAL" instructions return
6873     immediately, they may not necessarily return an error i.e. when the given
6874     instrument file turns out to be corrupt, beside that subsequent commands
6875     in a LSCP instruction sequence might fail, because mandatory mappings are
6876     not yet completed.
6877 schoenebeck 945
6878     </p>
6879     <p>Possible Answers:
6880     </p>
6881     <p>
6882     </p>
6883     <blockquote class="text">
6884     <p>"OK" -
6885     </p>
6886     <blockquote class="text">
6887     <p>usually
6888     </p>
6889     </blockquote>
6890    
6891    
6892     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
6893     </p>
6894     <blockquote class="text">
6895 schoenebeck 974 <p>when the given map or engine does not exist or a value
6896 schoenebeck 945 is out of range
6897     </p>
6898     </blockquote>
6899    
6900    
6901     </blockquote><p>
6902    
6903     </p>
6904     <p>Examples:
6905     </p>
6906     <p>
6907     </p>
6908     <blockquote class="text">
6909 schoenebeck 974 <p>C: "MAP MIDI_INSTRUMENT 0 3 0 gig '/usr/share/Steinway D.gig' 0 0.8 PERSISTENT"
6910 schoenebeck 945 </p>
6911     <p>S: "OK"
6912     </p>
6913     </blockquote><p>
6914    
6915     </p>
6916     <p>
6917     </p>
6918     <blockquote class="text">
6919 schoenebeck 974 <p>C: "MAP MIDI_INSTRUMENT 0 4 50 gig '/home/john/foostrings.gig' 7 1.0"
6920 schoenebeck 945 </p>
6921     <p>S: "OK"
6922     </p>
6923     </blockquote><p>
6924    
6925     </p>
6926     <p>
6927     </p>
6928     <blockquote class="text">
6929     <p>C: "MAP MIDI_INSTRUMENT 0 0 0 gig '/usr/share/piano.gig' 0 1.0 'Normal Piano'"
6930     </p>
6931     <p>S: "OK"
6932     </p>
6933 schoenebeck 974 <p>C: "MAP MIDI_INSTRUMENT 0 1 0 gig '/usr/share/piano.gig' 0 0.25 'Silent Piano'"
6934 schoenebeck 945 </p>
6935     <p>S: "OK"
6936     </p>
6937     </blockquote><p>
6938    
6939     </p>
6940     <p>
6941     </p>
6942     <blockquote class="text">
6943 schoenebeck 1048 <p>C: "MAP MIDI_INSTRUMENT NON_MODAL 1 8 120 gig '/home/joe/foodrums.gig' 0 1.0 PERSISTENT 'Foo Drumkit'"
6944 schoenebeck 945 </p>
6945     <p>S: "OK"
6946     </p>
6947     </blockquote><p>
6948    
6949     </p>
6950     <a name="GET MIDI_INSTRUMENTS"></a><br /><hr />
6951 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
6952     <a name="rfc.section.6.7.8"></a><h3>6.7.8.&nbsp;
6953     Getting ammount of MIDI instrument map entries</h3>
6954 schoenebeck 945
6955 schoenebeck 974 <p>The front-end can query the amount of currently existing
6956     entries in a MIDI instrument map by sending the following
6957 schoenebeck 945 command:
6958     </p>
6959     <p>
6960     </p>
6961     <blockquote class="text">
6962 schoenebeck 974 <p>GET MIDI_INSTRUMENTS &lt;map&gt;
6963 schoenebeck 945 </p>
6964     </blockquote><p>
6965    
6966     </p>
6967 schoenebeck 974 <p>The front-end can query the amount of currently existing
6968     entries in all MIDI instrument maps by sending the following
6969     command:
6970     </p>
6971     <p>
6972     </p>
6973     <blockquote class="text">
6974     <p>GET MIDI_INSTRUMENTS ALL
6975     </p>
6976     </blockquote><p>
6977    
6978     </p>
6979 schoenebeck 945 <p>Possible Answers:
6980     </p>
6981     <p>
6982     </p>
6983     <blockquote class="text">
6984 schoenebeck 974 <p>The sampler will answer by sending the current number of
6985     entries in the MIDI instrument map(s).
6986 schoenebeck 945 </p>
6987     </blockquote><p>
6988    
6989     </p>
6990     <p>Example:
6991     </p>
6992     <p>
6993     </p>
6994     <blockquote class="text">
6995 schoenebeck 974 <p>C: "GET MIDI_INSTRUMENTS 0"
6996 schoenebeck 945 </p>
6997 schoenebeck 974 <p>S: "234"
6998 schoenebeck 945 </p>
6999     </blockquote><p>
7000    
7001     </p>
7002 schoenebeck 974 <p>
7003     </p>
7004     <blockquote class="text">
7005     <p>C: "GET MIDI_INSTRUMENTS ALL"
7006     </p>
7007     <p>S: "954"
7008     </p>
7009     </blockquote><p>
7010    
7011     </p>
7012 schoenebeck 945 <a name="LIST MIDI_INSTRUMENTS"></a><br /><hr />
7013 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
7014     <a name="rfc.section.6.7.9"></a><h3>6.7.9.&nbsp;
7015     Getting indeces of all entries of a MIDI instrument map</h3>
7016 schoenebeck 945
7017 schoenebeck 974 <p>The front-end can query a list of all currently existing
7018     entries in a certain MIDI instrument map by sending the following
7019     command:
7020 schoenebeck 945 </p>
7021     <p>
7022     </p>
7023     <blockquote class="text">
7024 schoenebeck 974 <p>LIST MIDI_INSTRUMENTS &lt;map&gt;
7025 schoenebeck 945 </p>
7026     </blockquote><p>
7027    
7028     </p>
7029 schoenebeck 974 <p>Where &lt;map&gt; is the numeric ID of the MIDI instrument map.
7030     </p>
7031     <p>The front-end can query a list of all currently existing
7032     entries of all MIDI instrument maps by sending the following
7033     command:
7034     </p>
7035     <p>
7036     </p>
7037     <blockquote class="text">
7038     <p>LIST MIDI_INSTRUMENTS ALL
7039     </p>
7040     </blockquote><p>
7041    
7042     </p>
7043 schoenebeck 945 <p>Possible Answers:
7044     </p>
7045     <p>
7046     </p>
7047     <blockquote class="text">
7048 schoenebeck 974 <p>The sampler will answer by sending a comma separated
7049     list of map ID - MIDI bank - MIDI program triples, where
7050     each triple is encapsulated into curly braces. The
7051     list is returned in one single line. Each triple
7052     just reflects the key of the respective map entry,
7053     thus subsequent
7054     <a class='info' href='#GET MIDI_INSTRUMENT INFO'>"GET MIDI_INSTRUMENT INFO"<span> (</span><span class='info'>Get current settings of MIDI instrument map entry</span><span>)</span></a>
7055 schoenebeck 945 command(s) are necessary to retrieve detailed informations
7056     about each entry.
7057     </p>
7058     </blockquote><p>
7059    
7060     </p>
7061     <p>Example:
7062     </p>
7063     <p>
7064     </p>
7065     <blockquote class="text">
7066 schoenebeck 974 <p>C: "LIST MIDI_INSTRUMENTS 0"
7067 schoenebeck 945 </p>
7068 schoenebeck 974 <p>S: "{0,0,0},{0,0,1},{0,0,3},{0,1,4},{1,127,127}"
7069 schoenebeck 945 </p>
7070     </blockquote><p>
7071    
7072     </p>
7073     <a name="UNMAP MIDI_INSTRUMENT"></a><br /><hr />
7074 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
7075     <a name="rfc.section.6.7.10"></a><h3>6.7.10.&nbsp;
7076     Remove an entry from the MIDI instrument map</h3>
7077 schoenebeck 945
7078 schoenebeck 974 <p>The front-end can delete an entry from a MIDI instrument
7079 schoenebeck 945 map by sending the following command:
7080     </p>
7081     <p>
7082     </p>
7083     <blockquote class="text">
7084 schoenebeck 974 <p>UNMAP MIDI_INSTRUMENT &lt;map&gt; &lt;midi_bank&gt; &lt;midi_prog&gt;
7085 schoenebeck 945 </p>
7086     </blockquote><p>
7087    
7088     </p>
7089     <p>
7090 schoenebeck 974 Where &lt;map&gt; is the numeric ID of the MIDI instrument map,
7091     &lt;midi_bank&gt; is an integer value between 0..16383
7092     reflecting the MIDI bank value and
7093     &lt;midi_prog&gt; an integer value between
7094     0..127 reflecting the MIDI program value of the map's entrie's key
7095 schoenebeck 945 index triple.
7096    
7097     </p>
7098     <p>Possible Answers:
7099     </p>
7100     <p>
7101     </p>
7102     <blockquote class="text">
7103     <p>"OK" -
7104     </p>
7105     <blockquote class="text">
7106     <p>usually
7107     </p>
7108     </blockquote>
7109    
7110    
7111     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
7112     </p>
7113     <blockquote class="text">
7114     <p>when index out of bounds
7115     </p>
7116     </blockquote>
7117    
7118    
7119     </blockquote><p>
7120    
7121     </p>
7122     <p>Example:
7123     </p>
7124     <p>
7125     </p>
7126     <blockquote class="text">
7127 schoenebeck 974 <p>C: "UNMAP MIDI_INSTRUMENT 0 2 127"
7128 schoenebeck 945 </p>
7129     <p>S: "OK"
7130     </p>
7131     </blockquote><p>
7132    
7133     </p>
7134     <a name="GET MIDI_INSTRUMENT INFO"></a><br /><hr />
7135 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
7136     <a name="rfc.section.6.7.11"></a><h3>6.7.11.&nbsp;
7137     Get current settings of MIDI instrument map entry</h3>
7138 schoenebeck 945
7139     <p>The front-end can retrieve the current settings of a certain
7140     instrument map entry by sending the following command:
7141     </p>
7142     <p>
7143     </p>
7144     <blockquote class="text">
7145 schoenebeck 974 <p>GET MIDI_INSTRUMENT INFO &lt;map&gt; &lt;midi_bank&gt; &lt;midi_prog&gt;
7146 schoenebeck 945 </p>
7147     </blockquote><p>
7148    
7149     </p>
7150     <p>
7151 schoenebeck 974 Where &lt;map&gt; is the numeric ID of the MIDI instrument map,
7152     &lt;midi_bank&gt; is an integer value between 0..16383
7153     reflecting the MIDI bank value, &lt;midi_bank&gt;
7154     and &lt;midi_prog&gt; an integer value between
7155     0..127 reflecting the MIDI program value of the map's entrie's key
7156 schoenebeck 945 index triple.
7157    
7158     </p>
7159     <p>Possible Answers:
7160     </p>
7161     <p>
7162     </p>
7163     <blockquote class="text">
7164     <p>LinuxSampler will answer by sending a &lt;CRLF&gt;
7165     separated list. Each answer line begins with the
7166     information category name followed by a colon and then
7167     a space character &lt;SP&gt; and finally the info
7168     character string to that info category. At the moment
7169     the following categories are defined:
7170     </p>
7171     <p>"NAME" -
7172     </p>
7173     <blockquote class="text">
7174     <p>Name for this MIDI instrument map entry (if defined).
7175     This name shall be used by frontends for displaying a
7176     name for this mapped instrument. It can be set and
7177     changed with the
7178 schoenebeck 974 <a class='info' href='#MAP MIDI_INSTRUMENT'>"MAP MIDI_INSTRUMENT"<span> (</span><span class='info'>Create or replace a MIDI instrument map entry</span><span>)</span></a>
7179 schoenebeck 945 command and does not have to be unique.
7180 schoenebeck 1400 (note that this character string may contain
7181     <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>)
7182 schoenebeck 945 </p>
7183     </blockquote>
7184    
7185    
7186     <p>"ENGINE_NAME" -
7187     </p>
7188     <blockquote class="text">
7189     <p>Name of the engine to be deployed for this
7190     instrument.
7191     </p>
7192     </blockquote>
7193    
7194    
7195     <p>"INSTRUMENT_FILE" -
7196     </p>
7197     <blockquote class="text">
7198 schoenebeck 1400 <p>File name of the instrument
7199     (note that this path may contain
7200     <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>).
7201 schoenebeck 945 </p>
7202     </blockquote>
7203    
7204    
7205     <p>"INSTRUMENT_NR" -
7206     </p>
7207     <blockquote class="text">
7208     <p>Index of the instrument within the file.
7209     </p>
7210     </blockquote>
7211    
7212    
7213     <p>"INSTRUMENT_NAME" -
7214     </p>
7215     <blockquote class="text">
7216     <p>Name of the loaded instrument as reflected by its file.
7217     In contrast to the "NAME" field, the "INSTRUMENT_NAME" field
7218 schoenebeck 1400 cannot be changed (note that this character string may contain
7219     <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>).
7220 schoenebeck 945 </p>
7221     </blockquote>
7222    
7223    
7224     <p>"LOAD_MODE" -
7225     </p>
7226     <blockquote class="text">
7227     <p>Life time of instrument
7228 schoenebeck 974 (see <a class='info' href='#MAP MIDI_INSTRUMENT'>"MAP MIDI_INSTRUMENT"<span> (</span><span class='info'>Create or replace a MIDI instrument map entry</span><span>)</span></a> for details about this setting).
7229 schoenebeck 945 </p>
7230     </blockquote>
7231    
7232    
7233     <p>"VOLUME" -
7234     </p>
7235     <blockquote class="text">
7236     <p>master volume of the instrument as optionally
7237 schoenebeck 1028 dotted number (where a value &lt; 1.0 means attenuation
7238 schoenebeck 945 and a value > 1.0 means amplification)
7239     </p>
7240     </blockquote>
7241    
7242    
7243     <p>The mentioned fields above don't have to be in particular order.
7244     </p>
7245     </blockquote><p>
7246    
7247     </p>
7248     <p>Example:
7249     </p>
7250     <p>
7251     </p>
7252     <blockquote class="text">
7253 schoenebeck 974 <p>C: "GET MIDI_INSTRUMENT INFO 1 45 120"
7254 schoenebeck 945 </p>
7255     <p>S: "NAME: Drums for Foo Song"
7256     </p>
7257     <p>&nbsp;&nbsp;&nbsp;"ENGINE_NAME: GigEngine"
7258     </p>
7259     <p>&nbsp;&nbsp;&nbsp;"INSTRUMENT_FILE: /usr/share/joesdrumkit.gig"
7260     </p>
7261     <p>&nbsp;&nbsp;&nbsp;"INSTRUMENT_NR: 0"
7262     </p>
7263     <p>&nbsp;&nbsp;&nbsp;"INSTRUMENT_NAME: Joe's Drumkit"
7264     </p>
7265     <p>&nbsp;&nbsp;&nbsp;"LOAD_MODE: PERSISTENT"
7266     </p>
7267     <p>&nbsp;&nbsp;&nbsp;"VOLUME: 1.0"
7268     </p>
7269     <p>&nbsp;&nbsp;&nbsp;"."
7270     </p>
7271     </blockquote><p>
7272    
7273     </p>
7274     <a name="CLEAR MIDI_INSTRUMENTS"></a><br /><hr />
7275 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
7276     <a name="rfc.section.6.7.12"></a><h3>6.7.12.&nbsp;
7277     Clear MIDI instrument map</h3>
7278 schoenebeck 945
7279 schoenebeck 974 <p>The front-end can clear a whole MIDI instrument map, that
7280     is delete all its entries by sending the following command:
7281 schoenebeck 945 </p>
7282     <p>
7283     </p>
7284     <blockquote class="text">
7285 schoenebeck 974 <p>CLEAR MIDI_INSTRUMENTS &lt;map&gt;
7286 schoenebeck 945 </p>
7287     </blockquote><p>
7288    
7289     </p>
7290 schoenebeck 974 <p>Where &lt;map&gt; is the numeric ID of the map to clear.
7291     </p>
7292     <p>The front-end can clear all MIDI instrument maps, that
7293     is delete all entries of all maps by sending the following
7294     command:
7295     </p>
7296     <p>
7297     </p>
7298     <blockquote class="text">
7299     <p>CLEAR MIDI_INSTRUMENTS ALL
7300     </p>
7301     </blockquote><p>
7302    
7303     </p>
7304     <p>The command "CLEAR MIDI_INSTRUMENTS ALL" does not delete the
7305     maps, only their entries, thus the map's settings like
7306     custom name will be preservevd.
7307     </p>
7308 schoenebeck 945 <p>Possible Answers:
7309     </p>
7310     <p>
7311     </p>
7312     <blockquote class="text">
7313     <p>"OK" -
7314     </p>
7315     <blockquote class="text">
7316     <p>always
7317     </p>
7318     </blockquote>
7319    
7320    
7321     </blockquote><p>
7322    
7323     </p>
7324 schoenebeck 974 <p>Examples:
7325 schoenebeck 945 </p>
7326     <p>
7327     </p>
7328     <blockquote class="text">
7329 schoenebeck 974 <p>C: "CLEAR MIDI_INSTRUMENTS 0"
7330 schoenebeck 945 </p>
7331     <p>S: "OK"
7332     </p>
7333     </blockquote><p>
7334    
7335     </p>
7336 schoenebeck 974 <p>
7337     </p>
7338     <blockquote class="text">
7339     <p>C: "CLEAR MIDI_INSTRUMENTS ALL"
7340     </p>
7341     <p>S: "OK"
7342     </p>
7343     </blockquote><p>
7344    
7345     </p>
7346 iliev 1162 <a name="Managing Instruments Database"></a><br /><hr />
7347     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
7348     <a name="rfc.section.6.8"></a><h3>6.8.&nbsp;
7349     Managing Instruments Database</h3>
7350    
7351     <p>The following commands describe how to use and manage
7352     the instruments database.
7353     </p>
7354 schoenebeck 1363 <p>Notice:
7355     </p>
7356     <p>
7357     </p>
7358     <blockquote class="text">
7359     <p>All command arguments representing a path or
7360     instrument/directory name support escape sequences as described in chapter
7361     "<a class='info' href='#character_set'>Character Set and Escape Sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>".
7362    
7363     </p>
7364     <p>All occurrences of a forward slash in instrument and directory
7365     names are escaped with its hex (\x2f) or octal (\057) escape sequence.
7366    
7367     </p>
7368     </blockquote><p>
7369    
7370     </p>
7371 iliev 1162 <a name="ADD DB_INSTRUMENT_DIRECTORY"></a><br /><hr />
7372     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
7373     <a name="rfc.section.6.8.1"></a><h3>6.8.1.&nbsp;
7374     Creating a new instrument directory</h3>
7375    
7376     <p>The front-end can add a new instrument directory to the
7377     instruments database by sending the following command:
7378     </p>
7379     <p>
7380     </p>
7381     <blockquote class="text">
7382     <p>ADD DB_INSTRUMENT_DIRECTORY &lt;dir&gt;
7383     </p>
7384     </blockquote><p>
7385    
7386     </p>
7387     <p>Where &lt;dir&gt; is the absolute path name of the directory
7388     to be created (encapsulated into apostrophes).
7389     </p>
7390     <p>Possible Answers:
7391     </p>
7392     <p>
7393     </p>
7394     <blockquote class="text">
7395     <p>"OK" -
7396     </p>
7397     <blockquote class="text">
7398     <p>on success
7399     </p>
7400     </blockquote>
7401    
7402    
7403     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
7404     </p>
7405     <blockquote class="text">
7406     <p>when the directory could not be created, which
7407     can happen if the directory already exists or the
7408     name contains not allowed symbols
7409     </p>
7410     </blockquote>
7411    
7412    
7413     </blockquote><p>
7414    
7415     </p>
7416     <p>Examples:
7417     </p>
7418     <p>
7419     </p>
7420     <blockquote class="text">
7421     <p>C: "ADD DB_INSTRUMENT_DIRECTORY '/Piano Collection'"
7422     </p>
7423     <p>S: "OK"
7424     </p>
7425     </blockquote><p>
7426    
7427     </p>
7428     <a name="REMOVE DB_INSTRUMENT_DIRECTORY"></a><br /><hr />
7429     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
7430     <a name="rfc.section.6.8.2"></a><h3>6.8.2.&nbsp;
7431     Deleting an instrument directory</h3>
7432    
7433     <p>The front-end can delete a particular instrument directory
7434     from the instruments database by sending the following command:
7435     </p>
7436     <p>
7437     </p>
7438     <blockquote class="text">
7439     <p>REMOVE DB_INSTRUMENT_DIRECTORY [FORCE] &lt;dir&gt;
7440     </p>
7441     </blockquote><p>
7442    
7443     </p>
7444     <p>Where &lt;dir&gt; is the absolute path name of the directory
7445     to delete. The optional FORCE argument can be used to
7446     force the deletion of a non-empty directory and all its content.
7447     </p>
7448     <p>Possible Answers:
7449     </p>
7450     <p>
7451     </p>
7452     <blockquote class="text">
7453     <p>"OK" -
7454     </p>
7455     <blockquote class="text">
7456     <p>if the directory is deleted successfully
7457     </p>
7458     </blockquote>
7459    
7460    
7461     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
7462     </p>
7463     <blockquote class="text">
7464     <p>if the given directory does not exist, or
7465     if trying to delete a non-empty directory,
7466     without using the FORCE argument.
7467     </p>
7468     </blockquote>
7469    
7470    
7471     </blockquote><p>
7472    
7473     </p>
7474     <p>Examples:
7475     </p>
7476     <p>
7477     </p>
7478     <blockquote class="text">
7479     <p>C: "REMOVE DB_INSTRUMENT_DIRECTORY FORCE '/Piano Collection'"
7480     </p>
7481     <p>S: "OK"
7482     </p>
7483     </blockquote><p>
7484    
7485     </p>
7486     <a name="GET DB_INSTRUMENT_DIRECTORIES"></a><br /><hr />
7487     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
7488     <a name="rfc.section.6.8.3"></a><h3>6.8.3.&nbsp;
7489     Getting amount of instrument directories</h3>
7490    
7491     <p>The front-end can retrieve the current amount of
7492     directories in a specific directory by sending the following command:
7493     </p>
7494     <p>
7495     </p>
7496     <blockquote class="text">
7497 iliev 1189 <p>GET DB_INSTRUMENT_DIRECTORIES [RECURSIVE] &lt;dir&gt;
7498 iliev 1162 </p>
7499     </blockquote><p>
7500    
7501     </p>
7502     <p>Where &lt;dir&gt; should be replaced by the absolute path
7503 iliev 1189 name of the directory. If RECURSIVE is specified, the number of
7504     all directories, including those located in subdirectories of the
7505     specified directory, will be returned.
7506 iliev 1162 </p>
7507     <p>Possible Answers:
7508     </p>
7509     <p>
7510     </p>
7511     <blockquote class="text">
7512     <p>The current number of instrument directories
7513     in the specified directory.
7514     </p>
7515     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
7516     </p>
7517     <blockquote class="text">
7518     <p>if the given directory does not exist.
7519     </p>
7520     </blockquote>
7521    
7522    
7523     </blockquote><p>
7524    
7525     </p>
7526     <p>Example:
7527     </p>
7528     <p>
7529     </p>
7530     <blockquote class="text">
7531     <p>C: "GET DB_INSTRUMENT_DIRECTORIES '/'"
7532     </p>
7533     <p>S: "2"
7534     </p>
7535     </blockquote><p>
7536    
7537     </p>
7538     <a name="LIST DB_INSTRUMENT_DIRECTORIES"></a><br /><hr />
7539     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
7540     <a name="rfc.section.6.8.4"></a><h3>6.8.4.&nbsp;
7541     Listing all directories in specific directory</h3>
7542    
7543     <p>The front-end can retrieve the current list of directories
7544     in specific directory by sending the following command:
7545     </p>
7546     <p>
7547     </p>
7548     <blockquote class="text">
7549 iliev 1189 <p>LIST DB_INSTRUMENT_DIRECTORIES [RECURSIVE] &lt;dir&gt;
7550 iliev 1162 </p>
7551     </blockquote><p>
7552    
7553     </p>
7554     <p>Where &lt;dir&gt; should be replaced by the absolute path
7555 iliev 1189 name of the directory. If RECURSIVE is specified, the absolute path names
7556     of all directories, including those located in subdirectories of the
7557     specified directory, will be returned.
7558 iliev 1162 </p>
7559     <p>Possible Answers:
7560     </p>
7561     <p>
7562     </p>
7563     <blockquote class="text">
7564     <p>A comma separated list of all instrument directories
7565     (encapsulated into apostrophes) in the specified directory.
7566     </p>
7567     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
7568     </p>
7569     <blockquote class="text">
7570     <p>if the given directory does not exist.
7571     </p>
7572     </blockquote>
7573    
7574    
7575     </blockquote><p>
7576    
7577     </p>
7578     <p>Example:
7579     </p>
7580     <p>
7581     </p>
7582     <blockquote class="text">
7583     <p>C: "LIST DB_INSTRUMENT_DIRECTORIES '/'"
7584     </p>
7585     <p>S: "'Piano Collection','Percussion Collection'"
7586     </p>
7587     </blockquote><p>
7588    
7589     </p>
7590 iliev 1189 <p>
7591     </p>
7592     <blockquote class="text">
7593     <p>C: "LIST DB_INSTRUMENT_DIRECTORIES RECURSIVE '/'"
7594     </p>
7595     <p>S: "'/Piano Collection','/Piano Collection/Acoustic','/Piano Collection/Acoustic/New','/Percussion Collection'"
7596     </p>
7597     </blockquote><p>
7598    
7599     </p>
7600 iliev 1162 <a name="GET DB_INSTRUMENT_DIRECTORY INFO"></a><br /><hr />
7601     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
7602     <a name="rfc.section.6.8.5"></a><h3>6.8.5.&nbsp;
7603     Getting instrument directory information</h3>
7604    
7605     <p>The front-end can ask for the current settings of an
7606     instrument directory by sending the following command:
7607     </p>
7608     <p>
7609     </p>
7610     <blockquote class="text">
7611     <p>GET DB_INSTRUMENT_DIRECTORY INFO &lt;dir&gt;
7612     </p>
7613     </blockquote><p>
7614    
7615     </p>
7616     <p>Where &lt;dir&gt; should be replaced by the absolute path
7617     name of the directory the front-end is interested in.
7618     </p>
7619     <p>Possible Answers:
7620     </p>
7621     <p>
7622     </p>
7623     <blockquote class="text">
7624     <p>LinuxSampler will answer by sending a &lt;CRLF&gt; separated list.
7625     Each answer line begins with the settings category name
7626     followed by a colon and then a space character &lt;SP&gt; and finally
7627     the info character string to that setting category. At the
7628     moment the following categories are defined:
7629     </p>
7630     <p>
7631     </p>
7632     <blockquote class="text">
7633     <p>DESCRIPTION -
7634     </p>
7635     <blockquote class="text">
7636 schoenebeck 1363 <p>A brief description of the directory content.
7637     Note that the character string may contain
7638     <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>.
7639 iliev 1162 </p>
7640     </blockquote>
7641    
7642    
7643     <p>CREATED -
7644     </p>
7645     <blockquote class="text">
7646     <p>The creation date and time of the directory,
7647     represented in "YYYY-MM-DD HH:MM:SS" format
7648     </p>
7649     </blockquote>
7650    
7651    
7652     <p>MODIFIED -
7653     </p>
7654     <blockquote class="text">
7655     <p>The date and time of the last modification of the
7656     directory, represented in "YYYY-MM-DD HH:MM:SS" format
7657     </p>
7658     </blockquote>
7659    
7660    
7661     </blockquote>
7662    
7663    
7664     </blockquote><p>
7665    
7666     </p>
7667     <p>The mentioned fields above don't have to be in particular order.
7668     </p>
7669     <p>Example:
7670     </p>
7671     <p>
7672     </p>
7673     <blockquote class="text">
7674     <p>C: "GET DB_INSTRUMENT_DIRECTORY INFO '/Piano Collection'"
7675     </p>
7676     <p>S: "DESCRIPTION: Piano collection of instruments in GigaSampler format."
7677     </p>
7678     <p>&nbsp;&nbsp;&nbsp;"CREATED: 2007-02-05 10:23:12"
7679     </p>
7680     <p>&nbsp;&nbsp;&nbsp;"MODIFIED: 2007-04-07 12:50:21"
7681     </p>
7682     <p>&nbsp;&nbsp;&nbsp;"."
7683     </p>
7684     </blockquote><p>
7685    
7686     </p>
7687     <a name="SET DB_INSTRUMENT_DIRECTORY NAME"></a><br /><hr />
7688     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
7689     <a name="rfc.section.6.8.6"></a><h3>6.8.6.&nbsp;
7690     Renaming an instrument directory</h3>
7691    
7692     <p>The front-end can alter the name of a specific
7693     instrument directory by sending the following command:
7694     </p>
7695     <p>
7696     </p>
7697     <blockquote class="text">
7698     <p>SET DB_INSTRUMENT_DIRECTORY NAME &lt;dir&gt; &lt;name&gt;
7699     </p>
7700     </blockquote><p>
7701    
7702     </p>
7703     <p>Where &lt;dir&gt; is the absolute path name of the directory and
7704     &lt;name&gt; is the new name for that directory.
7705     </p>
7706     <p>Possible Answers:
7707     </p>
7708     <p>
7709     </p>
7710     <blockquote class="text">
7711     <p>"OK" -
7712     </p>
7713     <blockquote class="text">
7714     <p>on success
7715     </p>
7716     </blockquote>
7717    
7718    
7719     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
7720     </p>
7721     <blockquote class="text">
7722     <p>in case the given directory does not exists,
7723     or if a directory with name equal to the new
7724     name already exists.
7725     </p>
7726     </blockquote>
7727    
7728    
7729     </blockquote><p>
7730    
7731     </p>
7732     <p>Example:
7733     </p>
7734     <p>
7735     </p>
7736     <blockquote class="text">
7737     <p>C: "SET DB_INSTRUMENT_DIRECTORY NAME '/Piano Collection/Acustic' 'Acoustic'"
7738     </p>
7739     <p>S: "OK"
7740     </p>
7741     </blockquote><p>
7742    
7743     </p>
7744     <a name="MOVE DB_INSTRUMENT_DIRECTORY"></a><br /><hr />
7745     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
7746     <a name="rfc.section.6.8.7"></a><h3>6.8.7.&nbsp;
7747     Moving an instrument directory</h3>
7748    
7749     <p>The front-end can move a specific
7750     instrument directory by sending the following command:
7751     </p>
7752     <p>
7753     </p>
7754     <blockquote class="text">
7755     <p>MOVE DB_INSTRUMENT_DIRECTORY &lt;dir&gt; &lt;dst&gt;
7756     </p>
7757     </blockquote><p>
7758    
7759     </p>
7760     <p>Where &lt;dir&gt; is the absolute path name of the directory
7761     to move and &lt;dst&gt; is the location where the directory will
7762     be moved to.
7763     </p>
7764     <p>Possible Answers:
7765     </p>
7766     <p>
7767     </p>
7768     <blockquote class="text">
7769     <p>"OK" -
7770     </p>
7771     <blockquote class="text">
7772     <p>on success
7773     </p>
7774     </blockquote>
7775    
7776    
7777     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
7778     </p>
7779     <blockquote class="text">
7780     <p>in case a given directory does not exists,
7781     or if a directory with name equal to the name
7782     of the specified directory already exists in
7783     the destination directory. Error is also thrown
7784     when trying to move a directory to a subdirectory
7785     of itself.
7786     </p>
7787     </blockquote>
7788    
7789    
7790     </blockquote><p>
7791    
7792     </p>
7793     <p>Example:
7794     </p>
7795     <p>
7796     </p>
7797     <blockquote class="text">
7798     <p>C: "MOVE DB_INSTRUMENT_DIRECTORY '/Acoustic' '/Piano Collection/Acoustic'"
7799     </p>
7800     <p>S: "OK"
7801     </p>
7802     </blockquote><p>
7803    
7804     </p>
7805 iliev 1189 <a name="COPY DB_INSTRUMENT_DIRECTORY"></a><br /><hr />
7806     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
7807     <a name="rfc.section.6.8.8"></a><h3>6.8.8.&nbsp;
7808     Copying instrument directories</h3>
7809    
7810     <p>The front-end can copy a specific
7811     instrument directory by sending the following command:
7812     </p>
7813     <p>
7814     </p>
7815     <blockquote class="text">
7816     <p>COPY DB_INSTRUMENT_DIRECTORY &lt;dir&gt; &lt;dst&gt;
7817     </p>
7818     </blockquote><p>
7819    
7820     </p>
7821     <p>Where &lt;dir&gt; is the absolute path name of the directory
7822     to copy and &lt;dst&gt; is the location where the directory will
7823     be copied to.
7824     </p>
7825     <p>Possible Answers:
7826     </p>
7827     <p>
7828     </p>
7829     <blockquote class="text">
7830     <p>"OK" -
7831     </p>
7832     <blockquote class="text">
7833     <p>on success
7834     </p>
7835     </blockquote>
7836    
7837    
7838     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
7839     </p>
7840     <blockquote class="text">
7841     <p>in case a given directory does not exists,
7842     or if a directory with name equal to the name
7843     of the specified directory already exists in
7844     the destination directory. Error is also thrown
7845     when trying to copy a directory to a subdirectory
7846     of itself.
7847     </p>
7848     </blockquote>
7849    
7850    
7851     </blockquote><p>
7852    
7853     </p>
7854     <p>Example:
7855     </p>
7856     <p>
7857     </p>
7858     <blockquote class="text">
7859     <p>C: "COPY DB_INSTRUMENT_DIRECTORY '/Piano Collection/Acoustic' '/Acoustic/Pianos'"
7860     </p>
7861     <p>S: "OK"
7862     </p>
7863     </blockquote><p>
7864    
7865     </p>
7866 iliev 1162 <a name="SET DB_INSTRUMENT_DIRECTORY DESCRIPTION"></a><br /><hr />
7867     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
7868 iliev 1189 <a name="rfc.section.6.8.9"></a><h3>6.8.9.&nbsp;
7869 iliev 1162 Changing the description of directory</h3>
7870    
7871     <p>The front-end can alter the description of a specific
7872     instrument directory by sending the following command:
7873     </p>
7874     <p>
7875     </p>
7876     <blockquote class="text">
7877     <p>SET DB_INSTRUMENT_DIRECTORY DESCRIPTION &lt;dir&gt; &lt;desc&gt;
7878     </p>
7879     </blockquote><p>
7880    
7881     </p>
7882     <p>Where &lt;dir&gt; is the absolute path name of the directory and
7883 schoenebeck 1363 &lt;desc&gt; is the new description for the directory
7884     (encapsulated into apostrophes, supporting escape sequences as described in chapter
7885     "<a class='info' href='#character_set'>Character Set and Escape Sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>").
7886 iliev 1162 </p>
7887     <p>Possible Answers:
7888     </p>
7889     <p>
7890     </p>
7891     <blockquote class="text">
7892     <p>"OK" -
7893     </p>
7894     <blockquote class="text">
7895     <p>on success
7896     </p>
7897     </blockquote>
7898    
7899    
7900     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
7901     </p>
7902     <blockquote class="text">
7903     <p>in case the given directory does not exists.
7904     </p>
7905     </blockquote>
7906    
7907    
7908     </blockquote><p>
7909    
7910     </p>
7911     <p>Example:
7912     </p>
7913     <p>
7914     </p>
7915     <blockquote class="text">
7916     <p>C: "SET DB_INSTRUMENT_DIRECTORY DESCRIPTION '/Piano Collection' 'A collection of piano instruments in various format.'"
7917     </p>
7918     <p>S: "OK"
7919     </p>
7920     </blockquote><p>
7921    
7922     </p>
7923 iliev 1189 <a name="FIND DB_INSTRUMENT_DIRECTORIES"></a><br /><hr />
7924     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
7925     <a name="rfc.section.6.8.10"></a><h3>6.8.10.&nbsp;
7926     Finding directories</h3>
7927    
7928     <p>The front-end can search for directories
7929     in specific directory by sending the following command:
7930     </p>
7931     <p>
7932     </p>
7933     <blockquote class="text">
7934     <p>FIND DB_INSTRUMENT_DIRECTORIES [NON_RECURSIVE] &lt;dir&gt; &lt;criteria-list&gt;
7935     </p>
7936     </blockquote><p>
7937    
7938     </p>
7939     <p>Where &lt;dir&gt; should be replaced by the absolute path
7940     name of the directory to search in. If NON_RECURSIVE is specified, the
7941     directories located in subdirectories of the specified directory will not
7942     be searched. &lt;criteria-list&gt; is a list of search criterias
7943     in form of "key1=val1 key2=val2 ...". The following criterias are
7944     allowed:
7945     </p>
7946     <p>
7947    
7948     <p>NAME='&lt;search-string&gt;'
7949     </p>
7950     <blockquote class="text">
7951     <p>Restricts the search to directories, which names
7952 schoenebeck 1363 satisfy the supplied search string (encapsulated into apostrophes,
7953     supporting escape sequences as described in chapter
7954     "<a class='info' href='#character_set'>Character Set and Escape Sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>").
7955 iliev 1189 </p>
7956     </blockquote><p>
7957    
7958     </p>
7959    
7960    
7961     <p>CREATED='[&lt;date-after&gt;]..[&lt;date-before&gt;]'
7962     </p>
7963     <blockquote class="text">
7964     <p>Restricts the search to directories, which creation
7965     date satisfies the specified period, where &lt;date-after&gt;
7966     and &lt;date-before&gt; are in "YYYY-MM-DD HH:MM:SS" format.
7967     If &lt;date-after&gt; is omitted the search is restricted to
7968     directories created before &lt;date-before&gt;. If
7969     &lt;date-before&gt; is omitted, the search is restricted
7970     to directories created after &lt;date-after&gt;.
7971     </p>
7972     </blockquote><p>
7973    
7974     </p>
7975    
7976    
7977     <p>MODIFIED='[&lt;date-after&gt;]..[&lt;date-before&gt;]'
7978     </p>
7979     <blockquote class="text">
7980     <p>Restricts the search to directories, which
7981     date of last modification satisfies the specified period, where
7982     &lt;date-after&gt; and &lt;date-before&gt; are in "YYYY-MM-DD HH:MM:SS"
7983     format. If &lt;date-after&gt; is omitted the search is restricted to
7984     directories, which are last modified before &lt;date-before&gt;. If
7985     &lt;date-before&gt; is omitted, the search is restricted to directories,
7986     which are last modified after &lt;date-after&gt;.
7987     </p>
7988     </blockquote><p>
7989    
7990     </p>
7991    
7992    
7993     <p>DESCRIPTION='&lt;search-string&gt;'
7994     </p>
7995     <blockquote class="text">
7996     <p>Restricts the search to directories with description
7997 schoenebeck 1363 that satisfies the supplied search string
7998     (encapsulated into apostrophes, supporting escape
7999     sequences as described in chapter
8000     "<a class='info' href='#character_set'>Character Set and Escape Sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>").
8001 iliev 1189 </p>
8002     </blockquote><p>
8003    
8004     </p>
8005    
8006    
8007     <p>Where &lt;search-string&gt; is either a regular expression, or a
8008     word list separated with spaces for OR search and with '+' for AND search.
8009     </p>
8010     <p>Possible Answers:
8011     </p>
8012     <p>
8013     </p>
8014     <blockquote class="text">
8015     <p>A comma separated list with the absolute path names (encapsulated into
8016     apostrophes) of all directories in the specified directory that satisfy
8017     the supplied search criterias.
8018     </p>
8019     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
8020     </p>
8021     <blockquote class="text">
8022     <p>if the given directory does not exist.
8023     </p>
8024     </blockquote>
8025    
8026    
8027     </blockquote><p>
8028    
8029     </p>
8030     <p>Example:
8031     </p>
8032     <p>
8033     </p>
8034     <blockquote class="text">
8035     <p>C: "FIND DB_INSTRUMENT_DIRECTORIES '/' NAME='Piano'"
8036     </p>
8037     <p>S: "'/Piano Collection'"
8038     </p>
8039     </blockquote><p>
8040    
8041     </p>
8042     <p>
8043     </p>
8044     <blockquote class="text">
8045     <p>C: "FIND DB_INSTRUMENT_DIRECTORIES '/' CREATED='..2007-04-01 09:30:13'"
8046     </p>
8047     <p>S: "'/Piano Collection','/Percussions'"
8048     </p>
8049     </blockquote><p>
8050    
8051     </p>
8052 iliev 1162 <a name="ADD DB_INSTRUMENTS"></a><br /><hr />
8053     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
8054 iliev 1189 <a name="rfc.section.6.8.11"></a><h3>6.8.11.&nbsp;
8055 iliev 1162 Adding instruments to the instruments database</h3>
8056    
8057     <p>The front-end can add one or more instruments
8058     to the instruments database by sending the following command:
8059     </p>
8060     <p>
8061     </p>
8062     <blockquote class="text">
8063 iliev 1201 <p>ADD DB_INSTRUMENTS [NON_MODAL] [&lt;mode&gt;] &lt;db_dir&gt; &lt;file_path&gt; [&lt;instr_index&gt;]
8064 iliev 1162 </p>
8065     </blockquote><p>
8066    
8067     </p>
8068     <p>Where &lt;db_dir&gt; is the absolute path name of a directory
8069     (encapsulated into apostrophes) in the instruments database in which
8070     only the new instruments (that are not already in the database) will
8071     be added, &lt;file_path&gt; is the absolute path name of a file or
8072     directory in the file system (encapsulated into apostrophes). In case
8073     an instrument file is supplied, only the instruments in the specified
8074     file will be added to the instruments database. If the optional
8075     &lt;instr_index&gt; (the index of the instrument within the given file)
8076     is supplied too, then only the specified instrument will be added.
8077     In case a directory is supplied, the instruments in that directory
8078     will be added. The OPTIONAL &lt;mode&gt; argument is only applied
8079     when a directory is provided as &lt;file_path&gt; and specifies how the
8080     scanning will be done and has exactly the following possibilities:
8081     </p>
8082     <p>
8083     </p>
8084     <blockquote class="text">
8085 iliev 1201 <p>"RECURSIVE" -
8086     </p>
8087     <blockquote class="text">
8088     <p>All instruments will be processed, including those
8089     in the subdirectories, and the respective subdirectory
8090     tree structure will be recreated in the instruments
8091     database
8092     </p>
8093     </blockquote>
8094    
8095    
8096 iliev 1162 <p>"NON_RECURSIVE" -
8097     </p>
8098     <blockquote class="text">
8099     <p>Only the instruments in the specified directory
8100     will be added, the instruments in the subdirectories
8101     will not be processed.
8102     </p>
8103     </blockquote>
8104    
8105    
8106     <p>"FLAT" -
8107     </p>
8108     <blockquote class="text">
8109     <p>All instruments will be processed, including those
8110     in the subdirectories, but the respective subdirectory
8111     structure will not be recreated in the instruments
8112     database. All instruments will be added directly in
8113     the specified database directory.
8114     </p>
8115     </blockquote>
8116    
8117    
8118     </blockquote><p>
8119    
8120     </p>
8121 iliev 1201 <p>The difference between regular and NON_MODAL versions of the command
8122     is that the regular command returns when the scanning is finished
8123     while NON_MODAL version returns immediately and a background process is launched.
8124     The <a class='info' href='#GET DB_INSTRUMENTS_JOB INFO'>GET DB_INSTRUMENTS_JOB INFO<span> (</span><span class='info'>Getting job status information</span><span>)</span></a>
8125     command can be used to monitor the scanning progress.
8126     </p>
8127 iliev 1162 <p>Possible Answers:
8128     </p>
8129     <p>
8130     </p>
8131     <blockquote class="text">
8132     <p>"OK" -
8133     </p>
8134     <blockquote class="text">
8135 iliev 1201 <p>on success when NON_MODAL is not supplied
8136 iliev 1162 </p>
8137     </blockquote>
8138    
8139    
8140 iliev 1201 <p>"OK[&lt;job-id&gt;]" -
8141     </p>
8142     <blockquote class="text">
8143     <p>on success when NON_MODAL is supplied, where &lt;job-id&gt;
8144     is a numerical ID used to obtain status information about the job progress.
8145     See <a class='info' href='#GET DB_INSTRUMENTS_JOB INFO'>GET DB_INSTRUMENTS_JOB INFO<span> (</span><span class='info'>Getting job status information</span><span>)</span></a>
8146    
8147     </p>
8148     </blockquote>
8149    
8150    
8151 iliev 1162 <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
8152     </p>
8153     <blockquote class="text">
8154     <p>if an invalid path is specified.
8155     </p>
8156     </blockquote>
8157    
8158    
8159     </blockquote><p>
8160    
8161     </p>
8162     <p>Examples:
8163     </p>
8164     <p>
8165     </p>
8166     <blockquote class="text">
8167     <p>C: "ADD DB_INSTRUMENTS '/Piano Collection' '/home/me/gigs/PMI Bosendorfer 290.gig' 0"
8168     </p>
8169     <p>S: "OK"
8170     </p>
8171     </blockquote><p>
8172    
8173     </p>
8174     <a name="REMOVE DB_INSTRUMENT"></a><br /><hr />
8175     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
8176 iliev 1189 <a name="rfc.section.6.8.12"></a><h3>6.8.12.&nbsp;
8177 iliev 1162 Removing an instrument</h3>
8178    
8179     <p>The front-end can remove a particular instrument
8180     from the instruments database by sending the following command:
8181     </p>
8182     <p>
8183     </p>
8184     <blockquote class="text">
8185     <p>REMOVE DB_INSTRUMENT &lt;instr_path&gt;
8186     </p>
8187     </blockquote><p>
8188    
8189     </p>
8190     <p>Where &lt;instr_path&gt; is the absolute path name
8191     (in the instruments database) of the instrument to remove.
8192     </p>
8193     <p>Possible Answers:
8194     </p>
8195     <p>
8196     </p>
8197     <blockquote class="text">
8198     <p>"OK" -
8199     </p>
8200     <blockquote class="text">
8201     <p>if the instrument is removed successfully
8202     </p>
8203     </blockquote>
8204    
8205    
8206     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
8207     </p>
8208     <blockquote class="text">
8209     <p>if the given path does not exist or
8210     is a directory.
8211     </p>
8212     </blockquote>
8213    
8214    
8215     </blockquote><p>
8216    
8217     </p>
8218     <p>Examples:
8219     </p>
8220     <p>
8221     </p>
8222     <blockquote class="text">
8223     <p>C: "REMOVE DB_INSTRUMENT '/Piano Collection/Bosendorfer 290'"
8224     </p>
8225     <p>S: "OK"
8226     </p>
8227     </blockquote><p>
8228    
8229     </p>
8230     <a name="GET DB_INSTRUMENTS"></a><br /><hr />
8231     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
8232 iliev 1189 <a name="rfc.section.6.8.13"></a><h3>6.8.13.&nbsp;
8233 iliev 1162 Getting amount of instruments</h3>
8234    
8235     <p>The front-end can retrieve the current amount of
8236     instruments in a specific directory by sending the following command:
8237     </p>
8238     <p>
8239     </p>
8240     <blockquote class="text">
8241 iliev 1189 <p>GET DB_INSTRUMENTS [RECURSIVE] &lt;dir&gt;
8242 iliev 1162 </p>
8243     </blockquote><p>
8244    
8245     </p>
8246     <p>Where &lt;dir&gt; should be replaced by the absolute path name
8247 iliev 1189 of the directory. If RECURSIVE is specified, the number of all
8248     instruments, including those located in subdirectories of the
8249     specified directory, will be returned.
8250 iliev 1162 </p>
8251     <p>Possible Answers:
8252     </p>
8253     <p>
8254     </p>
8255     <blockquote class="text">
8256     <p>The current number of instruments
8257     in the specified directory.
8258     </p>
8259     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
8260     </p>
8261     <blockquote class="text">
8262     <p>if the given directory does not exist.
8263     </p>
8264     </blockquote>
8265    
8266    
8267     </blockquote><p>
8268    
8269     </p>
8270     <p>Example:
8271     </p>
8272     <p>
8273     </p>
8274     <blockquote class="text">
8275     <p>C: "GET DB_INSTRUMENTS '/Piano Collection'"
8276     </p>
8277     <p>S: "2"
8278     </p>
8279     </blockquote><p>
8280    
8281     </p>
8282     <a name="LIST DB_INSTRUMENTS"></a><br /><hr />
8283     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
8284 iliev 1189 <a name="rfc.section.6.8.14"></a><h3>6.8.14.&nbsp;
8285 iliev 1162 Listing all instruments in specific directory</h3>
8286    
8287     <p>The front-end can retrieve the current list of instruments
8288     in specific directory by sending the following command:
8289     </p>
8290     <p>
8291     </p>
8292     <blockquote class="text">
8293 iliev 1189 <p>LIST DB_INSTRUMENTS [RECURSIVE] &lt;dir&gt;
8294 iliev 1162 </p>
8295     </blockquote><p>
8296    
8297     </p>
8298     <p>Where &lt;dir&gt; should be replaced by the absolute path
8299 iliev 1189 name of the directory. If RECURSIVE is specified, the absolute path
8300     names of all instruments, including those located in subdirectories
8301     of the specified directory, will be returned.
8302 iliev 1162 </p>
8303     <p>Possible Answers:
8304     </p>
8305     <p>
8306     </p>
8307     <blockquote class="text">
8308     <p>A comma separated list of all instruments
8309     (encapsulated into apostrophes) in the specified directory.
8310     </p>
8311     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
8312     </p>
8313     <blockquote class="text">
8314     <p>if the given directory does not exist.
8315     </p>
8316     </blockquote>
8317    
8318    
8319     </blockquote><p>
8320    
8321     </p>
8322     <p>Example:
8323     </p>
8324     <p>
8325     </p>
8326     <blockquote class="text">
8327     <p>C: "LIST DB_INSTRUMENTS '/Piano Collection'"
8328     </p>
8329     <p>S: "'Bosendorfer 290','Steinway D'"
8330     </p>
8331     </blockquote><p>
8332    
8333     </p>
8334 iliev 1189 <p>
8335     </p>
8336     <blockquote class="text">
8337     <p>C: "LIST DB_INSTRUMENTS RECURSIVE '/Piano Collection'"
8338     </p>
8339     <p>S: "'/Piano Collection/Bosendorfer 290','/Piano Collection/Steinway D','/Piano Collection/Lite/Free Piano'"
8340     </p>
8341     </blockquote><p>
8342    
8343     </p>
8344 iliev 1162 <a name="GET DB_INSTRUMENT INFO"></a><br /><hr />
8345     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
8346 iliev 1189 <a name="rfc.section.6.8.15"></a><h3>6.8.15.&nbsp;
8347 iliev 1162 Getting instrument information</h3>
8348    
8349     <p>The front-end can ask for the current settings of an
8350     instrument by sending the following command:
8351     </p>
8352     <p>
8353     </p>
8354     <blockquote class="text">
8355     <p>GET DB_INSTRUMENT INFO &lt;instr_path&gt;
8356     </p>
8357     </blockquote><p>
8358    
8359     </p>
8360     <p>Where &lt;instr_path&gt; should be replaced by the absolute path
8361     name of the instrument the front-end is interested in.
8362     </p>
8363     <p>Possible Answers:
8364     </p>
8365     <p>
8366     </p>
8367     <blockquote class="text">
8368     <p>LinuxSampler will answer by sending a &lt;CRLF&gt; separated list.
8369     Each answer line begins with the settings category name
8370     followed by a colon and then a space character &lt;SP&gt; and finally
8371     the info character string to that setting category. At the
8372     moment the following categories are defined:
8373     </p>
8374     <p>
8375     </p>
8376     <blockquote class="text">
8377     <p>INSTRUMENT_FILE -
8378     </p>
8379     <blockquote class="text">
8380     <p>File name of the instrument.
8381 schoenebeck 1363 Note that the character string may contain
8382     <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>.
8383 iliev 1162 </p>
8384     </blockquote>
8385    
8386    
8387     <p>INSTRUMENT_NR -
8388     </p>
8389     <blockquote class="text">
8390     <p>Index of the instrument within the file.
8391     </p>
8392     </blockquote>
8393    
8394    
8395     <p>FORMAT_FAMILY -
8396     </p>
8397     <blockquote class="text">
8398     <p>The format family of the instrument.
8399     </p>
8400     </blockquote>
8401    
8402    
8403     <p>FORMAT_VERSION -
8404     </p>
8405     <blockquote class="text">
8406     <p>The format version of the instrument.
8407     </p>
8408     </blockquote>
8409    
8410    
8411     <p>SIZE -
8412     </p>
8413     <blockquote class="text">
8414     <p>The size of the instrument in bytes.
8415     </p>
8416     </blockquote>
8417    
8418    
8419     <p>CREATED -
8420     </p>
8421     <blockquote class="text">
8422     <p>The date and time when the instrument is added
8423     in the instruments database, represented in
8424     "YYYY-MM-DD HH:MM:SS" format
8425     </p>
8426     </blockquote>
8427    
8428    
8429     <p>MODIFIED -
8430     </p>
8431     <blockquote class="text">
8432     <p>The date and time of the last modification of the
8433     instrument's database settings, represented in
8434     "YYYY-MM-DD HH:MM:SS" format
8435     </p>
8436     </blockquote>
8437    
8438    
8439     <p>DESCRIPTION -
8440     </p>
8441     <blockquote class="text">
8442 schoenebeck 1363 <p>A brief description of the instrument.
8443     Note that the character string may contain
8444     <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>.
8445 iliev 1162 </p>
8446     </blockquote>
8447    
8448    
8449     <p>IS_DRUM -
8450     </p>
8451     <blockquote class="text">
8452     <p>either true or false, determines whether the
8453     instrument is a drumkit or a chromatic instrument
8454     </p>
8455     </blockquote>
8456    
8457    
8458     <p>PRODUCT -
8459     </p>
8460     <blockquote class="text">
8461 schoenebeck 1363 <p>The product title of the instrument.
8462     Note that the character string may contain
8463     <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>.
8464 iliev 1162 </p>
8465     </blockquote>
8466    
8467    
8468     <p>ARTISTS -
8469     </p>
8470     <blockquote class="text">
8471 schoenebeck 1363 <p>Lists the artist names.
8472     Note that the character string may contain
8473     <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>.
8474 iliev 1162 </p>
8475     </blockquote>
8476    
8477    
8478     <p>KEYWORDS -
8479     </p>
8480     <blockquote class="text">
8481     <p>Provides a list of keywords that refer to the instrument.
8482     Keywords are separated with semicolon and blank.
8483 schoenebeck 1363 Note that the character string may contain
8484     <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>.
8485 iliev 1162 </p>
8486     </blockquote>
8487    
8488    
8489     </blockquote>
8490    
8491    
8492     </blockquote><p>
8493    
8494     </p>
8495     <p>The mentioned fields above don't have to be in particular order.
8496     </p>
8497     <p>Example:
8498     </p>
8499     <p>
8500     </p>
8501     <blockquote class="text">
8502     <p>C: "GET DB_INSTRUMENT INFO '/Piano Collection/Bosendorfer 290'"
8503     </p>
8504     <p>S: "INSTRUMENT_FILE: /home/me/gigs/Bosendorfer 290.gig"
8505     </p>
8506     <p>&nbsp;&nbsp;&nbsp;"INSTRUMENT_NR: 0"
8507     </p>
8508     <p>&nbsp;&nbsp;&nbsp;"FORMAT_FAMILY: GIG"
8509     </p>
8510     <p>&nbsp;&nbsp;&nbsp;"FORMAT_VERSION: 2"
8511     </p>
8512     <p>&nbsp;&nbsp;&nbsp;"SIZE: 2050871870"
8513     </p>
8514     <p>&nbsp;&nbsp;&nbsp;"CREATED: 2007-02-05 10:23:12"
8515     </p>
8516     <p>&nbsp;&nbsp;&nbsp;"MODIFIED: 2007-04-07 12:50:21"
8517     </p>
8518     <p>&nbsp;&nbsp;&nbsp;"DESCRIPTION: "
8519     </p>
8520     <p>&nbsp;&nbsp;&nbsp;"IS_DRUM: false"
8521     </p>
8522     <p>&nbsp;&nbsp;&nbsp;"PRODUCT: GRANDIOSO Bosendorfer 290"
8523     </p>
8524     <p>&nbsp;&nbsp;&nbsp;"ARTISTS: Post Musical Instruments"
8525     </p>
8526     <p>&nbsp;&nbsp;&nbsp;"KEYWORDS: Bosendorfer"
8527     </p>
8528     <p>&nbsp;&nbsp;&nbsp;"."
8529     </p>
8530     </blockquote><p>
8531    
8532     </p>
8533     <a name="SET DB_INSTRUMENT NAME"></a><br /><hr />
8534     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
8535 iliev 1189 <a name="rfc.section.6.8.16"></a><h3>6.8.16.&nbsp;
8536 iliev 1162 Renaming an instrument</h3>
8537    
8538     <p>The front-end can alter the name of a specific
8539     instrument by sending the following command:
8540     </p>
8541     <p>
8542     </p>
8543     <blockquote class="text">
8544     <p>SET DB_INSTRUMENT NAME &lt;instr&gt; &lt;name&gt;
8545     </p>
8546     </blockquote><p>
8547    
8548     </p>
8549     <p>Where &lt;instr&gt; is the absolute path name of the instrument and
8550     &lt;name&gt; is the new name for that instrument.
8551     </p>
8552     <p>Possible Answers:
8553     </p>
8554     <p>
8555     </p>
8556     <blockquote class="text">
8557     <p>"OK" -
8558     </p>
8559     <blockquote class="text">
8560     <p>on success
8561     </p>
8562     </blockquote>
8563    
8564    
8565     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
8566     </p>
8567     <blockquote class="text">
8568     <p>in case the given instrument does not exists,
8569     or if an instrument with name equal to the new
8570     name already exists.
8571     </p>
8572     </blockquote>
8573    
8574    
8575     </blockquote><p>
8576    
8577     </p>
8578     <p>Example:
8579     </p>
8580     <p>
8581     </p>
8582     <blockquote class="text">
8583     <p>C: "SET DB_INSTRUMENT NAME '/Piano Collection/Bosendorfer' 'Bosendorfer 290'"
8584     </p>
8585     <p>S: "OK"
8586     </p>
8587     </blockquote><p>
8588    
8589     </p>
8590     <a name="MOVE DB_INSTRUMENT"></a><br /><hr />
8591     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
8592 iliev 1189 <a name="rfc.section.6.8.17"></a><h3>6.8.17.&nbsp;
8593 iliev 1162 Moving an instrument</h3>
8594    
8595     <p>The front-end can move a specific instrument to another directory by
8596     sending the following command:
8597     </p>
8598     <p>
8599     </p>
8600     <blockquote class="text">
8601     <p>MOVE DB_INSTRUMENT &lt;instr&gt; &lt;dst&gt;
8602     </p>
8603     </blockquote><p>
8604    
8605     </p>
8606     <p>Where &lt;instr&gt; is the absolute path name of the instrument
8607     to move and &lt;dst&gt; is the directory where the instrument will
8608     be moved to.
8609     </p>
8610     <p>Possible Answers:
8611     </p>
8612     <p>
8613     </p>
8614     <blockquote class="text">
8615     <p>"OK" -
8616     </p>
8617     <blockquote class="text">
8618     <p>on success
8619     </p>
8620     </blockquote>
8621    
8622    
8623     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
8624     </p>
8625     <blockquote class="text">
8626     <p>in case the given instrument does not exists,
8627     or if an instrument with name equal to the name of the
8628     specified instrument already exists in the destination
8629     directory.
8630     </p>
8631     </blockquote>
8632    
8633    
8634     </blockquote><p>
8635    
8636     </p>
8637     <p>Example:
8638     </p>
8639     <p>
8640     </p>
8641     <blockquote class="text">
8642     <p>C: "MOVE DB_INSTRUMENT '/Piano Collection/Bosendorfer 290' '/Piano Collection/Acoustic'"
8643     </p>
8644     <p>S: "OK"
8645     </p>
8646     </blockquote><p>
8647    
8648     </p>
8649 iliev 1189 <a name="COPY DB_INSTRUMENT"></a><br /><hr />
8650     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
8651     <a name="rfc.section.6.8.18"></a><h3>6.8.18.&nbsp;
8652     Copying instruments</h3>
8653    
8654     <p>The front-end can copy a specific instrument to another directory by
8655     sending the following command:
8656     </p>
8657     <p>
8658     </p>
8659     <blockquote class="text">
8660     <p>COPY DB_INSTRUMENT &lt;instr&gt; &lt;dst&gt;
8661     </p>
8662     </blockquote><p>
8663    
8664     </p>
8665     <p>Where &lt;instr&gt; is the absolute path name of the instrument
8666     to copy and &lt;dst&gt; is the directory where the instrument will
8667     be copied to.
8668     </p>
8669     <p>Possible Answers:
8670     </p>
8671     <p>
8672     </p>
8673     <blockquote class="text">
8674     <p>"OK" -
8675     </p>
8676     <blockquote class="text">
8677     <p>on success
8678     </p>
8679     </blockquote>
8680    
8681    
8682     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
8683     </p>
8684     <blockquote class="text">
8685     <p>in case the given instrument does not exists,
8686     or if an instrument with name equal to the name of the
8687     specified instrument already exists in the destination
8688     directory.
8689     </p>
8690     </blockquote>
8691    
8692    
8693     </blockquote><p>
8694    
8695     </p>
8696     <p>Example:
8697     </p>
8698     <p>
8699     </p>
8700     <blockquote class="text">
8701     <p>C: "COPY DB_INSTRUMENT '/Piano Collection/Bosendorfer 290' '/Acoustic/Pianos/'"
8702     </p>
8703     <p>S: "OK"
8704     </p>
8705     </blockquote><p>
8706    
8707     </p>
8708 iliev 1162 <a name="SET DB_INSTRUMENT DESCRIPTION"></a><br /><hr />
8709     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
8710 iliev 1189 <a name="rfc.section.6.8.19"></a><h3>6.8.19.&nbsp;
8711 iliev 1162 Changing the description of instrument</h3>
8712    
8713     <p>The front-end can alter the description of a specific
8714     instrument by sending the following command:
8715     </p>
8716     <p>
8717     </p>
8718     <blockquote class="text">
8719     <p>SET DB_INSTRUMENT DESCRIPTION &lt;instr&gt; &lt;desc&gt;
8720     </p>
8721     </blockquote><p>
8722    
8723     </p>
8724     <p>Where &lt;instr&gt; is the absolute path name of the instrument and
8725 schoenebeck 1572 &lt;desc&gt; is the new description for the instrument
8726 schoenebeck 1363 (encapsulated into apostrophes, supporting escape sequences as described in chapter
8727     "<a class='info' href='#character_set'>Character Set and Escape Sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>").
8728 iliev 1162 </p>
8729     <p>Possible Answers:
8730     </p>
8731     <p>
8732     </p>
8733     <blockquote class="text">
8734     <p>"OK" -
8735     </p>
8736     <blockquote class="text">
8737     <p>on success
8738     </p>
8739     </blockquote>
8740    
8741    
8742     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
8743     </p>
8744     <blockquote class="text">
8745     <p>in case the given instrument does not exists.
8746     </p>
8747     </blockquote>
8748    
8749    
8750     </blockquote><p>
8751    
8752     </p>
8753     <p>Example:
8754     </p>
8755     <p>
8756     </p>
8757     <blockquote class="text">
8758     <p>C: "SET DB_INSTRUMENT DESCRIPTION '/Piano Collection/Acoustic/Bosendorfer 290' 'No comment :)'"
8759     </p>
8760     <p>S: "OK"
8761     </p>
8762     </blockquote><p>
8763    
8764     </p>
8765 iliev 1189 <a name="FIND DB_INSTRUMENTS"></a><br /><hr />
8766     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
8767     <a name="rfc.section.6.8.20"></a><h3>6.8.20.&nbsp;
8768     Finding instruments</h3>
8769    
8770     <p>The front-end can search for instruments
8771     in specific directory by sending the following command:
8772     </p>
8773     <p>
8774     </p>
8775     <blockquote class="text">
8776     <p>FIND DB_INSTRUMENTS [NON_RECURSIVE] &lt;dir&gt; &lt;criteria-list&gt;
8777     </p>
8778     </blockquote><p>
8779    
8780     </p>
8781     <p>Where &lt;dir&gt; should be replaced by the absolute path
8782     name of the directory to search in. If NON_RECURSIVE is specified, the
8783     directories located in subdirectories of the specified directory will not
8784     be searched. &lt;criteria-list&gt; is a list of search criterias
8785     in form of "key1=val1 key2=val2 ...". The following criterias are
8786     allowed:
8787     </p>
8788     <p>
8789    
8790     <p>NAME='&lt;search-string&gt;'
8791     </p>
8792     <blockquote class="text">
8793     <p>Restricts the search to instruments, which names
8794 schoenebeck 1363 satisfy the supplied search string (encapsulated into apostrophes,
8795     supporting escape sequences as described in chapter
8796     "<a class='info' href='#character_set'>Character Set and Escape Sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>").
8797 iliev 1189 </p>
8798     </blockquote><p>
8799    
8800     </p>
8801    
8802    
8803     <p>SIZE=[&lt;min&gt;]..[&lt;max&gt;]
8804     </p>
8805     <blockquote class="text">
8806 schoenebeck 1251 <p>Restricts the search to instruments, which
8807 iliev 1189 size is in the specified range. If &lt;min&gt; is omitted,
8808     the search results are restricted to instruments with size less then
8809     or equal to &lt;max&gt;. If &lt;max&gt; is omitted, the
8810     search is restricted to instruments with size greater then
8811     or equal to &lt;min&gt;.
8812     </p>
8813     </blockquote><p>
8814    
8815     </p>
8816    
8817    
8818     <p>CREATED='[&lt;date-after&gt;]..[&lt;date-before&gt;]'
8819     </p>
8820     <blockquote class="text">
8821     <p>Restricts the search to instruments, which creation
8822     date satisfies the specified period, where &lt;date-after&gt;
8823     and &lt;date-before&gt; are in "YYYY-MM-DD HH:MM:SS" format.
8824     If &lt;date-after&gt; is omitted the search is restricted to
8825     instruments created before &lt;date-before&gt;. If
8826     &lt;date-before&gt; is omitted, the search is restricted
8827     to instruments created after &lt;date-after&gt;.
8828     </p>
8829     </blockquote><p>
8830    
8831     </p>
8832    
8833    
8834     <p>MODIFIED='[&lt;date-after&gt;]..[&lt;date-before&gt;]'
8835     </p>
8836     <blockquote class="text">
8837     <p>Restricts the search to instruments, which
8838     date of last modification satisfies the specified period, where
8839     &lt;date-after&gt; and &lt;date-before&gt; are in "YYYY-MM-DD HH:MM:SS"
8840     format. If &lt;date-after&gt; is omitted the search is restricted to
8841     instruments, which are last modified before &lt;date-before&gt;. If
8842     &lt;date-before&gt; is omitted, the search is restricted to instruments,
8843     which are last modified after &lt;date-after&gt;.
8844     </p>
8845     </blockquote><p>
8846    
8847     </p>
8848    
8849    
8850     <p>DESCRIPTION='&lt;search-string&gt;'
8851     </p>
8852     <blockquote class="text">
8853     <p>Restricts the search to instruments with description
8854 schoenebeck 1363 that satisfies the supplied search string (encapsulated into apostrophes,
8855     supporting escape sequences as described in chapter
8856     "<a class='info' href='#character_set'>Character Set and Escape Sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>").
8857 iliev 1189 </p>
8858     </blockquote><p>
8859    
8860     </p>
8861    
8862    
8863     <p>PRODUCT='&lt;search-string&gt;'
8864     </p>
8865     <blockquote class="text">
8866     <p>Restricts the search to instruments with product info
8867 schoenebeck 1363 that satisfies the supplied search string (encapsulated into apostrophes,
8868     supporting escape sequences as described in chapter
8869     "<a class='info' href='#character_set'>Character Set and Escape Sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>").
8870 iliev 1189 </p>
8871     </blockquote><p>
8872    
8873     </p>
8874    
8875    
8876     <p>ARTISTS='&lt;search-string&gt;'
8877     </p>
8878     <blockquote class="text">
8879     <p>Restricts the search to instruments with artists info
8880 schoenebeck 1363 that satisfies the supplied search string (encapsulated into apostrophes,
8881     supporting escape sequences as described in chapter
8882     "<a class='info' href='#character_set'>Character Set and Escape Sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>").
8883 iliev 1189 </p>
8884     </blockquote><p>
8885    
8886     </p>
8887    
8888    
8889     <p>KEYWORDS='&lt;search-string&gt;'
8890     </p>
8891     <blockquote class="text">
8892     <p>Restricts the search to instruments with keyword list
8893 schoenebeck 1363 that satisfies the supplied search string (encapsulated into apostrophes,
8894     supporting escape sequences as described in chapter
8895     "<a class='info' href='#character_set'>Character Set and Escape Sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>").
8896 iliev 1189 </p>
8897     </blockquote><p>
8898    
8899     </p>
8900    
8901    
8902     <p>IS_DRUM=true | false
8903     </p>
8904     <blockquote class="text">
8905 schoenebeck 1251 <p>Either true or false. Restricts the search to
8906 iliev 1189 drum kits or chromatic instruments.
8907     </p>
8908     </blockquote><p>
8909    
8910     </p>
8911    
8912    
8913     <p>FORMAT_FAMILIES='&lt;format-list&gt;'
8914     </p>
8915     <blockquote class="text">
8916     <p>Restricts the search to instruments of the supplied format families,
8917     where &lt;format-list&gt; is a comma separated list of format families.
8918     </p>
8919     </blockquote><p>
8920    
8921     </p>
8922    
8923    
8924     <p>Where &lt;search-string&gt; is either a regular expression, or a
8925     word list separated with spaces for OR search and with '+' for AND search.
8926     </p>
8927     <p>Possible Answers:
8928     </p>
8929     <p>
8930     </p>
8931     <blockquote class="text">
8932     <p>A comma separated list with the absolute path names (encapsulated into
8933     apostrophes) of all instruments in the specified directory that satisfy
8934     the supplied search criterias.
8935     </p>
8936     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
8937     </p>
8938     <blockquote class="text">
8939     <p>if the given directory does not exist.
8940     </p>
8941     </blockquote>
8942    
8943    
8944     </blockquote><p>
8945    
8946     </p>
8947     <p>Example:
8948     </p>
8949     <p>
8950     </p>
8951     <blockquote class="text">
8952     <p>C: "FIND DB_INSTRUMENTS '/Piano Collection' NAME='bosendorfer+290'"
8953     </p>
8954     <p>S: "'/Piano Collection/Bosendorfer 290'"
8955     </p>
8956     </blockquote><p>
8957    
8958     </p>
8959     <p>
8960     </p>
8961     <blockquote class="text">
8962     <p>C: "FIND DB_INSTRUMENTS '/Piano Collection' CREATED='2007-04-01 09:30:13..'"
8963     </p>
8964     <p>S: "'/Piano Collection/Bosendorfer 290','/Piano Collection/Steinway D'"
8965     </p>
8966     </blockquote><p>
8967    
8968     </p>
8969 iliev 1201 <a name="GET DB_INSTRUMENTS_JOB INFO"></a><br /><hr />
8970     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
8971     <a name="rfc.section.6.8.21"></a><h3>6.8.21.&nbsp;
8972     Getting job status information</h3>
8973    
8974     <p>The front-end can ask for the current status of a
8975     particular database instruments job by sending the following command:
8976     </p>
8977     <p>
8978     </p>
8979     <blockquote class="text">
8980     <p>GET DB_INSTRUMENTS_JOB INFO &lt;job-id&gt;
8981     </p>
8982     </blockquote><p>
8983    
8984     </p>
8985     <p>Where &lt;job-id&gt; should be replaced by the numerical ID
8986     of the job the front-end is interested in.
8987     </p>
8988     <p>Possible Answers:
8989     </p>
8990     <p>
8991     </p>
8992     <blockquote class="text">
8993     <p>LinuxSampler will answer by sending a &lt;CRLF&gt; separated list.
8994     Each answer line begins with the settings category name
8995     followed by a colon and then a space character &lt;SP&gt; and finally
8996     the info character string to that setting category. At the
8997     moment the following categories are defined:
8998     </p>
8999     <p>
9000     </p>
9001     <blockquote class="text">
9002     <p>FILES_TOTAL -
9003     </p>
9004     <blockquote class="text">
9005     <p>The total number of files scheduled for scanning
9006     </p>
9007     </blockquote>
9008    
9009    
9010     <p>FILES_SCANNED -
9011     </p>
9012     <blockquote class="text">
9013     <p>The current number of scanned files
9014     </p>
9015     </blockquote>
9016    
9017    
9018     <p>SCANNING -
9019     </p>
9020     <blockquote class="text">
9021     <p>The absolute path name of the file which is currently
9022     being scanned
9023     </p>
9024     </blockquote>
9025    
9026    
9027     <p>STATUS -
9028     </p>
9029     <blockquote class="text">
9030     <p>An integer value between 0 and 100 indicating the
9031     scanning progress percentage of the file which is
9032     currently being scanned
9033     </p>
9034     </blockquote>
9035    
9036    
9037     </blockquote>
9038    
9039    
9040     </blockquote><p>
9041    
9042     </p>
9043     <p>The mentioned fields above don't have to be in particular order.
9044     </p>
9045     <p>Example:
9046     </p>
9047     <p>
9048     </p>
9049     <blockquote class="text">
9050     <p>C: "GET DB_INSTRUMENTS_JOB INFO 2"
9051     </p>
9052     <p>S: "FILES_TOTAL: 12"
9053     </p>
9054     <p>&nbsp;&nbsp;&nbsp;"FILES_SCANNED: 7"
9055     </p>
9056     <p>&nbsp;&nbsp;&nbsp;"SCANNING: /home/me/gigs/Bosendorfer 290.gig"
9057     </p>
9058     <p>&nbsp;&nbsp;&nbsp;"STATUS: 42"
9059     </p>
9060     <p>&nbsp;&nbsp;&nbsp;"."
9061     </p>
9062     </blockquote><p>
9063    
9064     </p>
9065 schoenebeck 1363 <a name="FORMAT INSTRUMENTS_DB"></a><br /><hr />
9066     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
9067     <a name="rfc.section.6.8.22"></a><h3>6.8.22.&nbsp;
9068     Formatting the instruments database</h3>
9069    
9070     <p>The front-end can remove all instruments and directories and re-create
9071     the instruments database structure (e.g., in case of a database corruption)
9072     by sending the following command:
9073     </p>
9074     <p>
9075     </p>
9076     <blockquote class="text">
9077     <p>FORMAT INSTRUMENTS_DB
9078     </p>
9079     </blockquote><p>
9080    
9081     </p>
9082     <p>Possible Answers:
9083     </p>
9084     <p>
9085     </p>
9086     <blockquote class="text">
9087     <p>"OK" -
9088     </p>
9089     <blockquote class="text">
9090     <p>on success
9091     </p>
9092     </blockquote>
9093    
9094    
9095     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
9096     </p>
9097     <blockquote class="text">
9098     <p>If the formatting of the instruments database
9099     failed.
9100     </p>
9101     </blockquote>
9102    
9103    
9104     </blockquote><p>
9105    
9106     </p>
9107     <a name="editing_instruments"></a><br /><hr />
9108     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
9109     <a name="rfc.section.6.9"></a><h3>6.9.&nbsp;
9110     Editing Instruments</h3>
9111    
9112     <p>The sampler allows to edit instruments while playing with the
9113     sampler by spawning an external (3rd party) instrument editor
9114     application for a given instrument. The 3rd party instrument
9115     editor applications have to place a respective plugin DLL file
9116     into the sampler's plugins directory. The sampler will
9117     automatically try to load all plugin DLLs in that directory on
9118     startup and only on startup!
9119     </p>
9120     <p>At the moment there is only one command for this feature set,
9121     but this will most probably change in future.
9122     </p>
9123     <a name="EDIT INSTRUMENT"></a><br /><hr />
9124     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
9125     <a name="rfc.section.6.9.1"></a><h3>6.9.1.&nbsp;
9126     Opening an appropriate instrument editor application</h3>
9127    
9128     <p>The front-end can request to open an appropriate instrument
9129     editor application by sending the following command:
9130     </p>
9131     <p>
9132     </p>
9133     <blockquote class="text">
9134 schoenebeck 1430 <p>EDIT CHANNEL INSTRUMENT &lt;sampler-channel&gt;
9135 schoenebeck 1363 </p>
9136     </blockquote><p>
9137    
9138     </p>
9139     <p>Where &lt;sampler-channel&gt; should be replaced by the
9140     number of the sampler channel as given by the
9141     <a class='info' href='#ADD CHANNEL'>"ADD CHANNEL"<span> (</span><span class='info'>Adding a new sampler channel</span><span>)</span></a>
9142     or <a class='info' href='#LIST CHANNELS'>"LIST CHANNELS"<span> (</span><span class='info'>Getting all created sampler channel list</span><span>)</span></a>
9143     command.
9144     </p>
9145     <p>The sampler will try to ask all registered instrument
9146     editors (or to be more specific: their sampler plugins)
9147     whether they are capable to handle the instrument on the
9148     given sampler channel. The sampler will simply use the first
9149     instrument editor application which replied with a positive
9150     answer and spawn that instrument editor application within
9151     the sampler's process and provide that application access
9152     to the instrument's data structures, so both applications
9153     can share and access the same instruments data at the same
9154     time, thus allowing to immediately hear changes with the
9155     sampler made by the instrument editor.
9156     </p>
9157     <p>Note: consequently instrument editors are always spawned
9158     locally on the same machine where the sampler is running
9159     on!
9160     </p>
9161     <p>Possible Answers:
9162     </p>
9163     <p>
9164     </p>
9165     <blockquote class="text">
9166     <p>"OK" -
9167     </p>
9168     <blockquote class="text">
9169     <p>when an appropriate instrument editor was
9170     launched
9171     </p>
9172     </blockquote>
9173    
9174    
9175     <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
9176     </p>
9177     <blockquote class="text">
9178     <p>when an appropriate instrument editor was
9179     launched, but there are noteworthy issues
9180     </p>
9181     </blockquote>
9182    
9183    
9184     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
9185     </p>
9186     <blockquote class="text">
9187     <p>when an appropriate instrument editor
9188     could not be launched
9189     </p>
9190     </blockquote>
9191    
9192    
9193     </blockquote><p>
9194    
9195     </p>
9196     <p>Examples:
9197     </p>
9198     <p>
9199     </p>
9200     <blockquote class="text">
9201 schoenebeck 1430 <p>C: "EDIT CHANNEL INSTRUMENT 0"
9202 schoenebeck 1363 </p>
9203     <p>S: "OK"
9204     </p>
9205     </blockquote><p>
9206    
9207     </p>
9208 schoenebeck 1572 <a name="file_management"></a><br /><hr />
9209     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
9210     <a name="rfc.section.6.10"></a><h3>6.10.&nbsp;
9211     Managing Files</h3>
9212    
9213     <p>You can query detailed informations about files located
9214     at the same system where the sampler instance is running on.
9215     Using this command set allows to retrieve file informations
9216     even remotely from another machine.
9217     </p>
9218     <a name="GET FILE INSTRUMENTS"></a><br /><hr />
9219     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
9220     <a name="rfc.section.6.10.1"></a><h3>6.10.1.&nbsp;
9221     Retrieving amount of instruments of a file</h3>
9222    
9223     <p>The front-end can retrieve the amount of instruments
9224     within a given instrument file by sending the
9225     following command:
9226     </p>
9227     <p>
9228     </p>
9229     <blockquote class="text">
9230     <p>GET FILE INSTRUMENTS &lt;filename&gt;
9231     </p>
9232     </blockquote><p>
9233    
9234     </p>
9235     <p>Where &lt;filename&gt; is the name of the instrument
9236     file (encapsulated into apostrophes, supporting escape
9237     sequences as described in chapter
9238     "<a class='info' href='#character_set'>Character Set and Escape
9239     Sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>").
9240     </p>
9241     <p>The sampler will try to ask all sampler engines,
9242     whether they support the given file and ask the first
9243     engine with a positive answer for the amount of
9244     instruments.
9245     </p>
9246     <p>Possible Answers:
9247     </p>
9248     <p>
9249     </p>
9250     <blockquote class="text">
9251     <p>On success, the sampler will answer by
9252     returning the amount of instruments.
9253    
9254     </p>
9255     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
9256     </p>
9257     <blockquote class="text">
9258     <p>if the file could not be handled
9259     </p>
9260     </blockquote>
9261    
9262    
9263     </blockquote><p>
9264    
9265     </p>
9266     <p>Examples:
9267     </p>
9268     <p>
9269     </p>
9270     <blockquote class="text">
9271     <p>C: "GET FILE INSTRUMENTS 'D:/Sounds/Foo.gig'"
9272     </p>
9273     <p>S: "10"
9274     </p>
9275     </blockquote><p>
9276    
9277     </p>
9278     <a name="LIST FILE INSTRUMENTS"></a><br /><hr />
9279     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
9280     <a name="rfc.section.6.10.2"></a><h3>6.10.2.&nbsp;
9281     Retrieving all instruments of a file</h3>
9282    
9283     <p>The front-end can retrieve a list of all instruments
9284     within a given instrument file by sending the
9285     following command:
9286     </p>
9287     <p>
9288     </p>
9289     <blockquote class="text">
9290     <p>LIST FILE INSTRUMENTS &lt;filename&gt;
9291     </p>
9292     </blockquote><p>
9293    
9294     </p>
9295     <p>Where &lt;filename&gt; is the name of the instrument
9296     file (encapsulated into apostrophes, supporting escape
9297     sequences as described in chapter
9298     "<a class='info' href='#character_set'>Character Set and Escape
9299     Sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>").
9300     </p>
9301     <p>The sampler will try to ask all sampler engines,
9302     whether they support the given file and ask the first
9303     engine with a positive answer for a list of IDs for the
9304     instruments in the given file.
9305     </p>
9306     <p>Possible Answers:
9307     </p>
9308     <p>
9309     </p>
9310     <blockquote class="text">
9311     <p>On success, the sampler will answer by
9312     returning a comma separated list of
9313     instrument IDs.
9314    
9315     </p>
9316     <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
9317     </p>
9318     <blockquote class="text">
9319     <p>if the file could not be handled
9320     </p>
9321     </blockquote>
9322    
9323    
9324     </blockquote><p>
9325    
9326     </p>
9327     <p>Examples:
9328     </p>
9329     <p>
9330     </p>
9331     <blockquote class="text">
9332     <p>C: "LIST FILE INSTRUMENTS 'D:/Sounds/Foo.gig'"
9333     </p>
9334     <p>S: "0,1,2,3,4,5,6,7,8,9"
9335     </p>
9336     </blockquote><p>
9337    
9338     </p>
9339     <a name="GET FILE INSTRUMENT INFO"></a><br /><hr />
9340     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
9341     <a name="rfc.section.6.10.3"></a><h3>6.10.3.&nbsp;
9342     Retrieving informations about one instrument in a file</h3>
9343    
9344     <p>The front-end can retrieve detailed informations
9345     about a specific instrument within a given instrument
9346     file by sending the following command:
9347     </p>
9348     <p>
9349     </p>
9350     <blockquote class="text">
9351     <p>GET FILE INSTRUMENT INFO &lt;filename&gt;
9352     &lt;instr-id&gt;
9353     </p>
9354     </blockquote><p>
9355    
9356     </p>
9357     <p>Where &lt;filename&gt; is the name of the instrument
9358     file (encapsulated into apostrophes, supporting escape
9359     sequences as described in chapter
9360     "<a class='info' href='#character_set'>Character Set and Escape
9361     Sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>") and &lt;instr-id&gt; is the numeric
9362     instrument ID as returned by the
9363     <a class='info' href='#LIST FILE INSTRUMENTS'>"LIST FILE INSTRUMENTS"<span> (</span><span class='info'>Retrieving all instruments of a file</span><span>)</span></a> command.
9364     </p>
9365     <p>The sampler will try to ask all sampler engines,
9366     whether they support the given file and ask the first
9367     engine with a positive answer for informations about the
9368     specific instrument in the given file.
9369     </p>
9370     <p>Possible Answers:
9371     </p>
9372     <p>
9373     </p>
9374     <blockquote class="text">
9375     <p>LinuxSampler will answer by sending a &lt;CRLF&gt; separated list.
9376     Each answer line begins with the settings category name
9377     followed by a colon and then a space character &lt;SP&gt; and finally
9378     the info character string to that setting category. At the
9379     moment the following categories are defined:
9380     </p>
9381     <p>
9382     </p>
9383     <blockquote class="text">
9384     <p>NAME -
9385     </p>
9386     <blockquote class="text">
9387     <p>name of the instrument as
9388     stored in the instrument file
9389     </p>
9390     </blockquote>
9391    
9392    
9393     <p>FORMAT_FAMILY -
9394     </p>
9395     <blockquote class="text">
9396     <p>name of the sampler format
9397     of the given instrument
9398     </p>
9399     </blockquote>
9400    
9401    
9402     <p>FORMAT_VERSION -
9403     </p>
9404     <blockquote class="text">
9405     <p>version of the sampler format
9406     the instrumen is stored as
9407     </p>
9408     </blockquote>
9409    
9410    
9411     <p>PRODUCT -
9412     </p>
9413     <blockquote class="text">
9414     <p>official product name of the
9415     instrument as stored in the file
9416    
9417     </p>
9418     </blockquote>
9419    
9420    
9421     <p>ARTISTS -
9422     </p>
9423     <blockquote class="text">
9424     <p>artists / sample library
9425     vendor of the instrument
9426     </p>
9427     </blockquote>
9428    
9429    
9430     </blockquote>
9431    
9432    
9433     </blockquote><p>
9434    
9435     </p>
9436     <p>The mentioned fields above don't have to be in particular order.
9437     </p>
9438     <p>Example:
9439     </p>
9440     <p>
9441     </p>
9442     <blockquote class="text">
9443     <p>C: "GET FILE INSTRUMENT INFO 'D:/Sounds/Foo.gig' 0"
9444     </p>
9445     <p>S: "NAME: Lunatic Loops"
9446     </p>
9447     <p>&nbsp;&nbsp;&nbsp;"FORMAT_FAMILY: GIG"
9448     </p>
9449     <p>&nbsp;&nbsp;&nbsp;"FORMAT_VERSION: 3"
9450     </p>
9451     <p>&nbsp;&nbsp;&nbsp;"PRODUCT: The Backbone Bongo Beats"
9452     </p>
9453     <p>&nbsp;&nbsp;&nbsp;"ARTISTS: Jimmy the Fish"
9454     </p>
9455     <p>&nbsp;&nbsp;&nbsp;"."
9456     </p>
9457     </blockquote><p>
9458    
9459     </p>
9460 senoner 542 <a name="command_syntax"></a><br /><hr />
9461 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
9462     <a name="rfc.section.7"></a><h3>7.&nbsp;
9463     Command Syntax</h3>
9464 senoner 542
9465 schoenebeck 974 <p>The grammar of the control protocol as descibed in <a class='info' href='#control_commands'>Section&nbsp;6<span> (</span><span class='info'>Description for control commands</span><span>)</span></a>
9466     is defined below using Backus-Naur Form (BNF as described in <a class='info' href='#RFC2234'>[RFC2234]<span> (</span><span class='info'>Crocker, D. and P. Overell, &ldquo;Augmented BNF for Syntax Specifications,&rdquo; 1997.</span><span>)</span></a>)
9467 schoenebeck 575 where applicable.
9468 schoenebeck 940
9469 senoner 542 </p>
9470 schoenebeck 575 <p>input =
9471     </p>
9472     <blockquote class="text">
9473     <p>line LF
9474 schoenebeck 940
9475 schoenebeck 575 </p>
9476     <p>/ line CR LF
9477 schoenebeck 940
9478 schoenebeck 575 </p>
9479 schoenebeck 708 </blockquote><p>
9480 schoenebeck 575
9481 schoenebeck 708 </p>
9482 schoenebeck 575 <p>line =
9483     </p>
9484     <blockquote class="text">
9485     <p>/* epsilon (empty line ignored) */
9486 schoenebeck 940
9487 schoenebeck 575 </p>
9488     <p>/ comment
9489 schoenebeck 940
9490 schoenebeck 575 </p>
9491     <p>/ command
9492 schoenebeck 940
9493 schoenebeck 575 </p>
9494     <p>/ error
9495 schoenebeck 940
9496 schoenebeck 575 </p>
9497 schoenebeck 708 </blockquote><p>
9498 schoenebeck 575
9499 schoenebeck 708 </p>
9500 schoenebeck 575 <p>comment =
9501     </p>
9502     <blockquote class="text">
9503     <p>'#'
9504 schoenebeck 940
9505 schoenebeck 575 </p>
9506     <p>/ comment '#'
9507 schoenebeck 940
9508 schoenebeck 575 </p>
9509     <p>/ comment SP
9510 schoenebeck 940
9511 schoenebeck 575 </p>
9512     <p>/ comment number
9513 schoenebeck 940
9514 schoenebeck 575 </p>
9515     <p>/ comment string
9516 schoenebeck 940
9517 schoenebeck 575 </p>
9518 schoenebeck 708 </blockquote><p>
9519 schoenebeck 575
9520 schoenebeck 708 </p>
9521 schoenebeck 575 <p>command =
9522     </p>
9523     <blockquote class="text">
9524 schoenebeck 974 <p>ADD SP add_instruction
9525 schoenebeck 940
9526 schoenebeck 575 </p>
9527 schoenebeck 945 <p>/ MAP SP map_instruction
9528    
9529     </p>
9530     <p>/ UNMAP SP unmap_instruction
9531    
9532     </p>
9533 schoenebeck 575 <p>/ GET SP get_instruction
9534 schoenebeck 940
9535 schoenebeck 575 </p>
9536     <p>/ CREATE SP create_instruction
9537 schoenebeck 940
9538 schoenebeck 575 </p>
9539     <p>/ DESTROY SP destroy_instruction
9540 schoenebeck 940
9541 schoenebeck 575 </p>
9542     <p>/ LIST SP list_instruction
9543 schoenebeck 940
9544 schoenebeck 575 </p>
9545     <p>/ LOAD SP load_instruction
9546 schoenebeck 940
9547 schoenebeck 575 </p>
9548 schoenebeck 945 <p>/ REMOVE SP remove_instruction
9549 schoenebeck 940
9550 schoenebeck 575 </p>
9551     <p>/ SET SP set_instruction
9552 schoenebeck 940
9553 schoenebeck 575 </p>
9554     <p>/ SUBSCRIBE SP subscribe_event
9555 schoenebeck 940
9556 schoenebeck 575 </p>
9557     <p>/ UNSUBSCRIBE SP unsubscribe_event
9558 schoenebeck 940
9559 schoenebeck 575 </p>
9560 schoenebeck 945 <p>/ RESET SP reset_instruction
9561 schoenebeck 940
9562 schoenebeck 575 </p>
9563 schoenebeck 945 <p>/ CLEAR SP clear_instruction
9564    
9565     </p>
9566 iliev 1189 <p>/ FIND SP find_instruction
9567    
9568     </p>
9569 iliev 1162 <p>/ MOVE SP move_instruction
9570    
9571     </p>
9572 iliev 1189 <p>/ COPY SP copy_instruction
9573    
9574     </p>
9575 schoenebeck 1251 <p>/ EDIT SP edit_instruction
9576    
9577     </p>
9578 schoenebeck 1363 <p>/ FORMAT SP format_instruction
9579    
9580     </p>
9581 schoenebeck 575 <p>/ RESET
9582 schoenebeck 940
9583 schoenebeck 575 </p>
9584     <p>/ QUIT
9585 schoenebeck 940
9586 schoenebeck 575 </p>
9587 schoenebeck 708 </blockquote><p>
9588 schoenebeck 575
9589 schoenebeck 708 </p>
9590 schoenebeck 974 <p>add_instruction =
9591     </p>
9592     <blockquote class="text">
9593     <p>CHANNEL
9594    
9595     </p>
9596 schoenebeck 1363 <p>/ DB_INSTRUMENT_DIRECTORY SP db_path
9597 iliev 1162
9598     </p>
9599 schoenebeck 1363 <p>/ DB_INSTRUMENTS SP NON_MODAL SP scan_mode SP db_path SP filename
9600 iliev 1162
9601     </p>
9602 schoenebeck 1363 <p>/ DB_INSTRUMENTS SP scan_mode SP db_path SP filename
9603 iliev 1162
9604     </p>
9605 schoenebeck 1363 <p>/ DB_INSTRUMENTS SP NON_MODAL SP db_path SP filename
9606 iliev 1201
9607     </p>
9608 schoenebeck 1363 <p>/ DB_INSTRUMENTS SP NON_MODAL SP db_path SP filename SP instrument_index
9609 iliev 1201
9610     </p>
9611 schoenebeck 1363 <p>/ DB_INSTRUMENTS SP db_path SP filename
9612 iliev 1162
9613     </p>
9614 schoenebeck 1363 <p>/ DB_INSTRUMENTS SP db_path SP filename SP instrument_index
9615 iliev 1162
9616     </p>
9617 schoenebeck 974 <p>/ MIDI_INSTRUMENT_MAP
9618    
9619     </p>
9620     <p>/ MIDI_INSTRUMENT_MAP SP map_name
9621    
9622     </p>
9623     </blockquote><p>
9624    
9625     </p>
9626 schoenebeck 575 <p>subscribe_event =
9627     </p>
9628     <blockquote class="text">
9629 iliev 992 <p>AUDIO_OUTPUT_DEVICE_COUNT
9630 schoenebeck 940
9631 schoenebeck 575 </p>
9632 iliev 992 <p>/ AUDIO_OUTPUT_DEVICE_INFO
9633    
9634     </p>
9635     <p>/ MIDI_INPUT_DEVICE_COUNT
9636    
9637     </p>
9638     <p>/ MIDI_INPUT_DEVICE_INFO
9639    
9640     </p>
9641     <p>/ CHANNEL_COUNT
9642    
9643     </p>
9644 schoenebeck 1685 <p>/ CHANNEL_MIDI
9645    
9646     </p>
9647 schoenebeck 1696 <p>/ DEVICE_MIDI
9648    
9649     </p>
9650 schoenebeck 575 <p>/ VOICE_COUNT
9651 schoenebeck 940
9652 schoenebeck 575 </p>
9653     <p>/ STREAM_COUNT
9654 schoenebeck 940
9655 schoenebeck 575 </p>
9656     <p>/ BUFFER_FILL
9657 schoenebeck 940
9658 schoenebeck 575 </p>
9659     <p>/ CHANNEL_INFO
9660 schoenebeck 940
9661 schoenebeck 575 </p>
9662 iliev 1110 <p>/ FX_SEND_COUNT
9663    
9664     </p>
9665     <p>/ FX_SEND_INFO
9666    
9667     </p>
9668 iliev 992 <p>/ MIDI_INSTRUMENT_MAP_COUNT
9669    
9670     </p>
9671     <p>/ MIDI_INSTRUMENT_MAP_INFO
9672    
9673     </p>
9674     <p>/ MIDI_INSTRUMENT_COUNT
9675    
9676     </p>
9677     <p>/ MIDI_INSTRUMENT_INFO
9678    
9679     </p>
9680 iliev 1162 <p>/ DB_INSTRUMENT_DIRECTORY_COUNT
9681    
9682     </p>
9683     <p>/ DB_INSTRUMENT_DIRECTORY_INFO
9684    
9685     </p>
9686     <p>/ DB_INSTRUMENT_COUNT
9687    
9688     </p>
9689     <p>/ DB_INSTRUMENT_INFO
9690    
9691     </p>
9692 iliev 1201 <p>/ DB_INSTRUMENTS_JOB_INFO
9693    
9694     </p>
9695 schoenebeck 575 <p>/ MISCELLANEOUS
9696 schoenebeck 940
9697 schoenebeck 575 </p>
9698 schoenebeck 1572 <p>/ TOTAL_STREAM_COUNT
9699    
9700     </p>
9701 schoenebeck 940 <p>/ TOTAL_VOICE_COUNT
9702    
9703     </p>
9704 iliev 1110 <p>/ GLOBAL_INFO
9705    
9706     </p>
9707 schoenebeck 708 </blockquote><p>
9708 schoenebeck 575
9709 schoenebeck 708 </p>
9710 schoenebeck 575 <p>unsubscribe_event =
9711     </p>
9712     <blockquote class="text">
9713 iliev 992 <p>AUDIO_OUTPUT_DEVICE_COUNT
9714 schoenebeck 940
9715 schoenebeck 575 </p>
9716 iliev 992 <p>/ AUDIO_OUTPUT_DEVICE_INFO
9717    
9718     </p>
9719     <p>/ MIDI_INPUT_DEVICE_COUNT
9720    
9721     </p>
9722     <p>/ MIDI_INPUT_DEVICE_INFO
9723    
9724     </p>
9725     <p>/ CHANNEL_COUNT
9726    
9727     </p>
9728 schoenebeck 1685 <p>/ CHANNEL_MIDI
9729    
9730     </p>
9731 schoenebeck 1696 <p>/ DEVICE_MIDI
9732    
9733     </p>
9734 schoenebeck 575 <p>/ VOICE_COUNT
9735 schoenebeck 940
9736 schoenebeck 575 </p>
9737     <p>/ STREAM_COUNT
9738 schoenebeck 940
9739 schoenebeck 575 </p>
9740     <p>/ BUFFER_FILL
9741 schoenebeck 940
9742 schoenebeck 575 </p>
9743     <p>/ CHANNEL_INFO
9744 schoenebeck 940
9745 schoenebeck 575 </p>
9746 iliev 1110 <p>/ FX_SEND_COUNT
9747    
9748     </p>
9749     <p>/ FX_SEND_INFO
9750    
9751     </p>
9752 iliev 992 <p>/ MIDI_INSTRUMENT_MAP_COUNT
9753    
9754     </p>
9755     <p>/ MIDI_INSTRUMENT_MAP_INFO
9756    
9757     </p>
9758     <p>/ MIDI_INSTRUMENT_COUNT
9759    
9760     </p>
9761     <p>/ MIDI_INSTRUMENT_INFO
9762    
9763     </p>
9764 iliev 1162 <p>/ DB_INSTRUMENT_DIRECTORY_COUNT
9765    
9766     </p>
9767     <p>/ DB_INSTRUMENT_DIRECTORY_INFO
9768    
9769     </p>
9770     <p>/ DB_INSTRUMENT_COUNT
9771    
9772     </p>
9773     <p>/ DB_INSTRUMENT_INFO
9774    
9775     </p>
9776 iliev 1201 <p>/ DB_INSTRUMENTS_JOB_INFO
9777    
9778     </p>
9779 schoenebeck 575 <p>/ MISCELLANEOUS
9780 schoenebeck 940
9781 schoenebeck 575 </p>
9782 schoenebeck 1572 <p>/ TOTAL_STREAM_COUNT
9783    
9784     </p>
9785 schoenebeck 940 <p>/ TOTAL_VOICE_COUNT
9786    
9787     </p>
9788 iliev 1110 <p>/ GLOBAL_INFO
9789    
9790     </p>
9791 schoenebeck 708 </blockquote><p>
9792 schoenebeck 575
9793 schoenebeck 708 </p>
9794 schoenebeck 945 <p>map_instruction =
9795     </p>
9796     <blockquote class="text">
9797 schoenebeck 1048 <p>MIDI_INSTRUMENT SP modal_arg midi_map SP midi_bank SP midi_prog SP engine_name SP filename SP instrument_index SP volume_value
9798 schoenebeck 945
9799     </p>
9800 schoenebeck 1048 <p>/ MIDI_INSTRUMENT SP modal_arg midi_map SP midi_bank SP midi_prog SP engine_name SP filename SP instrument_index SP volume_value SP instr_load_mode
9801 schoenebeck 945
9802     </p>
9803 schoenebeck 1048 <p>/ MIDI_INSTRUMENT SP modal_arg midi_map SP midi_bank SP midi_prog SP engine_name SP filename SP instrument_index SP volume_value SP entry_name
9804 schoenebeck 945
9805     </p>
9806 schoenebeck 1048 <p>/ MIDI_INSTRUMENT SP modal_arg midi_map SP midi_bank SP midi_prog SP engine_name SP filename SP instrument_index SP volume_value SP instr_load_mode SP entry_name
9807 schoenebeck 945
9808     </p>
9809     </blockquote><p>
9810    
9811     </p>
9812     <p>unmap_instruction =
9813     </p>
9814     <blockquote class="text">
9815 schoenebeck 974 <p>MIDI_INSTRUMENT SP midi_map SP midi_bank SP midi_prog
9816 schoenebeck 945
9817     </p>
9818     </blockquote><p>
9819    
9820     </p>
9821     <p>remove_instruction =
9822     </p>
9823     <blockquote class="text">
9824     <p>CHANNEL SP sampler_channel
9825    
9826     </p>
9827 schoenebeck 974 <p>/ MIDI_INSTRUMENT_MAP SP midi_map
9828    
9829     </p>
9830     <p>/ MIDI_INSTRUMENT_MAP SP ALL
9831    
9832     </p>
9833 schoenebeck 1363 <p>/ DB_INSTRUMENT_DIRECTORY SP FORCE SP db_path
9834 iliev 1162
9835     </p>
9836 schoenebeck 1363 <p>/ DB_INSTRUMENT_DIRECTORY SP db_path
9837 iliev 1162
9838     </p>
9839 schoenebeck 1363 <p>/ DB_INSTRUMENT SP db_path
9840 iliev 1162
9841     </p>
9842 schoenebeck 945 </blockquote><p>
9843    
9844     </p>
9845 schoenebeck 575 <p>get_instruction =
9846     </p>
9847     <blockquote class="text">
9848     <p>AVAILABLE_ENGINES
9849 schoenebeck 940
9850 schoenebeck 575 </p>
9851     <p>/ AVAILABLE_MIDI_INPUT_DRIVERS
9852 schoenebeck 940
9853 schoenebeck 575 </p>
9854     <p>/ MIDI_INPUT_DRIVER SP INFO SP string
9855 schoenebeck 940
9856 schoenebeck 575 </p>
9857     <p>/ MIDI_INPUT_DRIVER_PARAMETER SP INFO SP string SP string
9858 schoenebeck 940
9859 schoenebeck 575 </p>
9860     <p>/ MIDI_INPUT_DRIVER_PARAMETER SP INFO SP string SP string SP key_val_list
9861 schoenebeck 940
9862 schoenebeck 575 </p>
9863     <p>/ AVAILABLE_AUDIO_OUTPUT_DRIVERS
9864 schoenebeck 940
9865 schoenebeck 575 </p>
9866     <p>/ AUDIO_OUTPUT_DRIVER SP INFO SP string
9867 schoenebeck 940
9868 schoenebeck 575 </p>
9869     <p>/ AUDIO_OUTPUT_DRIVER_PARAMETER SP INFO SP string SP string
9870 schoenebeck 940
9871 schoenebeck 575 </p>
9872     <p>/ AUDIO_OUTPUT_DRIVER_PARAMETER SP INFO SP string SP string SP key_val_list
9873 schoenebeck 940
9874 schoenebeck 575 </p>
9875     <p>/ AUDIO_OUTPUT_DEVICES
9876 schoenebeck 940
9877 schoenebeck 575 </p>
9878     <p>/ MIDI_INPUT_DEVICES
9879 schoenebeck 940
9880 schoenebeck 575 </p>
9881     <p>/ AUDIO_OUTPUT_DEVICE SP INFO SP number
9882 schoenebeck 940
9883 schoenebeck 575 </p>
9884     <p>/ MIDI_INPUT_DEVICE SP INFO SP number
9885 schoenebeck 940
9886 schoenebeck 575 </p>
9887     <p>/ MIDI_INPUT_PORT SP INFO SP number SP number
9888 schoenebeck 940
9889 schoenebeck 575 </p>
9890     <p>/ MIDI_INPUT_PORT_PARAMETER SP INFO SP number SP number SP string
9891 schoenebeck 940
9892 schoenebeck 575 </p>
9893     <p>/ AUDIO_OUTPUT_CHANNEL SP INFO SP number SP number
9894 schoenebeck 940
9895 schoenebeck 575 </p>
9896     <p>/ AUDIO_OUTPUT_CHANNEL_PARAMETER SP INFO SP number SP number SP string
9897 schoenebeck 940
9898 schoenebeck 575 </p>
9899     <p>/ CHANNELS
9900 schoenebeck 940
9901 schoenebeck 575 </p>
9902     <p>/ CHANNEL SP INFO SP sampler_channel
9903 schoenebeck 940
9904 schoenebeck 575 </p>
9905     <p>/ CHANNEL SP BUFFER_FILL SP buffer_size_type SP sampler_channel
9906 schoenebeck 940
9907 schoenebeck 575 </p>
9908     <p>/ CHANNEL SP STREAM_COUNT SP sampler_channel
9909 schoenebeck 940
9910 schoenebeck 575 </p>
9911     <p>/ CHANNEL SP VOICE_COUNT SP sampler_channel
9912 schoenebeck 940
9913 schoenebeck 575 </p>
9914     <p>/ ENGINE SP INFO SP engine_name
9915 schoenebeck 940
9916 schoenebeck 575 </p>
9917     <p>/ SERVER SP INFO
9918 schoenebeck 940
9919 schoenebeck 575 </p>
9920 schoenebeck 1572 <p>/ TOTAL_STREAM_COUNT
9921    
9922     </p>
9923 schoenebeck 940 <p>/ TOTAL_VOICE_COUNT
9924    
9925     </p>
9926     <p>/ TOTAL_VOICE_COUNT_MAX
9927    
9928     </p>
9929 schoenebeck 974 <p>/ MIDI_INSTRUMENTS SP midi_map
9930 schoenebeck 945
9931     </p>
9932 schoenebeck 974 <p>/ MIDI_INSTRUMENTS SP ALL
9933 schoenebeck 945
9934     </p>
9935 schoenebeck 974 <p>/ MIDI_INSTRUMENT SP INFO SP midi_map SP midi_bank SP midi_prog
9936    
9937     </p>
9938     <p>/ MIDI_INSTRUMENT_MAPS
9939    
9940     </p>
9941     <p>/ MIDI_INSTRUMENT_MAP SP INFO SP midi_map
9942    
9943     </p>
9944 schoenebeck 1002 <p>/ FX_SENDS SP sampler_channel
9945    
9946     </p>
9947     <p>/ FX_SEND SP INFO SP sampler_channel SP fx_send_id
9948    
9949     </p>
9950 schoenebeck 1363 <p>/ DB_INSTRUMENT_DIRECTORIES SP RECURSIVE SP db_path
9951 iliev 1189
9952     </p>
9953 schoenebeck 1363 <p>/ DB_INSTRUMENT_DIRECTORIES SP db_path
9954 iliev 1162
9955     </p>
9956 schoenebeck 1363 <p>/ DB_INSTRUMENT_DIRECTORY SP INFO SP db_path
9957 iliev 1162
9958     </p>
9959 schoenebeck 1363 <p>/ DB_INSTRUMENTS SP RECURSIVE SP db_path
9960 iliev 1189
9961     </p>
9962 schoenebeck 1363 <p>/ DB_INSTRUMENTS SP db_path
9963 iliev 1162
9964     </p>
9965 schoenebeck 1363 <p>/ DB_INSTRUMENT SP INFO SP db_path
9966 iliev 1162
9967     </p>
9968 iliev 1201 <p>/ DB_INSTRUMENTS_JOB SP INFO SP number
9969    
9970     </p>
9971 schoenebeck 1006 <p>/ VOLUME
9972    
9973     </p>
9974 schoenebeck 1572 <p>/ FILE SP INSTRUMENTS SP filename
9975    
9976     </p>
9977     <p>/ FILE SP INSTRUMENT SP INFO SP filename SP instrument_index
9978    
9979     </p>
9980 schoenebeck 708 </blockquote><p>
9981 schoenebeck 575
9982 schoenebeck 708 </p>
9983 schoenebeck 575 <p>set_instruction =
9984     </p>
9985     <blockquote class="text">
9986     <p>AUDIO_OUTPUT_DEVICE_PARAMETER SP number SP string '=' param_val_list
9987 schoenebeck 940
9988 schoenebeck 575 </p>
9989     <p>/ AUDIO_OUTPUT_CHANNEL_PARAMETER SP number SP number SP string '=' param_val_list
9990 schoenebeck 940
9991 schoenebeck 575 </p>
9992     <p>/ MIDI_INPUT_DEVICE_PARAMETER SP number SP string '=' param_val_list
9993 schoenebeck 940
9994 schoenebeck 575 </p>
9995 schoenebeck 1363 <p>/ MIDI_INPUT_PORT_PARAMETER SP number SP number SP string '=' NONE
9996    
9997     </p>
9998 schoenebeck 575 <p>/ MIDI_INPUT_PORT_PARAMETER SP number SP number SP string '=' param_val_list
9999 schoenebeck 940
10000 schoenebeck 575 </p>
10001     <p>/ CHANNEL SP set_chan_instruction
10002 schoenebeck 940
10003 schoenebeck 575 </p>
10004 schoenebeck 974 <p>/ MIDI_INSTRUMENT_MAP SP NAME SP midi_map SP map_name
10005    
10006     </p>
10007 iliev 1137 <p>/ FX_SEND SP NAME SP sampler_channel SP fx_send_id SP fx_send_name
10008    
10009     </p>
10010 schoenebeck 1002 <p>/ FX_SEND SP AUDIO_OUTPUT_CHANNEL SP sampler_channel SP fx_send_id SP audio_channel_index SP audio_channel_index
10011    
10012     </p>
10013 schoenebeck 1028 <p>/ FX_SEND SP MIDI_CONTROLLER SP sampler_channel SP fx_send_id SP midi_ctrl
10014    
10015     </p>
10016     <p>/ FX_SEND SP LEVEL SP sampler_channel SP fx_send_id SP volume_value
10017    
10018     </p>
10019 schoenebeck 1363 <p>/ DB_INSTRUMENT_DIRECTORY SP NAME SP db_path SP stringval_escaped
10020 iliev 1162
10021     </p>
10022 schoenebeck 1363 <p>/ DB_INSTRUMENT_DIRECTORY SP DESCRIPTION SP db_path SP stringval_escaped
10023 iliev 1162
10024     </p>
10025 schoenebeck 1363 <p>/ DB_INSTRUMENT SP NAME SP db_path SP stringval_escaped
10026 iliev 1162
10027     </p>
10028 schoenebeck 1363 <p>/ DB_INSTRUMENT SP DESCRIPTION SP db_path SP stringval_escaped
10029 iliev 1162
10030     </p>
10031 schoenebeck 575 <p>/ ECHO SP boolean
10032 schoenebeck 940
10033 schoenebeck 575 </p>
10034 schoenebeck 1006 <p>/ VOLUME SP volume_value
10035    
10036     </p>
10037 schoenebeck 708 </blockquote><p>
10038 schoenebeck 575
10039 schoenebeck 708 </p>
10040 schoenebeck 575 <p>create_instruction =
10041     </p>
10042     <blockquote class="text">
10043     <p>AUDIO_OUTPUT_DEVICE SP string SP key_val_list
10044 schoenebeck 940
10045 schoenebeck 575 </p>
10046     <p>/ AUDIO_OUTPUT_DEVICE SP string
10047 schoenebeck 940
10048 schoenebeck 575 </p>
10049     <p>/ MIDI_INPUT_DEVICE SP string SP key_val_list
10050 schoenebeck 940
10051 schoenebeck 575 </p>
10052     <p>/ MIDI_INPUT_DEVICE SP string
10053 schoenebeck 940
10054 schoenebeck 575 </p>
10055 schoenebeck 1002 <p>/ FX_SEND SP sampler_channel SP midi_ctrl
10056    
10057     </p>
10058     <p>/ FX_SEND SP sampler_channel SP midi_ctrl SP fx_send_name
10059    
10060     </p>
10061 schoenebeck 708 </blockquote><p>
10062 schoenebeck 575
10063 schoenebeck 708 </p>
10064 schoenebeck 945 <p>reset_instruction =
10065     </p>
10066     <blockquote class="text">
10067     <p>CHANNEL SP sampler_channel
10068    
10069     </p>
10070     </blockquote><p>
10071    
10072     </p>
10073     <p>clear_instruction =
10074     </p>
10075     <blockquote class="text">
10076 schoenebeck 974 <p>MIDI_INSTRUMENTS SP midi_map
10077 schoenebeck 945
10078     </p>
10079 schoenebeck 974 <p>/ MIDI_INSTRUMENTS SP ALL
10080    
10081     </p>
10082 schoenebeck 945 </blockquote><p>
10083    
10084     </p>
10085 iliev 1189 <p>find_instruction =
10086     </p>
10087     <blockquote class="text">
10088 schoenebeck 1363 <p>DB_INSTRUMENTS SP NON_RECURSIVE SP db_path SP query_val_list
10089 iliev 1189
10090     </p>
10091 schoenebeck 1363 <p>/ DB_INSTRUMENTS SP db_path SP query_val_list
10092 iliev 1189
10093     </p>
10094 schoenebeck 1363 <p>/ DB_INSTRUMENT_DIRECTORIES SP NON_RECURSIVE SP db_path SP query_val_list
10095 iliev 1189
10096     </p>
10097 schoenebeck 1363 <p>/ DB_INSTRUMENT_DIRECTORIES SP db_path SP query_val_list
10098 iliev 1189
10099     </p>
10100     </blockquote><p>
10101    
10102     </p>
10103 iliev 1162 <p>move_instruction =
10104     </p>
10105     <blockquote class="text">
10106 schoenebeck 1363 <p>DB_INSTRUMENT_DIRECTORY SP db_path SP db_path
10107 iliev 1162
10108     </p>
10109 schoenebeck 1363 <p>/ DB_INSTRUMENT SP db_path SP db_path
10110 iliev 1162
10111     </p>
10112     </blockquote><p>
10113    
10114     </p>
10115 iliev 1189 <p>copy_instruction =
10116     </p>
10117     <blockquote class="text">
10118 schoenebeck 1363 <p>DB_INSTRUMENT_DIRECTORY SP db_path SP db_path
10119 iliev 1189
10120     </p>
10121 schoenebeck 1363 <p>/ DB_INSTRUMENT SP db_path SP db_path
10122 iliev 1189
10123     </p>
10124     </blockquote><p>
10125    
10126     </p>
10127 schoenebeck 575 <p>destroy_instruction =
10128     </p>
10129     <blockquote class="text">
10130     <p>AUDIO_OUTPUT_DEVICE SP number
10131 schoenebeck 940
10132 schoenebeck 575 </p>
10133     <p>/ MIDI_INPUT_DEVICE SP number
10134 schoenebeck 940
10135 schoenebeck 575 </p>
10136 schoenebeck 1002 <p>/ FX_SEND SP sampler_channel SP fx_send_id
10137    
10138     </p>
10139 schoenebeck 708 </blockquote><p>
10140 schoenebeck 575
10141 schoenebeck 708 </p>
10142 schoenebeck 575 <p>load_instruction =
10143     </p>
10144     <blockquote class="text">
10145     <p>INSTRUMENT SP load_instr_args
10146 schoenebeck 940
10147 schoenebeck 575 </p>
10148     <p>/ ENGINE SP load_engine_args
10149 schoenebeck 940
10150 schoenebeck 575 </p>
10151 schoenebeck 708 </blockquote><p>
10152 schoenebeck 575
10153 schoenebeck 708 </p>
10154 schoenebeck 575 <p>set_chan_instruction =
10155     </p>
10156     <blockquote class="text">
10157     <p>AUDIO_OUTPUT_DEVICE SP sampler_channel SP device_index
10158 schoenebeck 940
10159 schoenebeck 575 </p>
10160     <p>/ AUDIO_OUTPUT_CHANNEL SP sampler_channel SP audio_channel_index SP audio_channel_index
10161 schoenebeck 940
10162 schoenebeck 575 </p>
10163     <p>/ AUDIO_OUTPUT_TYPE SP sampler_channel SP audio_output_type_name
10164 schoenebeck 940
10165 schoenebeck 575 </p>
10166     <p>/ MIDI_INPUT SP sampler_channel SP device_index SP midi_input_port_index SP midi_input_channel_index
10167 schoenebeck 940
10168 schoenebeck 575 </p>
10169     <p>/ MIDI_INPUT_DEVICE SP sampler_channel SP device_index
10170 schoenebeck 940
10171 schoenebeck 575 </p>
10172     <p>/ MIDI_INPUT_PORT SP sampler_channel SP midi_input_port_index
10173 schoenebeck 940
10174 schoenebeck 575 </p>
10175     <p>/ MIDI_INPUT_CHANNEL SP sampler_channel SP midi_input_channel_index
10176 schoenebeck 940
10177 schoenebeck 575 </p>
10178     <p>/ MIDI_INPUT_TYPE SP sampler_channel SP midi_input_type_name
10179 schoenebeck 940
10180 schoenebeck 575 </p>
10181     <p>/ VOLUME SP sampler_channel SP volume_value
10182 schoenebeck 940
10183 schoenebeck 575 </p>
10184 schoenebeck 708 <p>/ MUTE SP sampler_channel SP boolean
10185 schoenebeck 940
10186 schoenebeck 708 </p>
10187     <p>/ SOLO SP sampler_channel SP boolean
10188 schoenebeck 940
10189 schoenebeck 708 </p>
10190 schoenebeck 974 <p>/ MIDI_INSTRUMENT_MAP SP sampler_channel SP midi_map
10191    
10192     </p>
10193     <p>/ MIDI_INSTRUMENT_MAP SP sampler_channel SP NONE
10194    
10195     </p>
10196     <p>/ MIDI_INSTRUMENT_MAP SP sampler_channel SP DEFAULT
10197    
10198     </p>
10199 schoenebeck 708 </blockquote><p>
10200    
10201     </p>
10202 schoenebeck 1251 <p>edit_instruction =
10203     </p>
10204     <blockquote class="text">
10205 schoenebeck 1430 <p>CHANNEL SP INSTRUMENT SP sampler_channel
10206 schoenebeck 1251
10207     </p>
10208     </blockquote><p>
10209    
10210     </p>
10211 schoenebeck 1363 <p>format_instruction =
10212     </p>
10213     <blockquote class="text">
10214     <p>INSTRUMENTS_DB
10215    
10216     </p>
10217     </blockquote><p>
10218    
10219     </p>
10220 schoenebeck 1048 <p>modal_arg =
10221     </p>
10222     <blockquote class="text">
10223     <p>/* epsilon (empty argument) */
10224    
10225     </p>
10226     <p>/ NON_MODAL SP
10227    
10228     </p>
10229     </blockquote><p>
10230    
10231     </p>
10232 schoenebeck 575 <p>key_val_list =
10233     </p>
10234     <blockquote class="text">
10235     <p>string '=' param_val_list
10236 schoenebeck 940
10237 schoenebeck 575 </p>
10238     <p>/ key_val_list SP string '=' param_val_list
10239 schoenebeck 940
10240 schoenebeck 575 </p>
10241 schoenebeck 708 </blockquote><p>
10242 schoenebeck 575
10243 schoenebeck 708 </p>
10244 schoenebeck 575 <p>buffer_size_type =
10245     </p>
10246     <blockquote class="text">
10247     <p>BYTES
10248 schoenebeck 940
10249 schoenebeck 575 </p>
10250     <p>/ PERCENTAGE
10251 schoenebeck 940
10252 schoenebeck 575 </p>
10253 schoenebeck 708 </blockquote><p>
10254 schoenebeck 575
10255 schoenebeck 708 </p>
10256 schoenebeck 575 <p>list_instruction =
10257     </p>
10258     <blockquote class="text">
10259     <p>AUDIO_OUTPUT_DEVICES
10260 schoenebeck 940
10261 schoenebeck 575 </p>
10262     <p>/ MIDI_INPUT_DEVICES
10263 schoenebeck 940
10264 schoenebeck 575 </p>
10265     <p>/ CHANNELS
10266 schoenebeck 940
10267 schoenebeck 575 </p>
10268     <p>/ AVAILABLE_ENGINES
10269 schoenebeck 940
10270 schoenebeck 575 </p>
10271     <p>/ AVAILABLE_MIDI_INPUT_DRIVERS
10272 schoenebeck 940
10273 schoenebeck 575 </p>
10274     <p>/ AVAILABLE_AUDIO_OUTPUT_DRIVERS
10275 schoenebeck 940
10276 schoenebeck 575 </p>
10277 schoenebeck 974 <p>/ MIDI_INSTRUMENTS SP midi_map
10278 schoenebeck 945
10279     </p>
10280 schoenebeck 974 <p>/ MIDI_INSTRUMENTS SP ALL
10281    
10282     </p>
10283     <p>/ MIDI_INSTRUMENT_MAPS
10284    
10285     </p>
10286 schoenebeck 1002 <p>/ FX_SENDS SP sampler_channel
10287    
10288     </p>
10289 schoenebeck 1363 <p>/ DB_INSTRUMENT_DIRECTORIES SP RECURSIVE SP db_path
10290 iliev 1189
10291     </p>
10292 schoenebeck 1363 <p>/ DB_INSTRUMENT_DIRECTORIES SP db_path
10293 iliev 1162
10294     </p>
10295 schoenebeck 1363 <p>/ DB_INSTRUMENTS SP RECURSIVE SP db_path
10296 iliev 1189
10297     </p>
10298 schoenebeck 1363 <p>/ DB_INSTRUMENTS SP db_path
10299 iliev 1162
10300     </p>
10301 schoenebeck 1572 <p>/ FILE SP INSTRUMENTS SP filename
10302    
10303     </p>
10304 schoenebeck 708 </blockquote><p>
10305 schoenebeck 575
10306 schoenebeck 708 </p>
10307 schoenebeck 575 <p>load_instr_args =
10308     </p>
10309     <blockquote class="text">
10310     <p>filename SP instrument_index SP sampler_channel
10311 schoenebeck 940
10312 schoenebeck 575 </p>
10313     <p>/ NON_MODAL SP filename SP instrument_index SP sampler_channel
10314 schoenebeck 940
10315 schoenebeck 575 </p>
10316 schoenebeck 708 </blockquote><p>
10317 schoenebeck 575
10318 schoenebeck 708 </p>
10319 schoenebeck 575 <p>load_engine_args =
10320     </p>
10321     <blockquote class="text">
10322     <p>engine_name SP sampler_channel
10323 schoenebeck 940
10324 schoenebeck 575 </p>
10325 schoenebeck 708 </blockquote><p>
10326 schoenebeck 575
10327 schoenebeck 708 </p>
10328 schoenebeck 945 <p>instr_load_mode =
10329     </p>
10330     <blockquote class="text">
10331     <p>ON_DEMAND
10332    
10333     </p>
10334     <p>/ ON_DEMAND_HOLD
10335    
10336     </p>
10337     <p>/ PERSISTENT
10338    
10339     </p>
10340     </blockquote><p>
10341    
10342     </p>
10343 schoenebeck 575 <p>device_index =
10344     </p>
10345     <blockquote class="text">
10346     <p>number
10347 schoenebeck 940
10348 schoenebeck 575 </p>
10349 schoenebeck 708 </blockquote><p>
10350 schoenebeck 575
10351 schoenebeck 708 </p>
10352 schoenebeck 575 <p>audio_channel_index =
10353     </p>
10354     <blockquote class="text">
10355     <p>number
10356 schoenebeck 940
10357 schoenebeck 575 </p>
10358 schoenebeck 708 </blockquote><p>
10359 schoenebeck 575
10360 schoenebeck 708 </p>
10361 schoenebeck 575 <p>audio_output_type_name =
10362     </p>
10363     <blockquote class="text">
10364     <p>string
10365 schoenebeck 940
10366 schoenebeck 575 </p>
10367 schoenebeck 708 </blockquote><p>
10368 schoenebeck 575
10369 schoenebeck 708 </p>
10370 schoenebeck 575 <p>midi_input_port_index =
10371     </p>
10372     <blockquote class="text">
10373     <p>number
10374 schoenebeck 940
10375 schoenebeck 575 </p>
10376 schoenebeck 708 </blockquote><p>
10377 schoenebeck 575
10378 schoenebeck 708 </p>
10379 schoenebeck 575 <p>midi_input_channel_index =
10380     </p>
10381     <blockquote class="text">
10382     <p>number
10383 schoenebeck 940
10384 schoenebeck 575 </p>
10385     <p>/ ALL
10386 schoenebeck 940
10387 schoenebeck 575 </p>
10388 schoenebeck 708 </blockquote><p>
10389 schoenebeck 575
10390 schoenebeck 708 </p>
10391 schoenebeck 575 <p>midi_input_type_name =
10392     </p>
10393     <blockquote class="text">
10394     <p>string
10395 schoenebeck 940
10396 schoenebeck 575 </p>
10397 schoenebeck 708 </blockquote><p>
10398 schoenebeck 575
10399 schoenebeck 708 </p>
10400 schoenebeck 974 <p>midi_map =
10401 schoenebeck 945 </p>
10402     <blockquote class="text">
10403     <p>number
10404    
10405     </p>
10406     </blockquote><p>
10407    
10408     </p>
10409 schoenebeck 974 <p>midi_bank =
10410 schoenebeck 945 </p>
10411     <blockquote class="text">
10412     <p>number
10413    
10414     </p>
10415     </blockquote><p>
10416    
10417     </p>
10418     <p>midi_prog =
10419     </p>
10420     <blockquote class="text">
10421     <p>number
10422    
10423     </p>
10424     </blockquote><p>
10425    
10426     </p>
10427 schoenebeck 1002 <p>midi_ctrl =
10428     </p>
10429     <blockquote class="text">
10430     <p>number
10431    
10432     </p>
10433     </blockquote><p>
10434    
10435     </p>
10436 schoenebeck 575 <p>volume_value =
10437     </p>
10438     <blockquote class="text">
10439     <p>dotnum
10440 schoenebeck 940
10441 schoenebeck 575 </p>
10442     <p>/ number
10443 schoenebeck 940
10444 schoenebeck 575 </p>
10445 schoenebeck 708 </blockquote><p>
10446 schoenebeck 575
10447 schoenebeck 708 </p>
10448 schoenebeck 575 <p>sampler_channel =
10449     </p>
10450     <blockquote class="text">
10451     <p>number
10452 schoenebeck 940
10453 schoenebeck 575 </p>
10454 schoenebeck 708 </blockquote><p>
10455 schoenebeck 575
10456 schoenebeck 708 </p>
10457 schoenebeck 575 <p>instrument_index =
10458     </p>
10459     <blockquote class="text">
10460     <p>number
10461 schoenebeck 940
10462 schoenebeck 575 </p>
10463 schoenebeck 708 </blockquote><p>
10464 schoenebeck 575
10465 schoenebeck 708 </p>
10466 schoenebeck 1002 <p>fx_send_id =
10467     </p>
10468     <blockquote class="text">
10469     <p>number
10470    
10471     </p>
10472     </blockquote><p>
10473    
10474     </p>
10475 schoenebeck 575 <p>engine_name =
10476     </p>
10477     <blockquote class="text">
10478     <p>string
10479 schoenebeck 940
10480 schoenebeck 575 </p>
10481 schoenebeck 708 </blockquote><p>
10482 schoenebeck 575
10483 schoenebeck 708 </p>
10484 schoenebeck 1363 <p>filename =
10485 iliev 1162 </p>
10486     <blockquote class="text">
10487 schoenebeck 1363 <p>path
10488 iliev 1162
10489     </p>
10490     </blockquote><p>
10491    
10492     </p>
10493 schoenebeck 1363 <p>db_path =
10494 iliev 1162 </p>
10495     <blockquote class="text">
10496 schoenebeck 1363 <p>path
10497 iliev 1162
10498     </p>
10499     </blockquote><p>
10500    
10501     </p>
10502 schoenebeck 974 <p>map_name =
10503     </p>
10504     <blockquote class="text">
10505 schoenebeck 1390 <p>stringval_escaped
10506 schoenebeck 974
10507     </p>
10508     </blockquote><p>
10509    
10510     </p>
10511 schoenebeck 945 <p>entry_name =
10512     </p>
10513     <blockquote class="text">
10514 schoenebeck 1390 <p>stringval_escaped
10515 schoenebeck 945
10516     </p>
10517     </blockquote><p>
10518    
10519     </p>
10520 schoenebeck 1002 <p>fx_send_name =
10521     </p>
10522     <blockquote class="text">
10523 schoenebeck 1390 <p>stringval_escaped
10524 schoenebeck 1002
10525     </p>
10526     </blockquote><p>
10527    
10528     </p>
10529 schoenebeck 575 <p>param_val_list =
10530     </p>
10531     <blockquote class="text">
10532     <p>param_val
10533 schoenebeck 940
10534 schoenebeck 575 </p>
10535     <p>/ param_val_list','param_val
10536 schoenebeck 940
10537 schoenebeck 575 </p>
10538 schoenebeck 708 </blockquote><p>
10539 schoenebeck 575
10540 schoenebeck 708 </p>
10541 schoenebeck 575 <p>param_val =
10542     </p>
10543     <blockquote class="text">
10544     <p>string
10545 schoenebeck 940
10546 schoenebeck 575 </p>
10547 schoenebeck 940 <p>/ stringval
10548    
10549 schoenebeck 575 </p>
10550     <p>/ number
10551 schoenebeck 940
10552 schoenebeck 575 </p>
10553     <p>/ dotnum
10554 schoenebeck 940
10555 schoenebeck 575 </p>
10556 schoenebeck 708 </blockquote><p>
10557 schoenebeck 575
10558 schoenebeck 708 </p>
10559 iliev 1189 <p>query_val_list =
10560     </p>
10561     <blockquote class="text">
10562     <p>string '=' query_val
10563    
10564     </p>
10565     <p>/ query_val_list SP string '=' query_val
10566    
10567     </p>
10568     </blockquote><p>
10569    
10570     </p>
10571     <p>query_val =
10572     </p>
10573     <blockquote class="text">
10574 schoenebeck 1390 <p>text_escaped
10575 iliev 1189
10576     </p>
10577 schoenebeck 1363 <p>/ stringval_escaped
10578 iliev 1189
10579     </p>
10580     </blockquote><p>
10581    
10582     </p>
10583 iliev 1201 <p>scan_mode =
10584     </p>
10585     <blockquote class="text">
10586     <p>RECURSIVE
10587    
10588     </p>
10589     <p>/ NON_RECURSIVE
10590    
10591     </p>
10592     <p>/ FLAT
10593    
10594     </p>
10595     </blockquote><p>
10596    
10597     </p>
10598 schoenebeck 1251 <a name="character_set"></a><br /><hr />
10599     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
10600     <a name="rfc.section.7.1"></a><h3>7.1.&nbsp;
10601     Character Set and Escape Sequences</h3>
10602    
10603     <p>Older versions of this protocol up to and including v1.1 only
10604     supported the standard ASCII character set (ASCII code 0 - 127)
10605     <a class='info' href='#RFC20'>[RFC20]<span> (</span><span class='info'>UCLA, &ldquo;ASCII format for Network Interchange,&rdquo; 1969.</span><span>)</span></a>, all younger versions of this protocol
10606     however support the Extended ASCII character set (ASCII code
10607     0 - 255). The same group of younger protocols also support
10608     escape sequences, but only for certain, explicitly declared
10609     parts of the protocol. The supported escape sequences are
10610     defined as follows:
10611     </p><table class="full" align="center" border="0" cellpadding="2" cellspacing="2">
10612     <col align="left"><col align="left">
10613     <tr><th align="left">ASCII Character Sequence</th><th align="left">Translated into (Name)</th></tr>
10614     <tr>
10615     <td align="left">\n</td>
10616     <td align="left">new line</td>
10617     </tr>
10618     <tr>
10619     <td align="left">\r</td>
10620     <td align="left">carriage return</td>
10621     </tr>
10622     <tr>
10623     <td align="left">\f</td>
10624     <td align="left">form feed</td>
10625     </tr>
10626     <tr>
10627     <td align="left">\t</td>
10628     <td align="left">horizontal tab</td>
10629     </tr>
10630     <tr>
10631     <td align="left">\v</td>
10632     <td align="left">vertical tab</td>
10633     </tr>
10634     <tr>
10635     <td align="left">\'</td>
10636     <td align="left">apostrophe</td>
10637     </tr>
10638     <tr>
10639     <td align="left">\"</td>
10640     <td align="left">quotation mark</td>
10641     </tr>
10642     <tr>
10643     <td align="left">\\</td>
10644     <td align="left">backslash</td>
10645     </tr>
10646     <tr>
10647     <td align="left">\OOO</td>
10648     <td align="left">three digit octal ASCII code of the character</td>
10649     </tr>
10650     <tr>
10651     <td align="left">\xHH</td>
10652     <td align="left">two digit hex ASCII code of the character</td>
10653     </tr>
10654     </table>
10655    
10656     <p>Notice: due to the transition of certain parts of the
10657     protocol which now support escape sequences, a slight backward
10658     incompatibility to protocols version v1.1 and younger has been
10659     introduced. The only difference is that in parts of the protocol
10660     where escape characters are now supported, a backslash characters
10661     MUST be escaped as well (that is as double backslash), whereas
10662     in the old versions a single backslash was sufficient.
10663     </p>
10664 schoenebeck 1390 <p>The following LSCP commands support escape sequences as part
10665 schoenebeck 1400 of their filename / path based arguments and / or may contain
10666     a filename / path with escape sequences in their response:
10667 schoenebeck 1390 </p>
10668     <blockquote class="text">
10669     <p><a class='info' href='#LOAD INSTRUMENT'>"LOAD INSTRUMENT"<span> (</span><span class='info'>Loading an instrument</span><span>)</span></a>
10670     </p>
10671 schoenebeck 1400 <p><a class='info' href='#GET CHANNEL INFO'>"GET CHANNEL INFO"<span> (</span><span class='info'>Getting sampler channel information</span><span>)</span></a>
10672     </p>
10673 schoenebeck 1390 <p><a class='info' href='#MAP MIDI_INSTRUMENT'>"MAP MIDI_INSTRUMENT"<span> (</span><span class='info'>Create or replace a MIDI instrument map entry</span><span>)</span></a>
10674     </p>
10675 schoenebeck 1400 <p><a class='info' href='#GET MIDI_INSTRUMENT INFO'>"GET MIDI_INSTRUMENT INFO"<span> (</span><span class='info'>Get current settings of MIDI instrument map entry</span><span>)</span></a>
10676     </p>
10677 schoenebeck 1390 <p><a class='info' href='#ADD DB_INSTRUMENT_DIRECTORY'>"ADD DB_INSTRUMENT_DIRECTORY"<span> (</span><span class='info'>Creating a new instrument directory</span><span>)</span></a>
10678     </p>
10679     <p><a class='info' href='#ADD DB_INSTRUMENTS'>"ADD DB_INSTRUMENTS"<span> (</span><span class='info'>Adding instruments to the instruments database</span><span>)</span></a>
10680     </p>
10681     <p><a class='info' href='#REMOVE DB_INSTRUMENT_DIRECTORY'>"REMOVE DB_INSTRUMENT_DIRECTORY"<span> (</span><span class='info'>Deleting an instrument directory</span><span>)</span></a>
10682     </p>
10683     <p><a class='info' href='#REMOVE DB_INSTRUMENT'>"REMOVE DB_INSTRUMENT"<span> (</span><span class='info'>Removing an instrument</span><span>)</span></a>
10684     </p>
10685     <p><a class='info' href='#GET DB_INSTRUMENT_DIRECTORIES'>"GET DB_INSTRUMENT_DIRECTORIES"<span> (</span><span class='info'>Getting amount of instrument directories</span><span>)</span></a>
10686     </p>
10687     <p><a class='info' href='#LIST DB_INSTRUMENT_DIRECTORIES'>"LIST DB_INSTRUMENT_DIRECTORIES"<span> (</span><span class='info'>Listing all directories in specific directory</span><span>)</span></a>
10688     </p>
10689     <p><a class='info' href='#GET DB_INSTRUMENT_DIRECTORY INFO'>"GET DB_INSTRUMENT_DIRECTORY INFO"<span> (</span><span class='info'>Getting instrument directory information</span><span>)</span></a>
10690     </p>
10691     <p><a class='info' href='#GET DB_INSTRUMENTS'>"GET DB_INSTRUMENTS"<span> (</span><span class='info'>Getting amount of instruments</span><span>)</span></a>
10692     </p>
10693     <p><a class='info' href='#LIST DB_INSTRUMENTS'>"LIST DB_INSTRUMENTS"<span> (</span><span class='info'>Listing all instruments in specific directory</span><span>)</span></a>
10694     </p>
10695     <p><a class='info' href='#GET DB_INSTRUMENT INFO'>"GET DB_INSTRUMENT INFO"<span> (</span><span class='info'>Getting instrument information</span><span>)</span></a>
10696     </p>
10697     <p><a class='info' href='#SET DB_INSTRUMENT_DIRECTORY NAME'>"SET DB_INSTRUMENT_DIRECTORY NAME"<span> (</span><span class='info'>Renaming an instrument directory</span><span>)</span></a>
10698     </p>
10699     <p><a class='info' href='#SET DB_INSTRUMENT_DIRECTORY DESCRIPTION'>"SET DB_INSTRUMENT_DIRECTORY DESCRIPTION"<span> (</span><span class='info'>Changing the description of directory</span><span>)</span></a>
10700     </p>
10701     <p><a class='info' href='#SET DB_INSTRUMENT NAME'>"SET DB_INSTRUMENT NAME"<span> (</span><span class='info'>Renaming an instrument</span><span>)</span></a>
10702     </p>
10703     <p><a class='info' href='#SET DB_INSTRUMENT DESCRIPTION'>"SET DB_INSTRUMENT DESCRIPTION"<span> (</span><span class='info'>Changing the description of instrument</span><span>)</span></a>
10704     </p>
10705     <p><a class='info' href='#FIND DB_INSTRUMENTS'>"FIND DB_INSTRUMENTS"<span> (</span><span class='info'>Finding instruments</span><span>)</span></a>
10706     </p>
10707     <p><a class='info' href='#FIND DB_INSTRUMENT_DIRECTORIES'>"FIND DB_INSTRUMENT_DIRECTORIES"<span> (</span><span class='info'>Finding directories</span><span>)</span></a>
10708     </p>
10709     <p><a class='info' href='#MOVE DB_INSTRUMENT'>"MOVE DB_INSTRUMENT"<span> (</span><span class='info'>Moving an instrument</span><span>)</span></a>
10710     </p>
10711     <p><a class='info' href='#MOVE DB_INSTRUMENT_DIRECTORY'>"MOVE DB_INSTRUMENT_DIRECTORY"<span> (</span><span class='info'>Moving an instrument directory</span><span>)</span></a>
10712     </p>
10713     <p><a class='info' href='#COPY DB_INSTRUMENT'>"COPY DB_INSTRUMENT"<span> (</span><span class='info'>Copying instruments</span><span>)</span></a>
10714     </p>
10715     <p><a class='info' href='#COPY DB_INSTRUMENT_DIRECTORY'>"COPY DB_INSTRUMENT_DIRECTORY"<span> (</span><span class='info'>Copying instrument directories</span><span>)</span></a>
10716     </p>
10717 schoenebeck 1572 <p><a class='info' href='#GET FILE INSTRUMENTS'>"GET FILE INSTRUMENTS"<span> (</span><span class='info'>Retrieving amount of instruments of a file</span><span>)</span></a>
10718     </p>
10719     <p><a class='info' href='#LIST FILE INSTRUMENTS'>"LIST FILE INSTRUMENTS"<span> (</span><span class='info'>Retrieving all instruments of a file</span><span>)</span></a>
10720     </p>
10721     <p><a class='info' href='#GET FILE INSTRUMENT INFO'>"GET FILE INSTRUMENT INFO"<span> (</span><span class='info'>Retrieving informations about one instrument in a file</span><span>)</span></a>
10722     </p>
10723 schoenebeck 1390 </blockquote><p>
10724     Note that the forward slash character ('/') has a special meaning in
10725     filename / path based arguments: it acts as separator of the nodes in
10726     the path, thus if a directory- or filename includes a forward slash
10727     (not intended as path node separator), you MUST escape that slash
10728     either with the respective hex escape sequence ("\x2f") or with the
10729     respective octal escape sequence ("\057").
10730    
10731     </p>
10732     <p>
10733 schoenebeck 1572 Note for Windows: file path arguments in LSCP are expected
10734     to use forward slashes as directory node separator similar
10735     to Unix based operating systems. In contrast to Unix however
10736     a Windows typical drive character is expected to be
10737     prefixed to the path. That is an original Windows file path
10738     like "D:\Sounds\My.gig" would become in LSCP:
10739     "D:/Sounds/My.gig".
10740    
10741     </p>
10742     <p>
10743 schoenebeck 1390 The following LSCP commands even support escape sequences as
10744     part of at least one of their text-based arguments (i.e. entity name,
10745 schoenebeck 1400 description) and / or may contain escape sequences in at least one of
10746     their text-based fields in their response:
10747 schoenebeck 1390 </p>
10748     <blockquote class="text">
10749 schoenebeck 1400 <p><a class='info' href='#GET SERVER INFO'>"GET SERVER INFO"<span> (</span><span class='info'>General sampler informations</span><span>)</span></a>
10750     </p>
10751     <p><a class='info' href='#GET ENGINE INFO'>"GET ENGINE INFO"<span> (</span><span class='info'>Getting information about an engine</span><span>)</span></a>
10752     </p>
10753     <p><a class='info' href='#GET CHANNEL INFO'>"GET CHANNEL INFO"<span> (</span><span class='info'>Getting sampler channel information</span><span>)</span></a>
10754     </p>
10755     <p><a class='info' href='#CREATE FX_SEND'>"CREATE FX_SEND"<span> (</span><span class='info'>Adding an effect send to a sampler channel</span><span>)</span></a>
10756     </p>
10757     <p><a class='info' href='#GET FX_SEND INFO'>"GET FX_SEND INFO"<span> (</span><span class='info'>Getting effect send information</span><span>)</span></a>
10758     </p>
10759     <p><a class='info' href='#SET FX_SEND NAME'>"SET FX_SEND NAME"<span> (</span><span class='info'>Changing effect send's name</span><span>)</span></a>
10760     </p>
10761     <p><a class='info' href='#GET MIDI_INSTRUMENT INFO'>"GET MIDI_INSTRUMENT INFO"<span> (</span><span class='info'>Get current settings of MIDI instrument map entry</span><span>)</span></a>
10762     </p>
10763     <p><a class='info' href='#GET MIDI_INSTRUMENT_MAP INFO'>"GET MIDI_INSTRUMENT_MAP INFO"<span> (</span><span class='info'>Getting MIDI instrument map information</span><span>)</span></a>
10764     </p>
10765 schoenebeck 1390 <p><a class='info' href='#ADD MIDI_INSTRUMENT_MAP'>"ADD MIDI_INSTRUMENT_MAP"<span> (</span><span class='info'>Create a new MIDI instrument map</span><span>)</span></a>
10766     </p>
10767     <p><a class='info' href='#MAP MIDI_INSTRUMENT'>"MAP MIDI_INSTRUMENT"<span> (</span><span class='info'>Create or replace a MIDI instrument map entry</span><span>)</span></a>
10768     </p>
10769     <p><a class='info' href='#SET MIDI_INSTRUMENT_MAP NAME'>"SET MIDI_INSTRUMENT_MAP NAME"<span> (</span><span class='info'>Renaming a MIDI instrument map</span><span>)</span></a>
10770     </p>
10771 schoenebeck 1430 <p><a class='info' href='#GET DB_INSTRUMENT_DIRECTORY INFO'>"GET DB_INSTRUMENT_DIRECTORY INFO"<span> (</span><span class='info'>Getting instrument directory information</span><span>)</span></a>
10772     </p>
10773 schoenebeck 1390 <p><a class='info' href='#SET DB_INSTRUMENT_DIRECTORY NAME'>"SET DB_INSTRUMENT_DIRECTORY NAME"<span> (</span><span class='info'>Renaming an instrument directory</span><span>)</span></a>
10774     </p>
10775     <p><a class='info' href='#SET DB_INSTRUMENT_DIRECTORY DESCRIPTION'>"SET DB_INSTRUMENT_DIRECTORY DESCRIPTION"<span> (</span><span class='info'>Changing the description of directory</span><span>)</span></a>
10776     </p>
10777 schoenebeck 1400 <p><a class='info' href='#FIND DB_INSTRUMENT_DIRECTORIES'>"FIND DB_INSTRUMENT_DIRECTORIES"<span> (</span><span class='info'>Finding directories</span><span>)</span></a>
10778     </p>
10779 schoenebeck 1430 <p><a class='info' href='#GET DB_INSTRUMENT INFO'>"GET DB_INSTRUMENT INFO"<span> (</span><span class='info'>Getting instrument information</span><span>)</span></a>
10780     </p>
10781 schoenebeck 1390 <p><a class='info' href='#SET DB_INSTRUMENT NAME'>"SET DB_INSTRUMENT NAME"<span> (</span><span class='info'>Renaming an instrument</span><span>)</span></a>
10782     </p>
10783     <p><a class='info' href='#SET DB_INSTRUMENT DESCRIPTION'>"SET DB_INSTRUMENT DESCRIPTION"<span> (</span><span class='info'>Changing the description of instrument</span><span>)</span></a>
10784     </p>
10785 schoenebeck 1400 <p><a class='info' href='#FIND DB_INSTRUMENTS'>"FIND DB_INSTRUMENTS"<span> (</span><span class='info'>Finding instruments</span><span>)</span></a>
10786 schoenebeck 1390 </p>
10787     </blockquote><p>
10788     Please note that these lists are manually maintained. If you
10789     find a command that also supports escape sequences we forgot to
10790     mention here, please report it!
10791    
10792     </p>
10793 senoner 542 <a name="events"></a><br /><hr />
10794 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
10795     <a name="rfc.section.8"></a><h3>8.&nbsp;
10796     Events</h3>
10797 senoner 542
10798     <p>This chapter will describe all currently defined events supported by LinuxSampler.
10799     </p>
10800 iliev 992 <a name="SUBSCRIBE AUDIO_OUTPUT_DEVICE_COUNT"></a><br /><hr />
10801 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
10802     <a name="rfc.section.8.1"></a><h3>8.1.&nbsp;
10803 iliev 992 Number of audio output devices changed</h3>
10804    
10805     <p>Client may want to be notified when the total number of audio output devices on the
10806     back-end changes by issuing the following command:
10807     </p>
10808     <p>
10809     </p>
10810     <blockquote class="text">
10811     <p>SUBSCRIBE AUDIO_OUTPUT_DEVICE_COUNT
10812     </p>
10813     </blockquote><p>
10814    
10815     </p>
10816     <p>Server will start sending the following notification messages:
10817     </p>
10818     <p>
10819     </p>
10820     <blockquote class="text">
10821     <p>"NOTIFY:AUDIO_OUTPUT_DEVICE_COUNT:&lt;devices&gt;"
10822     </p>
10823     </blockquote><p>
10824    
10825     </p>
10826     <p>where &lt;devices&gt; will be replaced by the new number
10827     of audio output devices.
10828     </p>
10829     <a name="SUBSCRIBE AUDIO_OUTPUT_DEVICE_INFO"></a><br /><hr />
10830     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
10831     <a name="rfc.section.8.2"></a><h3>8.2.&nbsp;
10832     Audio output device's settings changed</h3>
10833    
10834     <p>Client may want to be notified when changes were made to audio output devices on the
10835     back-end by issuing the following command:
10836     </p>
10837     <p>
10838     </p>
10839     <blockquote class="text">
10840     <p>SUBSCRIBE AUDIO_OUTPUT_DEVICE_INFO
10841     </p>
10842     </blockquote><p>
10843    
10844     </p>
10845     <p>Server will start sending the following notification messages:
10846     </p>
10847     <p>
10848     </p>
10849     <blockquote class="text">
10850     <p>"NOTIFY:AUDIO_OUTPUT_DEVICE_INFO:&lt;device-id&gt;"
10851     </p>
10852     </blockquote><p>
10853    
10854     </p>
10855     <p>where &lt;device-id&gt; will be replaced by the numerical ID of the audio output device,
10856     which settings has been changed. The front-end will have to send
10857     the respective command to actually get the audio output device info. Because these messages
10858     will be triggered by LSCP commands issued by other clients rather than real
10859     time events happening on the server, it is believed that an empty notification
10860     message is sufficient here.
10861     </p>
10862     <a name="SUBSCRIBE MIDI_INPUT_DEVICE_COUNT"></a><br /><hr />
10863     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
10864     <a name="rfc.section.8.3"></a><h3>8.3.&nbsp;
10865     Number of MIDI input devices changed</h3>
10866    
10867     <p>Client may want to be notified when the total number of MIDI input devices on the
10868     back-end changes by issuing the following command:
10869     </p>
10870     <p>
10871     </p>
10872     <blockquote class="text">
10873     <p>SUBSCRIBE MIDI_INPUT_DEVICE_COUNT
10874     </p>
10875     </blockquote><p>
10876    
10877     </p>
10878     <p>Server will start sending the following notification messages:
10879     </p>
10880     <p>
10881     </p>
10882     <blockquote class="text">
10883     <p>"NOTIFY:MIDI_INPUT_DEVICE_COUNT:&lt;devices&gt;"
10884     </p>
10885     </blockquote><p>
10886    
10887     </p>
10888     <p>where &lt;devices&gt; will be replaced by the new number
10889     of MIDI input devices.
10890     </p>
10891     <a name="SUBSCRIBE MIDI_INPUT_DEVICE_INFO"></a><br /><hr />
10892     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
10893     <a name="rfc.section.8.4"></a><h3>8.4.&nbsp;
10894     MIDI input device's settings changed</h3>
10895    
10896     <p>Client may want to be notified when changes were made to MIDI input devices on the
10897     back-end by issuing the following command:
10898     </p>
10899     <p>
10900     </p>
10901     <blockquote class="text">
10902     <p>SUBSCRIBE MIDI_INPUT_DEVICE_INFO
10903     </p>
10904     </blockquote><p>
10905    
10906     </p>
10907     <p>Server will start sending the following notification messages:
10908     </p>
10909     <p>
10910     </p>
10911     <blockquote class="text">
10912     <p>"NOTIFY:MIDI_INPUT_DEVICE_INFO:&lt;device-id&gt;"
10913     </p>
10914     </blockquote><p>
10915    
10916     </p>
10917     <p>where &lt;device-id&gt; will be replaced by the numerical ID of the MIDI input device,
10918     which settings has been changed. The front-end will have to send
10919     the respective command to actually get the MIDI input device info. Because these messages
10920     will be triggered by LSCP commands issued by other clients rather than real
10921     time events happening on the server, it is believed that an empty notification
10922     message is sufficient here.
10923     </p>
10924     <a name="SUBSCRIBE CHANNEL_COUNT"></a><br /><hr />
10925     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
10926     <a name="rfc.section.8.5"></a><h3>8.5.&nbsp;
10927 schoenebeck 974 Number of sampler channels changed</h3>
10928 senoner 542
10929     <p>Client may want to be notified when the total number of channels on the
10930     back-end changes by issuing the following command:
10931     </p>
10932 schoenebeck 708 <p>
10933     </p>
10934 senoner 542 <blockquote class="text">
10935 schoenebeck 558 <p>SUBSCRIBE CHANNEL_COUNT
10936 senoner 542 </p>
10937 schoenebeck 708 </blockquote><p>
10938 schoenebeck 940
10939 schoenebeck 708 </p>
10940 senoner 542 <p>Server will start sending the following notification messages:
10941     </p>
10942 schoenebeck 708 <p>
10943     </p>
10944 senoner 542 <blockquote class="text">
10945 schoenebeck 558 <p>"NOTIFY:CHANNEL_COUNT:&lt;channels&gt;"
10946 senoner 542 </p>
10947 schoenebeck 708 </blockquote><p>
10948 schoenebeck 940
10949 schoenebeck 708 </p>
10950 senoner 542 <p>where &lt;channels&gt; will be replaced by the new number
10951     of sampler channels.
10952     </p>
10953 schoenebeck 1685 <a name="SUBSCRIBE CHANNEL_MIDI"></a><br /><hr />
10954     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
10955     <a name="rfc.section.8.6"></a><h3>8.6.&nbsp;
10956     MIDI data on a sampler channel arrived</h3>
10957    
10958     <p>Client may want to be notified when MIDI data arrive on sampler channels on
10959     back-end side, by issuing the following command:
10960     </p>
10961     <p>
10962     </p>
10963     <blockquote class="text">
10964     <p>SUBSCRIBE CHANNEL_MIDI
10965     </p>
10966     </blockquote><p>
10967    
10968     </p>
10969     <p>Server will start sending one of the the following notification messages:
10970     </p>
10971     <p>
10972     </p>
10973     <blockquote class="text">
10974     <p>"NOTIFY:CHANNEL_MIDI:&lt;channel-id&gt; NOTE_ON &lt;note&gt; &lt;velocity&gt;"
10975     </p>
10976     <p>"NOTIFY:CHANNEL_MIDI:&lt;channel-id&gt; NOTE_OFF &lt;note&gt; &lt;velocity&gt;"
10977     </p>
10978     </blockquote><p>
10979    
10980     </p>
10981     <p>where &lt;channel-id&gt; will be replaced by the ID of the sampler channel where the MIDI
10982     data arrived. &lt;note&gt; and &lt;velocity&gt; are integer values in the range between
10983     0 .. 127, reflecting the analog meaning of the MIDI specification.
10984    
10985     </p>
10986     <p>CAUTION: no guarantee whatsoever will be made that MIDI events are actually all
10987     delivered by this mechanism! With other words: events could be lost at any time!
10988     This restriction was made to keep the RT-safeness of the backend's MIDI and audio
10989     thread unaffected by this feature.
10990     </p>
10991 schoenebeck 1696 <a name="SUBSCRIBE DEVICE_MIDI"></a><br /><hr />
10992     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
10993     <a name="rfc.section.8.7"></a><h3>8.7.&nbsp;
10994     MIDI data on a MIDI input device arrived</h3>
10995    
10996     <p>Client may want to be notified when MIDI data arrive on MIDI input devices by issuing the following command:
10997     </p>
10998     <p>
10999     </p>
11000     <blockquote class="text">
11001     <p>SUBSCRIBE DEVICE_MIDI
11002     </p>
11003     </blockquote><p>
11004    
11005     </p>
11006     <p>Server will start sending one of the the following notification messages:
11007     </p>
11008     <p>
11009     </p>
11010     <blockquote class="text">
11011     <p>"NOTIFY:CHANNEL_MIDI:&lt;device-id&gt; &lt;port-id&gt; NOTE_ON &lt;note&gt; &lt;velocity&gt;"
11012     </p>
11013     <p>"NOTIFY:CHANNEL_MIDI:&lt;device-id&gt; &lt;port-id&gt; NOTE_OFF &lt;note&gt; &lt;velocity&gt;"
11014     </p>
11015     </blockquote><p>
11016    
11017     </p>
11018     <p>where &lt;device-id&gt; &lt;port-id&gt; will be replaced
11019     by the IDs of the respective MIDI input device and the device's MIDI port where the MIDI
11020     data arrived. &lt;note&gt; and &lt;velocity&gt; are integer values in the range between
11021     0 .. 127, reflecting the analog meaning of the MIDI specification.
11022    
11023     </p>
11024     <p>CAUTION: no guarantee whatsoever will be made that MIDI events are actually all
11025     delivered by this mechanism! With other words: events could be lost at any time!
11026     This restriction was made to keep the RT-safeness of the backend's MIDI and audio
11027     thread unaffected by this feature.
11028     </p>
11029 schoenebeck 940 <a name="SUBSCRIBE VOICE_COUNT"></a><br /><hr />
11030 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
11031 schoenebeck 1696 <a name="rfc.section.8.8"></a><h3>8.8.&nbsp;
11032 schoenebeck 974 Number of active voices changed</h3>
11033 senoner 542
11034     <p>Client may want to be notified when the number of voices on the
11035     back-end changes by issuing the following command:
11036     </p>
11037 schoenebeck 708 <p>
11038     </p>
11039 senoner 542 <blockquote class="text">
11040     <p>SUBSCRIBE VOICE_COUNT
11041     </p>
11042 schoenebeck 708 </blockquote><p>
11043 schoenebeck 940
11044 schoenebeck 708 </p>
11045 senoner 542 <p>Server will start sending the following notification messages:
11046     </p>
11047 schoenebeck 708 <p>
11048     </p>
11049 senoner 542 <blockquote class="text">
11050 iliev 1110 <p>"NOTIFY:VOICE_COUNT:&lt;sampler-channel&gt; &lt;voices&gt;"
11051 senoner 542 </p>
11052 schoenebeck 708 </blockquote><p>
11053 schoenebeck 940
11054 schoenebeck 708 </p>
11055 senoner 542 <p>where &lt;sampler-channel&gt; will be replaced by the sampler channel the
11056     voice count change occurred and &lt;voices&gt; by the new number of
11057     active voices on that channel.
11058     </p>
11059 schoenebeck 940 <a name="SUBSCRIBE STREAM_COUNT"></a><br /><hr />
11060 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
11061 schoenebeck 1696 <a name="rfc.section.8.9"></a><h3>8.9.&nbsp;
11062 schoenebeck 974 Number of active disk streams changed</h3>
11063 senoner 542
11064     <p>Client may want to be notified when the number of streams on the back-end
11065     changes by issuing the following command: SUBSCRIBE STREAM_COUNT
11066     </p>
11067 schoenebeck 708 <p>
11068     </p>
11069 senoner 542 <blockquote class="text">
11070     <p>SUBSCRIBE STREAM_COUNT
11071     </p>
11072 schoenebeck 708 </blockquote><p>
11073 schoenebeck 940
11074 schoenebeck 708 </p>
11075 senoner 542 <p>Server will start sending the following notification messages:
11076     </p>
11077 schoenebeck 708 <p>
11078     </p>
11079 senoner 542 <blockquote class="text">
11080     <p>"NOTIFY:STREAM_COUNT:&lt;sampler-channel&gt; &lt;streams&gt;"
11081     </p>
11082 schoenebeck 708 </blockquote><p>
11083 schoenebeck 940
11084 schoenebeck 708 </p>
11085 senoner 542 <p>where &lt;sampler-channel&gt; will be replaced by the sampler channel the
11086     stream count change occurred and &lt;streams&gt; by the new number of
11087     active disk streams on that channel.
11088     </p>
11089 schoenebeck 940 <a name="SUBSCRIBE BUFFER_FILL"></a><br /><hr />
11090 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
11091 schoenebeck 1696 <a name="rfc.section.8.10"></a><h3>8.10.&nbsp;
11092 schoenebeck 974 Disk stream buffer fill state changed</h3>
11093 senoner 542
11094     <p>Client may want to be notified when the buffer fill state of a disk stream
11095     on the back-end changes by issuing the following command:
11096     </p>
11097 schoenebeck 708 <p>
11098     </p>
11099 senoner 542 <blockquote class="text">
11100     <p>SUBSCRIBE BUFFER_FILL
11101     </p>
11102 schoenebeck 708 </blockquote><p>
11103 schoenebeck 940
11104 schoenebeck 708 </p>
11105 senoner 542 <p>Server will start sending the following notification messages:
11106     </p>
11107 schoenebeck 708 <p>
11108     </p>
11109 senoner 542 <blockquote class="text">
11110     <p>"NOTIFY:BUFFER_FILL:&lt;sampler-channel&gt; &lt;fill-data&gt;"
11111     </p>
11112 schoenebeck 708 </blockquote><p>
11113 schoenebeck 940
11114 schoenebeck 708 </p>
11115 senoner 542 <p>where &lt;sampler-channel&gt; will be replaced by the sampler channel the
11116     buffer fill state change occurred on and &lt;fill-data&gt; will be replaced by the
11117 schoenebeck 974 buffer fill data for this channel as described in <a class='info' href='#GET CHANNEL BUFFER_FILL'>Section&nbsp;6.4.13<span> (</span><span class='info'>Current fill state of disk stream buffers</span><span>)</span></a>
11118     as if the <a class='info' href='#GET CHANNEL BUFFER_FILL'>"GET CHANNEL BUFFER_FILL PERCENTAGE"<span> (</span><span class='info'>Current fill state of disk stream buffers</span><span>)</span></a> command was issued on this channel.
11119 senoner 542 </p>
11120 iliev 992 <a name="SUBSCRIBE CHANNEL_INFO"></a><br /><hr />
11121 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
11122 schoenebeck 1696 <a name="rfc.section.8.11"></a><h3>8.11.&nbsp;
11123 schoenebeck 974 Channel information changed</h3>
11124 senoner 542
11125     <p>Client may want to be notified when changes were made to sampler channels on the
11126 schoenebeck 561 back-end by issuing the following command:
11127 senoner 542 </p>
11128 schoenebeck 708 <p>
11129     </p>
11130 senoner 542 <blockquote class="text">
11131 schoenebeck 558 <p>SUBSCRIBE CHANNEL_INFO
11132 senoner 542 </p>
11133 schoenebeck 708 </blockquote><p>
11134 schoenebeck 940
11135 schoenebeck 708 </p>
11136 senoner 542 <p>Server will start sending the following notification messages:
11137     </p>
11138 schoenebeck 708 <p>
11139     </p>
11140 senoner 542 <blockquote class="text">
11141 schoenebeck 558 <p>"NOTIFY:CHANNEL_INFO:&lt;sampler-channel&gt;"
11142 senoner 542 </p>
11143 schoenebeck 708 </blockquote><p>
11144 schoenebeck 940
11145 schoenebeck 708 </p>
11146 senoner 542 <p>where &lt;sampler-channel&gt; will be replaced by the sampler channel the
11147     channel info change occurred. The front-end will have to send
11148     the respective command to actually get the channel info. Because these messages
11149     will be triggered by LSCP commands issued by other clients rather than real
11150     time events happening on the server, it is believed that an empty notification
11151     message is sufficient here.
11152     </p>
11153 iliev 1110 <a name="SUBSCRIBE FX_SEND_COUNT"></a><br /><hr />
11154     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
11155 schoenebeck 1696 <a name="rfc.section.8.12"></a><h3>8.12.&nbsp;
11156 iliev 1110 Number of effect sends changed</h3>
11157    
11158 schoenebeck 1251 <p>Client may want to be notified when the number of effect sends on
11159 iliev 1110 a particular sampler channel is changed by issuing the following command:
11160     </p>
11161     <p>
11162     </p>
11163     <blockquote class="text">
11164     <p>SUBSCRIBE FX_SEND_COUNT
11165     </p>
11166     </blockquote><p>
11167    
11168     </p>
11169     <p>Server will start sending the following notification messages:
11170     </p>
11171     <p>
11172     </p>
11173     <blockquote class="text">
11174     <p>"NOTIFY:FX_SEND_COUNT:&lt;channel-id&gt; &lt;fx-sends&gt;"
11175     </p>
11176     </blockquote><p>
11177    
11178     </p>
11179     <p>where &lt;channel-id&gt; will be replaced by the numerical ID of the sampler
11180     channel, on which the effect sends number is changed and &lt;fx-sends&gt; will
11181     be replaced by the new number of effect sends on that channel.
11182     </p>
11183     <a name="SUBSCRIBE FX_SEND_INFO"></a><br /><hr />
11184     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
11185 schoenebeck 1696 <a name="rfc.section.8.13"></a><h3>8.13.&nbsp;
11186 iliev 1110 Effect send information changed</h3>
11187    
11188     <p>Client may want to be notified when changes were made to effect sends on a
11189     a particular sampler channel by issuing the following command:
11190     </p>
11191     <p>
11192     </p>
11193     <blockquote class="text">
11194     <p>SUBSCRIBE FX_SEND_INFO
11195     </p>
11196     </blockquote><p>
11197    
11198     </p>
11199     <p>Server will start sending the following notification messages:
11200     </p>
11201     <p>
11202     </p>
11203     <blockquote class="text">
11204     <p>"NOTIFY:FX_SEND_INFO:&lt;channel-id&gt; &lt;fx-send-id&gt;"
11205     </p>
11206     </blockquote><p>
11207    
11208     </p>
11209     <p>where &lt;channel-id&gt; will be replaced by the numerical ID of the sampler
11210     channel, on which an effect send entity is changed and &lt;fx-send-id&gt; will
11211     be replaced by the numerical ID of the changed effect send.
11212     </p>
11213 schoenebeck 940 <a name="SUBSCRIBE TOTAL_VOICE_COUNT"></a><br /><hr />
11214 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
11215 schoenebeck 1696 <a name="rfc.section.8.14"></a><h3>8.14.&nbsp;
11216 schoenebeck 974 Total number of active voices changed</h3>
11217 senoner 542
11218 schoenebeck 940 <p>Client may want to be notified when the total number of voices on the
11219     back-end changes by issuing the following command:
11220     </p>
11221     <p>
11222     </p>
11223     <blockquote class="text">
11224     <p>SUBSCRIBE TOTAL_VOICE_COUNT
11225     </p>
11226     </blockquote><p>
11227    
11228     </p>
11229     <p>Server will start sending the following notification messages:
11230     </p>
11231     <p>
11232     </p>
11233     <blockquote class="text">
11234 iliev 1110 <p>"NOTIFY:TOTAL_VOICE_COUNT:&lt;voices&gt;"
11235 schoenebeck 940 </p>
11236     </blockquote><p>
11237    
11238     </p>
11239     <p>where &lt;voices&gt; will be replaced by the new number of
11240     all currently active voices.
11241     </p>
11242 schoenebeck 1572 <a name="SUBSCRIBE TOTAL_STREAM_COUNT"></a><br /><hr />
11243     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
11244 schoenebeck 1696 <a name="rfc.section.8.15"></a><h3>8.15.&nbsp;
11245 schoenebeck 1572 Total number of active disk streams changed</h3>
11246    
11247     <p>Client may want to be notified when the total number of disk streams on the
11248     back-end changes by issuing the following command:
11249     </p>
11250     <p>
11251     </p>
11252     <blockquote class="text">
11253     <p>SUBSCRIBE TOTAL_STREAM_COUNT
11254     </p>
11255     </blockquote><p>
11256    
11257     </p>
11258     <p>Server will start sending the following notification messages:
11259     </p>
11260     <p>
11261     </p>
11262     <blockquote class="text">
11263     <p>"NOTIFY:TOTAL_STREAM_COUNT:&lt;streams&gt;"
11264     </p>
11265     </blockquote><p>
11266    
11267     </p>
11268     <p>where &lt;streams&gt; will be replaced by the new number of
11269     all currently active disk streams.
11270     </p>
11271 iliev 992 <a name="SUBSCRIBE MIDI_INSTRUMENT_MAP_COUNT"></a><br /><hr />
11272     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
11273 schoenebeck 1696 <a name="rfc.section.8.16"></a><h3>8.16.&nbsp;
11274 iliev 992 Number of MIDI instrument maps changed</h3>
11275    
11276     <p>Client may want to be notified when the number of MIDI instrument maps on the
11277     back-end changes by issuing the following command:
11278     </p>
11279     <p>
11280     </p>
11281     <blockquote class="text">
11282     <p>SUBSCRIBE MIDI_INSTRUMENT_MAP_COUNT
11283     </p>
11284     </blockquote><p>
11285    
11286     </p>
11287     <p>Server will start sending the following notification messages:
11288     </p>
11289     <p>
11290     </p>
11291     <blockquote class="text">
11292     <p>"NOTIFY:MIDI_INSTRUMENT_MAP_COUNT:&lt;maps&gt;"
11293     </p>
11294     </blockquote><p>
11295    
11296     </p>
11297     <p>where &lt;maps&gt; will be replaced by the new number
11298     of MIDI instrument maps.
11299     </p>
11300     <a name="SUBSCRIBE MIDI_INSTRUMENT_MAP_INFO"></a><br /><hr />
11301     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
11302 schoenebeck 1696 <a name="rfc.section.8.17"></a><h3>8.17.&nbsp;
11303 iliev 992 MIDI instrument map information changed</h3>
11304    
11305     <p>Client may want to be notified when changes were made to MIDI instrument maps on the
11306     back-end by issuing the following command:
11307     </p>
11308     <p>
11309     </p>
11310     <blockquote class="text">
11311     <p>SUBSCRIBE MIDI_INSTRUMENT_MAP_INFO
11312     </p>
11313     </blockquote><p>
11314    
11315     </p>
11316     <p>Server will start sending the following notification messages:
11317     </p>
11318     <p>
11319     </p>
11320     <blockquote class="text">
11321     <p>"NOTIFY:MIDI_INSTRUMENT_MAP_INFO:&lt;map-id&gt;"
11322     </p>
11323     </blockquote><p>
11324    
11325     </p>
11326     <p>where &lt;map-id&gt; will be replaced by the numerical ID of the MIDI instrument map,
11327     for which information changes occurred. The front-end will have to send
11328     the respective command to actually get the MIDI instrument map info. Because these messages
11329     will be triggered by LSCP commands issued by other clients rather than real
11330     time events happening on the server, it is believed that an empty notification
11331     message is sufficient here.
11332     </p>
11333     <a name="SUBSCRIBE MIDI_INSTRUMENT_COUNT"></a><br /><hr />
11334     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
11335 schoenebeck 1696 <a name="rfc.section.8.18"></a><h3>8.18.&nbsp;
11336 iliev 992 Number of MIDI instruments changed</h3>
11337    
11338     <p>Client may want to be notified when the number of MIDI instrument maps on the
11339     back-end changes by issuing the following command:
11340     </p>
11341     <p>
11342     </p>
11343     <blockquote class="text">
11344     <p>SUBSCRIBE MIDI_INSTRUMENT_COUNT
11345     </p>
11346     </blockquote><p>
11347    
11348     </p>
11349     <p>Server will start sending the following notification messages:
11350     </p>
11351     <p>
11352     </p>
11353     <blockquote class="text">
11354     <p>"NOTIFY:MIDI_INSTRUMENT_COUNT:&lt;map-id&gt; &lt;instruments&gt;"
11355     </p>
11356     </blockquote><p>
11357    
11358     </p>
11359     <p>where &lt;map-id&gt; is the numerical ID of the MIDI instrument map, in which
11360     the nuber of instruments has changed and &lt;instruments&gt; will be replaced by
11361     the new number of MIDI instruments in the specified map.
11362     </p>
11363     <a name="SUBSCRIBE MIDI_INSTRUMENT_INFO"></a><br /><hr />
11364     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
11365 schoenebeck 1696 <a name="rfc.section.8.19"></a><h3>8.19.&nbsp;
11366 iliev 992 MIDI instrument information changed</h3>
11367    
11368     <p>Client may want to be notified when changes were made to MIDI instruments on the
11369     back-end by issuing the following command:
11370     </p>
11371     <p>
11372     </p>
11373     <blockquote class="text">
11374     <p>SUBSCRIBE MIDI_INSTRUMENT_INFO
11375     </p>
11376     </blockquote><p>
11377    
11378     </p>
11379     <p>Server will start sending the following notification messages:
11380     </p>
11381     <p>
11382     </p>
11383     <blockquote class="text">
11384     <p>"NOTIFY:MIDI_INSTRUMENT_INFO:&lt;map-id&gt; &lt;bank&gt; &lt;program&gt;"
11385     </p>
11386     </blockquote><p>
11387    
11388     </p>
11389     <p>where &lt;map-id&gt; will be replaced by the numerical ID of the MIDI instrument map,
11390     in which a MIDI instrument is changed. &lt;bank&gt; and &lt;program&gt; specifies
11391     the location of the changed MIDI instrument in the map. The front-end will have to send
11392     the respective command to actually get the MIDI instrument info. Because these messages
11393     will be triggered by LSCP commands issued by other clients rather than real
11394     time events happening on the server, it is believed that an empty notification
11395     message is sufficient here.
11396     </p>
11397 iliev 1110 <a name="SUBSCRIBE GLOBAL_INFO"></a><br /><hr />
11398     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
11399 schoenebeck 1696 <a name="rfc.section.8.20"></a><h3>8.20.&nbsp;
11400 iliev 1110 Global settings changed</h3>
11401    
11402     <p>Client may want to be notified when changes to the global settings
11403     of the sampler were made by issuing the following command:
11404     </p>
11405     <p>
11406     </p>
11407     <blockquote class="text">
11408     <p>SUBSCRIBE GLOBAL_INFO
11409     </p>
11410     </blockquote><p>
11411    
11412     </p>
11413     <p>Server will start sending the following types of notification messages:
11414     </p>
11415     <p>
11416     </p>
11417     <blockquote class="text">
11418     <p>"NOTIFY:GLOBAL_INFO:VOLUME &lt;volume&gt;" - Notifies that the
11419     golbal volume of the sampler is changed, where &lt;volume&gt; will be
11420     replaced by the optional dotted floating point value, reflecting the
11421     new global volume parameter.
11422     </p>
11423     </blockquote><p>
11424    
11425     </p>
11426 iliev 1162 <a name="SUBSCRIBE DB_INSTRUMENT_DIRECTORY_COUNT"></a><br /><hr />
11427     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
11428 schoenebeck 1696 <a name="rfc.section.8.21"></a><h3>8.21.&nbsp;
11429 iliev 1162 Number of database instrument directories changed</h3>
11430    
11431     <p>Client may want to be notified when the number of instrument
11432     directories in a particular directory in the instruments database
11433     is changed by issuing the following command:
11434     </p>
11435     <p>
11436     </p>
11437     <blockquote class="text">
11438     <p>SUBSCRIBE DB_INSTRUMENT_DIRECTORY_COUNT
11439     </p>
11440     </blockquote><p>
11441    
11442     </p>
11443     <p>Server will start sending the following notification messages:
11444     </p>
11445     <p>
11446     </p>
11447     <blockquote class="text">
11448     <p>"NOTIFY:DB_INSTRUMENT_DIRECTORY_COUNT:&lt;dir-path&gt;"
11449     </p>
11450     </blockquote><p>
11451    
11452     </p>
11453     <p>where &lt;dir-path&gt; will be replaced by the absolute path
11454     name of the directory in the instruments database,
11455     in which the number of directories is changed.
11456     </p>
11457     <p>Note that when a non-empty directory is removed, this event
11458     is not sent for the subdirectories in that directory.
11459     </p>
11460     <a name="SUBSCRIBE DB_INSTRUMENT_DIRECTORY_INFO"></a><br /><hr />
11461     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
11462 schoenebeck 1696 <a name="rfc.section.8.22"></a><h3>8.22.&nbsp;
11463 iliev 1162 Database instrument directory information changed</h3>
11464    
11465     <p>Client may want to be notified when changes were made to directories
11466     in the instruments database by issuing the following command:
11467     </p>
11468     <p>
11469     </p>
11470     <blockquote class="text">
11471     <p>SUBSCRIBE DB_INSTRUMENT_DIRECTORY_INFO
11472     </p>
11473     </blockquote><p>
11474    
11475     </p>
11476     <p>Server will start sending the following notification messages:
11477     </p>
11478     <p>
11479     </p>
11480     <blockquote class="text">
11481     <p>"NOTIFY:DB_INSTRUMENT_DIRECTORY_INFO:&lt;dir-path&gt;"
11482     </p>
11483     </blockquote><p>
11484    
11485     </p>
11486     <p>where &lt;dir-path&gt; will be replaced by the absolute path name
11487     of the directory, for which information changes occurred. The front-end will have to send
11488     the respective command to actually get the updated directory info. Because these messages
11489     will be triggered by LSCP commands issued by other clients rather than real
11490     time events happening on the server, it is believed that an empty notification
11491     message is sufficient here.
11492     </p>
11493     <p>
11494     </p>
11495     <blockquote class="text">
11496     <p>"NOTIFY:DB_INSTRUMENT_DIRECTORY_INFO:NAME &lt;old-dir-path&gt; &lt;new-name&gt;"
11497     </p>
11498     </blockquote><p>
11499    
11500     </p>
11501     <p>where &lt;old-dir-path&gt; is the old absolute path name of the directory
11502     (encapsulated into apostrophes), which name is changes and &lt;new-name&gt; is
11503     the new name of the directory, encapsulated into apostrophes.
11504     </p>
11505     <a name="SUBSCRIBE DB_INSTRUMENT_COUNT"></a><br /><hr />
11506     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
11507 schoenebeck 1696 <a name="rfc.section.8.23"></a><h3>8.23.&nbsp;
11508 iliev 1162 Number of database instruments changed</h3>
11509    
11510     <p>Client may want to be notified when the number of instruments
11511     in a particular directory in the instruments database
11512     is changed by issuing the following command:
11513     </p>
11514     <p>
11515     </p>
11516     <blockquote class="text">
11517     <p>SUBSCRIBE DB_INSTRUMENT_COUNT
11518     </p>
11519     </blockquote><p>
11520    
11521     </p>
11522     <p>Server will start sending the following notification messages:
11523     </p>
11524     <p>
11525     </p>
11526     <blockquote class="text">
11527     <p>"NOTIFY:DB_INSTRUMENT_COUNT:&lt;dir-path&gt;"
11528     </p>
11529     </blockquote><p>
11530    
11531     </p>
11532     <p>where &lt;dir-path&gt; will be replaced by the absolute path
11533     name of the directory in the instruments database,
11534     in which the number of instruments is changed.
11535     </p>
11536     <p>Note that when a non-empty directory is removed, this event
11537     is not sent for the instruments in that directory.
11538     </p>
11539     <a name="SUBSCRIBE DB_INSTRUMENT_INFO"></a><br /><hr />
11540     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
11541 schoenebeck 1696 <a name="rfc.section.8.24"></a><h3>8.24.&nbsp;
11542 iliev 1162 Database instrument information changed</h3>
11543    
11544     <p>Client may want to be notified when changes were made to instruments
11545     in the instruments database by issuing the following command:
11546     </p>
11547     <p>
11548     </p>
11549     <blockquote class="text">
11550     <p>SUBSCRIBE DB_INSTRUMENT_INFO
11551     </p>
11552     </blockquote><p>
11553    
11554     </p>
11555     <p>Server will start sending the following notification messages:
11556     </p>
11557     <p>
11558     </p>
11559     <blockquote class="text">
11560     <p>"NOTIFY:DB_INSTRUMENT_INFO:&lt;instr-path&gt;"
11561     </p>
11562     </blockquote><p>
11563    
11564     </p>
11565     <p>where &lt;instr-path&gt; will be replaced by the absolute path name
11566     of the instrument, which settings are changed. The front-end will have to send
11567     the respective command to actually get the updated directory info. Because these messages
11568     will be triggered by LSCP commands issued by other clients rather than real
11569     time events happening on the server, it is believed that an empty notification
11570     message is sufficient here.
11571     </p>
11572     <p>
11573     </p>
11574     <blockquote class="text">
11575     <p>"NOTIFY:DB_INSTRUMENT_INFO:NAME &lt;old-instr-path&gt; &lt;new-name&gt;"
11576     </p>
11577     </blockquote><p>
11578    
11579     </p>
11580     <p>where &lt;old-instr-path&gt; is the old absolute path name of the instrument
11581     (encapsulated into apostrophes), which name is changes and &lt;new-name&gt; is
11582     the new name of the instrument, encapsulated into apostrophes.
11583     </p>
11584 iliev 1201 <a name="SUBSCRIBE DB_INSTRUMENTS_JOB_INFO"></a><br /><hr />
11585     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
11586 schoenebeck 1696 <a name="rfc.section.8.25"></a><h3>8.25.&nbsp;
11587 iliev 1201 Database job status information changed</h3>
11588    
11589     <p>Client may want to be notified when the status of particular database
11590     instruments job is changed by issuing the following command:
11591     </p>
11592     <p>
11593     </p>
11594     <blockquote class="text">
11595     <p>SUBSCRIBE DB_INSTRUMENTS_JOB_INFO
11596     </p>
11597     </blockquote><p>
11598    
11599     </p>
11600     <p>Server will start sending the following notification messages:
11601     </p>
11602     <p>
11603     </p>
11604     <blockquote class="text">
11605     <p>"NOTIFY:DB_INSTRUMENTS_JOB_INFO:&lt;job-id&gt;"
11606     </p>
11607     </blockquote><p>
11608    
11609     </p>
11610     <p>where &lt;job-id&gt; will be replaced by the numerical ID of the job,
11611     which status is changed. The front-end will have to send the respective
11612     command to actually get the status info. Because these messages
11613     will be triggered by LSCP commands issued by other clients rather than real
11614     time events happening on the server, it is believed that an empty notification
11615     message is sufficient here.
11616     </p>
11617 schoenebeck 940 <a name="SUBSCRIBE MISCELLANEOUS"></a><br /><hr />
11618 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
11619 schoenebeck 1696 <a name="rfc.section.8.26"></a><h3>8.26.&nbsp;
11620 schoenebeck 974 Miscellaneous and debugging events</h3>
11621 schoenebeck 940
11622 senoner 542 <p>Client may want to be notified of miscellaneous and debugging events occurring at
11623     the server by issuing the following command:
11624     </p>
11625 schoenebeck 708 <p>
11626     </p>
11627 senoner 542 <blockquote class="text">
11628     <p>SUBSCRIBE MISCELLANEOUS
11629     </p>
11630 schoenebeck 708 </blockquote><p>
11631 schoenebeck 940
11632 schoenebeck 708 </p>
11633 senoner 542 <p>Server will start sending the following notification messages:
11634     </p>
11635 schoenebeck 708 <p>
11636     </p>
11637 senoner 542 <blockquote class="text">
11638     <p>"NOTIFY:MISCELLANEOUS:&lt;string&gt;"
11639     </p>
11640 schoenebeck 708 </blockquote><p>
11641 schoenebeck 940
11642 schoenebeck 708 </p>
11643 senoner 542 <p>where &lt;string&gt; will be replaced by whatever data server
11644     wants to send to the client. Client MAY display this data to the
11645     user AS IS to facilitate debugging.
11646     </p>
11647 schoenebeck 974 <a name="anchor14"></a><br /><hr />
11648     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
11649     <a name="rfc.section.9"></a><h3>9.&nbsp;
11650     Security Considerations</h3>
11651 senoner 542
11652     <p>As there is so far no method of authentication and authorization
11653     defined and so not required for a client applications to succeed to
11654     connect, running LinuxSampler might be a security risk for the host
11655     system the LinuxSampler instance is running on.
11656     </p>
11657 schoenebeck 974 <a name="anchor15"></a><br /><hr />
11658     <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
11659     <a name="rfc.section.10"></a><h3>10.&nbsp;
11660     Acknowledgments</h3>
11661 senoner 542
11662     <p>This document has benefited greatly from the comments of the
11663     following people, discussed on the LinuxSampler developer's mailing
11664     list:
11665     </p>
11666 schoenebeck 708 <p>
11667     </p>
11668 senoner 542 <blockquote class="text">
11669     <p>Rui Nuno Capela
11670     </p>
11671     <p>Vladimir Senkov
11672     </p>
11673     <p>Mark Knecht
11674     </p>
11675 schoenebeck 561 <p>Grigor Iliev
11676     </p>
11677 schoenebeck 708 </blockquote><p>
11678 schoenebeck 940
11679 schoenebeck 708 </p>
11680 senoner 542 <a name="rfc.references1"></a><br /><hr />
11681 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
11682 schoenebeck 708 <h3>11.&nbsp;References</h3>
11683 senoner 542 <table width="99%" border="0">
11684 schoenebeck 1251 <tr><td class="author-text" valign="top"><a name="RFC20">[RFC20]</a></td>
11685     <td class="author-text">UCLA, &ldquo;<a href="ftp://ftp.isi.edu/in-notes/rfc20.txt">ASCII format for Network Interchange</a>,&rdquo; RFC&nbsp;20, 1969.</td></tr>
11686 senoner 542 <tr><td class="author-text" valign="top"><a name="RFC2119">[RFC2119]</a></td>
11687 schoenebeck 708 <td class="author-text">Bradner, S., &ldquo;<a href="ftp://ftp.isi.edu/in-notes/rfc2119.txt">Key words for use in RFCs to Indicate Requirement Levels</a>,&rdquo; RFC&nbsp;2119, 1997.</td></tr>
11688 schoenebeck 575 <tr><td class="author-text" valign="top"><a name="RFC2234">[RFC2234]</a></td>
11689 schoenebeck 708 <td class="author-text">Crocker, D. and P. Overell, &ldquo;<a href="ftp://ftp.isi.edu/in-notes/rfc2234.txt">Augmented BNF for Syntax Specifications</a>,&rdquo; RFC&nbsp;2234, 1997.</td></tr>
11690 schoenebeck 575 <tr><td class="author-text" valign="top"><a name="RFC793">[RFC793]</a></td>
11691 schoenebeck 708 <td class="author-text">Defense Advanced Research Projects Agency, &ldquo;<a href="ftp://ftp.isi.edu/in-notes/rfc793.txt">TRANSMISSION CONTROL PROTOCOL</a>,&rdquo; RFC&nbsp;793, 1981.</td></tr>
11692 senoner 542 </table>
11693    
11694     <a name="rfc.authors"></a><br /><hr />
11695 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
11696 senoner 542 <h3>Author's Address</h3>
11697     <table width="99%" border="0" cellpadding="0" cellspacing="0">
11698     <tr><td class="author-text">&nbsp;</td>
11699     <td class="author-text">C.
11700     Schoenebeck</td></tr>
11701     <tr><td class="author-text">&nbsp;</td>
11702     <td class="author-text">Interessengemeinschaft Software Engineering e. V.</td></tr>
11703     <tr><td class="author-text">&nbsp;</td>
11704     <td class="author-text">Max-Planck-Str. 39</td></tr>
11705     <tr><td class="author-text">&nbsp;</td>
11706     <td class="author-text">74081 Heilbronn</td></tr>
11707     <tr><td class="author-text">&nbsp;</td>
11708     <td class="author-text">Germany</td></tr>
11709 schoenebeck 708 <tr><td class="author" align="right">Email:&nbsp;</td>
11710 senoner 542 <td class="author-text"><a href="mailto:schoenebeck at software minus engineering dot org">schoenebeck at software minus engineering dot org</a></td></tr>
11711     </table>
11712     <a name="rfc.copyright"></a><br /><hr />
11713 schoenebeck 974 <table summary="layout" cellpadding="0" cellspacing="2" class="TOCbug" align="right"><tr><td class="TOCbug"><a href="#toc">&nbsp;TOC&nbsp;</a></td></tr></table>
11714     <h3>Full Copyright Statement</h3>
11715 senoner 542 <p class='copyright'>
11716 schoenebeck 1685 Copyright &copy; The IETF Trust (2008).</p>
11717 senoner 542 <p class='copyright'>
11718 schoenebeck 974 This document is subject to the rights,
11719     licenses and restrictions contained in BCP&nbsp;78,
11720     and except as set forth therein,
11721     the authors retain all their rights.</p>
11722 senoner 542 <p class='copyright'>
11723 schoenebeck 974 This document and the information contained herein are provided
11724     on an &ldquo;AS IS&rdquo; basis and THE CONTRIBUTOR,
11725 iliev 1110 THE ORGANIZATION HE/SHE REPRESENTS
11726     OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST
11727     AND THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES,
11728     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT
11729     THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY
11730     IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR
11731     PURPOSE.</p>
11732 schoenebeck 974 <h3>Intellectual Property</h3>
11733 senoner 542 <p class='copyright'>
11734 schoenebeck 974 The IETF takes no position regarding the validity or scope of any
11735     Intellectual Property Rights or other rights that might be claimed
11736     to pertain to the implementation or use of the technology
11737     described in this document or the extent to which any license
11738     under such rights might or might not be available; nor does it
11739     represent that it has made any independent effort to identify any
11740     such rights.
11741     Information on the procedures with respect to
11742     rights in RFC documents can be found in BCP&nbsp;78 and BCP&nbsp;79.</p>
11743 senoner 542 <p class='copyright'>
11744 schoenebeck 974 Copies of IPR disclosures made to the IETF Secretariat and any
11745     assurances of licenses to be made available,
11746     or the result of an attempt made to obtain a general license or
11747     permission for the use of such proprietary rights by implementers or
11748     users of this specification can be obtained from the IETF on-line IPR
11749     repository at <a href='http://www.ietf.org/ipr'>http://www.ietf.org/ipr</a>.</p>
11750 senoner 542 <p class='copyright'>
11751 schoenebeck 974 The IETF invites any interested party to bring to its attention
11752     any copyrights,
11753     patents or patent applications,
11754     or other
11755     proprietary rights that may cover technology that may be required
11756     to implement this standard.
11757     Please address the information to the IETF at <a href='mailto:ietf-ipr@ietf.org'>ietf-ipr@ietf.org</a>.</p>
11758 senoner 542 <h3>Acknowledgment</h3>
11759     <p class='copyright'>
11760 schoenebeck 974 Funding for the RFC Editor function is provided by
11761     the IETF Administrative Support Activity (IASA).</p>
11762 senoner 542 </body></html>
11763 schoenebeck 1363

  ViewVC Help
Powered by ViewVC