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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 974 by schoenebeck, Fri Dec 15 21:46:48 2006 UTC revision 1960 by schoenebeck, Fri Jul 31 10:20:16 2009 UTC
# Line 3  Line 3 
3  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
4  <meta name="description" content="LinuxSampler Control Protocol">  <meta name="description" content="LinuxSampler Control Protocol">
5  <meta name="keywords" content="LSCP">  <meta name="keywords" content="LSCP">
6  <meta name="generator" content="xml2rfc v1.31 (http://xml.resource.org/)">  <meta name="generator" content="xml2rfc v1.33 (http://xml.resource.org/)">
7  <style type='text/css'><!--  <style type='text/css'><!--
8          body {          body {
9                  font-family: verdana, charcoal, helvetica, arial, sans-serif;                  font-family: verdana, charcoal, helvetica, arial, sans-serif;
10                  font-size: small; color: #000; background-color: #FFF;                  font-size: small; color: #000; background-color: #FFF;
11                  margin: 2em;                  margin: 2em;
12          }          }
13          h1, h2, h3, h4, h5, h6 {          h1, h2, h3, h4, h5, h6 {
14                  font-family: helvetica, monaco, "MS Sans Serif", arial, sans-serif;                  font-family: helvetica, monaco, "MS Sans Serif", arial, sans-serif;
15                  font-weight: bold; font-style: normal;                  font-weight: bold; font-style: normal;
16          }          }
17          h1 { color: #900; background-color: transparent; text-align: right; }          h1 { color: #900; background-color: transparent; text-align: right; }
18          h3 { color: #333; background-color: transparent; }          h3 { color: #333; background-color: transparent; }
19    
20          td.RFCbug {          td.RFCbug {
21                  font-size: x-small; text-decoration: none;                  font-size: x-small; text-decoration: none;
22                  width: 30px; height: 30px; padding-top: 2px;                  width: 30px; height: 30px; padding-top: 2px;
23                  text-align: justify; vertical-align: middle;                  text-align: justify; vertical-align: middle;
24                  background-color: #000;                  background-color: #000;
25          }          }
26          td.RFCbug span.RFC {          td.RFCbug span.RFC {
27                  font-family: monaco, charcoal, geneva, "MS Sans Serif", helvetica, verdana, sans-serif;                  font-family: monaco, charcoal, geneva, "MS Sans Serif", helvetica, verdana, sans-serif;
28                  font-weight: bold; color: #666;                  font-weight: bold; color: #666;
29          }          }
30          td.RFCbug span.hotText {          td.RFCbug span.hotText {
31                  font-family: charcoal, monaco, geneva, "MS Sans Serif", helvetica, verdana, sans-serif;                  font-family: charcoal, monaco, geneva, "MS Sans Serif", helvetica, verdana, sans-serif;
32                  font-weight: normal; text-align: center; color: #FFF;                  font-weight: normal; text-align: center; color: #FFF;
33          }          }
34    
35          table.TOCbug { width: 30px; height: 15px; }          table.TOCbug { width: 30px; height: 15px; }
36          td.TOCbug {          td.TOCbug {
37                  text-align: center; width: 30px; height: 15px;                  text-align: center; width: 30px; height: 15px;
38                  color: #FFF; background-color: #900;                  color: #FFF; background-color: #900;
39          }          }
40          td.TOCbug a {          td.TOCbug a {
41                  font-family: monaco, charcoal, geneva, "MS Sans Serif", helvetica, sans-serif;                  font-family: monaco, charcoal, geneva, "MS Sans Serif", helvetica, sans-serif;
42                  font-weight: bold; font-size: x-small; text-decoration: none;                  font-weight: bold; font-size: x-small; text-decoration: none;
43                  color: #FFF; background-color: transparent;                  color: #FFF; background-color: transparent;
44          }          }
45    
46          td.header {          td.header {
47                  font-family: arial, helvetica, sans-serif; font-size: x-small;                  font-family: arial, helvetica, sans-serif; font-size: x-small;
48                  vertical-align: top; width: 33%;                  vertical-align: top; width: 33%;
49                  color: #FFF; background-color: #666;                  color: #FFF; background-color: #666;
50          }          }
51          td.author { font-weight: bold; font-size: x-small; margin-left: 4em; }          td.author { font-weight: bold; font-size: x-small; margin-left: 4em; }
52          td.author-text { font-size: x-small; }          td.author-text { font-size: x-small; }
53    
54          /* info code from SantaKlauss at http://www.madaboutstyle.com/tooltip2.html */          /* info code from SantaKlauss at http://www.madaboutstyle.com/tooltip2.html */
55          a.info {          a.info {
56                  /* This is the key. */                  /* This is the key. */
57                  position: relative;                  position: relative;
58                  z-index: 24;                  z-index: 24;
59                  text-decoration: none;                  text-decoration: none;
60          }          }
61          a.info:hover {          a.info:hover {
62                  z-index: 25;                  z-index: 25;
63                  color: #FFF; background-color: #900;                  color: #FFF; background-color: #900;
64          }          }
65          a.info span { display: none; }          a.info span { display: none; }
66          a.info:hover span.info {          a.info:hover span.info {
67                  /* The span will display just on :hover state. */                  /* The span will display just on :hover state. */
68                  display: block;                  display: block;
69                  position: absolute;                  position: absolute;
70                  font-size: smaller;                  font-size: smaller;
71                  top: 2em; left: -5em; width: 15em;                  top: 2em; left: -5em; width: 15em;
72                  padding: 2px; border: 1px solid #333;                  padding: 2px; border: 1px solid #333;
73                  color: #900; background-color: #EEE;                  color: #900; background-color: #EEE;
74                  text-align: left;                  text-align: left;
75          }          }
76    
77          a { font-weight: bold; }          a { font-weight: bold; }
78          a:link    { color: #900; background-color: transparent; }          a:link    { color: #900; background-color: transparent; }
79          a:visited { color: #633; background-color: transparent; }          a:visited { color: #633; background-color: transparent; }
80          a:active  { color: #633; background-color: transparent; }          a:active  { color: #633; background-color: transparent; }
81    
82          p { margin-left: 2em; margin-right: 2em; }          p { margin-left: 2em; margin-right: 2em; }
83          p.copyright { font-size: x-small; }          p.copyright { font-size: x-small; }
84          p.toc { font-size: small; font-weight: bold; margin-left: 3em; }          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; }          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; }          td.toc { font-size: small; font-weight: bold; vertical-align: text-top; }
87    
88          ol.text { margin-left: 2em; margin-right: 2em; }          ol.text { margin-left: 2em; margin-right: 2em; }
89          ul.text { margin-left: 2em; margin-right: 2em; }          ul.text { margin-left: 2em; margin-right: 2em; }
90          li      { margin-left: 3em; }          li      { margin-left: 3em; }
91    
92          /* RFC-2629 <spanx>s and <artwork>s. */          /* RFC-2629 <spanx>s and <artwork>s. */
93          em     { font-style: italic; }          em     { font-style: italic; }
94          strong { font-weight: bold; }          strong { font-weight: bold; }
95          dfn    { font-weight: bold; font-style: normal; }          dfn    { font-weight: bold; font-style: normal; }
96          cite   { font-weight: normal; font-style: normal; }          cite   { font-weight: normal; font-style: normal; }
97          tt     { color: #036; }          tt     { color: #036; }
98          tt, pre, pre dfn, pre em, pre cite, pre span {          tt, pre, pre dfn, pre em, pre cite, pre span {
99                  font-family: "Courier New", Courier, monospace; font-size: small;                  font-family: "Courier New", Courier, monospace; font-size: small;
100          }          }
101          pre {          pre {
102                  text-align: left; padding: 4px;                  text-align: left; padding: 4px;
103                  color: #000; background-color: #CCC;                  color: #000; background-color: #CCC;
104          }          }
105          pre dfn  { color: #900; }          pre dfn  { color: #900; }
106          pre em   { color: #66F; background-color: #FFC; font-weight: normal; }          pre em   { color: #66F; background-color: #FFC; font-weight: normal; }
107          pre .key { color: #33C; font-weight: bold; }          pre .key { color: #33C; font-weight: bold; }
108          pre .id  { color: #900; }          pre .id  { color: #900; }
109          pre .str { color: #000; background-color: #CFF; }          pre .str { color: #000; background-color: #CFF; }
110          pre .val { color: #066; }          pre .val { color: #066; }
111          pre .rep { color: #909; }          pre .rep { color: #909; }
112          pre .oth { color: #000; background-color: #FCF; }          pre .oth { color: #000; background-color: #FCF; }
113          pre .err { background-color: #FCC; }          pre .err { background-color: #FCC; }
114    
115          /* RFC-2629 <texttable>s. */          /* RFC-2629 <texttable>s. */
116          table.full, table.headers, table.none {          table.all, table.full, table.headers, table.none {
117                  font-size: small; text-align: center; border-width: 2px;                  font-size: small; text-align: center; border-width: 2px;
118                  vertical-align: top; border-collapse: collapse;                  vertical-align: top; border-collapse: collapse;
119          }          }
120          table.full { border-style: solid; border-color: black; }          table.all, table.full { border-style: solid; border-color: black; }
121          table.headers, table.none { border-style: none; }          table.headers, table.none { border-style: none; }
122          th {          th {
123                  font-weight: bold; border-color: black;                  font-weight: bold; border-color: black;
124                  border-width: 2px 2px 3px 2px;                  border-width: 2px 2px 3px 2px;
125          }          }
126          table.full th { border-style: solid; }          table.all th, table.full th { border-style: solid; }
127          table.headers th { border-style: none none solid none; }          table.headers th { border-style: none none solid none; }
128          table.none th { border-style: none; }          table.none th { border-style: none; }
129          table.full td {          table.all td {
130                  border-style: solid; border-color: #333;                  border-style: solid; border-color: #333;
131                  border-width: 1px 2px;                  border-width: 1px 2px;
132          }          }
133          table.headers td, table.none td { border-style: none; }          table.full td, table.headers td, table.none td { border-style: none; }
134    
135          hr { height: 1px; }          hr { height: 1px; }
136          hr.insert {          hr.insert {
137                  width: 80%; border-style: none; border-width: 0;                  width: 80%; border-style: none; border-width: 0;
138                  color: #CCC; background-color: #CCC;                  color: #CCC; background-color: #CCC;
139          }          }
140  --></style>  --></style>
141  </head>  </head>
142  <body>  <body>
# Line 145  Line 145 
145  <tr><td class="header">LinuxSampler Developers</td><td class="header">C. Schoenebeck</td></tr>  <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>  <tr><td class="header">Internet-Draft</td><td class="header">Interessengemeinschaft Software</td></tr>
147  <tr><td class="header">Intended status: Standards Track</td><td class="header">Engineering e. V.</td></tr>  <tr><td class="header">Intended status: Standards Track</td><td class="header">Engineering e. V.</td></tr>
148  <tr><td class="header">Expires: June 18, 2007</td><td class="header">December 15, 2006</td></tr>  <tr><td class="header">Expires: February 1, 2010</td><td class="header">July 31, 2009</td></tr>
149  </table></td></tr></table>  </table></td></tr></table>
150  <h1><br />LinuxSampler Control Protocol<br />LSCP 1.2</h1>  <h1><br />LinuxSampler Control Protocol<br />LSCP 1.4</h1>
151    
152  <h3>Status of this Memo</h3>  <h3>Status of this Memo</h3>
153  <p>  <p>
# Line 173  The list of current Internet-Drafts can Line 173  The list of current Internet-Drafts can
173  The list of Internet-Draft Shadow Directories can be accessed at  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>  <a href='http://www.ietf.org/shadow.html'>http://www.ietf.org/shadow.html</a>.</p>
175  <p>  <p>
176  This Internet-Draft will expire on June 18, 2007.</p>  This Internet-Draft will expire on February 1, 2010.</p>
   
 <h3>Copyright Notice</h3>  
 <p>  
 Copyright &copy; The Internet Society (2006).</p>  
177    
178  <h3>Abstract</h3>  <h3>Abstract</h3>
179    
# Line 318  Muting a sampler channel<br /> Line 314  Muting a sampler channel<br />
314  Soloing a sampler channel<br />  Soloing a sampler channel<br />
315  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET CHANNEL MIDI_INSTRUMENT_MAP">6.4.24.</a>&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET CHANNEL MIDI_INSTRUMENT_MAP">6.4.24.</a>&nbsp;
316  Assigning a MIDI instrument map to a sampler channel<br />  Assigning a MIDI instrument map to a sampler channel<br />
317  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#RESET CHANNEL">6.4.25.</a>&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#CREATE FX_SEND">6.4.25.</a>&nbsp;
318    Adding an effect send to a sampler channel<br />
319    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#DESTROY FX_SEND">6.4.26.</a>&nbsp;
320    Removing an effect send from a sampler channel<br />
321    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET FX_SENDS">6.4.27.</a>&nbsp;
322    Getting amount of effect sends on a sampler channel<br />
323    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#LIST FX_SENDS">6.4.28.</a>&nbsp;
324    Listing all effect sends on a sampler channel<br />
325    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET FX_SEND INFO">6.4.29.</a>&nbsp;
326    Getting effect send information<br />
327    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET FX_SEND NAME">6.4.30.</a>&nbsp;
328    Changing effect send's name<br />
329    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET FX_SEND AUDIO_OUTPUT_CHANNEL">6.4.31.</a>&nbsp;
330    Altering effect send's audio routing<br />
331    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET FX_SEND MIDI_CONTROLLER">6.4.32.</a>&nbsp;
332    Altering effect send's MIDI controller<br />
333    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET FX_SEND LEVEL">6.4.33.</a>&nbsp;
334    Altering effect send's send level<br />
335    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SEND CHANNEL MIDI_DATA">6.4.34.</a>&nbsp;
336    Sending MIDI messages to sampler channel<br />
337    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#RESET CHANNEL">6.4.35.</a>&nbsp;
338  Resetting a sampler channel<br />  Resetting a sampler channel<br />
339  &nbsp;&nbsp;&nbsp;&nbsp;<a href="#anchor12">6.5.</a>&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;<a href="#anchor12">6.5.</a>&nbsp;
340  Controlling connection<br />  Controlling connection<br />
# Line 336  Global commands<br /> Line 352  Global commands<br />
352  Current number of active voices<br />  Current number of active voices<br />
353  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET TOTAL_VOICE_COUNT_MAX">6.6.2.</a>&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET TOTAL_VOICE_COUNT_MAX">6.6.2.</a>&nbsp;
354  Maximum amount of active voices<br />  Maximum amount of active voices<br />
355  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#RESET">6.6.3.</a>&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET TOTAL_STREAM_COUNT">6.6.3.</a>&nbsp;
356    Current number of active disk streams<br />
357    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#RESET">6.6.4.</a>&nbsp;
358  Reset sampler<br />  Reset sampler<br />
359  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET SERVER INFO">6.6.4.</a>&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET SERVER INFO">6.6.5.</a>&nbsp;
360  General sampler informations<br />  General sampler informations<br />
361    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET VOLUME">6.6.6.</a>&nbsp;
362    Getting global volume attenuation<br />
363    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET VOLUME">6.6.7.</a>&nbsp;
364    Setting global volume attenuation<br />
365    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET VOICES">6.6.8.</a>&nbsp;
366    Getting global voice limit<br />
367    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET VOICES">6.6.9.</a>&nbsp;
368    Setting global voice limit<br />
369    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET STREAMS">6.6.10.</a>&nbsp;
370    Getting global disk stream limit<br />
371    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET STREAMS">6.6.11.</a>&nbsp;
372    Setting global disk stream limit<br />
373  &nbsp;&nbsp;&nbsp;&nbsp;<a href="#MIDI Instrument Mapping">6.7.</a>&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;<a href="#MIDI Instrument Mapping">6.7.</a>&nbsp;
374  MIDI Instrument Mapping<br />  MIDI Instrument Mapping<br />
375  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#ADD MIDI_INSTRUMENT MAP">6.7.1.</a>&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#ADD MIDI_INSTRUMENT_MAP">6.7.1.</a>&nbsp;
376  Create a new MIDI instrument map<br />  Create a new MIDI instrument map<br />
377  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#REMOVE MIDI_INSTRUMENT_MAP">6.7.2.</a>&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#REMOVE MIDI_INSTRUMENT_MAP">6.7.2.</a>&nbsp;
378  Delete one particular or all MIDI instrument maps<br />  Delete one particular or all MIDI instrument maps<br />
# Line 366  Remove an entry from the MIDI instrument Line 396  Remove an entry from the MIDI instrument
396  Get current settings of MIDI instrument map entry<br />  Get current settings of MIDI instrument map entry<br />
397  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#CLEAR MIDI_INSTRUMENTS">6.7.12.</a>&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#CLEAR MIDI_INSTRUMENTS">6.7.12.</a>&nbsp;
398  Clear MIDI instrument map<br />  Clear MIDI instrument map<br />
399    &nbsp;&nbsp;&nbsp;&nbsp;<a href="#Managing Instruments Database">6.8.</a>&nbsp;
400    Managing Instruments Database<br />
401    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#ADD DB_INSTRUMENT_DIRECTORY">6.8.1.</a>&nbsp;
402    Creating a new instrument directory<br />
403    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#REMOVE DB_INSTRUMENT_DIRECTORY">6.8.2.</a>&nbsp;
404    Deleting an instrument directory<br />
405    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET DB_INSTRUMENT_DIRECTORIES">6.8.3.</a>&nbsp;
406    Getting amount of instrument directories<br />
407    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#LIST DB_INSTRUMENT_DIRECTORIES">6.8.4.</a>&nbsp;
408    Listing all directories in specific directory<br />
409    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET DB_INSTRUMENT_DIRECTORY INFO">6.8.5.</a>&nbsp;
410    Getting instrument directory information<br />
411    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET DB_INSTRUMENT_DIRECTORY NAME">6.8.6.</a>&nbsp;
412    Renaming an instrument directory<br />
413    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#MOVE DB_INSTRUMENT_DIRECTORY">6.8.7.</a>&nbsp;
414    Moving an instrument directory<br />
415    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#COPY DB_INSTRUMENT_DIRECTORY">6.8.8.</a>&nbsp;
416    Copying instrument directories<br />
417    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET DB_INSTRUMENT_DIRECTORY DESCRIPTION">6.8.9.</a>&nbsp;
418    Changing the description of directory<br />
419    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#FIND DB_INSTRUMENT_DIRECTORIES">6.8.10.</a>&nbsp;
420    Finding directories<br />
421    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#ADD DB_INSTRUMENTS">6.8.11.</a>&nbsp;
422    Adding instruments to the instruments database<br />
423    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#REMOVE DB_INSTRUMENT">6.8.12.</a>&nbsp;
424    Removing an instrument<br />
425    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET DB_INSTRUMENTS">6.8.13.</a>&nbsp;
426    Getting amount of instruments<br />
427    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#LIST DB_INSTRUMENTS">6.8.14.</a>&nbsp;
428    Listing all instruments in specific directory<br />
429    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET DB_INSTRUMENT INFO">6.8.15.</a>&nbsp;
430    Getting instrument information<br />
431    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET DB_INSTRUMENT NAME">6.8.16.</a>&nbsp;
432    Renaming an instrument<br />
433    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#MOVE DB_INSTRUMENT">6.8.17.</a>&nbsp;
434    Moving an instrument<br />
435    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#COPY DB_INSTRUMENT">6.8.18.</a>&nbsp;
436    Copying instruments<br />
437    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET DB_INSTRUMENT DESCRIPTION">6.8.19.</a>&nbsp;
438    Changing the description of instrument<br />
439    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#FIND DB_INSTRUMENTS">6.8.20.</a>&nbsp;
440    Finding instruments<br />
441    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET DB_INSTRUMENTS_JOB INFO">6.8.21.</a>&nbsp;
442    Getting job status information<br />
443    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#FORMAT INSTRUMENTS_DB">6.8.22.</a>&nbsp;
444    Formatting the instruments database<br />
445    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#FIND LOST DB_INSTRUMENT_FILES">6.8.23.</a>&nbsp;
446    Checking for lost instrument files<br />
447    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SET DB_INSTRUMENT FILE_PATH">6.8.24.</a>&nbsp;
448    Replacing an instrument file<br />
449    &nbsp;&nbsp;&nbsp;&nbsp;<a href="#editing_instruments">6.9.</a>&nbsp;
450    Editing Instruments<br />
451    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#EDIT INSTRUMENT">6.9.1.</a>&nbsp;
452    Opening an appropriate instrument editor application<br />
453    &nbsp;&nbsp;&nbsp;&nbsp;<a href="#file_management">6.10.</a>&nbsp;
454    Managing Files<br />
455    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET FILE INSTRUMENTS">6.10.1.</a>&nbsp;
456    Retrieving amount of instruments of a file<br />
457    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#LIST FILE INSTRUMENTS">6.10.2.</a>&nbsp;
458    Retrieving all instruments of a file<br />
459    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#GET FILE INSTRUMENT INFO">6.10.3.</a>&nbsp;
460    Retrieving informations about one instrument in a file<br />
461  <a href="#command_syntax">7.</a>&nbsp;  <a href="#command_syntax">7.</a>&nbsp;
462  Command Syntax<br />  Command Syntax<br />
463    &nbsp;&nbsp;&nbsp;&nbsp;<a href="#character_set">7.1.</a>&nbsp;
464    Character Set and Escape Sequences<br />
465  <a href="#events">8.</a>&nbsp;  <a href="#events">8.</a>&nbsp;
466  Events<br />  Events<br />
467  &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE CHANNEL">8.1.</a>&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE AUDIO_OUTPUT_DEVICE_COUNT">8.1.</a>&nbsp;
468    Number of audio output devices changed<br />
469    &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE AUDIO_OUTPUT_DEVICE_INFO">8.2.</a>&nbsp;
470    Audio output device's settings changed<br />
471    &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE MIDI_INPUT_DEVICE_COUNT">8.3.</a>&nbsp;
472    Number of MIDI input devices changed<br />
473    &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE MIDI_INPUT_DEVICE_INFO">8.4.</a>&nbsp;
474    MIDI input device's settings changed<br />
475    &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE CHANNEL_COUNT">8.5.</a>&nbsp;
476  Number of sampler channels changed<br />  Number of sampler channels changed<br />
477  &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE VOICE_COUNT">8.2.</a>&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE CHANNEL_MIDI">8.6.</a>&nbsp;
478    MIDI data on a sampler channel arrived<br />
479    &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE DEVICE_MIDI">8.7.</a>&nbsp;
480    MIDI data on a MIDI input device arrived<br />
481    &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE VOICE_COUNT">8.8.</a>&nbsp;
482  Number of active voices changed<br />  Number of active voices changed<br />
483  &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE STREAM_COUNT">8.3.</a>&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE STREAM_COUNT">8.9.</a>&nbsp;
484  Number of active disk streams changed<br />  Number of active disk streams changed<br />
485  &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE BUFFER_FILL">8.4.</a>&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE BUFFER_FILL">8.10.</a>&nbsp;
486  Disk stream buffer fill state changed<br />  Disk stream buffer fill state changed<br />
487  &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE INFO">8.5.</a>&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE CHANNEL_INFO">8.11.</a>&nbsp;
488  Channel information changed<br />  Channel information changed<br />
489  &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE TOTAL_VOICE_COUNT">8.6.</a>&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE FX_SEND_COUNT">8.12.</a>&nbsp;
490    Number of effect sends changed<br />
491    &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE FX_SEND_INFO">8.13.</a>&nbsp;
492    Effect send information changed<br />
493    &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE TOTAL_VOICE_COUNT">8.14.</a>&nbsp;
494  Total number of active voices changed<br />  Total number of active voices changed<br />
495  &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE MISCELLANEOUS">8.7.</a>&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE TOTAL_STREAM_COUNT">8.15.</a>&nbsp;
496    Total number of active disk streams changed<br />
497    &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE MIDI_INSTRUMENT_MAP_COUNT">8.16.</a>&nbsp;
498    Number of MIDI instrument maps changed<br />
499    &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE MIDI_INSTRUMENT_MAP_INFO">8.17.</a>&nbsp;
500    MIDI instrument map information changed<br />
501    &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE MIDI_INSTRUMENT_COUNT">8.18.</a>&nbsp;
502    Number of MIDI instruments changed<br />
503    &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE MIDI_INSTRUMENT_INFO">8.19.</a>&nbsp;
504    MIDI instrument information changed<br />
505    &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE GLOBAL_INFO">8.20.</a>&nbsp;
506    Global settings changed<br />
507    &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE DB_INSTRUMENT_DIRECTORY_COUNT">8.21.</a>&nbsp;
508    Number of database instrument directories changed<br />
509    &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE DB_INSTRUMENT_DIRECTORY_INFO">8.22.</a>&nbsp;
510    Database instrument directory information changed<br />
511    &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE DB_INSTRUMENT_COUNT">8.23.</a>&nbsp;
512    Number of database instruments changed<br />
513    &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE DB_INSTRUMENT_INFO">8.24.</a>&nbsp;
514    Database instrument information changed<br />
515    &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE DB_INSTRUMENTS_JOB_INFO">8.25.</a>&nbsp;
516    Database job status information changed<br />
517    &nbsp;&nbsp;&nbsp;&nbsp;<a href="#SUBSCRIBE MISCELLANEOUS">8.26.</a>&nbsp;
518  Miscellaneous and debugging events<br />  Miscellaneous and debugging events<br />
519  <a href="#anchor14">9.</a>&nbsp;  <a href="#anchor14">9.</a>&nbsp;
520  Security Considerations<br />  Security Considerations<br />
# Line 414  Requirements notation</h3> Line 546  Requirements notation</h3>
546              (front-end) and server (LinuxSampler) respectively. Lines in              (front-end) and server (LinuxSampler) respectively. Lines in
547              examples must be interpreted as every line being CRLF              examples must be interpreted as every line being CRLF
548              terminated (carriage return character followed by line feed              terminated (carriage return character followed by line feed
549              character as defined in the ASCII standard), thus the following              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>),
550              example:              thus the following example:
551  </p>  </p>
552  <p>  <p>
553                  </p>                  </p>
# Line 3201  Changing settings of MIDI input ports</h Line 3333  Changing settings of MIDI input ports</h
3333                      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>                      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>
3334                      command, &lt;port&gt; by the MIDI port number, &lt;key&gt; by the name of                      command, &lt;port&gt; by the MIDI port number, &lt;key&gt; by the name of
3335                      the parameter to change and &lt;value&gt; by the new value for this                      the parameter to change and &lt;value&gt; by the new value for this
3336                      parameter.                      parameter (encapsulated into apostrophes) or NONE (not encapsulated into apostrophes)
3337                        for specifying no value for parameters allowing a list of values.
3338  </p>  </p>
3339  <p>Possible Answers:  <p>Possible Answers:
3340  </p>  </p>
# Line 3242  Changing settings of MIDI input ports</h Line 3375  Changing settings of MIDI input ports</h
3375  <p>  <p>
3376                          </p>                          </p>
3377  <blockquote class="text">  <blockquote class="text">
3378    <p>C: "SET MIDI_INPUT_PORT_PARAMETER 0 0 ALSA_SEQ_BINDINGS='20:0'"
3379    </p>
3380    <p>S: "OK"
3381    </p>
3382    </blockquote><p>
3383                        
3384    </p>
3385  <p>  <p>
3386                            </p>
3387    <blockquote class="text">
3388    <p>C: "SET MIDI_INPUT_PORT_PARAMETER 0 0 ALSA_SEQ_BINDINGS=NONE"
3389    </p>
3390    <p>S: "OK"
3391  </p>  </p>
3392  </blockquote><p>  </blockquote><p>
3393                                            
# Line 3277  Loading an instrument</h3> Line 3422  Loading an instrument</h3>
3422                      number of the sampler channel the instrument should be assigned to.                      number of the sampler channel the instrument should be assigned to.
3423                      Each sampler channel can only have one instrument.                      Each sampler channel can only have one instrument.
3424  </p>  </p>
3425    <p>Notice: since LSCP 1.2 the &lt;filename&gt; argument supports
3426                        escape characters for special characters (see chapter
3427                        "<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>"
3428                        for details) and accordingly backslash characters in the filename
3429                        MUST now be escaped as well!
3430    </p>
3431  <p>The difference between regular and NON_MODAL versions of the command  <p>The difference between regular and NON_MODAL versions of the command
3432                      is that the regular command returns OK only after the instrument has been                      is that the regular command returns OK only after the instrument has been
3433                      fully loaded and the channel is ready to be used while NON_MODAL version                      fully loaded and the channel is ready to be used while NON_MODAL version
# Line 3324  Loading an instrument</h3> Line 3475  Loading an instrument</h3>
3475  </blockquote><p>  </blockquote><p>
3476                                            
3477  </p>  </p>
3478  <p>Example:  <p>Example (Unix):
3479  </p>  </p>
3480  <p>  <p>
3481                          </p>                          </p>
3482  <blockquote class="text">  <blockquote class="text">
3483    <p>C: LOAD INSTRUMENT '/home/joe/gigs/cello.gig' 0 0
3484    </p>
3485    <p>S: OK
3486    </p>
3487    </blockquote><p>
3488                        
3489    </p>
3490    <p>Example (Windows):
3491    </p>
3492  <p>  <p>
3493                            </p>
3494    <blockquote class="text">
3495    <p>C: LOAD INSTRUMENT 'D:/MySounds/cello.gig' 0 0
3496    </p>
3497    <p>S: OK
3498  </p>  </p>
3499  </blockquote><p>  </blockquote><p>
3500                                            
# Line 3744  Getting information about an engine</h3> Line 3909  Getting information about an engine</h3>
3909                                          </p>                                          </p>
3910  <blockquote class="text">  <blockquote class="text">
3911  <p>arbitrary description text about the engine  <p>arbitrary description text about the engine
3912                                                (note that the character string may contain
3913                                                <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>)
3914  </p>  </p>
3915  </blockquote>  </blockquote>
3916                                                                            
# Line 3829  Getting sampler channel information</h3> Line 3996  Getting sampler channel information</h3>
3996  <blockquote class="text">  <blockquote class="text">
3997  <p>numerical ID of the audio output device which is  <p>numerical ID of the audio output device which is
3998                                              currently connected to this sampler channel to output                                              currently connected to this sampler channel to output
3999                                              the audio signal, "NONE" if there's no device                                              the audio signal, "-1" if there's no device
4000                                              connected to this sampler channel                                              connected to this sampler channel
4001  </p>  </p>
4002  </blockquote>  </blockquote>
# Line 3863  Getting sampler channel information</h3> Line 4030  Getting sampler channel information</h3>
4030  <blockquote class="text">  <blockquote class="text">
4031  <p>the file name of the loaded instrument, "NONE" if  <p>the file name of the loaded instrument, "NONE" if
4032                                              there's no instrument yet loaded for this sampler                                              there's no instrument yet loaded for this sampler
4033                                              channel                                              channel (note: since LSCP 1.2 this path may contain
4034                                                <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>)
4035  </p>  </p>
4036  </blockquote>  </blockquote>
4037                                                                            
# Line 3871  Getting sampler channel information</h3> Line 4039  Getting sampler channel information</h3>
4039  <p>INSTRUMENT_NR -  <p>INSTRUMENT_NR -
4040                                          </p>                                          </p>
4041  <blockquote class="text">  <blockquote class="text">
4042  <p>the instrument index number of the loaded instrument  <p>the instrument index number of the loaded instrument,
4043                                                "-1" if there's no instrument loaded for this sampler
4044                                                channel
4045  </p>  </p>
4046  </blockquote>  </blockquote>
4047                                                                            
# Line 3880  Getting sampler channel information</h3> Line 4050  Getting sampler channel information</h3>
4050                                          </p>                                          </p>
4051  <blockquote class="text">  <blockquote class="text">
4052  <p>the instrument name of the loaded instrument  <p>the instrument name of the loaded instrument
4053                                                (note: since LSCP 1.2 this character string may contain
4054                                                <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>)
4055  </p>  </p>
4056  </blockquote>  </blockquote>
4057                                                                            
# Line 3887  Getting sampler channel information</h3> Line 4059  Getting sampler channel information</h3>
4059  <p>INSTRUMENT_STATUS -  <p>INSTRUMENT_STATUS -
4060                                          </p>                                          </p>
4061  <blockquote class="text">  <blockquote class="text">
4062  <p>integer values 0 to 100 indicating loading progress percentage for the instrument. Negative  <p>Integer values 0 to 100 indicating loading progress
4063                                              value indicates a loading exception. Value of 100 indicates that the instrument is fully                                              percentage for the instrument. Negative
4064                                                value indicates a loading exception (also returns "-1" in case no
4065                                                instrument was yet to be loaded on the sampler channel).
4066                                                Value of 100 indicates that the instrument is fully
4067                                              loaded.                                              loaded.
4068  </p>  </p>
4069  </blockquote>  </blockquote>
# Line 3899  Getting sampler channel information</h3> Line 4074  Getting sampler channel information</h3>
4074  <blockquote class="text">  <blockquote class="text">
4075  <p>numerical ID of the MIDI input device which is  <p>numerical ID of the MIDI input device which is
4076                                              currently connected to this sampler channel to deliver                                              currently connected to this sampler channel to deliver
4077                                              MIDI input commands, "NONE" if there's no device                                              MIDI input commands, "-1" if there's no device
4078                                              connected to this sampler channel                                              connected to this sampler channel
4079  </p>  </p>
4080  </blockquote>  </blockquote>
# Line 3908  Getting sampler channel information</h3> Line 4083  Getting sampler channel information</h3>
4083  <p>MIDI_INPUT_PORT -  <p>MIDI_INPUT_PORT -
4084                                          </p>                                          </p>
4085  <blockquote class="text">  <blockquote class="text">
4086  <p>port number of the MIDI input device  <p>port number of the MIDI input device (in case a
4087                                                MIDI device was already assigned to the sampler
4088                                                channel)
4089  </p>  </p>
4090  </blockquote>  </blockquote>
4091                                                                            
# Line 3926  Getting sampler channel information</h3> Line 4103  Getting sampler channel information</h3>
4103                                          </p>                                          </p>
4104  <blockquote class="text">  <blockquote class="text">
4105  <p>optionally dotted number for the channel volume factor  <p>optionally dotted number for the channel volume factor
4106                                              (where a value < 1.0 means attenuation and a value >                                              (where a value &lt; 1.0 means attenuation and a value >
4107                                              1.0 means amplification)                                              1.0 means amplification)
4108  </p>  </p>
4109  </blockquote>  </blockquote>
# Line 4933  Assigning a MIDI instrument map to a sam Line 5110  Assigning a MIDI instrument map to a sam
5110  </blockquote><p>  </blockquote><p>
5111                                            
5112  </p>  </p>
5113  <a name="RESET CHANNEL"></a><br /><hr />  <a name="CREATE FX_SEND"></a><br /><hr />
5114  <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>  <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>
5115  <a name="rfc.section.6.4.25"></a><h3>6.4.25.&nbsp;  <a name="rfc.section.6.4.25"></a><h3>6.4.25.&nbsp;
5116    Adding an effect send to a sampler channel</h3>
5117    
5118    <p>The front-end can create an additional effect send on a specific sampler channel
5119                        by sending the following command:
5120    </p>
5121    <p>
5122                            </p>
5123    <blockquote class="text">
5124    <p>CREATE FX_SEND &lt;sampler-channel&gt; &lt;midi-ctrl&gt; [&lt;name&gt;]
5125    </p>
5126    </blockquote><p>
5127                        
5128    </p>
5129    <p>Where &lt;sampler-channel&gt; is the respective sampler channel
5130                        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>
5131                        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
5132                        sampler channel on which the effect send should be created on, &lt;midi-ctrl&gt;
5133                        is a number between 0..127 defining the MIDI controller which can alter the
5134                        effect send level and &lt;name&gt; is an optional argument defining a name
5135                        for the effect send entity. The name does not have to be unique, but MUST be
5136                        encapsulated into apostrophes and supports escape sequences as described in chapter
5137                        "<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>".
5138    </p>
5139    <p>By default, that is as initial routing, the effect send's audio channels
5140                        are automatically routed to the last audio channels of the sampler channel's
5141                        audio output device, that way you can i.e. first increase the amount of audio
5142                        channels on the audio output device for having dedicated effect send output
5143                        channels and when "CREATE FX_SEND" is called, those channels will automatically
5144                        be picked. You can alter the destination channels however with
5145                        <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>.
5146                        
5147    </p>
5148    <p>Note: Create effect sends on a sampler channel only when needed, because having effect
5149                        sends on a sampler channel will decrease runtime performance, because for implementing channel
5150                        effect sends, separate (sampler channel local) audio buffers are needed to render and mix
5151                        the voices and route the audio signal afterwards to the master outputs and effect send
5152                        outputs (along with their respective effect send levels). A sampler channel without effect
5153                        sends however can mix its voices directly into the audio output devices's audio buffers
5154                        and is thus faster.
5155                        
5156    </p>
5157    <p>Possible Answers:
5158    </p>
5159    <p>
5160                            </p>
5161    <blockquote class="text">
5162    <p>"OK[&lt;fx-send-id&gt;]" -
5163                                    </p>
5164    <blockquote class="text">
5165    <p>in case a new effect send could be added to the
5166                                        sampler channel, where &lt;fx-send-id&gt; reflects the
5167                                        unique ID of the newly created effect send entity
5168    </p>
5169    </blockquote>
5170                                
5171    
5172    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
5173                                    </p>
5174    <blockquote class="text">
5175    <p>when a new effect send could not be added, i.e.
5176                                        due to invalid parameters
5177    </p>
5178    </blockquote>
5179                                
5180    
5181    </blockquote><p>
5182                        
5183    </p>
5184    <p>Examples:
5185    </p>
5186    <p>
5187                            </p>
5188    <blockquote class="text">
5189    <p>C: "CREATE FX_SEND 0 91 'Reverb Send'"
5190    </p>
5191    <p>S: "OK[0]"
5192    </p>
5193    </blockquote><p>
5194                        
5195    </p>
5196    <p>
5197                            </p>
5198    <blockquote class="text">
5199    <p>C: "CREATE FX_SEND 0 93"
5200    </p>
5201    <p>S: "OK[1]"
5202    </p>
5203    </blockquote><p>
5204                        
5205    </p>
5206    <a name="DESTROY FX_SEND"></a><br /><hr />
5207    <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>
5208    <a name="rfc.section.6.4.26"></a><h3>6.4.26.&nbsp;
5209    Removing an effect send from a sampler channel</h3>
5210    
5211    <p>The front-end can remove an existing effect send on a specific sampler channel
5212                        by sending the following command:
5213    </p>
5214    <p>
5215                            </p>
5216    <blockquote class="text">
5217    <p>DESTROY FX_SEND &lt;sampler-channel&gt; &lt;fx-send-id&gt;
5218    </p>
5219    </blockquote><p>
5220                        
5221    </p>
5222    <p>Where &lt;sampler-channel&gt; is the respective sampler channel
5223                        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>
5224                        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
5225                        sampler channel from which the effect send should be removed from and
5226                        &lt;fx-send-id&gt; is the respective effect send number as returned by the
5227                        <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>
5228                        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.
5229    </p>
5230    <p>Possible Answers:
5231    </p>
5232    <p>
5233                            </p>
5234    <blockquote class="text">
5235    <p>"OK" -
5236                                    </p>
5237    <blockquote class="text">
5238    <p>on success
5239    </p>
5240    </blockquote>
5241                                
5242    
5243    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
5244                                    </p>
5245    <blockquote class="text">
5246    <p>in case it failed, providing an appropriate error code and
5247                                        error message
5248    </p>
5249    </blockquote>
5250                                
5251    
5252    </blockquote><p>
5253                        
5254    </p>
5255    <p>Example:
5256    </p>
5257    <p>
5258                            </p>
5259    <blockquote class="text">
5260    <p>C: "DESTROY FX_SEND 0 0"
5261    </p>
5262    <p>S: "OK"
5263    </p>
5264    </blockquote><p>
5265                        
5266    </p>
5267    <a name="GET FX_SENDS"></a><br /><hr />
5268    <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>
5269    <a name="rfc.section.6.4.27"></a><h3>6.4.27.&nbsp;
5270    Getting amount of effect sends on a sampler channel</h3>
5271    
5272    <p>The front-end can ask for the amount of effect sends on a specific sampler channel
5273                        by sending the following command:
5274    </p>
5275    <p>
5276                            </p>
5277    <blockquote class="text">
5278    <p>GET FX_SENDS &lt;sampler-channel&gt;
5279    </p>
5280    </blockquote><p>
5281                        
5282    </p>
5283    <p>Where &lt;sampler-channel&gt; is the respective sampler channel
5284                        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>
5285                        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.
5286    </p>
5287    <p>Possible Answers:
5288    </p>
5289    <p>
5290                            </p>
5291    <blockquote class="text">
5292    <p>The sampler will answer by returning the number of effect
5293                                sends on the given sampler channel.
5294    </p>
5295    </blockquote><p>
5296                        
5297    </p>
5298    <p>Example:
5299    </p>
5300    <p>
5301                            </p>
5302    <blockquote class="text">
5303    <p>C: "GET FX_SENDS 0"
5304    </p>
5305    <p>S: "2"
5306    </p>
5307    </blockquote><p>
5308                        
5309    </p>
5310    <a name="LIST FX_SENDS"></a><br /><hr />
5311    <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>
5312    <a name="rfc.section.6.4.28"></a><h3>6.4.28.&nbsp;
5313    Listing all effect sends on a sampler channel</h3>
5314    
5315    <p>The front-end can ask for a list of effect sends on a specific sampler channel
5316                        by sending the following command:
5317    </p>
5318    <p>
5319                            </p>
5320    <blockquote class="text">
5321    <p>LIST FX_SENDS &lt;sampler-channel&gt;
5322    </p>
5323    </blockquote><p>
5324                        
5325    </p>
5326    <p>Where &lt;sampler-channel&gt; is the respective sampler channel
5327                        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>
5328                        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.
5329    </p>
5330    <p>Possible Answers:
5331    </p>
5332    <p>
5333                            </p>
5334    <blockquote class="text">
5335    <p>The sampler will answer by returning a comma separated list
5336                                with all effect sends' numerical IDs on the given sampler
5337                                channel.
5338    </p>
5339    </blockquote><p>
5340                        
5341    </p>
5342    <p>Examples:
5343    </p>
5344    <p>
5345                            </p>
5346    <blockquote class="text">
5347    <p>C: "LIST FX_SENDS 0"
5348    </p>
5349    <p>S: "0,1"
5350    </p>
5351    </blockquote><p>
5352                        
5353    </p>
5354    <p>
5355                            </p>
5356    <blockquote class="text">
5357    <p>C: "LIST FX_SENDS 1"
5358    </p>
5359    <p>S: ""
5360    </p>
5361    </blockquote><p>
5362                        
5363    </p>
5364    <a name="GET FX_SEND INFO"></a><br /><hr />
5365    <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>
5366    <a name="rfc.section.6.4.29"></a><h3>6.4.29.&nbsp;
5367    Getting effect send information</h3>
5368    
5369    <p>The front-end can ask for the current settings of an effect send entity
5370                        by sending the following command:
5371    </p>
5372    <p>
5373                            </p>
5374    <blockquote class="text">
5375    <p>GET FX_SEND INFO &lt;sampler-channel&gt; &lt;fx-send-id&gt;
5376    </p>
5377    </blockquote><p>
5378                        
5379    </p>
5380    <p>Where &lt;sampler-channel&gt; is the sampler channel number
5381                        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>
5382                        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
5383                        &lt;fx-send-id&gt; reflects the numerical ID of the effect send entity
5384                        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>
5385                        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.
5386                      
5387    </p>
5388    <p>Possible Answers:
5389    </p>
5390    <p>
5391                            </p>
5392    <blockquote class="text">
5393    <p>The sampler will answer by sending a &lt;CRLF&gt; separated list.
5394                                Each answer line begins with the settings category name
5395                                followed by a colon and then a space character &lt;SP&gt; and finally
5396                                the info character string to that setting category. At the
5397                                moment the following categories are defined:
5398    </p>
5399    <p>
5400                                    </p>
5401    <blockquote class="text">
5402    <p>NAME -
5403                                            </p>
5404    <blockquote class="text">
5405    <p>name of the effect send entity
5406                                                (note that this character string may contain
5407                                                 <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>)
5408    </p>
5409    </blockquote>
5410                                        
5411    
5412    <p>MIDI_CONTROLLER -
5413                                            </p>
5414    <blockquote class="text">
5415    <p>a value between 0 and 127 reflecting the MIDI controller
5416                                                which is able to modify the effect send's send level
5417    </p>
5418    </blockquote>
5419                                        
5420    
5421    <p>LEVEL -
5422                                            </p>
5423    <blockquote class="text">
5424    <p>optionally dotted number reflecting the effect send's
5425                                                current send level (where a value &lt; 1.0 means attenuation
5426                                                and a value > 1.0 means amplification)
5427    </p>
5428    </blockquote>
5429                                        
5430    
5431    <p>AUDIO_OUTPUT_ROUTING -
5432                                            </p>
5433    <blockquote class="text">
5434    <p>comma separated list which reflects to which audio
5435                                                channel of the selected audio output device each
5436                                                effect send output channel is routed to, e.g. "0,3" would
5437                                                mean the effect send's output channel 0 is routed to channel
5438                                                0 of the audio output device and the effect send's output
5439                                                channel 1 is routed to the channel 3 of the audio
5440                                                output device (see
5441                                                <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>
5442                                                for details)
5443    </p>
5444    </blockquote>
5445                                        
5446    
5447    </blockquote>
5448                                
5449    
5450    </blockquote><p>
5451                        
5452    </p>
5453    <p>The mentioned fields above don't have to be in particular order.
5454    </p>
5455    <p>Example:
5456    </p>
5457    <p>
5458                            </p>
5459    <blockquote class="text">
5460    <p>C: "GET FX_SEND INFO 0 0"
5461    </p>
5462    <p>S: "NAME: Reverb Send"
5463    </p>
5464    <p>&nbsp;&nbsp;&nbsp;"MIDI_CONTROLLER: 91"
5465    </p>
5466    <p>&nbsp;&nbsp;&nbsp;"LEVEL: 0.3"
5467    </p>
5468    <p>&nbsp;&nbsp;&nbsp;"AUDIO_OUTPUT_ROUTING: 2,3"
5469    </p>
5470    <p>&nbsp;&nbsp;&nbsp;"."
5471    </p>
5472    </blockquote><p>
5473                        
5474    </p>
5475    <a name="SET FX_SEND NAME"></a><br /><hr />
5476    <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>
5477    <a name="rfc.section.6.4.30"></a><h3>6.4.30.&nbsp;
5478    Changing effect send's name</h3>
5479    
5480    <p>The front-end can alter the current name of an effect
5481                        send entity by sending the following command:
5482    </p>
5483    <p>
5484                            </p>
5485    <blockquote class="text">
5486    <p>SET FX_SEND NAME &lt;sampler-chan&gt; &lt;fx-send-id&gt; &lt;name&gt;
5487    </p>
5488    </blockquote><p>
5489                        
5490    </p>
5491    <p>Where &lt;sampler-chan&gt; is the sampler channel number
5492                        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>
5493                        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,
5494                        &lt;fx-send-id&gt; reflects the numerical ID of the effect send entity
5495                        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>
5496                        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
5497                        &lt;name&gt; is the new name of the effect send entity, which
5498                        does not have to be unique (name MUST be encapsulated into apostrophes
5499                        and supports escape sequences as described in chapter
5500                        "<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>").
5501                        
5502    </p>
5503    <p>Possible Answers:
5504    </p>
5505    <p>
5506                            </p>
5507    <blockquote class="text">
5508    <p>"OK" -
5509                                    </p>
5510    <blockquote class="text">
5511    <p>on success
5512    </p>
5513    </blockquote>
5514                                
5515    
5516    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
5517                                    </p>
5518    <blockquote class="text">
5519    <p>in case it failed, providing an appropriate error code and error message
5520    </p>
5521    </blockquote>
5522                                
5523    
5524    </blockquote><p>
5525                        
5526    </p>
5527    <p>Example:
5528    </p>
5529    <p>
5530                            </p>
5531    <blockquote class="text">
5532    <p>C: "SET FX_SEND NAME 0 0 'Fx Send 1'"
5533    </p>
5534    <p>S: "OK"
5535    </p>
5536    </blockquote><p>
5537                        
5538    </p>
5539    <a name="SET FX_SEND AUDIO_OUTPUT_CHANNEL"></a><br /><hr />
5540    <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>
5541    <a name="rfc.section.6.4.31"></a><h3>6.4.31.&nbsp;
5542    Altering effect send's audio routing</h3>
5543    
5544    <p>The front-end can alter the destination of an effect send's audio channel on a specific
5545                        sampler channel by sending the following command:
5546    </p>
5547    <p>
5548                            </p>
5549    <blockquote class="text">
5550    <p>SET FX_SEND AUDIO_OUTPUT_CHANNEL &lt;sampler-chan&gt; &lt;fx-send-id&gt; &lt;audio-src&gt; &lt;audio-dst&gt;
5551    </p>
5552    </blockquote><p>
5553                        
5554    </p>
5555    <p>Where &lt;sampler-chan&gt; is the sampler channel number
5556                        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>
5557                        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,
5558                        &lt;fx-send-id&gt; reflects the numerical ID of the effect send entity
5559                        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>
5560                        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,
5561                        &lt;audio-src&gt; is the numerical ID of the effect send's audio channel
5562                        which should be rerouted and &lt;audio-dst&gt; is the numerical ID of
5563                        the audio channel of the selected audio output device where &lt;audio-src&gt;
5564                        should be routed to.
5565    </p>
5566    <p>Note that effect sends can only route audio to the same audio output
5567                        device as assigned to the effect send's sampler channel. Also note that an
5568                        effect send entity does always have exactly as much audio channels as its
5569                        sampler channel. So if the sampler channel is stereo, the effect send does
5570                        have two audio channels as well. Also keep in mind that the amount of audio
5571                        channels on a sampler channel might be dependant not only to the deployed
5572                        sampler engine on the sampler channel, but also dependant to the instrument
5573                        currently loaded. However you can (effectively) turn an i.e. stereo effect
5574                        send into a mono one by simply altering its audio routing appropriately.
5575    </p>
5576    <p>Possible Answers:
5577    </p>
5578    <p>
5579                            </p>
5580    <blockquote class="text">
5581    <p>"OK" -
5582                                    </p>
5583    <blockquote class="text">
5584    <p>on success
5585    </p>
5586    </blockquote>
5587                                
5588    
5589    <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
5590                                    </p>
5591    <blockquote class="text">
5592    <p>if audio output channel was set, but there are noteworthy
5593                                        issue(s) related, providing an appropriate warning code and
5594                                        warning message
5595    </p>
5596    </blockquote>
5597                                
5598    
5599    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
5600                                    </p>
5601    <blockquote class="text">
5602    <p>in case it failed, providing an appropriate error code and error message
5603    </p>
5604    </blockquote>
5605                                
5606    
5607    </blockquote><p>
5608                        
5609    </p>
5610    <p>Example:
5611    </p>
5612    <p>
5613                            </p>
5614    <blockquote class="text">
5615    <p>C: "SET FX_SEND AUDIO_OUTPUT_CHANNEL 0 0 0 2"
5616    </p>
5617    <p>S: "OK"
5618    </p>
5619    </blockquote><p>
5620                        
5621    </p>
5622    <a name="SET FX_SEND MIDI_CONTROLLER"></a><br /><hr />
5623    <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>
5624    <a name="rfc.section.6.4.32"></a><h3>6.4.32.&nbsp;
5625    Altering effect send's MIDI controller</h3>
5626    
5627    <p>The front-end can alter the MIDI controller of an effect
5628                        send entity by sending the following command:
5629    </p>
5630    <p>
5631                            </p>
5632    <blockquote class="text">
5633    <p>SET FX_SEND MIDI_CONTROLLER &lt;sampler-chan&gt; &lt;fx-send-id&gt; &lt;midi-ctrl&gt;
5634    </p>
5635    </blockquote><p>
5636                        
5637    </p>
5638    <p>Where &lt;sampler-chan&gt; is the sampler channel number
5639                        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>
5640                        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,
5641                        &lt;fx-send-id&gt; reflects the numerical ID of the effect send entity
5642                        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>
5643                        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
5644                        &lt;midi-ctrl&gt; reflects the MIDI controller which shall be
5645                        able to modify the effect send's send level.
5646    </p>
5647    <p>Possible Answers:
5648    </p>
5649    <p>
5650                            </p>
5651    <blockquote class="text">
5652    <p>"OK" -
5653                                    </p>
5654    <blockquote class="text">
5655    <p>on success
5656    </p>
5657    </blockquote>
5658                                
5659    
5660    <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
5661                                    </p>
5662    <blockquote class="text">
5663    <p>if MIDI controller was set, but there are noteworthy
5664                                        issue(s) related, providing an appropriate warning code and
5665                                        warning message
5666    </p>
5667    </blockquote>
5668                                
5669    
5670    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
5671                                    </p>
5672    <blockquote class="text">
5673    <p>in case it failed, providing an appropriate error code and error message
5674    </p>
5675    </blockquote>
5676                                
5677    
5678    </blockquote><p>
5679                        
5680    </p>
5681    <p>Example:
5682    </p>
5683    <p>
5684                            </p>
5685    <blockquote class="text">
5686    <p>C: "SET FX_SEND MIDI_CONTROLLER 0 0 91"
5687    </p>
5688    <p>S: "OK"
5689    </p>
5690    </blockquote><p>
5691                        
5692    </p>
5693    <a name="SET FX_SEND LEVEL"></a><br /><hr />
5694    <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>
5695    <a name="rfc.section.6.4.33"></a><h3>6.4.33.&nbsp;
5696    Altering effect send's send level</h3>
5697    
5698    <p>The front-end can alter the current send level of an effect
5699                        send entity by sending the following command:
5700    </p>
5701    <p>
5702                            </p>
5703    <blockquote class="text">
5704    <p>SET FX_SEND LEVEL &lt;sampler-chan&gt; &lt;fx-send-id&gt; &lt;volume&gt;
5705    </p>
5706    </blockquote><p>
5707                        
5708    </p>
5709    <p>Where &lt;sampler-chan&gt; is the sampler channel number
5710                        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>
5711                        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,
5712                        &lt;fx-send-id&gt; reflects the numerical ID of the effect send entity
5713                        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>
5714                        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
5715                        &lt;volume&gt; is an optionally dotted positive number (a value
5716                        smaller than 1.0 means attenuation, whereas a value greater than
5717                        1.0 means amplification) reflecting the new send level.
5718    </p>
5719    <p>Possible Answers:
5720    </p>
5721    <p>
5722                            </p>
5723    <blockquote class="text">
5724    <p>"OK" -
5725                                    </p>
5726    <blockquote class="text">
5727    <p>on success
5728    </p>
5729    </blockquote>
5730                                
5731    
5732    <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
5733                                    </p>
5734    <blockquote class="text">
5735    <p>if new send level was set, but there are noteworthy
5736                                        issue(s) related, providing an appropriate warning code and
5737                                        warning message
5738    </p>
5739    </blockquote>
5740                                
5741    
5742    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
5743                                    </p>
5744    <blockquote class="text">
5745    <p>in case it failed, providing an appropriate error code and error message
5746    </p>
5747    </blockquote>
5748                                
5749    
5750    </blockquote><p>
5751                        
5752    </p>
5753    <p>Example:
5754    </p>
5755    <p>
5756                            </p>
5757    <blockquote class="text">
5758    <p>C: "SET FX_SEND LEVEL 0 0 0.15"
5759    </p>
5760    <p>S: "OK"
5761    </p>
5762    </blockquote><p>
5763                        
5764    </p>
5765    <a name="SEND CHANNEL MIDI_DATA"></a><br /><hr />
5766    <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>
5767    <a name="rfc.section.6.4.34"></a><h3>6.4.34.&nbsp;
5768    Sending MIDI messages to sampler channel</h3>
5769    
5770    <p>The front-end can send MIDI events to specific sampler channel
5771                        by sending the following command:
5772    </p>
5773    <p>
5774                            </p>
5775    <blockquote class="text">
5776    <p>SEND CHANNEL MIDI_DATA &lt;midi-msg&gt; &lt;sampler-chan&gt; &lt;arg1&gt; &lt;arg2&gt;
5777    </p>
5778    </blockquote><p>
5779                        
5780    </p>
5781    <p>Where &lt;sampler-chan&gt; is the sampler channel number
5782                        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>
5783                        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,
5784                        &lt;arg1&gt; and &lt;arg2&gt; arguments depend on the &lt;midi-msg&gt; argument, which
5785                        specifies the MIDI message type. Currently, the following MIDI messages are supported:
5786    </p>
5787    <p>
5788                            </p>
5789    <blockquote class="text">
5790    <p>"NOTE_ON" -
5791                                    </p>
5792    <blockquote class="text">
5793    <p>For turning on MIDI notes, where &lt;arg1&gt;
5794                                        specifies the key number and &lt;arg2&gt; the velocity
5795                                        as described in the MIDI specification.
5796    </p>
5797    </blockquote>
5798                                
5799    
5800    <p>"NOTE_OFF" -
5801                                    </p>
5802    <blockquote class="text">
5803    <p>For turning a currently playing MIDI note off, where &lt;arg1&gt;
5804                                        specifies the key number and &lt;arg2&gt; the velocity
5805                                        as described in the MIDI specification.
5806    </p>
5807    </blockquote>
5808                                
5809    
5810    </blockquote><p>
5811                        
5812    </p>
5813    <p>CAUTION: This command is provided for implementations of virtual MIDI keyboards
5814                        and no realtime guarantee whatsoever will be made!
5815    </p>
5816    <p>Possible Answers:
5817    </p>
5818    <p>
5819                            </p>
5820    <blockquote class="text">
5821    <p>"OK" -
5822                                    </p>
5823    <blockquote class="text">
5824    <p>on success
5825    </p>
5826    </blockquote>
5827                                
5828    
5829    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
5830                                    </p>
5831    <blockquote class="text">
5832    <p>in case it failed, providing an appropriate error code and error message
5833    </p>
5834    </blockquote>
5835                                
5836    
5837    </blockquote><p>
5838                        
5839    </p>
5840    <p>Example:
5841    </p>
5842    <p>
5843                            </p>
5844    <blockquote class="text">
5845    <p>C: "SEND CHANNEL MIDI_DATA NOTE_ON 0 56 112"
5846    </p>
5847    <p>S: "OK"
5848    </p>
5849    </blockquote><p>
5850                        
5851    </p>
5852    <a name="RESET CHANNEL"></a><br /><hr />
5853    <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>
5854    <a name="rfc.section.6.4.35"></a><h3>6.4.35.&nbsp;
5855  Resetting a sampler channel</h3>  Resetting a sampler channel</h3>
5856    
5857  <p>The front-end can reset a particular sampler channel by sending the following command:  <p>The front-end can reset a particular sampler channel by sending the following command:
# Line 5270  Maximum amount of active voices</h3> Line 6186  Maximum amount of active voices</h3>
6186  </blockquote><p>  </blockquote><p>
6187                                            
6188  </p>  </p>
6189  <a name="RESET"></a><br /><hr />  <a name="GET TOTAL_STREAM_COUNT"></a><br /><hr />
6190  <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>  <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>
6191  <a name="rfc.section.6.6.3"></a><h3>6.6.3.&nbsp;  <a name="rfc.section.6.6.3"></a><h3>6.6.3.&nbsp;
6192    Current number of active disk streams</h3>
6193    
6194    <p>The front-end can ask for the current number of active disk streams on
6195                        the sampler by sending the following command:
6196    </p>
6197    <p>
6198                            </p>
6199    <blockquote class="text">
6200    <p>GET TOTAL_STREAM_COUNT
6201    </p>
6202    </blockquote><p>
6203                        
6204    </p>
6205    <p>Possible Answers:
6206    </p>
6207    <p>
6208                            </p>
6209    <blockquote class="text">
6210    <p>LinuxSampler will answer by returning the number of all active
6211                                disk streams on the sampler.
6212    </p>
6213    </blockquote><p>
6214                        
6215    </p>
6216    <a name="RESET"></a><br /><hr />
6217    <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>
6218    <a name="rfc.section.6.6.4"></a><h3>6.6.4.&nbsp;
6219  Reset sampler</h3>  Reset sampler</h3>
6220    
6221  <p>The front-end can reset the whole sampler by sending the following command:  <p>The front-end can reset the whole sampler by sending the following command:
# Line 5313  Reset sampler</h3> Line 6256  Reset sampler</h3>
6256  </p>  </p>
6257  <a name="GET SERVER INFO"></a><br /><hr />  <a name="GET SERVER INFO"></a><br /><hr />
6258  <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>  <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>
6259  <a name="rfc.section.6.6.4"></a><h3>6.6.4.&nbsp;  <a name="rfc.section.6.6.5"></a><h3>6.6.5.&nbsp;
6260  General sampler informations</h3>  General sampler informations</h3>
6261    
6262  <p>The client can ask for general informations about the LinuxSampler  <p>The client can ask for general informations about the LinuxSampler
# Line 5346  General sampler informations</h3> Line 6289  General sampler informations</h3>
6289                                          </p>                                          </p>
6290  <blockquote class="text">  <blockquote class="text">
6291  <p>arbitrary textual description about the sampler  <p>arbitrary textual description about the sampler
6292                                                (note that the character string may contain
6293                                                <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>)
6294  </p>  </p>
6295  </blockquote>  </blockquote>
6296                                                                            
# Line 5367  General sampler informations</h3> Line 6312  General sampler informations</h3>
6312  </blockquote>  </blockquote>
6313                                                                            
6314    
6315    <p>INSTRUMENTS_DB_SUPPORT -
6316                                            </p>
6317    <blockquote class="text">
6318    <p>either yes or no, specifies whether the
6319                                                sampler is build with instruments database support.
6320    </p>
6321    </blockquote>
6322                                        
6323    
6324  </blockquote>  </blockquote>
6325                                                            
6326    
# Line 5376  General sampler informations</h3> Line 6330  General sampler informations</h3>
6330  <p>The mentioned fields above don't have to be in particular order.  <p>The mentioned fields above don't have to be in particular order.
6331                      Other fields might be added in future.                      Other fields might be added in future.
6332  </p>  </p>
6333    <a name="GET VOLUME"></a><br /><hr />
6334    <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>
6335    <a name="rfc.section.6.6.6"></a><h3>6.6.6.&nbsp;
6336    Getting global volume attenuation</h3>
6337    
6338    <p>The client can ask for the current global sampler-wide volume
6339                        attenuation by sending the following command:
6340    </p>
6341    <p>
6342                            </p>
6343    <blockquote class="text">
6344    <p>GET VOLUME
6345    </p>
6346    </blockquote><p>
6347                        
6348    </p>
6349    <p>Possible Answers:
6350    </p>
6351    <p>
6352                            </p>
6353    <blockquote class="text">
6354    <p>The sampler will always answer by returning the optional
6355                                dotted floating point coefficient, reflecting the current
6356                                global volume attenuation.
6357                                
6358    </p>
6359    </blockquote><p>
6360                        
6361    </p>
6362    <p>Note: it is up to the respective sampler engine whether to obey
6363                        that global volume parameter or not, but in general all engines SHOULD
6364                        use this parameter.
6365    </p>
6366    <a name="SET VOLUME"></a><br /><hr />
6367    <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>
6368    <a name="rfc.section.6.6.7"></a><h3>6.6.7.&nbsp;
6369    Setting global volume attenuation</h3>
6370    
6371    <p>The client can alter the current global sampler-wide volume
6372                        attenuation by sending the following command:
6373    </p>
6374    <p>
6375                            </p>
6376    <blockquote class="text">
6377    <p>SET VOLUME &lt;volume&gt;
6378    </p>
6379    </blockquote><p>
6380                        
6381    </p>
6382    <p>Where &lt;volume&gt; should be replaced by the optional dotted
6383                       floating point value, reflecting the new global volume parameter.
6384                       This value might usually be in the range between 0.0 and 1.0, that
6385                       is for attenuating the overall volume.
6386    </p>
6387    <p>Possible Answers:
6388    </p>
6389    <p>
6390                            </p>
6391    <blockquote class="text">
6392    <p>"OK" -
6393                                    </p>
6394    <blockquote class="text">
6395    <p>on success
6396    </p>
6397    </blockquote>
6398                                
6399    
6400    <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
6401                                    </p>
6402    <blockquote class="text">
6403    <p>if the global volume was set, but there are noteworthy
6404                                        issue(s) related, providing an appropriate warning code and
6405                                        warning message
6406    </p>
6407    </blockquote>
6408                                
6409    
6410    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
6411                                    </p>
6412    <blockquote class="text">
6413    <p>in case it failed, providing an appropriate error code and error message
6414    </p>
6415    </blockquote>
6416                                
6417    
6418    </blockquote><p>
6419                        
6420    </p>
6421    <a name="GET VOICES"></a><br /><hr />
6422    <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>
6423    <a name="rfc.section.6.6.8"></a><h3>6.6.8.&nbsp;
6424    Getting global voice limit</h3>
6425    
6426    <p>The client can ask for the current global sampler-wide limit
6427                           for maximum voices by sending the following command:
6428    </p>
6429    <p>
6430                            </p>
6431    <blockquote class="text">
6432    <p>GET VOICES
6433    </p>
6434    </blockquote><p>
6435                        
6436    </p>
6437    <p>Possible Answers:
6438    </p>
6439    <p>
6440                            </p>
6441    <blockquote class="text">
6442    <p>LinuxSampler will answer by returning the number for
6443                                   the current limit of maximum voices.
6444    </p>
6445    </blockquote><p>
6446                        
6447    </p>
6448    <p>The voice limit setting defines how many voices should maximum
6449                           be processed by the sampler at the same time. If the user
6450                           triggers new notes which would exceed that voice limit, the
6451                           sampler engine will react by stealing old voices for those
6452                           newly triggered notes. Note that the amount of voices triggered
6453                           by a new note can be larger than one and is dependent to the
6454                           respective instrument and probably further criterias.
6455    </p>
6456    <a name="SET VOICES"></a><br /><hr />
6457    <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>
6458    <a name="rfc.section.6.6.9"></a><h3>6.6.9.&nbsp;
6459    Setting global voice limit</h3>
6460    
6461    <p>The client can alter the current global sampler-wide limit
6462                        for maximum voices by sending the following command:
6463    </p>
6464    <p>
6465                            </p>
6466    <blockquote class="text">
6467    <p>SET VOICES &lt;max-voices&gt;
6468    </p>
6469    </blockquote><p>
6470                        
6471    </p>
6472    <p>Where &lt;max-voices&gt; should be replaced by the integer
6473                       value, reflecting the new global amount limit of maximum voices.
6474                       This value has to be larger than 0.
6475    </p>
6476    <p>Possible Answers:
6477    </p>
6478    <p>
6479                            </p>
6480    <blockquote class="text">
6481    <p>"OK" -
6482                                    </p>
6483    <blockquote class="text">
6484    <p>on success
6485    </p>
6486    </blockquote>
6487                                
6488    
6489    <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
6490                                    </p>
6491    <blockquote class="text">
6492    <p>if the voice limit was set, but there are noteworthy
6493                                        issue(s) related, providing an appropriate warning code and
6494                                        warning message
6495    </p>
6496    </blockquote>
6497                                
6498    
6499    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
6500                                    </p>
6501    <blockquote class="text">
6502    <p>in case it failed, providing an appropriate error code and error message
6503    </p>
6504    </blockquote>
6505                                
6506    
6507    </blockquote><p>
6508                        
6509    </p>
6510    <p>Note: the given value will be passed to all sampler engine instances.
6511                           The total amount of maximum voices on the running system might thus
6512                           be as big as the given value multiplied by the current amount of engine
6513                           instances.
6514    </p>
6515    <p>Caution: when adjusting the voice limit, you SHOULD also
6516                            adjust the disk stream limit respectively and vice versa.
6517    </p>
6518    <a name="GET STREAMS"></a><br /><hr />
6519    <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>
6520    <a name="rfc.section.6.6.10"></a><h3>6.6.10.&nbsp;
6521    Getting global disk stream limit</h3>
6522    
6523    <p>The client can ask for the current global sampler-wide limit
6524                           for maximum disk streams by sending the following command:
6525    </p>
6526    <p>
6527                            </p>
6528    <blockquote class="text">
6529    <p>GET STREAMS
6530    </p>
6531    </blockquote><p>
6532                        
6533    </p>
6534    <p>Possible Answers:
6535    </p>
6536    <p>
6537                            </p>
6538    <blockquote class="text">
6539    <p>LinuxSampler will answer by returning the number for
6540                                   the current limit of maximum disk streams.
6541    </p>
6542    </blockquote><p>
6543                        
6544    </p>
6545    <p>The disk stream limit setting defines how many disk streams should
6546                           maximum be processed by a sampler engine at the same time. The
6547                           higher this value, the more memory (RAM) will be occupied, since
6548                           every disk streams allocates a certain buffer size for being able
6549                           to perform its streaming operations.
6550    </p>
6551    <a name="SET STREAMS"></a><br /><hr />
6552    <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>
6553    <a name="rfc.section.6.6.11"></a><h3>6.6.11.&nbsp;
6554    Setting global disk stream limit</h3>
6555    
6556    <p>The client can alter the current global sampler-wide limit
6557                        for maximum disk streams by sending the following command:
6558    </p>
6559    <p>
6560                            </p>
6561    <blockquote class="text">
6562    <p>SET STREAMS &lt;max-streams&gt;
6563    </p>
6564    </blockquote><p>
6565                        
6566    </p>
6567    <p>Where &lt;max-streams&gt; should be replaced by the integer
6568                       value, reflecting the new global amount limit of maximum disk streams.
6569                       This value has to be positive.
6570    </p>
6571    <p>Possible Answers:
6572    </p>
6573    <p>
6574                            </p>
6575    <blockquote class="text">
6576    <p>"OK" -
6577                                    </p>
6578    <blockquote class="text">
6579    <p>on success
6580    </p>
6581    </blockquote>
6582                                
6583    
6584    <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
6585                                    </p>
6586    <blockquote class="text">
6587    <p>if the disk stream limit was set, but there are noteworthy
6588                                        issue(s) related, providing an appropriate warning code and
6589                                        warning message
6590    </p>
6591    </blockquote>
6592                                
6593    
6594    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
6595                                    </p>
6596    <blockquote class="text">
6597    <p>in case it failed, providing an appropriate error code and error message
6598    </p>
6599    </blockquote>
6600                                
6601    
6602    </blockquote><p>
6603                        
6604    </p>
6605    <p>Note: the given value will be passed to all sampler engine instances.
6606                           The total amount of maximum disk streams on the running system might
6607                           thus be as big as the given value multiplied by the current amount of
6608                           engine instances.
6609    </p>
6610    <p>Caution: when adjusting the disk stream limit, you SHOULD also
6611                            adjust the voice limit respectively and vice versa.
6612    </p>
6613  <a name="MIDI Instrument Mapping"></a><br /><hr />  <a name="MIDI Instrument Mapping"></a><br /><hr />
6614  <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>  <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>
6615  <a name="rfc.section.6.7"></a><h3>6.7.&nbsp;  <a name="rfc.section.6.7"></a><h3>6.7.&nbsp;
# Line 5410  MIDI Instrument Mapping</h3> Line 6644  MIDI Instrument Mapping</h3>
6644                  cause the sampler to switch to the respective instrument as                  cause the sampler to switch to the respective instrument as
6645                  reflected by the current MIDI instrument map.                  reflected by the current MIDI instrument map.
6646  </p>  </p>
6647  <a name="ADD MIDI_INSTRUMENT MAP"></a><br /><hr />  <a name="ADD MIDI_INSTRUMENT_MAP"></a><br /><hr />
6648  <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>  <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>
6649  <a name="rfc.section.6.7.1"></a><h3>6.7.1.&nbsp;  <a name="rfc.section.6.7.1"></a><h3>6.7.1.&nbsp;
6650  Create a new MIDI instrument map</h3>  Create a new MIDI instrument map</h3>
# Line 5428  Create a new MIDI instrument map</h3> Line 6662  Create a new MIDI instrument map</h3>
6662  </p>  </p>
6663  <p>Where &lt;name&gt; is an optional argument allowing to  <p>Where &lt;name&gt; is an optional argument allowing to
6664                      assign a custom name to the new map. MIDI instrument Map                      assign a custom name to the new map. MIDI instrument Map
6665                      names do not have to be unique.                      names do not have to be unique, but MUST be encapsulated
6666                        into apostrophes and support escape sequences as described
6667                        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>".
6668                        
6669  </p>  </p>
6670  <p>Possible Answers:  <p>Possible Answers:
6671  </p>  </p>
# Line 5686  Getting MIDI instrument map information< Line 6923  Getting MIDI instrument map information<
6923  <blockquote class="text">  <blockquote class="text">
6924  <p>custom name of the given map,  <p>custom name of the given map,
6925                                              which does not have to be unique                                              which does not have to be unique
6926                                                (note that this character string may contain
6927                                                 <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>)
6928    </p>
6929    </blockquote>
6930                                        
6931    
6932    <p>DEFAULT -
6933                                            </p>
6934    <blockquote class="text">
6935    <p>either true or false,
6936                                                defines whether this map is the default map
6937  </p>  </p>
6938  </blockquote>  </blockquote>
6939                                                                            
# Line 5707  Getting MIDI instrument map information< Line 6955  Getting MIDI instrument map information<
6955  </p>  </p>
6956  <p>S: "NAME: Standard Map"  <p>S: "NAME: Standard Map"
6957  </p>  </p>
6958    <p>&nbsp;&nbsp;&nbsp;"DEFAULT: true"
6959    </p>
6960  <p>&nbsp;&nbsp;&nbsp;"."  <p>&nbsp;&nbsp;&nbsp;"."
6961  </p>  </p>
6962  </blockquote><p>  </blockquote><p>
# Line 5730  Renaming a MIDI instrument map</h3> Line 6980  Renaming a MIDI instrument map</h3>
6980  </p>  </p>
6981  <p>Where &lt;map&gt; is the numerical ID of the map and  <p>Where &lt;map&gt; is the numerical ID of the map and
6982                      &lt;name&gt; the new custom name of the map, which does not                      &lt;name&gt; the new custom name of the map, which does not
6983                      have to be unique.                      have to be unique (name MUST be encapsulated into apostrophes
6984                        and supports escape sequences as described in chapter
6985                        "<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>").
6986                        
6987  </p>  </p>
6988  <p>Possible Answers:  <p>Possible Answers:
6989  </p>  </p>
# Line 5780  Create or replace a MIDI instrument map Line 7033  Create or replace a MIDI instrument map
7033  <p>  <p>
7034                          </p>                          </p>
7035  <blockquote class="text">  <blockquote class="text">
7036  <p>MAP MIDI_INSTRUMENT &lt;map&gt;  <p>MAP MIDI_INSTRUMENT [NON_MODAL] &lt;map&gt;
7037                              &lt;midi_bank&gt; &lt;midi_prog&gt; &lt;engine_name&gt;                              &lt;midi_bank&gt; &lt;midi_prog&gt; &lt;engine_name&gt;
7038                              &lt;filename&gt; &lt;instrument_index&gt; &lt;volume_value&gt;                              &lt;filename&gt; &lt;instrument_index&gt; &lt;volume_value&gt;
7039                              [&lt;instr_load_mode&gt;] [&lt;name&gt;]                              [&lt;instr_load_mode&gt;] [&lt;name&gt;]
# Line 5796  Create or replace a MIDI instrument map Line 7049  Create or replace a MIDI instrument map
7049                      index, &lt;engine_name&gt; a sampler engine name as returned by                      index, &lt;engine_name&gt; a sampler engine name as returned by
7050                      the <a class='info' href='#LIST AVAILABLE_ENGINES'>"LIST AVAILABLE_ENGINES"<span> (</span><span class='info'>Getting all available engines</span><span>)</span></a>                      the <a class='info' href='#LIST AVAILABLE_ENGINES'>"LIST AVAILABLE_ENGINES"<span> (</span><span class='info'>Getting all available engines</span><span>)</span></a>
7051                      command (not encapsulated into apostrophes), &lt;filename&gt; the name                      command (not encapsulated into apostrophes), &lt;filename&gt; the name
7052                      of the instrument's file to be deployed (encapsulated into apostrophes),                      of the instrument's file to be deployed (encapsulated into apostrophes,
7053                        supporting escape sequences as described in chapter
7054                        "<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>"),
7055                      &lt;instrument_index&gt; the index (integer value) of the instrument                      &lt;instrument_index&gt; the index (integer value) of the instrument
7056                      within the given file, &lt;volume_value&gt; reflects the master                      within the given file, &lt;volume_value&gt; reflects the master
7057                      volume of the instrument as optionally dotted number (where a                      volume of the instrument as optionally dotted number (where a
7058                      value < 1.0 means attenuation and a value > 1.0 means                      value &lt; 1.0 means attenuation and a value > 1.0 means
7059                      amplification). This parameter easily allows to adjust the                      amplification). This parameter easily allows to adjust the
7060                      volume of all intruments within a custom instrument map                      volume of all intruments within a custom instrument map
7061                      without having to adjust their instrument files. The                      without having to adjust their instrument files. The
# Line 5844  Create or replace a MIDI instrument map Line 7099  Create or replace a MIDI instrument map
7099                                  </p>                                  </p>
7100  <blockquote class="text">  <blockquote class="text">
7101  <p>The instrument will immediately be loaded  <p>The instrument will immediately be loaded
7102                                      into memory in the background when this mapping                                      into memory when this mapping
7103                                      command is sent and the instrument is kept all                                      command is sent and the instrument is kept all
7104                                      the time. Instruments with this mode are                                      the time. Instruments with this mode are
7105                                      only freed when the sampler is reset or all                                      only freed when the sampler is reset or all
# Line 5893  Create or replace a MIDI instrument map Line 7148  Create or replace a MIDI instrument map
7148                      load modes of entries, the frontend should retrieve the actual                      load modes of entries, the frontend should retrieve the actual
7149                      mode by i.e. sending                      mode by i.e. sending
7150                      <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>                      <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>
7151                      command(s). Finally the OPTIONAL &lt;name&gt; argument allows to                      command(s). Finally the OPTIONAL &lt;name&gt; argument allows to set a custom name
7152                      set a custom name (encapsulated into apostrophes) for the mapping                      (encapsulated into apostrophes, supporting escape sequences as described in chapter
7153                      entry, useful for frontends for displaying an appropriate name for                      "<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
7154                        mapping entry, useful for frontends for displaying an appropriate name for
7155                      mapped instruments (using                      mapped instruments (using
7156                      <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>).                      <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>).
7157                                            
7158  </p>  </p>
7159  <p>  <p>
7160                      The "MAP MIDI_INSTRUMENT" command                      By default, "MAP MIDI_INSTRUMENT" commands block until the mapping is
7161                      will immediately return, thus it will not block when an                      completely established in the sampler. The OPTIONAL "NON_MODAL" argument
7162                      instrument is to be loaded due to a "PERSISTENT" type                      however causes the respective "MAP MIDI_INSTRUMENT" command to return
7163                      entry as instruments are loaded in the background. As a                      immediately, that is to let the sampler establish the mapping in the
7164                      consequence this command may not necessarily return an error                      background. So this argument might be especially useful for mappings with
7165                      i.e. when the given instrument file does not exist or may                      a "PERSISTENT" type, because these have to load the respective instruments
7166                      turn out to be corrupt.                      immediately and might thus block for a very long time. It is recommended
7167                        however to use the OPTIONAL "NON_MODAL" argument only if really necessary,
7168                        because it has the following drawbacks: as "NON_MODAL" instructions return
7169                        immediately, they may not necessarily return an error i.e. when the given
7170                        instrument file turns out to be corrupt, beside that subsequent commands
7171                        in a LSCP instruction sequence might fail, because mandatory mappings are
7172                        not yet completed.
7173                                            
7174  </p>  </p>
7175  <p>Possible Answers:  <p>Possible Answers:
# Line 5974  Create or replace a MIDI instrument map Line 7236  Create or replace a MIDI instrument map
7236  <p>  <p>
7237                          </p>                          </p>
7238  <blockquote class="text">  <blockquote class="text">
7239  <p>C: "MAP MIDI_INSTRUMENT 1 8 120 gig '/home/joe/foodrums.gig' 0 1.0 PERSISTENT 'Foo Drumkit'"  <p>C: "MAP MIDI_INSTRUMENT NON_MODAL 1 8 120 gig '/home/joe/foodrums.gig' 0 1.0 PERSISTENT 'Foo Drumkit'"
7240  </p>  </p>
7241  <p>S: "OK"  <p>S: "OK"
7242  </p>  </p>
# Line 6211  Get current settings of MIDI instrument Line 7473  Get current settings of MIDI instrument
7473                                      changed with the                                      changed with the
7474                                      <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>                                      <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>
7475                                      command and does not have to be unique.                                      command and does not have to be unique.
7476                                        (note that this character string may contain
7477                                        <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>)
7478  </p>  </p>
7479  </blockquote>  </blockquote>
7480                                                            
# Line 6227  Get current settings of MIDI instrument Line 7491  Get current settings of MIDI instrument
7491  <p>"INSTRUMENT_FILE" -  <p>"INSTRUMENT_FILE" -
7492                                  </p>                                  </p>
7493  <blockquote class="text">  <blockquote class="text">
7494  <p>File name of the instrument.  <p>File name of the instrument
7495                                        (note that this path may contain
7496                                        <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>).
7497  </p>  </p>
7498  </blockquote>  </blockquote>
7499                                                            
# Line 6245  Get current settings of MIDI instrument Line 7511  Get current settings of MIDI instrument
7511  <blockquote class="text">  <blockquote class="text">
7512  <p>Name of the loaded instrument as reflected by its file.  <p>Name of the loaded instrument as reflected by its file.
7513                                      In contrast to the "NAME" field, the "INSTRUMENT_NAME" field                                      In contrast to the "NAME" field, the "INSTRUMENT_NAME" field
7514                                      cannot be changed.                                      cannot be changed (note that this character string may contain
7515                                        <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>).
7516  </p>  </p>
7517  </blockquote>  </blockquote>
7518                                                            
# Line 6263  Get current settings of MIDI instrument Line 7530  Get current settings of MIDI instrument
7530                                  </p>                                  </p>
7531  <blockquote class="text">  <blockquote class="text">
7532  <p>master volume of the instrument as optionally  <p>master volume of the instrument as optionally
7533                                      dotted number (where a value < 1.0 means attenuation                                      dotted number (where a value &lt; 1.0 means attenuation
7534                                      and a value > 1.0 means amplification)                                      and a value > 1.0 means amplification)
7535  </p>  </p>
7536  </blockquote>  </blockquote>
# Line 6372  Clear MIDI instrument map</h3> Line 7639  Clear MIDI instrument map</h3>
7639  </blockquote><p>  </blockquote><p>
7640                                            
7641  </p>  </p>
7642    <a name="Managing Instruments Database"></a><br /><hr />
7643    <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>
7644    <a name="rfc.section.6.8"></a><h3>6.8.&nbsp;
7645    Managing Instruments Database</h3>
7646    
7647    <p>The following commands describe how to use and manage
7648                    the instruments database.
7649    </p>
7650    <p>Notice:
7651    </p>
7652    <p>
7653                            </p>
7654    <blockquote class="text">
7655    <p>All command arguments representing a path or
7656                                instrument/directory name support escape sequences as described in chapter
7657                                "<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>".
7658                                
7659    </p>
7660    <p>All occurrences of a forward slash in instrument and directory
7661                                   names are escaped with its hex (\x2f) or octal (\057) escape sequence.
7662                                
7663    </p>
7664    </blockquote><p>
7665                        
7666    </p>
7667    <a name="ADD DB_INSTRUMENT_DIRECTORY"></a><br /><hr />
7668    <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>
7669    <a name="rfc.section.6.8.1"></a><h3>6.8.1.&nbsp;
7670    Creating a new instrument directory</h3>
7671    
7672    <p>The front-end can add a new instrument directory to the
7673                        instruments database by sending the following command:
7674    </p>
7675    <p>
7676                            </p>
7677    <blockquote class="text">
7678    <p>ADD DB_INSTRUMENT_DIRECTORY &lt;dir&gt;
7679    </p>
7680    </blockquote><p>
7681                        
7682    </p>
7683    <p>Where &lt;dir&gt; is the absolute path name of the directory
7684                        to be created (encapsulated into apostrophes).
7685    </p>
7686    <p>Possible Answers:
7687    </p>
7688    <p>
7689                            </p>
7690    <blockquote class="text">
7691    <p>"OK" -
7692                                    </p>
7693    <blockquote class="text">
7694    <p>on success
7695    </p>
7696    </blockquote>
7697                                
7698    
7699    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
7700                                    </p>
7701    <blockquote class="text">
7702    <p>when the directory could not be created, which
7703                                        can happen if the directory already exists or the
7704                                        name contains not allowed symbols
7705    </p>
7706    </blockquote>
7707                                
7708    
7709    </blockquote><p>
7710                        
7711    </p>
7712    <p>Examples:
7713    </p>
7714    <p>
7715                            </p>
7716    <blockquote class="text">
7717    <p>C: "ADD DB_INSTRUMENT_DIRECTORY '/Piano Collection'"
7718    </p>
7719    <p>S: "OK"
7720    </p>
7721    </blockquote><p>
7722                        
7723    </p>
7724    <a name="REMOVE DB_INSTRUMENT_DIRECTORY"></a><br /><hr />
7725    <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>
7726    <a name="rfc.section.6.8.2"></a><h3>6.8.2.&nbsp;
7727    Deleting an instrument directory</h3>
7728    
7729    <p>The front-end can delete a particular instrument directory
7730                        from the instruments database by sending the following command:
7731    </p>
7732    <p>
7733                            </p>
7734    <blockquote class="text">
7735    <p>REMOVE DB_INSTRUMENT_DIRECTORY [FORCE] &lt;dir&gt;
7736    </p>
7737    </blockquote><p>
7738                        
7739    </p>
7740    <p>Where &lt;dir&gt; is the absolute path name of the directory
7741                        to delete. The optional FORCE argument can be used to
7742                        force the deletion of a non-empty directory and all its content.
7743    </p>
7744    <p>Possible Answers:
7745    </p>
7746    <p>
7747                            </p>
7748    <blockquote class="text">
7749    <p>"OK" -
7750                                    </p>
7751    <blockquote class="text">
7752    <p>if the directory is deleted successfully
7753    </p>
7754    </blockquote>
7755                                
7756    
7757    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
7758                                    </p>
7759    <blockquote class="text">
7760    <p>if the given directory does not exist, or
7761                                        if trying to delete a non-empty directory,
7762                                        without using the FORCE argument.
7763    </p>
7764    </blockquote>
7765                                
7766    
7767    </blockquote><p>
7768                        
7769    </p>
7770    <p>Examples:
7771    </p>
7772    <p>
7773                            </p>
7774    <blockquote class="text">
7775    <p>C: "REMOVE DB_INSTRUMENT_DIRECTORY FORCE '/Piano Collection'"
7776    </p>
7777    <p>S: "OK"
7778    </p>
7779    </blockquote><p>
7780                        
7781    </p>
7782    <a name="GET DB_INSTRUMENT_DIRECTORIES"></a><br /><hr />
7783    <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>
7784    <a name="rfc.section.6.8.3"></a><h3>6.8.3.&nbsp;
7785    Getting amount of instrument directories</h3>
7786    
7787    <p>The front-end can retrieve the current amount of
7788                        directories in a specific directory by sending the following command:
7789    </p>
7790    <p>
7791                            </p>
7792    <blockquote class="text">
7793    <p>GET DB_INSTRUMENT_DIRECTORIES [RECURSIVE] &lt;dir&gt;
7794    </p>
7795    </blockquote><p>
7796                        
7797    </p>
7798    <p>Where &lt;dir&gt; should be replaced by the absolute path
7799                        name of the directory. If RECURSIVE is specified, the number of
7800                        all directories, including those located in subdirectories of the
7801                        specified directory, will be returned.
7802    </p>
7803    <p>Possible Answers:
7804    </p>
7805    <p>
7806                            </p>
7807    <blockquote class="text">
7808    <p>The current number of instrument directories
7809                                in the specified directory.
7810    </p>
7811    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
7812                                    </p>
7813    <blockquote class="text">
7814    <p>if the given directory does not exist.
7815    </p>
7816    </blockquote>
7817                                
7818    
7819    </blockquote><p>
7820                        
7821    </p>
7822    <p>Example:
7823    </p>
7824    <p>
7825                            </p>
7826    <blockquote class="text">
7827    <p>C: "GET DB_INSTRUMENT_DIRECTORIES '/'"
7828    </p>
7829    <p>S: "2"
7830    </p>
7831    </blockquote><p>
7832                        
7833    </p>
7834    <a name="LIST DB_INSTRUMENT_DIRECTORIES"></a><br /><hr />
7835    <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>
7836    <a name="rfc.section.6.8.4"></a><h3>6.8.4.&nbsp;
7837    Listing all directories in specific directory</h3>
7838    
7839    <p>The front-end can retrieve the current list of directories
7840                        in specific directory by sending the following command:
7841    </p>
7842    <p>
7843                            </p>
7844    <blockquote class="text">
7845    <p>LIST DB_INSTRUMENT_DIRECTORIES [RECURSIVE] &lt;dir&gt;
7846    </p>
7847    </blockquote><p>
7848                        
7849    </p>
7850    <p>Where &lt;dir&gt; should be replaced by the absolute path
7851                        name of the directory. If RECURSIVE is specified, the absolute path names
7852                        of all directories, including those located in subdirectories of the
7853                        specified directory, will be returned.
7854    </p>
7855    <p>Possible Answers:
7856    </p>
7857    <p>
7858                            </p>
7859    <blockquote class="text">
7860    <p>A comma separated list of all instrument directories
7861                                (encapsulated into apostrophes) in the specified directory.
7862    </p>
7863    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
7864                                    </p>
7865    <blockquote class="text">
7866    <p>if the given directory does not exist.
7867    </p>
7868    </blockquote>
7869                                
7870    
7871    </blockquote><p>
7872                        
7873    </p>
7874    <p>Example:
7875    </p>
7876    <p>
7877                            </p>
7878    <blockquote class="text">
7879    <p>C: "LIST DB_INSTRUMENT_DIRECTORIES '/'"
7880    </p>
7881    <p>S: "'Piano Collection','Percussion Collection'"
7882    </p>
7883    </blockquote><p>
7884                        
7885    </p>
7886    <p>
7887                            </p>
7888    <blockquote class="text">
7889    <p>C: "LIST DB_INSTRUMENT_DIRECTORIES RECURSIVE '/'"
7890    </p>
7891    <p>S: "'/Piano Collection','/Piano Collection/Acoustic','/Piano Collection/Acoustic/New','/Percussion Collection'"
7892    </p>
7893    </blockquote><p>
7894                        
7895    </p>
7896    <a name="GET DB_INSTRUMENT_DIRECTORY INFO"></a><br /><hr />
7897    <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>
7898    <a name="rfc.section.6.8.5"></a><h3>6.8.5.&nbsp;
7899    Getting instrument directory information</h3>
7900    
7901    <p>The front-end can ask for the current settings of an
7902                        instrument directory by sending the following command:
7903    </p>
7904    <p>
7905                            </p>
7906    <blockquote class="text">
7907    <p>GET DB_INSTRUMENT_DIRECTORY INFO &lt;dir&gt;
7908    </p>
7909    </blockquote><p>
7910                        
7911    </p>
7912    <p>Where &lt;dir&gt; should be replaced by the absolute path
7913                        name of the directory the front-end is interested in.
7914    </p>
7915    <p>Possible Answers:
7916    </p>
7917    <p>
7918                            </p>
7919    <blockquote class="text">
7920    <p>LinuxSampler will answer by sending a &lt;CRLF&gt; separated list.
7921                                Each answer line begins with the settings category name
7922                                followed by a colon and then a space character &lt;SP&gt; and finally
7923                                the info character string to that setting category. At the
7924                                moment the following categories are defined:
7925    </p>
7926    <p>
7927                                    </p>
7928    <blockquote class="text">
7929    <p>DESCRIPTION -
7930                                            </p>
7931    <blockquote class="text">
7932    <p>A brief description of the directory content.
7933                                                Note that the character string may contain
7934                                                <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>.
7935    </p>
7936    </blockquote>
7937                                        
7938    
7939    <p>CREATED -
7940                                            </p>
7941    <blockquote class="text">
7942    <p>The creation date and time of the directory,
7943                                                represented in "YYYY-MM-DD HH:MM:SS" format
7944    </p>
7945    </blockquote>
7946                                        
7947    
7948    <p>MODIFIED -
7949                                            </p>
7950    <blockquote class="text">
7951    <p>The date and time of the last modification of the
7952                                                directory, represented in "YYYY-MM-DD HH:MM:SS" format
7953    </p>
7954    </blockquote>
7955                                        
7956    
7957    </blockquote>
7958                                
7959    
7960    </blockquote><p>
7961                        
7962    </p>
7963    <p>The mentioned fields above don't have to be in particular order.
7964    </p>
7965    <p>Example:
7966    </p>
7967    <p>
7968                            </p>
7969    <blockquote class="text">
7970    <p>C: "GET DB_INSTRUMENT_DIRECTORY INFO '/Piano Collection'"
7971    </p>
7972    <p>S: "DESCRIPTION: Piano collection of instruments in GigaSampler format."
7973    </p>
7974    <p>&nbsp;&nbsp;&nbsp;"CREATED: 2007-02-05 10:23:12"
7975    </p>
7976    <p>&nbsp;&nbsp;&nbsp;"MODIFIED: 2007-04-07 12:50:21"
7977    </p>
7978    <p>&nbsp;&nbsp;&nbsp;"."
7979    </p>
7980    </blockquote><p>
7981                        
7982    </p>
7983    <a name="SET DB_INSTRUMENT_DIRECTORY NAME"></a><br /><hr />
7984    <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>
7985    <a name="rfc.section.6.8.6"></a><h3>6.8.6.&nbsp;
7986    Renaming an instrument directory</h3>
7987    
7988    <p>The front-end can alter the name of a specific
7989                        instrument directory by sending the following command:
7990    </p>
7991    <p>
7992                            </p>
7993    <blockquote class="text">
7994    <p>SET DB_INSTRUMENT_DIRECTORY NAME &lt;dir&gt; &lt;name&gt;
7995    </p>
7996    </blockquote><p>
7997                        
7998    </p>
7999    <p>Where &lt;dir&gt; is the absolute path name of the directory and
8000                        &lt;name&gt; is the new name for that directory.
8001    </p>
8002    <p>Possible Answers:
8003    </p>
8004    <p>
8005                            </p>
8006    <blockquote class="text">
8007    <p>"OK" -
8008                                    </p>
8009    <blockquote class="text">
8010    <p>on success
8011    </p>
8012    </blockquote>
8013                                
8014    
8015    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
8016                                    </p>
8017    <blockquote class="text">
8018    <p>in case the given directory does not exists,
8019                                        or if a directory with name equal to the new
8020                                        name already exists.
8021    </p>
8022    </blockquote>
8023                                
8024    
8025    </blockquote><p>
8026                        
8027    </p>
8028    <p>Example:
8029    </p>
8030    <p>
8031                            </p>
8032    <blockquote class="text">
8033    <p>C: "SET DB_INSTRUMENT_DIRECTORY NAME '/Piano Collection/Acustic' 'Acoustic'"
8034    </p>
8035    <p>S: "OK"
8036    </p>
8037    </blockquote><p>
8038                        
8039    </p>
8040    <a name="MOVE DB_INSTRUMENT_DIRECTORY"></a><br /><hr />
8041    <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>
8042    <a name="rfc.section.6.8.7"></a><h3>6.8.7.&nbsp;
8043    Moving an instrument directory</h3>
8044    
8045    <p>The front-end can move a specific
8046                        instrument directory by sending the following command:
8047    </p>
8048    <p>
8049                            </p>
8050    <blockquote class="text">
8051    <p>MOVE DB_INSTRUMENT_DIRECTORY &lt;dir&gt; &lt;dst&gt;
8052    </p>
8053    </blockquote><p>
8054                        
8055    </p>
8056    <p>Where &lt;dir&gt; is the absolute path name of the directory
8057                        to move and &lt;dst&gt; is the location where the directory will
8058                        be moved to.
8059    </p>
8060    <p>Possible Answers:
8061    </p>
8062    <p>
8063                            </p>
8064    <blockquote class="text">
8065    <p>"OK" -
8066                                    </p>
8067    <blockquote class="text">
8068    <p>on success
8069    </p>
8070    </blockquote>
8071                                
8072    
8073    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
8074                                    </p>
8075    <blockquote class="text">
8076    <p>in case a given directory does not exists,
8077                                        or if a directory with name equal to the name
8078                                        of the specified directory already exists in
8079                                        the destination directory. Error is also thrown
8080                                        when trying to move a directory to a subdirectory
8081                                        of itself.
8082    </p>
8083    </blockquote>
8084                                
8085    
8086    </blockquote><p>
8087                        
8088    </p>
8089    <p>Example:
8090    </p>
8091    <p>
8092                            </p>
8093    <blockquote class="text">
8094    <p>C: "MOVE DB_INSTRUMENT_DIRECTORY '/Acoustic' '/Piano Collection/Acoustic'"
8095    </p>
8096    <p>S: "OK"
8097    </p>
8098    </blockquote><p>
8099                        
8100    </p>
8101    <a name="COPY DB_INSTRUMENT_DIRECTORY"></a><br /><hr />
8102    <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>
8103    <a name="rfc.section.6.8.8"></a><h3>6.8.8.&nbsp;
8104    Copying instrument directories</h3>
8105    
8106    <p>The front-end can copy a specific
8107                        instrument directory by sending the following command:
8108    </p>
8109    <p>
8110                            </p>
8111    <blockquote class="text">
8112    <p>COPY DB_INSTRUMENT_DIRECTORY &lt;dir&gt; &lt;dst&gt;
8113    </p>
8114    </blockquote><p>
8115                        
8116    </p>
8117    <p>Where &lt;dir&gt; is the absolute path name of the directory
8118                        to copy and &lt;dst&gt; is the location where the directory will
8119                        be copied to.
8120    </p>
8121    <p>Possible Answers:
8122    </p>
8123    <p>
8124                            </p>
8125    <blockquote class="text">
8126    <p>"OK" -
8127                                    </p>
8128    <blockquote class="text">
8129    <p>on success
8130    </p>
8131    </blockquote>
8132                                
8133    
8134    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
8135                                    </p>
8136    <blockquote class="text">
8137    <p>in case a given directory does not exists,
8138                                        or if a directory with name equal to the name
8139                                        of the specified directory already exists in
8140                                        the destination directory. Error is also thrown
8141                                        when trying to copy a directory to a subdirectory
8142                                        of itself.
8143    </p>
8144    </blockquote>
8145                                
8146    
8147    </blockquote><p>
8148                        
8149    </p>
8150    <p>Example:
8151    </p>
8152    <p>
8153                            </p>
8154    <blockquote class="text">
8155    <p>C: "COPY DB_INSTRUMENT_DIRECTORY '/Piano Collection/Acoustic' '/Acoustic/Pianos'"
8156    </p>
8157    <p>S: "OK"
8158    </p>
8159    </blockquote><p>
8160                        
8161    </p>
8162    <a name="SET DB_INSTRUMENT_DIRECTORY DESCRIPTION"></a><br /><hr />
8163    <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>
8164    <a name="rfc.section.6.8.9"></a><h3>6.8.9.&nbsp;
8165    Changing the description of directory</h3>
8166    
8167    <p>The front-end can alter the description of a specific
8168                        instrument directory by sending the following command:
8169    </p>
8170    <p>
8171                            </p>
8172    <blockquote class="text">
8173    <p>SET DB_INSTRUMENT_DIRECTORY DESCRIPTION &lt;dir&gt; &lt;desc&gt;
8174    </p>
8175    </blockquote><p>
8176                        
8177    </p>
8178    <p>Where &lt;dir&gt; is the absolute path name of the directory and
8179                        &lt;desc&gt; is the new description for the directory
8180                        (encapsulated into apostrophes, supporting escape sequences as described in chapter
8181                        "<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>").
8182    </p>
8183    <p>Possible Answers:
8184    </p>
8185    <p>
8186                            </p>
8187    <blockquote class="text">
8188    <p>"OK" -
8189                                    </p>
8190    <blockquote class="text">
8191    <p>on success
8192    </p>
8193    </blockquote>
8194                                
8195    
8196    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
8197                                    </p>
8198    <blockquote class="text">
8199    <p>in case the given directory does not exists.
8200    </p>
8201    </blockquote>
8202                                
8203    
8204    </blockquote><p>
8205                        
8206    </p>
8207    <p>Example:
8208    </p>
8209    <p>
8210                            </p>
8211    <blockquote class="text">
8212    <p>C: "SET DB_INSTRUMENT_DIRECTORY DESCRIPTION '/Piano Collection' 'A collection of piano instruments in various format.'"
8213    </p>
8214    <p>S: "OK"
8215    </p>
8216    </blockquote><p>
8217                        
8218    </p>
8219    <a name="FIND DB_INSTRUMENT_DIRECTORIES"></a><br /><hr />
8220    <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>
8221    <a name="rfc.section.6.8.10"></a><h3>6.8.10.&nbsp;
8222    Finding directories</h3>
8223    
8224    <p>The front-end can search for directories
8225                        in specific directory by sending the following command:
8226    </p>
8227    <p>
8228                            </p>
8229    <blockquote class="text">
8230    <p>FIND DB_INSTRUMENT_DIRECTORIES [NON_RECURSIVE] &lt;dir&gt; &lt;criteria-list&gt;
8231    </p>
8232    </blockquote><p>
8233                        
8234    </p>
8235    <p>Where &lt;dir&gt; should be replaced by the absolute path
8236                        name of the directory to search in. If NON_RECURSIVE is specified, the
8237                        directories located in subdirectories of the specified directory will not
8238                        be searched. &lt;criteria-list&gt; is a list of search criterias
8239                        in form of "key1=val1 key2=val2 ...". The following criterias are
8240                        allowed:
8241    </p>
8242    <p>
8243                          
8244    <p>NAME='&lt;search-string&gt;'
8245                              </p>
8246    <blockquote class="text">
8247    <p>Restricts the search to directories, which names
8248                                  satisfy the supplied search string (encapsulated into apostrophes,
8249                                  supporting escape sequences as described in chapter
8250                                  "<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>").
8251    </p>
8252    </blockquote><p>
8253                          
8254    </p>
8255    
8256                          
8257    <p>CREATED='[&lt;date-after&gt;]..[&lt;date-before&gt;]'
8258                              </p>
8259    <blockquote class="text">
8260    <p>Restricts the search to directories, which creation
8261                                  date satisfies the specified period, where &lt;date-after&gt;
8262                                  and &lt;date-before&gt; are in "YYYY-MM-DD HH:MM:SS" format.
8263                                  If &lt;date-after&gt; is omitted the search is restricted to
8264                                  directories created before &lt;date-before&gt;. If
8265                                  &lt;date-before&gt; is omitted, the search is restricted
8266                                  to directories created after &lt;date-after&gt;.
8267    </p>
8268    </blockquote><p>
8269                          
8270    </p>
8271    
8272                          
8273    <p>MODIFIED='[&lt;date-after&gt;]..[&lt;date-before&gt;]'
8274                              </p>
8275    <blockquote class="text">
8276    <p>Restricts the search to directories, which
8277                                  date of last modification satisfies the specified period, where
8278                                  &lt;date-after&gt; and &lt;date-before&gt; are in "YYYY-MM-DD HH:MM:SS"
8279                                  format. If &lt;date-after&gt; is omitted the search is restricted to
8280                                  directories, which are last modified before &lt;date-before&gt;. If
8281                                  &lt;date-before&gt; is omitted, the search is restricted to directories,
8282                                  which are last modified after &lt;date-after&gt;.
8283    </p>
8284    </blockquote><p>
8285                          
8286    </p>
8287    
8288                          
8289    <p>DESCRIPTION='&lt;search-string&gt;'
8290                              </p>
8291    <blockquote class="text">
8292    <p>Restricts the search to directories with description
8293                                  that satisfies the supplied search string
8294                                  (encapsulated into apostrophes, supporting escape
8295                                  sequences as described in chapter
8296                                  "<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>").
8297    </p>
8298    </blockquote><p>
8299                          
8300    </p>
8301                        
8302    
8303    <p>Where &lt;search-string&gt; is either a regular expression, or a
8304                        word list separated with spaces for OR search and with '+' for AND search.
8305    </p>
8306    <p>Possible Answers:
8307    </p>
8308    <p>
8309                            </p>
8310    <blockquote class="text">
8311    <p>A comma separated list with the absolute path names (encapsulated into
8312                                apostrophes) of all directories in the specified directory that satisfy
8313                                the supplied search criterias.
8314    </p>
8315    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
8316                                    </p>
8317    <blockquote class="text">
8318    <p>if the given directory does not exist.
8319    </p>
8320    </blockquote>
8321                                
8322    
8323    </blockquote><p>
8324                        
8325    </p>
8326    <p>Example:
8327    </p>
8328    <p>
8329                            </p>
8330    <blockquote class="text">
8331    <p>C: "FIND DB_INSTRUMENT_DIRECTORIES '/' NAME='Piano'"
8332    </p>
8333    <p>S: "'/Piano Collection'"
8334    </p>
8335    </blockquote><p>
8336                        
8337    </p>
8338    <p>
8339                            </p>
8340    <blockquote class="text">
8341    <p>C: "FIND DB_INSTRUMENT_DIRECTORIES '/' CREATED='..2007-04-01 09:30:13'"
8342    </p>
8343    <p>S: "'/Piano Collection','/Percussions'"
8344    </p>
8345    </blockquote><p>
8346                        
8347    </p>
8348    <a name="ADD DB_INSTRUMENTS"></a><br /><hr />
8349    <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>
8350    <a name="rfc.section.6.8.11"></a><h3>6.8.11.&nbsp;
8351    Adding instruments to the instruments database</h3>
8352    
8353    <p>The front-end can add one or more instruments
8354                        to the instruments database by sending the following command:
8355    </p>
8356    <p>
8357                            </p>
8358    <blockquote class="text">
8359    <p>ADD DB_INSTRUMENTS [NON_MODAL] [&lt;mode&gt;[ FILE_AS_DIR]] &lt;db_dir&gt; &lt;file_path&gt; [&lt;instr_index&gt;]
8360    </p>
8361    </blockquote><p>
8362                        
8363    </p>
8364    <p>Where &lt;db_dir&gt; is the absolute path name of a directory
8365                        (encapsulated into apostrophes) in the instruments database in which
8366                        only the new instruments (that are not already in the database) will
8367                        be added, &lt;file_path&gt; is the absolute path name of a file or
8368                        directory in the file system (encapsulated into apostrophes). In case
8369                        an instrument file is supplied, only the instruments in the specified
8370                        file will be added to the instruments database. If the optional
8371                        &lt;instr_index&gt; (the index of the instrument within the given file)
8372                        is supplied too, then only the specified instrument will be added.
8373                        In case a directory is supplied, the instruments in that directory
8374                        will be added. The OPTIONAL &lt;mode&gt; argument is only applied
8375                        when a directory is provided as &lt;file_path&gt; and specifies how the
8376                        scanning will be done and has exactly the following possibilities:
8377    </p>
8378    <p>
8379                            </p>
8380    <blockquote class="text">
8381    <p>"RECURSIVE" -
8382                                    </p>
8383    <blockquote class="text">
8384    <p>All instruments will be processed, including those
8385                                        in the subdirectories, and the respective subdirectory
8386                                        tree structure will be recreated in the instruments
8387                                        database
8388    </p>
8389    </blockquote>
8390                                
8391    
8392    <p>"NON_RECURSIVE" -
8393                                    </p>
8394    <blockquote class="text">
8395    <p>Only the instruments in the specified directory
8396                                        will be added, the instruments in the subdirectories
8397                                        will not be processed.
8398    </p>
8399    </blockquote>
8400                                
8401    
8402    <p>"FLAT" -
8403                                    </p>
8404    <blockquote class="text">
8405    <p>All instruments will be processed, including those
8406                                        in the subdirectories, but the respective subdirectory
8407                                        structure will not be recreated in the instruments
8408                                        database. All instruments will be added directly in
8409                                        the specified database directory.
8410    </p>
8411    </blockquote>
8412                                
8413    
8414    </blockquote><p>
8415                        
8416    </p>
8417    <p> If FILE_AS_DIR argument is supplied, all instruments in an instrument
8418                     file will be added to a separate directory in the instruments database, which
8419                     name will be the name of the instrument file with the file extension stripped off.
8420                    
8421    </p>
8422    <p>The difference between regular and NON_MODAL versions of the command
8423                        is that the regular command returns when the scanning is finished
8424                        while NON_MODAL version returns immediately and a background process is launched.
8425                        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>
8426                        command can be used to monitor the scanning progress.
8427    </p>
8428    <p>Possible Answers:
8429    </p>
8430    <p>
8431                            </p>
8432    <blockquote class="text">
8433    <p>"OK" -
8434                                    </p>
8435    <blockquote class="text">
8436    <p>on success when NON_MODAL is not supplied
8437    </p>
8438    </blockquote>
8439                                
8440    
8441    <p>"OK[&lt;job-id&gt;]" -
8442                                    </p>
8443    <blockquote class="text">
8444    <p>on success when NON_MODAL is supplied, where &lt;job-id&gt;
8445                                        is a numerical ID used to obtain status information about the job progress.
8446                                        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>
8447                                        
8448    </p>
8449    </blockquote>
8450                                
8451    
8452    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
8453                                    </p>
8454    <blockquote class="text">
8455    <p>if an invalid path is specified.
8456    </p>
8457    </blockquote>
8458                                
8459    
8460    </blockquote><p>
8461                        
8462    </p>
8463    <p>Examples:
8464    </p>
8465    <p>
8466                            </p>
8467    <blockquote class="text">
8468    <p>C: "ADD DB_INSTRUMENTS '/Piano Collection' '/home/me/gigs/PMI Bosendorfer 290.gig' 0"
8469    </p>
8470    <p>S: "OK"
8471    </p>
8472    </blockquote><p>
8473                        
8474    </p>
8475    <a name="REMOVE DB_INSTRUMENT"></a><br /><hr />
8476    <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>
8477    <a name="rfc.section.6.8.12"></a><h3>6.8.12.&nbsp;
8478    Removing an instrument</h3>
8479    
8480    <p>The front-end can remove a particular instrument
8481                        from the instruments database by sending the following command:
8482    </p>
8483    <p>
8484                            </p>
8485    <blockquote class="text">
8486    <p>REMOVE DB_INSTRUMENT &lt;instr_path&gt;
8487    </p>
8488    </blockquote><p>
8489                        
8490    </p>
8491    <p>Where &lt;instr_path&gt; is the absolute path name
8492                        (in the instruments database) of the instrument to remove.
8493    </p>
8494    <p>Possible Answers:
8495    </p>
8496    <p>
8497                            </p>
8498    <blockquote class="text">
8499    <p>"OK" -
8500                                    </p>
8501    <blockquote class="text">
8502    <p>if the instrument is removed successfully
8503    </p>
8504    </blockquote>
8505                                
8506    
8507    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
8508                                    </p>
8509    <blockquote class="text">
8510    <p>if the given path does not exist or
8511                                        is a directory.
8512    </p>
8513    </blockquote>
8514                                
8515    
8516    </blockquote><p>
8517                        
8518    </p>
8519    <p>Examples:
8520    </p>
8521    <p>
8522                            </p>
8523    <blockquote class="text">
8524    <p>C: "REMOVE DB_INSTRUMENT '/Piano Collection/Bosendorfer 290'"
8525    </p>
8526    <p>S: "OK"
8527    </p>
8528    </blockquote><p>
8529                        
8530    </p>
8531    <a name="GET DB_INSTRUMENTS"></a><br /><hr />
8532    <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>
8533    <a name="rfc.section.6.8.13"></a><h3>6.8.13.&nbsp;
8534    Getting amount of instruments</h3>
8535    
8536    <p>The front-end can retrieve the current amount of
8537                        instruments in a specific directory by sending the following command:
8538    </p>
8539    <p>
8540                            </p>
8541    <blockquote class="text">
8542    <p>GET DB_INSTRUMENTS [RECURSIVE] &lt;dir&gt;
8543    </p>
8544    </blockquote><p>
8545                        
8546    </p>
8547    <p>Where &lt;dir&gt; should be replaced by the absolute path name
8548                        of the directory. If RECURSIVE is specified, the number of all
8549                        instruments, including those located in subdirectories of the
8550                        specified directory, will be returned.
8551    </p>
8552    <p>Possible Answers:
8553    </p>
8554    <p>
8555                            </p>
8556    <blockquote class="text">
8557    <p>The current number of instruments
8558                                in the specified directory.
8559    </p>
8560    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
8561                                    </p>
8562    <blockquote class="text">
8563    <p>if the given directory does not exist.
8564    </p>
8565    </blockquote>
8566                                
8567    
8568    </blockquote><p>
8569                        
8570    </p>
8571    <p>Example:
8572    </p>
8573    <p>
8574                            </p>
8575    <blockquote class="text">
8576    <p>C: "GET DB_INSTRUMENTS '/Piano Collection'"
8577    </p>
8578    <p>S: "2"
8579    </p>
8580    </blockquote><p>
8581                        
8582    </p>
8583    <a name="LIST DB_INSTRUMENTS"></a><br /><hr />
8584    <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>
8585    <a name="rfc.section.6.8.14"></a><h3>6.8.14.&nbsp;
8586    Listing all instruments in specific directory</h3>
8587    
8588    <p>The front-end can retrieve the current list of instruments
8589                        in specific directory by sending the following command:
8590    </p>
8591    <p>
8592                            </p>
8593    <blockquote class="text">
8594    <p>LIST DB_INSTRUMENTS [RECURSIVE] &lt;dir&gt;
8595    </p>
8596    </blockquote><p>
8597                        
8598    </p>
8599    <p>Where &lt;dir&gt; should be replaced by the absolute path
8600                        name of the directory. If RECURSIVE is specified, the absolute path
8601                        names of all instruments, including those located in subdirectories
8602                        of the specified directory, will be returned.
8603    </p>
8604    <p>Possible Answers:
8605    </p>
8606    <p>
8607                            </p>
8608    <blockquote class="text">
8609    <p>A comma separated list of all instruments
8610                                (encapsulated into apostrophes) in the specified directory.
8611    </p>
8612    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
8613                                    </p>
8614    <blockquote class="text">
8615    <p>if the given directory does not exist.
8616    </p>
8617    </blockquote>
8618                                
8619    
8620    </blockquote><p>
8621                        
8622    </p>
8623    <p>Example:
8624    </p>
8625    <p>
8626                            </p>
8627    <blockquote class="text">
8628    <p>C: "LIST DB_INSTRUMENTS '/Piano Collection'"
8629    </p>
8630    <p>S: "'Bosendorfer 290','Steinway D'"
8631    </p>
8632    </blockquote><p>
8633                        
8634    </p>
8635    <p>
8636                            </p>
8637    <blockquote class="text">
8638    <p>C: "LIST DB_INSTRUMENTS RECURSIVE '/Piano Collection'"
8639    </p>
8640    <p>S: "'/Piano Collection/Bosendorfer 290','/Piano Collection/Steinway D','/Piano Collection/Lite/Free Piano'"
8641    </p>
8642    </blockquote><p>
8643                        
8644    </p>
8645    <a name="GET DB_INSTRUMENT INFO"></a><br /><hr />
8646    <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>
8647    <a name="rfc.section.6.8.15"></a><h3>6.8.15.&nbsp;
8648    Getting instrument information</h3>
8649    
8650    <p>The front-end can ask for the current settings of an
8651                        instrument by sending the following command:
8652    </p>
8653    <p>
8654                            </p>
8655    <blockquote class="text">
8656    <p>GET DB_INSTRUMENT INFO &lt;instr_path&gt;
8657    </p>
8658    </blockquote><p>
8659                        
8660    </p>
8661    <p>Where &lt;instr_path&gt; should be replaced by the absolute path
8662                        name of the instrument the front-end is interested in.
8663    </p>
8664    <p>Possible Answers:
8665    </p>
8666    <p>
8667                            </p>
8668    <blockquote class="text">
8669    <p>LinuxSampler will answer by sending a &lt;CRLF&gt; separated list.
8670                                Each answer line begins with the settings category name
8671                                followed by a colon and then a space character &lt;SP&gt; and finally
8672                                the info character string to that setting category. At the
8673                                moment the following categories are defined:
8674    </p>
8675    <p>
8676                                    </p>
8677    <blockquote class="text">
8678    <p>INSTRUMENT_FILE -
8679                                            </p>
8680    <blockquote class="text">
8681    <p>File name of the instrument.
8682                                                Note that the character string may contain
8683                                                <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>.
8684    </p>
8685    </blockquote>
8686                                        
8687    
8688    <p>INSTRUMENT_NR -
8689                                            </p>
8690    <blockquote class="text">
8691    <p>Index of the instrument within the file.
8692    </p>
8693    </blockquote>
8694                                        
8695    
8696    <p>FORMAT_FAMILY -
8697                                            </p>
8698    <blockquote class="text">
8699    <p>The format family of the instrument.
8700    </p>
8701    </blockquote>
8702                                        
8703    
8704    <p>FORMAT_VERSION -
8705                                            </p>
8706    <blockquote class="text">
8707    <p>The format version of the instrument.
8708    </p>
8709    </blockquote>
8710                                        
8711    
8712    <p>SIZE -
8713                                            </p>
8714    <blockquote class="text">
8715    <p>The size of the instrument in bytes.
8716    </p>
8717    </blockquote>
8718                                        
8719    
8720    <p>CREATED -
8721                                            </p>
8722    <blockquote class="text">
8723    <p>The date and time when the instrument is added
8724                                                in the instruments database, represented in
8725                                               "YYYY-MM-DD HH:MM:SS" format
8726    </p>
8727    </blockquote>
8728                                        
8729    
8730    <p>MODIFIED -
8731                                            </p>
8732    <blockquote class="text">
8733    <p>The date and time of the last modification of the
8734                                                instrument's database settings, represented in
8735                                                "YYYY-MM-DD HH:MM:SS" format
8736    </p>
8737    </blockquote>
8738                                        
8739    
8740    <p>DESCRIPTION -
8741                                            </p>
8742    <blockquote class="text">
8743    <p>A brief description of the instrument.
8744                                                Note that the character string may contain
8745                                                <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>.
8746    </p>
8747    </blockquote>
8748                                        
8749    
8750    <p>IS_DRUM -
8751                                            </p>
8752    <blockquote class="text">
8753    <p>either true or false, determines whether the
8754                                                instrument is a drumkit or a chromatic instrument
8755    </p>
8756    </blockquote>
8757                                        
8758    
8759    <p>PRODUCT -
8760                                            </p>
8761    <blockquote class="text">
8762    <p>The product title of the instrument.
8763                                                Note that the character string may contain
8764                                                <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>.
8765    </p>
8766    </blockquote>
8767                                        
8768    
8769    <p>ARTISTS -
8770                                            </p>
8771    <blockquote class="text">
8772    <p>Lists the artist names.
8773                                                Note that the character string may contain
8774                                                <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>.
8775    </p>
8776    </blockquote>
8777                                        
8778    
8779    <p>KEYWORDS -
8780                                            </p>
8781    <blockquote class="text">
8782    <p>Provides a list of keywords that refer to the instrument.
8783                                                Keywords are separated with semicolon and blank.
8784                                                Note that the character string may contain
8785                                                <a class='info' href='#character_set'>escape sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>.
8786    </p>
8787    </blockquote>
8788                                        
8789    
8790    </blockquote>
8791                                
8792    
8793    </blockquote><p>
8794                        
8795    </p>
8796    <p>The mentioned fields above don't have to be in particular order.
8797    </p>
8798    <p>Example:
8799    </p>
8800    <p>
8801                            </p>
8802    <blockquote class="text">
8803    <p>C: "GET DB_INSTRUMENT INFO '/Piano Collection/Bosendorfer 290'"
8804    </p>
8805    <p>S: "INSTRUMENT_FILE: /home/me/gigs/Bosendorfer 290.gig"
8806    </p>
8807    <p>&nbsp;&nbsp;&nbsp;"INSTRUMENT_NR: 0"
8808    </p>
8809    <p>&nbsp;&nbsp;&nbsp;"FORMAT_FAMILY: GIG"
8810    </p>
8811    <p>&nbsp;&nbsp;&nbsp;"FORMAT_VERSION: 2"
8812    </p>
8813    <p>&nbsp;&nbsp;&nbsp;"SIZE: 2050871870"
8814    </p>
8815    <p>&nbsp;&nbsp;&nbsp;"CREATED: 2007-02-05 10:23:12"
8816    </p>
8817    <p>&nbsp;&nbsp;&nbsp;"MODIFIED: 2007-04-07 12:50:21"
8818    </p>
8819    <p>&nbsp;&nbsp;&nbsp;"DESCRIPTION: "
8820    </p>
8821    <p>&nbsp;&nbsp;&nbsp;"IS_DRUM: false"
8822    </p>
8823    <p>&nbsp;&nbsp;&nbsp;"PRODUCT: GRANDIOSO Bosendorfer 290"
8824    </p>
8825    <p>&nbsp;&nbsp;&nbsp;"ARTISTS: Post Musical Instruments"
8826    </p>
8827    <p>&nbsp;&nbsp;&nbsp;"KEYWORDS: Bosendorfer"
8828    </p>
8829    <p>&nbsp;&nbsp;&nbsp;"."
8830    </p>
8831    </blockquote><p>
8832                        
8833    </p>
8834    <a name="SET DB_INSTRUMENT NAME"></a><br /><hr />
8835    <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>
8836    <a name="rfc.section.6.8.16"></a><h3>6.8.16.&nbsp;
8837    Renaming an instrument</h3>
8838    
8839    <p>The front-end can alter the name of a specific
8840                        instrument by sending the following command:
8841    </p>
8842    <p>
8843                            </p>
8844    <blockquote class="text">
8845    <p>SET DB_INSTRUMENT NAME &lt;instr&gt; &lt;name&gt;
8846    </p>
8847    </blockquote><p>
8848                        
8849    </p>
8850    <p>Where &lt;instr&gt; is the absolute path name of the instrument and
8851                        &lt;name&gt; is the new name for that instrument.
8852    </p>
8853    <p>Possible Answers:
8854    </p>
8855    <p>
8856                            </p>
8857    <blockquote class="text">
8858    <p>"OK" -
8859                                    </p>
8860    <blockquote class="text">
8861    <p>on success
8862    </p>
8863    </blockquote>
8864                                
8865    
8866    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
8867                                    </p>
8868    <blockquote class="text">
8869    <p>in case the given instrument does not exists,
8870                                        or if an instrument with name equal to the new
8871                                        name already exists.
8872    </p>
8873    </blockquote>
8874                                
8875    
8876    </blockquote><p>
8877                        
8878    </p>
8879    <p>Example:
8880    </p>
8881    <p>
8882                            </p>
8883    <blockquote class="text">
8884    <p>C: "SET DB_INSTRUMENT NAME '/Piano Collection/Bosendorfer' 'Bosendorfer 290'"
8885    </p>
8886    <p>S: "OK"
8887    </p>
8888    </blockquote><p>
8889                        
8890    </p>
8891    <a name="MOVE DB_INSTRUMENT"></a><br /><hr />
8892    <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>
8893    <a name="rfc.section.6.8.17"></a><h3>6.8.17.&nbsp;
8894    Moving an instrument</h3>
8895    
8896    <p>The front-end can move a specific instrument to another directory by
8897                        sending the following command:
8898    </p>
8899    <p>
8900                            </p>
8901    <blockquote class="text">
8902    <p>MOVE DB_INSTRUMENT &lt;instr&gt; &lt;dst&gt;
8903    </p>
8904    </blockquote><p>
8905                        
8906    </p>
8907    <p>Where &lt;instr&gt; is the absolute path name of the instrument
8908                        to move and &lt;dst&gt; is the directory where the instrument will
8909                        be moved to.
8910    </p>
8911    <p>Possible Answers:
8912    </p>
8913    <p>
8914                            </p>
8915    <blockquote class="text">
8916    <p>"OK" -
8917                                    </p>
8918    <blockquote class="text">
8919    <p>on success
8920    </p>
8921    </blockquote>
8922                                
8923    
8924    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
8925                                    </p>
8926    <blockquote class="text">
8927    <p>in case the given instrument does not exists,
8928                                        or if an instrument with name equal to the name of the
8929                                        specified instrument already exists in the destination
8930                                        directory.
8931    </p>
8932    </blockquote>
8933                                
8934    
8935    </blockquote><p>
8936                        
8937    </p>
8938    <p>Example:
8939    </p>
8940    <p>
8941                            </p>
8942    <blockquote class="text">
8943    <p>C: "MOVE DB_INSTRUMENT '/Piano Collection/Bosendorfer 290' '/Piano Collection/Acoustic'"
8944    </p>
8945    <p>S: "OK"
8946    </p>
8947    </blockquote><p>
8948                        
8949    </p>
8950    <a name="COPY DB_INSTRUMENT"></a><br /><hr />
8951    <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>
8952    <a name="rfc.section.6.8.18"></a><h3>6.8.18.&nbsp;
8953    Copying instruments</h3>
8954    
8955    <p>The front-end can copy a specific instrument to another directory by
8956                        sending the following command:
8957    </p>
8958    <p>
8959                            </p>
8960    <blockquote class="text">
8961    <p>COPY DB_INSTRUMENT &lt;instr&gt; &lt;dst&gt;
8962    </p>
8963    </blockquote><p>
8964                        
8965    </p>
8966    <p>Where &lt;instr&gt; is the absolute path name of the instrument
8967                        to copy and &lt;dst&gt; is the directory where the instrument will
8968                        be copied to.
8969    </p>
8970    <p>Possible Answers:
8971    </p>
8972    <p>
8973                            </p>
8974    <blockquote class="text">
8975    <p>"OK" -
8976                                    </p>
8977    <blockquote class="text">
8978    <p>on success
8979    </p>
8980    </blockquote>
8981                                
8982    
8983    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
8984                                    </p>
8985    <blockquote class="text">
8986    <p>in case the given instrument does not exists,
8987                                        or if an instrument with name equal to the name of the
8988                                        specified instrument already exists in the destination
8989                                        directory.
8990    </p>
8991    </blockquote>
8992                                
8993    
8994    </blockquote><p>
8995                        
8996    </p>
8997    <p>Example:
8998    </p>
8999    <p>
9000                            </p>
9001    <blockquote class="text">
9002    <p>C: "COPY DB_INSTRUMENT '/Piano Collection/Bosendorfer 290' '/Acoustic/Pianos/'"
9003    </p>
9004    <p>S: "OK"
9005    </p>
9006    </blockquote><p>
9007                        
9008    </p>
9009    <a name="SET DB_INSTRUMENT DESCRIPTION"></a><br /><hr />
9010    <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>
9011    <a name="rfc.section.6.8.19"></a><h3>6.8.19.&nbsp;
9012    Changing the description of instrument</h3>
9013    
9014    <p>The front-end can alter the description of a specific
9015                        instrument by sending the following command:
9016    </p>
9017    <p>
9018                            </p>
9019    <blockquote class="text">
9020    <p>SET DB_INSTRUMENT DESCRIPTION &lt;instr&gt; &lt;desc&gt;
9021    </p>
9022    </blockquote><p>
9023                        
9024    </p>
9025    <p>Where &lt;instr&gt; is the absolute path name of the instrument and
9026                        &lt;desc&gt; is the new description for the instrument
9027                        (encapsulated into apostrophes, supporting escape sequences as described in chapter
9028                        "<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>").
9029    </p>
9030    <p>Possible Answers:
9031    </p>
9032    <p>
9033                            </p>
9034    <blockquote class="text">
9035    <p>"OK" -
9036                                    </p>
9037    <blockquote class="text">
9038    <p>on success
9039    </p>
9040    </blockquote>
9041                                
9042    
9043    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
9044                                    </p>
9045    <blockquote class="text">
9046    <p>in case the given instrument does not exists.
9047    </p>
9048    </blockquote>
9049                                
9050    
9051    </blockquote><p>
9052                        
9053    </p>
9054    <p>Example:
9055    </p>
9056    <p>
9057                            </p>
9058    <blockquote class="text">
9059    <p>C: "SET DB_INSTRUMENT DESCRIPTION '/Piano Collection/Acoustic/Bosendorfer 290' 'No comment :)'"
9060    </p>
9061    <p>S: "OK"
9062    </p>
9063    </blockquote><p>
9064                        
9065    </p>
9066    <a name="FIND DB_INSTRUMENTS"></a><br /><hr />
9067    <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>
9068    <a name="rfc.section.6.8.20"></a><h3>6.8.20.&nbsp;
9069    Finding instruments</h3>
9070    
9071    <p>The front-end can search for instruments
9072                        in specific directory by sending the following command:
9073    </p>
9074    <p>
9075                            </p>
9076    <blockquote class="text">
9077    <p>FIND DB_INSTRUMENTS [NON_RECURSIVE] &lt;dir&gt; &lt;criteria-list&gt;
9078    </p>
9079    </blockquote><p>
9080                        
9081    </p>
9082    <p>Where &lt;dir&gt; should be replaced by the absolute path
9083                        name of the directory to search in. If NON_RECURSIVE is specified, the
9084                        directories located in subdirectories of the specified directory will not
9085                        be searched. &lt;criteria-list&gt; is a list of search criterias
9086                        in form of "key1=val1 key2=val2 ...". The following criterias are
9087                        allowed:
9088    </p>
9089    <p>
9090                          
9091    <p>NAME='&lt;search-string&gt;'
9092                              </p>
9093    <blockquote class="text">
9094    <p>Restricts the search to instruments, which names
9095                                  satisfy the supplied search string (encapsulated into apostrophes,
9096                                  supporting escape sequences as described in chapter
9097                                  "<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>").
9098    </p>
9099    </blockquote><p>
9100                          
9101    </p>
9102    
9103                          
9104    <p>SIZE=[&lt;min&gt;]..[&lt;max&gt;]
9105                              </p>
9106    <blockquote class="text">
9107    <p>Restricts the search to instruments, which
9108                                  size is in the specified range. If &lt;min&gt; is omitted,
9109                                  the search results are restricted to instruments with size less then
9110                                  or equal to &lt;max&gt;. If &lt;max&gt; is omitted, the
9111                                  search is restricted to instruments with size greater then
9112                                  or equal to &lt;min&gt;.
9113    </p>
9114    </blockquote><p>
9115                          
9116    </p>
9117    
9118                          
9119    <p>CREATED='[&lt;date-after&gt;]..[&lt;date-before&gt;]'
9120                              </p>
9121    <blockquote class="text">
9122    <p>Restricts the search to instruments, which creation
9123                                  date satisfies the specified period, where &lt;date-after&gt;
9124                                  and &lt;date-before&gt; are in "YYYY-MM-DD HH:MM:SS" format.
9125                                  If &lt;date-after&gt; is omitted the search is restricted to
9126                                  instruments created before &lt;date-before&gt;. If
9127                                  &lt;date-before&gt; is omitted, the search is restricted
9128                                  to instruments created after &lt;date-after&gt;.
9129    </p>
9130    </blockquote><p>
9131                          
9132    </p>
9133    
9134                          
9135    <p>MODIFIED='[&lt;date-after&gt;]..[&lt;date-before&gt;]'
9136                              </p>
9137    <blockquote class="text">
9138    <p>Restricts the search to instruments, which
9139                                  date of last modification satisfies the specified period, where
9140                                  &lt;date-after&gt; and &lt;date-before&gt; are in "YYYY-MM-DD HH:MM:SS"
9141                                  format. If &lt;date-after&gt; is omitted the search is restricted to
9142                                  instruments, which are last modified before &lt;date-before&gt;. If
9143                                  &lt;date-before&gt; is omitted, the search is restricted to instruments,
9144                                  which are last modified after &lt;date-after&gt;.
9145    </p>
9146    </blockquote><p>
9147                          
9148    </p>
9149    
9150                          
9151    <p>DESCRIPTION='&lt;search-string&gt;'
9152                              </p>
9153    <blockquote class="text">
9154    <p>Restricts the search to instruments with description
9155                                  that satisfies the supplied search string (encapsulated into apostrophes,
9156                                  supporting escape sequences as described in chapter
9157                                  "<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>").
9158    </p>
9159    </blockquote><p>
9160                          
9161    </p>
9162    
9163                          
9164    <p>PRODUCT='&lt;search-string&gt;'
9165                              </p>
9166    <blockquote class="text">
9167    <p>Restricts the search to instruments with product info
9168                                  that satisfies the supplied search string (encapsulated into apostrophes,
9169                                  supporting escape sequences as described in chapter
9170                                  "<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>").
9171    </p>
9172    </blockquote><p>
9173                          
9174    </p>
9175    
9176                          
9177    <p>ARTISTS='&lt;search-string&gt;'
9178                              </p>
9179    <blockquote class="text">
9180    <p>Restricts the search to instruments with artists info
9181                                  that satisfies the supplied search string (encapsulated into apostrophes,
9182                                  supporting escape sequences as described in chapter
9183                                  "<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>").
9184    </p>
9185    </blockquote><p>
9186                          
9187    </p>
9188    
9189                          
9190    <p>KEYWORDS='&lt;search-string&gt;'
9191                              </p>
9192    <blockquote class="text">
9193    <p>Restricts the search to instruments with keyword list
9194                                  that satisfies the supplied search string (encapsulated into apostrophes,
9195                                  supporting escape sequences as described in chapter
9196                                  "<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>").
9197    </p>
9198    </blockquote><p>
9199                          
9200    </p>
9201    
9202                          
9203    <p>IS_DRUM=true | false
9204                              </p>
9205    <blockquote class="text">
9206    <p>Either true or false. Restricts the search to
9207                                  drum kits or chromatic instruments.
9208    </p>
9209    </blockquote><p>
9210                          
9211    </p>
9212    
9213                          
9214    <p>FORMAT_FAMILIES='&lt;format-list&gt;'
9215                              </p>
9216    <blockquote class="text">
9217    <p>Restricts the search to instruments of the supplied format families,
9218                                  where &lt;format-list&gt; is a comma separated list of format families.
9219    </p>
9220    </blockquote><p>
9221                          
9222    </p>
9223                        
9224    
9225    <p>Where &lt;search-string&gt; is either a regular expression, or a
9226                        word list separated with spaces for OR search and with '+' for AND search.
9227    </p>
9228    <p>Possible Answers:
9229    </p>
9230    <p>
9231                            </p>
9232    <blockquote class="text">
9233    <p>A comma separated list with the absolute path names (encapsulated into
9234                                apostrophes) of all instruments in the specified directory that satisfy
9235                                the supplied search criterias.
9236    </p>
9237    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
9238                                    </p>
9239    <blockquote class="text">
9240    <p>if the given directory does not exist.
9241    </p>
9242    </blockquote>
9243                                
9244    
9245    </blockquote><p>
9246                        
9247    </p>
9248    <p>Example:
9249    </p>
9250    <p>
9251                            </p>
9252    <blockquote class="text">
9253    <p>C: "FIND DB_INSTRUMENTS '/Piano Collection' NAME='bosendorfer+290'"
9254    </p>
9255    <p>S: "'/Piano Collection/Bosendorfer 290'"
9256    </p>
9257    </blockquote><p>
9258                        
9259    </p>
9260    <p>
9261                            </p>
9262    <blockquote class="text">
9263    <p>C: "FIND DB_INSTRUMENTS '/Piano Collection' CREATED='2007-04-01 09:30:13..'"
9264    </p>
9265    <p>S: "'/Piano Collection/Bosendorfer 290','/Piano Collection/Steinway D'"
9266    </p>
9267    </blockquote><p>
9268                        
9269    </p>
9270    <a name="GET DB_INSTRUMENTS_JOB INFO"></a><br /><hr />
9271    <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>
9272    <a name="rfc.section.6.8.21"></a><h3>6.8.21.&nbsp;
9273    Getting job status information</h3>
9274    
9275    <p>The front-end can ask for the current status of a
9276                        particular database instruments job by sending the following command:
9277    </p>
9278    <p>
9279                            </p>
9280    <blockquote class="text">
9281    <p>GET DB_INSTRUMENTS_JOB INFO &lt;job-id&gt;
9282    </p>
9283    </blockquote><p>
9284                        
9285    </p>
9286    <p>Where &lt;job-id&gt; should be replaced by the numerical ID
9287                        of the job the front-end is interested in.
9288    </p>
9289    <p>Possible Answers:
9290    </p>
9291    <p>
9292                            </p>
9293    <blockquote class="text">
9294    <p>LinuxSampler will answer by sending a &lt;CRLF&gt; separated list.
9295                                Each answer line begins with the settings category name
9296                                followed by a colon and then a space character &lt;SP&gt; and finally
9297                                the info character string to that setting category. At the
9298                                moment the following categories are defined:
9299    </p>
9300    <p>
9301                                    </p>
9302    <blockquote class="text">
9303    <p>FILES_TOTAL -
9304                                            </p>
9305    <blockquote class="text">
9306    <p>The total number of files scheduled for scanning
9307    </p>
9308    </blockquote>
9309                                        
9310    
9311    <p>FILES_SCANNED -
9312                                            </p>
9313    <blockquote class="text">
9314    <p>The current number of scanned files
9315    </p>
9316    </blockquote>
9317                                        
9318    
9319    <p>SCANNING -
9320                                            </p>
9321    <blockquote class="text">
9322    <p>The absolute path name of the file which is currently
9323                                                being scanned
9324    </p>
9325    </blockquote>
9326                                        
9327    
9328    <p>STATUS -
9329                                            </p>
9330    <blockquote class="text">
9331    <p>An integer value between 0 and 100 indicating the
9332                                                scanning progress percentage of the file which is
9333                                                currently being scanned
9334    </p>
9335    </blockquote>
9336                                        
9337    
9338    </blockquote>
9339                                
9340    
9341    </blockquote><p>
9342                        
9343    </p>
9344    <p>The mentioned fields above don't have to be in particular order.
9345    </p>
9346    <p>Example:
9347    </p>
9348    <p>
9349                            </p>
9350    <blockquote class="text">
9351    <p>C: "GET DB_INSTRUMENTS_JOB INFO 2"
9352    </p>
9353    <p>S: "FILES_TOTAL: 12"
9354    </p>
9355    <p>&nbsp;&nbsp;&nbsp;"FILES_SCANNED: 7"
9356    </p>
9357    <p>&nbsp;&nbsp;&nbsp;"SCANNING: /home/me/gigs/Bosendorfer 290.gig"
9358    </p>
9359    <p>&nbsp;&nbsp;&nbsp;"STATUS: 42"
9360    </p>
9361    <p>&nbsp;&nbsp;&nbsp;"."
9362    </p>
9363    </blockquote><p>
9364                        
9365    </p>
9366    <a name="FORMAT INSTRUMENTS_DB"></a><br /><hr />
9367    <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>
9368    <a name="rfc.section.6.8.22"></a><h3>6.8.22.&nbsp;
9369    Formatting the instruments database</h3>
9370    
9371    <p>The front-end can remove all instruments and directories and re-create
9372                        the instruments database structure (e.g., in case of a database corruption)
9373                        by sending the following command:
9374    </p>
9375    <p>
9376                            </p>
9377    <blockquote class="text">
9378    <p>FORMAT INSTRUMENTS_DB
9379    </p>
9380    </blockquote><p>
9381                        
9382    </p>
9383    <p>Possible Answers:
9384    </p>
9385    <p>
9386                            </p>
9387    <blockquote class="text">
9388    <p>"OK" -
9389                                    </p>
9390    <blockquote class="text">
9391    <p>on success
9392    </p>
9393    </blockquote>
9394                                
9395    
9396    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
9397                                    </p>
9398    <blockquote class="text">
9399    <p>If the formatting of the instruments database
9400                                        failed.
9401    </p>
9402    </blockquote>
9403                                
9404    
9405    </blockquote><p>
9406                        
9407    </p>
9408    <a name="FIND LOST DB_INSTRUMENT_FILES"></a><br /><hr />
9409    <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>
9410    <a name="rfc.section.6.8.23"></a><h3>6.8.23.&nbsp;
9411    Checking for lost instrument files</h3>
9412    
9413    <p>The front-end can retrieve the list of all instrument files in the instruments database
9414                        that don't exist in the filesystem by sending the following command:
9415    </p>
9416    <p>
9417                            </p>
9418    <blockquote class="text">
9419    <p>FIND LOST DB_INSTRUMENT_FILES
9420    </p>
9421    </blockquote><p>
9422                        
9423    </p>
9424    <p>Possible Answers:
9425    </p>
9426    <p>
9427                            </p>
9428    <blockquote class="text">
9429    <p>A comma separated list with the absolute path names
9430                                (encapsulated into apostrophes) of all lost instrument files.
9431    </p>
9432    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
9433                                    </p>
9434    <blockquote class="text">
9435    <p>in case it failed, providing an appropriate error code and error message.
9436    </p>
9437    </blockquote>
9438                                
9439    
9440    </blockquote><p>
9441                        
9442    </p>
9443    <p>Example:
9444    </p>
9445    <p>
9446                            </p>
9447    <blockquote class="text">
9448    <p>C: "FIND LOST DB_INSTRUMENT_FILES"
9449    </p>
9450    <p>S: "'/gigs/Bosendorfer 290.gig','/gigs/Steinway D.gig','/gigs/Free Piano.gig'"
9451    </p>
9452    </blockquote><p>
9453                        
9454    </p>
9455    <a name="SET DB_INSTRUMENT FILE_PATH"></a><br /><hr />
9456    <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>
9457    <a name="rfc.section.6.8.24"></a><h3>6.8.24.&nbsp;
9458    Replacing an instrument file</h3>
9459    
9460    <p>The front-end can substitute all occurrences of an instrument file
9461                        in the instruments database with a new one by sending the following command:
9462    </p>
9463    <p>
9464                            </p>
9465    <blockquote class="text">
9466    <p>SET DB_INSTRUMENT FILE_PATH &lt;old_path&gt; &lt;new_path&gt;
9467    </p>
9468    </blockquote><p>
9469                        
9470    </p>
9471    <p>Where &lt;old_path&gt; is the absolute path name of the instrument file
9472                        to substitute with &lt;new_path&gt;.
9473    </p>
9474    <p>Possible Answers:
9475    </p>
9476    <p>
9477                            </p>
9478    <blockquote class="text">
9479    <p>"OK" -
9480                                    </p>
9481    <blockquote class="text">
9482    <p>on success
9483    </p>
9484    </blockquote>
9485                                
9486    
9487    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
9488                                    </p>
9489    <blockquote class="text">
9490    <p>in case it failed, providing an appropriate error code and error message.
9491    </p>
9492    </blockquote>
9493                                
9494    
9495    </blockquote><p>
9496                        
9497    </p>
9498    <p>Example:
9499    </p>
9500    <p>
9501                            </p>
9502    <blockquote class="text">
9503    <p>C: "SET DB_INSTRUMENT FILE_PATH '/gigs/Bosendorfer 290.gig' '/gigs/pianos/Bosendorfer 290.gig'"
9504    </p>
9505    <p>S: "OK"
9506    </p>
9507    </blockquote><p>
9508                        
9509    </p>
9510    <a name="editing_instruments"></a><br /><hr />
9511    <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>
9512    <a name="rfc.section.6.9"></a><h3>6.9.&nbsp;
9513    Editing Instruments</h3>
9514    
9515    <p>The sampler allows to edit instruments while playing with the
9516                    sampler by spawning an external (3rd party) instrument editor
9517                    application for a given instrument. The 3rd party instrument
9518                    editor applications have to place a respective plugin DLL file
9519                    into the sampler's plugins directory. The sampler will
9520                    automatically try to load all plugin DLLs in that directory on
9521                    startup and only on startup!
9522    </p>
9523    <p>At the moment there is only one command for this feature set,
9524                    but this will most probably change in future.
9525    </p>
9526    <a name="EDIT INSTRUMENT"></a><br /><hr />
9527    <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>
9528    <a name="rfc.section.6.9.1"></a><h3>6.9.1.&nbsp;
9529    Opening an appropriate instrument editor application</h3>
9530    
9531    <p>The front-end can request to open an appropriate instrument
9532                        editor application by sending the following command:
9533    </p>
9534    <p>
9535                            </p>
9536    <blockquote class="text">
9537    <p>EDIT CHANNEL INSTRUMENT &lt;sampler-channel&gt;
9538    </p>
9539    </blockquote><p>
9540                        
9541    </p>
9542    <p>Where &lt;sampler-channel&gt; should be replaced by the
9543                        number of the sampler channel as given by the
9544                        <a class='info' href='#ADD CHANNEL'>"ADD CHANNEL"<span> (</span><span class='info'>Adding a new sampler channel</span><span>)</span></a>
9545                        or <a class='info' href='#LIST CHANNELS'>"LIST CHANNELS"<span> (</span><span class='info'>Getting all created sampler channel list</span><span>)</span></a>
9546                        command.
9547    </p>
9548    <p>The sampler will try to ask all registered instrument
9549                        editors (or to be more specific: their sampler plugins)
9550                        whether they are capable to handle the instrument on the
9551                        given sampler channel. The sampler will simply use the first
9552                        instrument editor application which replied with a positive
9553                        answer and spawn that instrument editor application within
9554                        the sampler's process and provide that application access
9555                        to the instrument's data structures, so both applications
9556                        can share and access the same instruments data at the same
9557                        time, thus allowing to immediately hear changes with the
9558                        sampler made by the instrument editor.
9559    </p>
9560    <p>Note: consequently instrument editors are always spawned
9561                        locally on the same machine where the sampler is running
9562                        on!
9563    </p>
9564    <p>Possible Answers:
9565    </p>
9566    <p>
9567                            </p>
9568    <blockquote class="text">
9569    <p>"OK" -
9570                                    </p>
9571    <blockquote class="text">
9572    <p>when an appropriate instrument editor was
9573                                        launched
9574    </p>
9575    </blockquote>
9576                                
9577    
9578    <p>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
9579                                    </p>
9580    <blockquote class="text">
9581    <p>when an appropriate instrument editor was
9582                                        launched, but there are noteworthy issues
9583    </p>
9584    </blockquote>
9585                                
9586    
9587    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
9588                                    </p>
9589    <blockquote class="text">
9590    <p>when an appropriate instrument editor
9591                                        could not be launched
9592    </p>
9593    </blockquote>
9594                                
9595    
9596    </blockquote><p>
9597                        
9598    </p>
9599    <p>Examples:
9600    </p>
9601    <p>
9602                            </p>
9603    <blockquote class="text">
9604    <p>C: "EDIT CHANNEL INSTRUMENT 0"
9605    </p>
9606    <p>S: "OK"
9607    </p>
9608    </blockquote><p>
9609                        
9610    </p>
9611    <a name="file_management"></a><br /><hr />
9612    <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>
9613    <a name="rfc.section.6.10"></a><h3>6.10.&nbsp;
9614    Managing Files</h3>
9615    
9616    <p>You can query detailed informations about files located
9617                    at the same system where the sampler instance is running on.
9618                    Using this command set allows to retrieve file informations
9619                    even remotely from another machine.
9620    </p>
9621    <a name="GET FILE INSTRUMENTS"></a><br /><hr />
9622    <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>
9623    <a name="rfc.section.6.10.1"></a><h3>6.10.1.&nbsp;
9624    Retrieving amount of instruments of a file</h3>
9625    
9626    <p>The front-end can retrieve the amount of instruments
9627                        within a given instrument file by sending the
9628                        following command:
9629    </p>
9630    <p>
9631                            </p>
9632    <blockquote class="text">
9633    <p>GET FILE INSTRUMENTS &lt;filename&gt;
9634    </p>
9635    </blockquote><p>
9636                        
9637    </p>
9638    <p>Where &lt;filename&gt; is the name of the instrument
9639                        file (encapsulated into apostrophes, supporting escape
9640                        sequences as described in chapter
9641                        "<a class='info' href='#character_set'>Character Set and Escape
9642                            Sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>").
9643    </p>
9644    <p>The sampler will try to ask all sampler engines,
9645                        whether they support the given file and ask the first
9646                        engine with a positive answer for the amount of
9647                        instruments.
9648    </p>
9649    <p>Possible Answers:
9650    </p>
9651    <p>
9652                            </p>
9653    <blockquote class="text">
9654    <p>On success, the sampler will answer by
9655                                   returning the amount of instruments.
9656                                
9657    </p>
9658    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
9659                                    </p>
9660    <blockquote class="text">
9661    <p>if the file could not be handled
9662    </p>
9663    </blockquote>
9664                                
9665    
9666    </blockquote><p>
9667                        
9668    </p>
9669    <p>Examples:
9670    </p>
9671    <p>
9672                            </p>
9673    <blockquote class="text">
9674    <p>C: "GET FILE INSTRUMENTS 'D:/Sounds/Foo.gig'"
9675    </p>
9676    <p>S: "10"
9677    </p>
9678    </blockquote><p>
9679                        
9680    </p>
9681    <a name="LIST FILE INSTRUMENTS"></a><br /><hr />
9682    <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>
9683    <a name="rfc.section.6.10.2"></a><h3>6.10.2.&nbsp;
9684    Retrieving all instruments of a file</h3>
9685    
9686    <p>The front-end can retrieve a list of all instruments
9687                        within a given instrument file by sending the
9688                        following command:
9689    </p>
9690    <p>
9691                            </p>
9692    <blockquote class="text">
9693    <p>LIST FILE INSTRUMENTS &lt;filename&gt;
9694    </p>
9695    </blockquote><p>
9696                        
9697    </p>
9698    <p>Where &lt;filename&gt; is the name of the instrument
9699                        file (encapsulated into apostrophes, supporting escape
9700                        sequences as described in chapter
9701                        "<a class='info' href='#character_set'>Character Set and Escape
9702                            Sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>").
9703    </p>
9704    <p>The sampler will try to ask all sampler engines,
9705                        whether they support the given file and ask the first
9706                        engine with a positive answer for a list of IDs for the
9707                        instruments in the given file.
9708    </p>
9709    <p>Possible Answers:
9710    </p>
9711    <p>
9712                            </p>
9713    <blockquote class="text">
9714    <p>On success, the sampler will answer by
9715                                   returning a comma separated list of
9716                                   instrument IDs.
9717                                
9718    </p>
9719    <p>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
9720                                    </p>
9721    <blockquote class="text">
9722    <p>if the file could not be handled
9723    </p>
9724    </blockquote>
9725                                
9726    
9727    </blockquote><p>
9728                        
9729    </p>
9730    <p>Examples:
9731    </p>
9732    <p>
9733                            </p>
9734    <blockquote class="text">
9735    <p>C: "LIST FILE INSTRUMENTS 'D:/Sounds/Foo.gig'"
9736    </p>
9737    <p>S: "0,1,2,3,4,5,6,7,8,9"
9738    </p>
9739    </blockquote><p>
9740                        
9741    </p>
9742    <a name="GET FILE INSTRUMENT INFO"></a><br /><hr />
9743    <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>
9744    <a name="rfc.section.6.10.3"></a><h3>6.10.3.&nbsp;
9745    Retrieving informations about one instrument in a file</h3>
9746    
9747    <p>The front-end can retrieve detailed informations
9748                        about a specific instrument within a given instrument
9749                        file by sending the following command:
9750    </p>
9751    <p>
9752                            </p>
9753    <blockquote class="text">
9754    <p>GET FILE INSTRUMENT INFO &lt;filename&gt;
9755                                &lt;instr-id&gt;
9756    </p>
9757    </blockquote><p>
9758                        
9759    </p>
9760    <p>Where &lt;filename&gt; is the name of the instrument
9761                        file (encapsulated into apostrophes, supporting escape
9762                        sequences as described in chapter
9763                        "<a class='info' href='#character_set'>Character Set and Escape
9764                            Sequences<span> (</span><span class='info'>Character Set and Escape Sequences</span><span>)</span></a>") and &lt;instr-id&gt; is the numeric
9765                        instrument ID as returned by the
9766                        <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.
9767    </p>
9768    <p>The sampler will try to ask all sampler engines,
9769                        whether they support the given file and ask the first
9770                        engine with a positive answer for informations about the
9771                        specific instrument in the given file.
9772    </p>
9773    <p>Possible Answers:
9774    </p>
9775    <p>
9776                            </p>
9777    <blockquote class="text">
9778    <p>LinuxSampler will answer by sending a &lt;CRLF&gt; separated list.
9779                                Each answer line begins with the settings category name
9780                                followed by a colon and then a space character &lt;SP&gt; and finally
9781                                the info character string to that setting category. At the
9782                                moment the following categories are defined:
9783    </p>
9784    <p>
9785                                    </p>
9786    <blockquote class="text">
9787    <p>NAME -
9788                                            </p>
9789    <blockquote class="text">
9790    <p>name of the instrument as
9791                                                stored in the instrument file
9792    </p>
9793    </blockquote>
9794                                        
9795    
9796    <p>FORMAT_FAMILY -
9797                                            </p>
9798    <blockquote class="text">
9799    <p>name of the sampler format
9800                                                of the given instrument
9801    </p>
9802    </blockquote>
9803                                        
9804    
9805    <p>FORMAT_VERSION -
9806                                            </p>
9807    <blockquote class="text">
9808    <p>version of the sampler format
9809                                                the instrumen is stored as
9810    </p>
9811    </blockquote>
9812                                        
9813    
9814    <p>PRODUCT -
9815                                            </p>
9816    <blockquote class="text">
9817    <p>official product name of the
9818                                                instrument as stored in the file
9819                                                
9820    </p>
9821    </blockquote>
9822                                        
9823    
9824    <p>ARTISTS -
9825                                            </p>
9826    <blockquote class="text">
9827    <p>artists / sample library
9828                                                vendor of the instrument
9829    </p>
9830    </blockquote>
9831                                        
9832    
9833    <p>KEY_BINDINGS -
9834                                            </p>
9835    <blockquote class="text">
9836    <p>comma separated list of integer values representing
9837                                                   the instrument's key mapping in the range between 0 .. 127,
9838                                                   reflecting the analog meaning of the MIDI specification.
9839    </p>
9840    </blockquote>
9841                                        
9842    
9843    <p>KEYSWITCH_BINDINGS -
9844                                            </p>
9845    <blockquote class="text">
9846    <p>comma separated list of integer values representing
9847                                                   the instrument's keyswitch mapping in the range between 0 .. 127,
9848                                                   reflecting the analog meaning of the MIDI specification.
9849    </p>
9850    </blockquote>
9851                                        
9852    
9853    </blockquote>
9854                                
9855    
9856    </blockquote><p>
9857                        
9858    </p>
9859    <p>The mentioned fields above don't have to be in particular order.
9860    </p>
9861    <p>Example:
9862    </p>
9863    <p>
9864                            </p>
9865    <blockquote class="text">
9866    <p>C: "GET FILE INSTRUMENT INFO 'D:/Sounds/Foo.gig' 0"
9867    </p>
9868    <p>S: "NAME: Lunatic Loops"
9869    </p>
9870    <p>&nbsp;&nbsp;&nbsp;"FORMAT_FAMILY: GIG"
9871    </p>
9872    <p>&nbsp;&nbsp;&nbsp;"FORMAT_VERSION: 3"
9873    </p>
9874    <p>&nbsp;&nbsp;&nbsp;"PRODUCT: The Backbone Bongo Beats"
9875    </p>
9876    <p>&nbsp;&nbsp;&nbsp;"ARTISTS: Jimmy the Fish"
9877    </p>
9878    <p>&nbsp;&nbsp;&nbsp;"."
9879    </p>
9880    </blockquote><p>
9881                        
9882    </p>
9883  <a name="command_syntax"></a><br /><hr />  <a name="command_syntax"></a><br /><hr />
9884  <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>  <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>
9885  <a name="rfc.section.7"></a><h3>7.&nbsp;  <a name="rfc.section.7"></a><h3>7.&nbsp;
# Line 6472  Command Syntax</h3> Line 9980  Command Syntax</h3>
9980  <p>/ UNSUBSCRIBE SP unsubscribe_event  <p>/ UNSUBSCRIBE SP unsubscribe_event
9981                                    
9982  </p>  </p>
 <p>/ SELECT SP text  
                   
 </p>  
9983  <p>/ RESET SP reset_instruction  <p>/ RESET SP reset_instruction
9984                                    
9985  </p>  </p>
9986  <p>/ CLEAR SP clear_instruction  <p>/ CLEAR SP clear_instruction
9987                                    
9988  </p>  </p>
9989    <p>/ FIND SP find_instruction
9990                    
9991    </p>
9992    <p>/ MOVE SP move_instruction
9993                    
9994    </p>
9995    <p>/ COPY SP copy_instruction
9996                    
9997    </p>
9998    <p>/ EDIT SP edit_instruction
9999                    
10000    </p>
10001    <p>/ FORMAT SP format_instruction
10002                    
10003    </p>
10004    <p>/ SEND SP send_instruction
10005                    
10006    </p>
10007  <p>/ RESET  <p>/ RESET
10008                                    
10009  </p>  </p>
# Line 6496  Command Syntax</h3> Line 10019  Command Syntax</h3>
10019  <p>CHANNEL  <p>CHANNEL
10020                                    
10021  </p>  </p>
10022    <p>/ DB_INSTRUMENT_DIRECTORY SP db_path
10023                    
10024    </p>
10025    <p>/ DB_INSTRUMENTS SP NON_MODAL SP scan_mode SP db_path SP filename
10026                    
10027    </p>
10028    <p>/ DB_INSTRUMENTS SP NON_MODAL SP scan_mode SP FILE_AS_DIR SP db_path SP filename
10029                    
10030    </p>
10031    <p>/ DB_INSTRUMENTS SP scan_mode SP db_path SP filename
10032                    
10033    </p>
10034    <p>/ DB_INSTRUMENTS SP scan_mode SP FILE_AS_DIR SP db_path SP filename
10035                    
10036    </p>
10037    <p>/ DB_INSTRUMENTS SP NON_MODAL SP db_path SP filename
10038                    
10039    </p>
10040    <p>/ DB_INSTRUMENTS SP NON_MODAL SP db_path SP filename SP instrument_index
10041                    
10042    </p>
10043    <p>/ DB_INSTRUMENTS SP db_path SP filename
10044                    
10045    </p>
10046    <p>/ DB_INSTRUMENTS SP db_path SP filename SP instrument_index
10047                    
10048    </p>
10049  <p>/ MIDI_INSTRUMENT_MAP  <p>/ MIDI_INSTRUMENT_MAP
10050                                    
10051  </p>  </p>
# Line 6508  Command Syntax</h3> Line 10058  Command Syntax</h3>
10058  <p>subscribe_event =  <p>subscribe_event =
10059          </p>          </p>
10060  <blockquote class="text">  <blockquote class="text">
10061  <p>CHANNEL_COUNT  <p>AUDIO_OUTPUT_DEVICE_COUNT
10062                    
10063    </p>
10064    <p>/ AUDIO_OUTPUT_DEVICE_INFO
10065                    
10066    </p>
10067    <p>/ MIDI_INPUT_DEVICE_COUNT
10068                    
10069    </p>
10070    <p>/ MIDI_INPUT_DEVICE_INFO
10071                    
10072    </p>
10073    <p>/ CHANNEL_COUNT
10074                    
10075    </p>
10076    <p>/ CHANNEL_MIDI
10077                    
10078    </p>
10079    <p>/ DEVICE_MIDI
10080                                    
10081  </p>  </p>
10082  <p>/ VOICE_COUNT  <p>/ VOICE_COUNT
# Line 6523  Command Syntax</h3> Line 10091  Command Syntax</h3>
10091  <p>/ CHANNEL_INFO  <p>/ CHANNEL_INFO
10092                                    
10093  </p>  </p>
10094    <p>/ FX_SEND_COUNT
10095                    
10096    </p>
10097    <p>/ FX_SEND_INFO
10098                    
10099    </p>
10100    <p>/ MIDI_INSTRUMENT_MAP_COUNT
10101                    
10102    </p>
10103    <p>/ MIDI_INSTRUMENT_MAP_INFO
10104                    
10105    </p>
10106    <p>/ MIDI_INSTRUMENT_COUNT
10107                    
10108    </p>
10109    <p>/ MIDI_INSTRUMENT_INFO
10110                    
10111    </p>
10112    <p>/ DB_INSTRUMENT_DIRECTORY_COUNT
10113                    
10114    </p>
10115    <p>/ DB_INSTRUMENT_DIRECTORY_INFO
10116                    
10117    </p>
10118    <p>/ DB_INSTRUMENT_COUNT
10119                    
10120    </p>
10121    <p>/ DB_INSTRUMENT_INFO
10122                    
10123    </p>
10124    <p>/ DB_INSTRUMENTS_JOB_INFO
10125                    
10126    </p>
10127  <p>/ MISCELLANEOUS  <p>/ MISCELLANEOUS
10128                                    
10129  </p>  </p>
10130    <p>/ TOTAL_STREAM_COUNT
10131                    
10132    </p>
10133  <p>/ TOTAL_VOICE_COUNT  <p>/ TOTAL_VOICE_COUNT
10134                                    
10135  </p>  </p>
10136    <p>/ GLOBAL_INFO
10137                    
10138    </p>
10139  </blockquote><p>  </blockquote><p>
10140    
10141  </p>  </p>
10142  <p>unsubscribe_event =  <p>unsubscribe_event =
10143          </p>          </p>
10144  <blockquote class="text">  <blockquote class="text">
10145  <p>CHANNEL_COUNT  <p>AUDIO_OUTPUT_DEVICE_COUNT
10146                    
10147    </p>
10148    <p>/ AUDIO_OUTPUT_DEVICE_INFO
10149                    
10150    </p>
10151    <p>/ MIDI_INPUT_DEVICE_COUNT
10152                    
10153    </p>
10154    <p>/ MIDI_INPUT_DEVICE_INFO
10155                    
10156    </p>
10157    <p>/ CHANNEL_COUNT
10158                    
10159    </p>
10160    <p>/ CHANNEL_MIDI
10161                    
10162    </p>
10163    <p>/ DEVICE_MIDI
10164                                    
10165  </p>  </p>
10166  <p>/ VOICE_COUNT  <p>/ VOICE_COUNT
# Line 6550  Command Syntax</h3> Line 10175  Command Syntax</h3>
10175  <p>/ CHANNEL_INFO  <p>/ CHANNEL_INFO
10176                                    
10177  </p>  </p>
10178    <p>/ FX_SEND_COUNT
10179                    
10180    </p>
10181    <p>/ FX_SEND_INFO
10182                    
10183    </p>
10184    <p>/ MIDI_INSTRUMENT_MAP_COUNT
10185                    
10186    </p>
10187    <p>/ MIDI_INSTRUMENT_MAP_INFO
10188                    
10189    </p>
10190    <p>/ MIDI_INSTRUMENT_COUNT
10191                    
10192    </p>
10193    <p>/ MIDI_INSTRUMENT_INFO
10194                    
10195    </p>
10196    <p>/ DB_INSTRUMENT_DIRECTORY_COUNT
10197                    
10198    </p>
10199    <p>/ DB_INSTRUMENT_DIRECTORY_INFO
10200                    
10201    </p>
10202    <p>/ DB_INSTRUMENT_COUNT
10203                    
10204    </p>
10205    <p>/ DB_INSTRUMENT_INFO
10206                    
10207    </p>
10208    <p>/ DB_INSTRUMENTS_JOB_INFO
10209                    
10210    </p>
10211  <p>/ MISCELLANEOUS  <p>/ MISCELLANEOUS
10212                                    
10213  </p>  </p>
10214    <p>/ TOTAL_STREAM_COUNT
10215                    
10216    </p>
10217  <p>/ TOTAL_VOICE_COUNT  <p>/ TOTAL_VOICE_COUNT
10218                                    
10219  </p>  </p>
10220    <p>/ GLOBAL_INFO
10221                    
10222    </p>
10223  </blockquote><p>  </blockquote><p>
10224    
10225  </p>  </p>
10226  <p>map_instruction =  <p>map_instruction =
10227          </p>          </p>
10228  <blockquote class="text">  <blockquote class="text">
10229  <p>MIDI_INSTRUMENT SP midi_map SP midi_bank SP midi_prog SP engine_name SP filename SP instrument_index SP volume_value  <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
10230                                    
10231  </p>  </p>
10232  <p>/ MIDI_INSTRUMENT SP midi_map SP midi_bank SP midi_prog SP engine_name SP filename SP instrument_index SP volume_value SP instr_load_mode  <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
10233                                    
10234  </p>  </p>
10235  <p>/ MIDI_INSTRUMENT SP midi_map SP midi_bank SP midi_prog SP engine_name SP filename SP instrument_index SP volume_value SP entry_name  <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
10236                                    
10237  </p>  </p>
10238  <p>/ MIDI_INSTRUMENT SP 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  <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
10239                                    
10240  </p>  </p>
10241  </blockquote><p>  </blockquote><p>
# Line 6598  Command Syntax</h3> Line 10262  Command Syntax</h3>
10262  <p>/ MIDI_INSTRUMENT_MAP SP ALL  <p>/ MIDI_INSTRUMENT_MAP SP ALL
10263                                    
10264  </p>  </p>
10265    <p>/ DB_INSTRUMENT_DIRECTORY SP FORCE SP db_path
10266                    
10267    </p>
10268    <p>/ DB_INSTRUMENT_DIRECTORY SP db_path
10269                    
10270    </p>
10271    <p>/ DB_INSTRUMENT SP db_path
10272                    
10273    </p>
10274  </blockquote><p>  </blockquote><p>
10275    
10276  </p>  </p>
# Line 6676  Command Syntax</h3> Line 10349  Command Syntax</h3>
10349  <p>/ SERVER SP INFO  <p>/ SERVER SP INFO
10350                                    
10351  </p>  </p>
10352    <p>/ TOTAL_STREAM_COUNT
10353                    
10354    </p>
10355  <p>/ TOTAL_VOICE_COUNT  <p>/ TOTAL_VOICE_COUNT
10356                                    
10357  </p>  </p>
# Line 6697  Command Syntax</h3> Line 10373  Command Syntax</h3>
10373  <p>/ MIDI_INSTRUMENT_MAP SP INFO SP midi_map  <p>/ MIDI_INSTRUMENT_MAP SP INFO SP midi_map
10374                                    
10375  </p>  </p>
10376    <p>/ FX_SENDS SP sampler_channel
10377                    
10378    </p>
10379    <p>/ FX_SEND SP INFO SP sampler_channel SP fx_send_id
10380                    
10381    </p>
10382    <p>/ DB_INSTRUMENT_DIRECTORIES SP RECURSIVE SP db_path
10383                    
10384    </p>
10385    <p>/ DB_INSTRUMENT_DIRECTORIES SP db_path
10386                    
10387    </p>
10388    <p>/ DB_INSTRUMENT_DIRECTORY SP INFO SP db_path
10389                    
10390    </p>
10391    <p>/ DB_INSTRUMENTS SP RECURSIVE SP db_path
10392                    
10393    </p>
10394    <p>/ DB_INSTRUMENTS SP db_path
10395                    
10396    </p>
10397    <p>/ DB_INSTRUMENT SP INFO SP db_path
10398                    
10399    </p>
10400    <p>/ DB_INSTRUMENTS_JOB SP INFO SP number
10401                    
10402    </p>
10403    <p>/ VOLUME
10404                    
10405    </p>
10406    <p>/ VOICES
10407                    
10408    </p>
10409    <p>/ STREAMS
10410                    
10411    </p>
10412    <p>/ FILE SP INSTRUMENTS SP filename
10413                    
10414    </p>
10415    <p>/ FILE SP INSTRUMENT SP INFO SP filename SP instrument_index
10416                    
10417    </p>
10418  </blockquote><p>  </blockquote><p>
10419    
10420  </p>  </p>
# Line 6712  Command Syntax</h3> Line 10430  Command Syntax</h3>
10430  <p>/ MIDI_INPUT_DEVICE_PARAMETER SP number SP string '=' param_val_list  <p>/ MIDI_INPUT_DEVICE_PARAMETER SP number SP string '=' param_val_list
10431                                    
10432  </p>  </p>
10433    <p>/ MIDI_INPUT_PORT_PARAMETER SP number SP number SP string '=' NONE
10434                    
10435    </p>
10436  <p>/ MIDI_INPUT_PORT_PARAMETER SP number SP number SP string '=' param_val_list  <p>/ MIDI_INPUT_PORT_PARAMETER SP number SP number SP string '=' param_val_list
10437                                    
10438  </p>  </p>
# Line 6721  Command Syntax</h3> Line 10442  Command Syntax</h3>
10442  <p>/ MIDI_INSTRUMENT_MAP SP NAME SP midi_map SP map_name  <p>/ MIDI_INSTRUMENT_MAP SP NAME SP midi_map SP map_name
10443                                    
10444  </p>  </p>
10445    <p>/ FX_SEND SP NAME SP sampler_channel SP fx_send_id SP fx_send_name
10446                    
10447    </p>
10448    <p>/ FX_SEND SP AUDIO_OUTPUT_CHANNEL SP sampler_channel SP fx_send_id SP audio_channel_index SP audio_channel_index
10449                    
10450    </p>
10451    <p>/ FX_SEND SP MIDI_CONTROLLER SP sampler_channel SP fx_send_id SP midi_ctrl
10452                    
10453    </p>
10454    <p>/ FX_SEND SP LEVEL SP sampler_channel SP fx_send_id SP volume_value
10455                    
10456    </p>
10457    <p>/ DB_INSTRUMENT_DIRECTORY SP NAME SP db_path SP stringval_escaped
10458                    
10459    </p>
10460    <p>/ DB_INSTRUMENT_DIRECTORY SP DESCRIPTION SP db_path SP stringval_escaped
10461                    
10462    </p>
10463    <p>/ DB_INSTRUMENT SP NAME SP db_path SP stringval_escaped
10464                    
10465    </p>
10466    <p>/ DB_INSTRUMENT SP DESCRIPTION SP db_path SP stringval_escaped
10467                    
10468    </p>
10469    <p>/ DB_INSTRUMENT SP FILE_PATH SP filename SP filename
10470                    
10471    </p>
10472  <p>/ ECHO SP boolean  <p>/ ECHO SP boolean
10473                                    
10474  </p>  </p>
10475    <p>/ VOLUME SP volume_value
10476                    
10477    </p>
10478    <p>/ VOICES SP number
10479                    
10480    </p>
10481    <p>/ STREAMS SP number
10482                    
10483    </p>
10484  </blockquote><p>  </blockquote><p>
10485    
10486  </p>  </p>
# Line 6742  Command Syntax</h3> Line 10499  Command Syntax</h3>
10499  <p>/ MIDI_INPUT_DEVICE SP string  <p>/ MIDI_INPUT_DEVICE SP string
10500                                    
10501  </p>  </p>
10502    <p>/ FX_SEND SP sampler_channel SP midi_ctrl
10503                    
10504    </p>
10505    <p>/ FX_SEND SP sampler_channel SP midi_ctrl SP fx_send_name
10506                    
10507    </p>
10508  </blockquote><p>  </blockquote><p>
10509    
10510  </p>  </p>
# Line 6766  Command Syntax</h3> Line 10529  Command Syntax</h3>
10529  </blockquote><p>  </blockquote><p>
10530    
10531  </p>  </p>
10532    <p>find_instruction =
10533            </p>
10534    <blockquote class="text">
10535    <p>DB_INSTRUMENTS SP NON_RECURSIVE SP db_path SP query_val_list
10536                    
10537    </p>
10538    <p>/ DB_INSTRUMENTS SP db_path SP query_val_list
10539                    
10540    </p>
10541    <p>/ DB_INSTRUMENT_DIRECTORIES SP NON_RECURSIVE SP db_path SP query_val_list
10542                    
10543    </p>
10544    <p>/ DB_INSTRUMENT_DIRECTORIES SP db_path SP query_val_list
10545                    
10546    </p>
10547    <p>/ LOST SP DB_INSTRUMENT_FILES
10548                    
10549    </p>
10550    </blockquote><p>
10551    
10552    </p>
10553    <p>move_instruction =
10554            </p>
10555    <blockquote class="text">
10556    <p>DB_INSTRUMENT_DIRECTORY SP db_path SP db_path
10557                    
10558    </p>
10559    <p>/ DB_INSTRUMENT SP db_path SP db_path
10560                    
10561    </p>
10562    </blockquote><p>
10563    
10564    </p>
10565    <p>copy_instruction =
10566            </p>
10567    <blockquote class="text">
10568    <p>DB_INSTRUMENT_DIRECTORY SP db_path SP db_path
10569                    
10570    </p>
10571    <p>/ DB_INSTRUMENT SP db_path SP db_path
10572                    
10573    </p>
10574    </blockquote><p>
10575    
10576    </p>
10577  <p>destroy_instruction =  <p>destroy_instruction =
10578          </p>          </p>
10579  <blockquote class="text">  <blockquote class="text">
# Line 6775  Command Syntax</h3> Line 10583  Command Syntax</h3>
10583  <p>/ MIDI_INPUT_DEVICE SP number  <p>/ MIDI_INPUT_DEVICE SP number
10584                                    
10585  </p>  </p>
10586    <p>/ FX_SEND SP sampler_channel SP fx_send_id
10587                    
10588    </p>
10589  </blockquote><p>  </blockquote><p>
10590    
10591  </p>  </p>
# Line 6838  Command Syntax</h3> Line 10649  Command Syntax</h3>
10649  </blockquote><p>  </blockquote><p>
10650    
10651  </p>  </p>
10652    <p>edit_instruction =
10653            </p>
10654    <blockquote class="text">
10655    <p>CHANNEL SP INSTRUMENT SP sampler_channel
10656                    
10657    </p>
10658    </blockquote><p>
10659    
10660    </p>
10661    <p>format_instruction =
10662            </p>
10663    <blockquote class="text">
10664    <p>INSTRUMENTS_DB
10665                    
10666    </p>
10667    </blockquote><p>
10668    
10669    </p>
10670    <p>modal_arg =
10671            </p>
10672    <blockquote class="text">
10673    <p>/* epsilon (empty argument) */
10674                    
10675    </p>
10676    <p>/ NON_MODAL SP
10677                    
10678    </p>
10679    </blockquote><p>
10680    
10681    </p>
10682  <p>key_val_list =  <p>key_val_list =
10683          </p>          </p>
10684  <blockquote class="text">  <blockquote class="text">
# Line 6892  Command Syntax</h3> Line 10733  Command Syntax</h3>
10733  <p>/ MIDI_INSTRUMENT_MAPS  <p>/ MIDI_INSTRUMENT_MAPS
10734                                    
10735  </p>  </p>
10736    <p>/ FX_SENDS SP sampler_channel
10737                    
10738    </p>
10739    <p>/ DB_INSTRUMENT_DIRECTORIES SP RECURSIVE SP db_path
10740                    
10741    </p>
10742    <p>/ DB_INSTRUMENT_DIRECTORIES SP db_path
10743                    
10744    </p>
10745    <p>/ DB_INSTRUMENTS SP RECURSIVE SP db_path
10746                    
10747    </p>
10748    <p>/ DB_INSTRUMENTS SP db_path
10749                    
10750    </p>
10751    <p>/ FILE SP INSTRUMENTS SP filename
10752                    
10753    </p>
10754    </blockquote><p>
10755    
10756    </p>
10757    <p>send_instruction =
10758            </p>
10759    <blockquote class="text">
10760    <p>CHANNEL SP MIDI_DATA SP string SP sampler_channel SP number SP number
10761                    
10762    </p>
10763  </blockquote><p>  </blockquote><p>
10764    
10765  </p>  </p>
# Line 7015  Command Syntax</h3> Line 10883  Command Syntax</h3>
10883  </blockquote><p>  </blockquote><p>
10884    
10885  </p>  </p>
10886    <p>midi_ctrl =
10887            </p>
10888    <blockquote class="text">
10889    <p>number
10890                    
10891    </p>
10892    </blockquote><p>
10893    
10894    </p>
10895  <p>volume_value =  <p>volume_value =
10896          </p>          </p>
10897  <blockquote class="text">  <blockquote class="text">
# Line 7045  Command Syntax</h3> Line 10922  Command Syntax</h3>
10922  </blockquote><p>  </blockquote><p>
10923    
10924  </p>  </p>
10925    <p>fx_send_id =
10926            </p>
10927    <blockquote class="text">
10928    <p>number
10929                    
10930    </p>
10931    </blockquote><p>
10932    
10933    </p>
10934  <p>engine_name =  <p>engine_name =
10935          </p>          </p>
10936  <blockquote class="text">  <blockquote class="text">
# Line 7057  Command Syntax</h3> Line 10943  Command Syntax</h3>
10943  <p>filename =  <p>filename =
10944          </p>          </p>
10945  <blockquote class="text">  <blockquote class="text">
10946  <p>stringval  <p>path
10947                    
10948    </p>
10949    </blockquote><p>
10950    
10951    </p>
10952    <p>db_path =
10953            </p>
10954    <blockquote class="text">
10955    <p>path
10956                                    
10957  </p>  </p>
10958  </blockquote><p>  </blockquote><p>
# Line 7066  Command Syntax</h3> Line 10961  Command Syntax</h3>
10961  <p>map_name =  <p>map_name =
10962          </p>          </p>
10963  <blockquote class="text">  <blockquote class="text">
10964  <p>stringval  <p>stringval_escaped
10965                                    
10966  </p>  </p>
10967  </blockquote><p>  </blockquote><p>
# Line 7075  Command Syntax</h3> Line 10970  Command Syntax</h3>
10970  <p>entry_name =  <p>entry_name =
10971          </p>          </p>
10972  <blockquote class="text">  <blockquote class="text">
10973  <p>stringval  <p>stringval_escaped
10974                    
10975    </p>
10976    </blockquote><p>
10977    
10978    </p>
10979    <p>fx_send_name =
10980            </p>
10981    <blockquote class="text">
10982    <p>stringval_escaped
10983                                    
10984  </p>  </p>
10985  </blockquote><p>  </blockquote><p>
# Line 7111  Command Syntax</h3> Line 11015  Command Syntax</h3>
11015  </blockquote><p>  </blockquote><p>
11016    
11017  </p>  </p>
11018    <p>query_val_list =
11019            </p>
11020    <blockquote class="text">
11021    <p>string '=' query_val
11022                    
11023    </p>
11024    <p>/ query_val_list SP string '=' query_val
11025                    
11026    </p>
11027    </blockquote><p>
11028    
11029    </p>
11030    <p>query_val =
11031            </p>
11032    <blockquote class="text">
11033    <p>text_escaped
11034                    
11035    </p>
11036    <p>/ stringval_escaped
11037                    
11038    </p>
11039    </blockquote><p>
11040    
11041    </p>
11042    <p>scan_mode =
11043            </p>
11044    <blockquote class="text">
11045    <p>RECURSIVE
11046                    
11047    </p>
11048    <p>/ NON_RECURSIVE
11049                    
11050    </p>
11051    <p>/ FLAT
11052                    
11053    </p>
11054    </blockquote><p>
11055    
11056    </p>
11057    <a name="character_set"></a><br /><hr />
11058    <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>
11059    <a name="rfc.section.7.1"></a><h3>7.1.&nbsp;
11060    Character Set and Escape Sequences</h3>
11061    
11062    <p>Older versions of this protocol up to and including v1.1 only
11063                    supported the standard ASCII character set (ASCII code 0 - 127)
11064                    <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
11065                    however support the Extended ASCII character set (ASCII code
11066                    0 - 255). The same group of younger protocols also support
11067                    escape sequences, but only for certain, explicitly declared
11068                    parts of the protocol. The supported escape sequences are
11069                    defined as follows:
11070    </p><table class="full" align="center" border="0" cellpadding="2" cellspacing="2">
11071    <col align="left"><col align="left">
11072    <tr><th align="left">ASCII Character Sequence</th><th align="left">Translated into (Name)</th></tr>
11073    <tr>
11074    <td align="left">\n</td>
11075    <td align="left">new line</td>
11076    </tr>
11077    <tr>
11078    <td align="left">\r</td>
11079    <td align="left">carriage return</td>
11080    </tr>
11081    <tr>
11082    <td align="left">\f</td>
11083    <td align="left">form feed</td>
11084    </tr>
11085    <tr>
11086    <td align="left">\t</td>
11087    <td align="left">horizontal tab</td>
11088    </tr>
11089    <tr>
11090    <td align="left">\v</td>
11091    <td align="left">vertical tab</td>
11092    </tr>
11093    <tr>
11094    <td align="left">\'</td>
11095    <td align="left">apostrophe</td>
11096    </tr>
11097    <tr>
11098    <td align="left">\"</td>
11099    <td align="left">quotation mark</td>
11100    </tr>
11101    <tr>
11102    <td align="left">\\</td>
11103    <td align="left">backslash</td>
11104    </tr>
11105    <tr>
11106    <td align="left">\OOO</td>
11107    <td align="left">three digit octal ASCII code of the character</td>
11108    </tr>
11109    <tr>
11110    <td align="left">\xHH</td>
11111    <td align="left">two digit hex ASCII code of the character</td>
11112    </tr>
11113    </table>
11114    <br clear="all" />
11115    
11116    <p>Notice: due to the transition of certain parts of the
11117                    protocol which now support escape sequences, a slight backward
11118                    incompatibility to protocols version v1.1 and younger has been
11119                    introduced. The only difference is that in parts of the protocol
11120                    where escape characters are now supported, a backslash characters
11121                    MUST be escaped as well (that is as double backslash), whereas
11122                    in the old versions a single backslash was sufficient.
11123    </p>
11124    <p>The following LSCP commands support escape sequences as part
11125                    of their filename / path based arguments and / or may contain
11126                    a filename / path with escape sequences in their response:
11127                    </p>
11128    <blockquote class="text">
11129    <p><a class='info' href='#LOAD INSTRUMENT'>"LOAD INSTRUMENT"<span> (</span><span class='info'>Loading an instrument</span><span>)</span></a>
11130    </p>
11131    <p><a class='info' href='#GET CHANNEL INFO'>"GET CHANNEL INFO"<span> (</span><span class='info'>Getting sampler channel information</span><span>)</span></a>
11132    </p>
11133    <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>
11134    </p>
11135    <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>
11136    </p>
11137    <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>
11138    </p>
11139    <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>
11140    </p>
11141    <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>
11142    </p>
11143    <p><a class='info' href='#REMOVE DB_INSTRUMENT'>"REMOVE DB_INSTRUMENT"<span> (</span><span class='info'>Removing an instrument</span><span>)</span></a>
11144    </p>
11145    <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>
11146    </p>
11147    <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>
11148    </p>
11149    <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>
11150    </p>
11151    <p><a class='info' href='#GET DB_INSTRUMENTS'>"GET DB_INSTRUMENTS"<span> (</span><span class='info'>Getting amount of instruments</span><span>)</span></a>
11152    </p>
11153    <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>
11154    </p>
11155    <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>
11156    </p>
11157    <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>
11158    </p>
11159    <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>
11160    </p>
11161    <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>
11162    </p>
11163    <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>
11164    </p>
11165    <p><a class='info' href='#FIND DB_INSTRUMENTS'>"FIND DB_INSTRUMENTS"<span> (</span><span class='info'>Finding instruments</span><span>)</span></a>
11166    </p>
11167    <p><a class='info' href='#FIND DB_INSTRUMENT_DIRECTORIES'>"FIND DB_INSTRUMENT_DIRECTORIES"<span> (</span><span class='info'>Finding directories</span><span>)</span></a>
11168    </p>
11169    <p><a class='info' href='#MOVE DB_INSTRUMENT'>"MOVE DB_INSTRUMENT"<span> (</span><span class='info'>Moving an instrument</span><span>)</span></a>
11170    </p>
11171    <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>
11172    </p>
11173    <p><a class='info' href='#COPY DB_INSTRUMENT'>"COPY DB_INSTRUMENT"<span> (</span><span class='info'>Copying instruments</span><span>)</span></a>
11174    </p>
11175    <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>
11176    </p>
11177    <p><a class='info' href='#FIND LOST DB_INSTRUMENT_FILES'>"FIND LOST DB_INSTRUMENT_FILES"<span> (</span><span class='info'>Checking for lost instrument files</span><span>)</span></a>
11178    </p>
11179    <p><a class='info' href='#SET DB_INSTRUMENT FILE_PATH'>"SET DB_INSTRUMENT FILE_PATH"<span> (</span><span class='info'>Replacing an instrument file</span><span>)</span></a>
11180    </p>
11181    <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>
11182    </p>
11183    <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>
11184    </p>
11185    <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>
11186    </p>
11187    </blockquote><p>
11188                    Note that the forward slash character ('/') has a special meaning in
11189                    filename / path based arguments: it acts as separator of the nodes in
11190                    the path, thus if a directory- or filename includes a forward slash
11191                    (not intended as path node separator), you MUST escape that slash
11192                    either with the respective hex escape sequence ("\x2f") or with the
11193                    respective octal escape sequence ("\057").
11194                    
11195    </p>
11196    <p>
11197                    Note for Windows: file path arguments in LSCP are expected
11198                    to use forward slashes as directory node separator similar
11199                    to Unix based operating systems. In contrast to Unix however
11200                    a Windows typical drive character is expected to be
11201                    prefixed to the path. That is an original Windows file path
11202                    like "D:\Sounds\My.gig" would become in LSCP:
11203                    "D:/Sounds/My.gig".
11204                    
11205    </p>
11206    <p>
11207                    The following LSCP commands even support escape sequences as
11208                    part of at least one of their text-based arguments (i.e. entity name,
11209                    description) and / or may contain escape sequences in at least one of
11210                    their text-based fields in their response:
11211                    </p>
11212    <blockquote class="text">
11213    <p><a class='info' href='#GET SERVER INFO'>"GET SERVER INFO"<span> (</span><span class='info'>General sampler informations</span><span>)</span></a>
11214    </p>
11215    <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>
11216    </p>
11217    <p><a class='info' href='#GET CHANNEL INFO'>"GET CHANNEL INFO"<span> (</span><span class='info'>Getting sampler channel information</span><span>)</span></a>
11218    </p>
11219    <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>
11220    </p>
11221    <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>
11222    </p>
11223    <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>
11224    </p>
11225    <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>
11226    </p>
11227    <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>
11228    </p>
11229    <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>
11230    </p>
11231    <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>
11232    </p>
11233    <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>
11234    </p>
11235    <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>
11236    </p>
11237    <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>
11238    </p>
11239    <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>
11240    </p>
11241    <p><a class='info' href='#FIND DB_INSTRUMENT_DIRECTORIES'>"FIND DB_INSTRUMENT_DIRECTORIES"<span> (</span><span class='info'>Finding directories</span><span>)</span></a>
11242    </p>
11243    <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>
11244    </p>
11245    <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>
11246    </p>
11247    <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>
11248    </p>
11249    <p><a class='info' href='#FIND DB_INSTRUMENTS'>"FIND DB_INSTRUMENTS"<span> (</span><span class='info'>Finding instruments</span><span>)</span></a>
11250    </p>
11251    </blockquote><p>
11252                    Please note that these lists are manually maintained. If you
11253                    find a command that also supports escape sequences we forgot to
11254                    mention here, please report it!
11255                    
11256    </p>
11257  <a name="events"></a><br /><hr />  <a name="events"></a><br /><hr />
11258  <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>  <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>
11259  <a name="rfc.section.8"></a><h3>8.&nbsp;  <a name="rfc.section.8"></a><h3>8.&nbsp;
# Line 7118  Events</h3> Line 11261  Events</h3>
11261    
11262  <p>This chapter will describe all currently defined events supported by LinuxSampler.  <p>This chapter will describe all currently defined events supported by LinuxSampler.
11263  </p>  </p>
11264  <a name="SUBSCRIBE CHANNEL"></a><br /><hr />  <a name="SUBSCRIBE AUDIO_OUTPUT_DEVICE_COUNT"></a><br /><hr />
11265  <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>  <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>
11266  <a name="rfc.section.8.1"></a><h3>8.1.&nbsp;  <a name="rfc.section.8.1"></a><h3>8.1.&nbsp;
11267    Number of audio output devices changed</h3>
11268    
11269    <p>Client may want to be notified when the total number of audio output devices on the
11270                    back-end changes by issuing the following command:
11271    </p>
11272    <p>
11273                        </p>
11274    <blockquote class="text">
11275    <p>SUBSCRIBE AUDIO_OUTPUT_DEVICE_COUNT
11276    </p>
11277    </blockquote><p>
11278                    
11279    </p>
11280    <p>Server will start sending the following notification messages:
11281    </p>
11282    <p>
11283                        </p>
11284    <blockquote class="text">
11285    <p>"NOTIFY:AUDIO_OUTPUT_DEVICE_COUNT:&lt;devices&gt;"
11286    </p>
11287    </blockquote><p>
11288                    
11289    </p>
11290    <p>where &lt;devices&gt; will be replaced by the new number
11291                    of audio output devices.
11292    </p>
11293    <a name="SUBSCRIBE AUDIO_OUTPUT_DEVICE_INFO"></a><br /><hr />
11294    <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>
11295    <a name="rfc.section.8.2"></a><h3>8.2.&nbsp;
11296    Audio output device's settings changed</h3>
11297    
11298    <p>Client may want to be notified when changes were made to audio output devices on the
11299                    back-end by issuing the following command:
11300    </p>
11301    <p>
11302                        </p>
11303    <blockquote class="text">
11304    <p>SUBSCRIBE AUDIO_OUTPUT_DEVICE_INFO
11305    </p>
11306    </blockquote><p>
11307                    
11308    </p>
11309    <p>Server will start sending the following notification messages:
11310    </p>
11311    <p>
11312                        </p>
11313    <blockquote class="text">
11314    <p>"NOTIFY:AUDIO_OUTPUT_DEVICE_INFO:&lt;device-id&gt;"
11315    </p>
11316    </blockquote><p>
11317                    
11318    </p>
11319    <p>where &lt;device-id&gt; will be replaced by the numerical ID of the audio output device,
11320                    which settings has been changed. The front-end will have to send
11321                    the respective command to actually get the audio output device info. Because these messages
11322                    will be triggered by LSCP commands issued by other clients rather than real
11323                    time events happening on the server, it is believed that an empty notification
11324                    message is sufficient here.
11325    </p>
11326    <a name="SUBSCRIBE MIDI_INPUT_DEVICE_COUNT"></a><br /><hr />
11327    <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>
11328    <a name="rfc.section.8.3"></a><h3>8.3.&nbsp;
11329    Number of MIDI input devices changed</h3>
11330    
11331    <p>Client may want to be notified when the total number of MIDI input devices on the
11332                    back-end changes by issuing the following command:
11333    </p>
11334    <p>
11335                        </p>
11336    <blockquote class="text">
11337    <p>SUBSCRIBE MIDI_INPUT_DEVICE_COUNT
11338    </p>
11339    </blockquote><p>
11340                    
11341    </p>
11342    <p>Server will start sending the following notification messages:
11343    </p>
11344    <p>
11345                        </p>
11346    <blockquote class="text">
11347    <p>"NOTIFY:MIDI_INPUT_DEVICE_COUNT:&lt;devices&gt;"
11348    </p>
11349    </blockquote><p>
11350                    
11351    </p>
11352    <p>where &lt;devices&gt; will be replaced by the new number
11353                    of MIDI input devices.
11354    </p>
11355    <a name="SUBSCRIBE MIDI_INPUT_DEVICE_INFO"></a><br /><hr />
11356    <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>
11357    <a name="rfc.section.8.4"></a><h3>8.4.&nbsp;
11358    MIDI input device's settings changed</h3>
11359    
11360    <p>Client may want to be notified when changes were made to MIDI input devices on the
11361                    back-end by issuing the following command:
11362    </p>
11363    <p>
11364                        </p>
11365    <blockquote class="text">
11366    <p>SUBSCRIBE MIDI_INPUT_DEVICE_INFO
11367    </p>
11368    </blockquote><p>
11369                    
11370    </p>
11371    <p>Server will start sending the following notification messages:
11372    </p>
11373    <p>
11374                        </p>
11375    <blockquote class="text">
11376    <p>"NOTIFY:MIDI_INPUT_DEVICE_INFO:&lt;device-id&gt;"
11377    </p>
11378    </blockquote><p>
11379                    
11380    </p>
11381    <p>where &lt;device-id&gt; will be replaced by the numerical ID of the MIDI input device,
11382                    which settings has been changed. The front-end will have to send
11383                    the respective command to actually get the MIDI input device info. Because these messages
11384                    will be triggered by LSCP commands issued by other clients rather than real
11385                    time events happening on the server, it is believed that an empty notification
11386                    message is sufficient here.
11387    </p>
11388    <a name="SUBSCRIBE CHANNEL_COUNT"></a><br /><hr />
11389    <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>
11390    <a name="rfc.section.8.5"></a><h3>8.5.&nbsp;
11391  Number of sampler channels changed</h3>  Number of sampler channels changed</h3>
11392    
11393  <p>Client may want to be notified when the total number of channels on the  <p>Client may want to be notified when the total number of channels on the
# Line 7147  Number of sampler channels changed</h3> Line 11414  Number of sampler channels changed</h3>
11414  <p>where &lt;channels&gt; will be replaced by the new number  <p>where &lt;channels&gt; will be replaced by the new number
11415                  of sampler channels.                  of sampler channels.
11416  </p>  </p>
11417    <a name="SUBSCRIBE CHANNEL_MIDI"></a><br /><hr />
11418    <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>
11419    <a name="rfc.section.8.6"></a><h3>8.6.&nbsp;
11420    MIDI data on a sampler channel arrived</h3>
11421    
11422    <p>Client may want to be notified when MIDI data arrive on sampler channels on
11423                    back-end side, by issuing the following command:
11424    </p>
11425    <p>
11426                        </p>
11427    <blockquote class="text">
11428    <p>SUBSCRIBE CHANNEL_MIDI
11429    </p>
11430    </blockquote><p>
11431                    
11432    </p>
11433    <p>Server will start sending one of the the following notification messages:
11434    </p>
11435    <p>
11436                        </p>
11437    <blockquote class="text">
11438    <p>"NOTIFY:CHANNEL_MIDI:&lt;channel-id&gt; NOTE_ON  &lt;note&gt; &lt;velocity&gt;"
11439    </p>
11440    <p>"NOTIFY:CHANNEL_MIDI:&lt;channel-id&gt; NOTE_OFF &lt;note&gt; &lt;velocity&gt;"
11441    </p>
11442    </blockquote><p>
11443                    
11444    </p>
11445    <p>where &lt;channel-id&gt; will be replaced by the ID of the sampler channel where the MIDI
11446                    data arrived. &lt;note&gt; and &lt;velocity&gt; are integer values in the range between
11447                    0 .. 127, reflecting the analog meaning of the MIDI specification.
11448                    
11449    </p>
11450    <p>CAUTION: no guarantee whatsoever will be made that MIDI events are actually all
11451                    delivered by this mechanism! With other words: events could be lost at any time!
11452                    This restriction was made to keep the RT-safeness of the backend's MIDI and audio
11453                    thread unaffected by this feature.
11454    </p>
11455    <a name="SUBSCRIBE DEVICE_MIDI"></a><br /><hr />
11456    <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>
11457    <a name="rfc.section.8.7"></a><h3>8.7.&nbsp;
11458    MIDI data on a MIDI input device arrived</h3>
11459    
11460    <p>Client may want to be notified when MIDI data arrive on MIDI input devices by issuing the following command:
11461    </p>
11462    <p>
11463                                </p>
11464    <blockquote class="text">
11465    <p>SUBSCRIBE DEVICE_MIDI
11466    </p>
11467    </blockquote><p>
11468                        
11469    </p>
11470    <p>Server will start sending one of the the following notification messages:
11471    </p>
11472    <p>
11473                                </p>
11474    <blockquote class="text">
11475    <p>"NOTIFY:DEVICE_MIDI:&lt;device-id&gt; &lt;port-id&gt; NOTE_ON &lt;note&gt; &lt;velocity&gt;"
11476    </p>
11477    <p>"NOTIFY:DEVICE_MIDI:&lt;device-id&gt; &lt;port-id&gt; NOTE_OFF &lt;note&gt; &lt;velocity&gt;"
11478    </p>
11479    </blockquote><p>
11480                        
11481    </p>
11482    <p>where &lt;device-id&gt; &lt;port-id&gt; will be replaced
11483                           by the IDs of the respective MIDI input device and the device's MIDI port where the MIDI
11484                           data arrived. &lt;note&gt; and &lt;velocity&gt; are integer values in the range between
11485                           0 .. 127, reflecting the analog meaning of the MIDI specification.
11486                        
11487    </p>
11488    <p>CAUTION: no guarantee whatsoever will be made that MIDI events are actually all
11489                           delivered by this mechanism! With other words: events could be lost at any time!
11490                           This restriction was made to keep the RT-safeness of the backend's MIDI and audio
11491                           thread unaffected by this feature.
11492    </p>
11493  <a name="SUBSCRIBE VOICE_COUNT"></a><br /><hr />  <a name="SUBSCRIBE VOICE_COUNT"></a><br /><hr />
11494  <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>  <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>
11495  <a name="rfc.section.8.2"></a><h3>8.2.&nbsp;  <a name="rfc.section.8.8"></a><h3>8.8.&nbsp;
11496  Number of active voices changed</h3>  Number of active voices changed</h3>
11497    
11498  <p>Client may want to be notified when the number of voices on the  <p>Client may want to be notified when the number of voices on the
# Line 7168  Number of active voices changed</h3> Line 11511  Number of active voices changed</h3>
11511  <p>  <p>
11512                      </p>                      </p>
11513  <blockquote class="text">  <blockquote class="text">
11514  <p>"NOTIFY:VOICE_COUNT:&lt;sampler-channel&gt; &lt;voices&gt;  <p>"NOTIFY:VOICE_COUNT:&lt;sampler-channel&gt; &lt;voices&gt;"
11515  </p>  </p>
11516  </blockquote><p>  </blockquote><p>
11517                                    
# Line 7179  Number of active voices changed</h3> Line 11522  Number of active voices changed</h3>
11522  </p>  </p>
11523  <a name="SUBSCRIBE STREAM_COUNT"></a><br /><hr />  <a name="SUBSCRIBE STREAM_COUNT"></a><br /><hr />
11524  <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>  <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>
11525  <a name="rfc.section.8.3"></a><h3>8.3.&nbsp;  <a name="rfc.section.8.9"></a><h3>8.9.&nbsp;
11526  Number of active disk streams changed</h3>  Number of active disk streams changed</h3>
11527    
11528  <p>Client may want to be notified when the number of streams on the back-end  <p>Client may want to be notified when the number of streams on the back-end
# Line 7209  Number of active disk streams changed</h Line 11552  Number of active disk streams changed</h
11552  </p>  </p>
11553  <a name="SUBSCRIBE BUFFER_FILL"></a><br /><hr />  <a name="SUBSCRIBE BUFFER_FILL"></a><br /><hr />
11554  <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>  <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>
11555  <a name="rfc.section.8.4"></a><h3>8.4.&nbsp;  <a name="rfc.section.8.10"></a><h3>8.10.&nbsp;
11556  Disk stream buffer fill state changed</h3>  Disk stream buffer fill state changed</h3>
11557    
11558  <p>Client may want to be notified when the buffer fill state of a disk stream  <p>Client may want to be notified when the buffer fill state of a disk stream
# Line 7238  Disk stream buffer fill state changed</h Line 11581  Disk stream buffer fill state changed</h
11581                  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>                  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>
11582                  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.                  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.
11583  </p>  </p>
11584  <a name="SUBSCRIBE INFO"></a><br /><hr />  <a name="SUBSCRIBE CHANNEL_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>  <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  <a name="rfc.section.8.5"></a><h3>8.5.&nbsp;  <a name="rfc.section.8.11"></a><h3>8.11.&nbsp;
11587  Channel information changed</h3>  Channel information changed</h3>
11588    
11589  <p>Client may want to be notified when changes were made to sampler channels on the  <p>Client may want to be notified when changes were made to sampler channels on the
# Line 7271  Channel information changed</h3> Line 11614  Channel information changed</h3>
11614                  time events happening on the server, it is believed that an empty notification                  time events happening on the server, it is believed that an empty notification
11615                  message is sufficient here.                  message is sufficient here.
11616  </p>  </p>
11617    <a name="SUBSCRIBE FX_SEND_COUNT"></a><br /><hr />
11618    <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    <a name="rfc.section.8.12"></a><h3>8.12.&nbsp;
11620    Number of effect sends changed</h3>
11621    
11622    <p>Client may want to be notified when the number of effect sends on
11623                    a particular sampler channel is changed by issuing the following command:
11624    </p>
11625    <p>
11626                        </p>
11627    <blockquote class="text">
11628    <p>SUBSCRIBE FX_SEND_COUNT
11629    </p>
11630    </blockquote><p>
11631                    
11632    </p>
11633    <p>Server will start sending the following notification messages:
11634    </p>
11635    <p>
11636                        </p>
11637    <blockquote class="text">
11638    <p>"NOTIFY:FX_SEND_COUNT:&lt;channel-id&gt; &lt;fx-sends&gt;"
11639    </p>
11640    </blockquote><p>
11641                    
11642    </p>
11643    <p>where &lt;channel-id&gt; will be replaced by the numerical ID of the sampler
11644                    channel, on which the effect sends number is changed and &lt;fx-sends&gt; will
11645                    be replaced by the new number of effect sends on that channel.
11646    </p>
11647    <a name="SUBSCRIBE FX_SEND_INFO"></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.8.13"></a><h3>8.13.&nbsp;
11650    Effect send information changed</h3>
11651    
11652    <p>Client may want to be notified when changes were made to effect sends on a
11653                    a particular sampler channel by issuing the following command:
11654    </p>
11655    <p>
11656                        </p>
11657    <blockquote class="text">
11658    <p>SUBSCRIBE FX_SEND_INFO
11659    </p>
11660    </blockquote><p>
11661                    
11662    </p>
11663    <p>Server will start sending the following notification messages:
11664    </p>
11665    <p>
11666                        </p>
11667    <blockquote class="text">
11668    <p>"NOTIFY:FX_SEND_INFO:&lt;channel-id&gt; &lt;fx-send-id&gt;"
11669    </p>
11670    </blockquote><p>
11671                    
11672    </p>
11673    <p>where &lt;channel-id&gt; will be replaced by the numerical ID of the sampler
11674                    channel, on which an effect send entity is changed and &lt;fx-send-id&gt; will
11675                    be replaced by the numerical ID of the changed effect send.
11676    </p>
11677  <a name="SUBSCRIBE TOTAL_VOICE_COUNT"></a><br /><hr />  <a name="SUBSCRIBE TOTAL_VOICE_COUNT"></a><br /><hr />
11678  <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>  <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>
11679  <a name="rfc.section.8.6"></a><h3>8.6.&nbsp;  <a name="rfc.section.8.14"></a><h3>8.14.&nbsp;
11680  Total number of active voices changed</h3>  Total number of active voices changed</h3>
11681    
11682  <p>Client may want to be notified when the total number of voices on the  <p>Client may want to be notified when the total number of voices on the
# Line 7292  Total number of active voices changed</h Line 11695  Total number of active voices changed</h
11695  <p>  <p>
11696                      </p>                      </p>
11697  <blockquote class="text">  <blockquote class="text">
11698  <p>"NOTIFY:TOTAL_VOICE_COUNT:&lt;voices&gt;  <p>"NOTIFY:TOTAL_VOICE_COUNT:&lt;voices&gt;"
11699  </p>  </p>
11700  </blockquote><p>  </blockquote><p>
11701                                    
# Line 7300  Total number of active voices changed</h Line 11703  Total number of active voices changed</h
11703  <p>where &lt;voices&gt; will be replaced by the new number of  <p>where &lt;voices&gt; will be replaced by the new number of
11704                  all currently active voices.                  all currently active voices.
11705  </p>  </p>
11706    <a name="SUBSCRIBE TOTAL_STREAM_COUNT"></a><br /><hr />
11707    <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>
11708    <a name="rfc.section.8.15"></a><h3>8.15.&nbsp;
11709    Total number of active disk streams changed</h3>
11710    
11711    <p>Client may want to be notified when the total number of disk streams on the
11712                    back-end changes by issuing the following command:
11713    </p>
11714    <p>
11715                        </p>
11716    <blockquote class="text">
11717    <p>SUBSCRIBE TOTAL_STREAM_COUNT
11718    </p>
11719    </blockquote><p>
11720                    
11721    </p>
11722    <p>Server will start sending the following notification messages:
11723    </p>
11724    <p>
11725                        </p>
11726    <blockquote class="text">
11727    <p>"NOTIFY:TOTAL_STREAM_COUNT:&lt;streams&gt;"
11728    </p>
11729    </blockquote><p>
11730                    
11731    </p>
11732    <p>where &lt;streams&gt; will be replaced by the new number of
11733                    all currently active disk streams.
11734    </p>
11735    <a name="SUBSCRIBE MIDI_INSTRUMENT_MAP_COUNT"></a><br /><hr />
11736    <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>
11737    <a name="rfc.section.8.16"></a><h3>8.16.&nbsp;
11738    Number of MIDI instrument maps changed</h3>
11739    
11740    <p>Client may want to be notified when the number of MIDI instrument maps on the
11741                    back-end changes by issuing the following command:
11742    </p>
11743    <p>
11744                        </p>
11745    <blockquote class="text">
11746    <p>SUBSCRIBE MIDI_INSTRUMENT_MAP_COUNT
11747    </p>
11748    </blockquote><p>
11749                    
11750    </p>
11751    <p>Server will start sending the following notification messages:
11752    </p>
11753    <p>
11754                        </p>
11755    <blockquote class="text">
11756    <p>"NOTIFY:MIDI_INSTRUMENT_MAP_COUNT:&lt;maps&gt;"
11757    </p>
11758    </blockquote><p>
11759                    
11760    </p>
11761    <p>where &lt;maps&gt; will be replaced by the new number
11762                    of MIDI instrument maps.
11763    </p>
11764    <a name="SUBSCRIBE MIDI_INSTRUMENT_MAP_INFO"></a><br /><hr />
11765    <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>
11766    <a name="rfc.section.8.17"></a><h3>8.17.&nbsp;
11767    MIDI instrument map information changed</h3>
11768    
11769    <p>Client may want to be notified when changes were made to MIDI instrument maps on the
11770                    back-end by issuing the following command:
11771    </p>
11772    <p>
11773                        </p>
11774    <blockquote class="text">
11775    <p>SUBSCRIBE MIDI_INSTRUMENT_MAP_INFO
11776    </p>
11777    </blockquote><p>
11778                    
11779    </p>
11780    <p>Server will start sending the following notification messages:
11781    </p>
11782    <p>
11783                        </p>
11784    <blockquote class="text">
11785    <p>"NOTIFY:MIDI_INSTRUMENT_MAP_INFO:&lt;map-id&gt;"
11786    </p>
11787    </blockquote><p>
11788                    
11789    </p>
11790    <p>where &lt;map-id&gt; will be replaced by the numerical ID of the MIDI instrument map,
11791                    for which information changes occurred. The front-end will have to send
11792                    the respective command to actually get the MIDI instrument map info. Because these messages
11793                    will be triggered by LSCP commands issued by other clients rather than real
11794                    time events happening on the server, it is believed that an empty notification
11795                    message is sufficient here.
11796    </p>
11797    <a name="SUBSCRIBE MIDI_INSTRUMENT_COUNT"></a><br /><hr />
11798    <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>
11799    <a name="rfc.section.8.18"></a><h3>8.18.&nbsp;
11800    Number of MIDI instruments changed</h3>
11801    
11802    <p>Client may want to be notified when the number of MIDI instrument maps on the
11803                    back-end changes by issuing the following command:
11804    </p>
11805    <p>
11806                        </p>
11807    <blockquote class="text">
11808    <p>SUBSCRIBE MIDI_INSTRUMENT_COUNT
11809    </p>
11810    </blockquote><p>
11811                    
11812    </p>
11813    <p>Server will start sending the following notification messages:
11814    </p>
11815    <p>
11816                        </p>
11817    <blockquote class="text">
11818    <p>"NOTIFY:MIDI_INSTRUMENT_COUNT:&lt;map-id&gt; &lt;instruments&gt;"
11819    </p>
11820    </blockquote><p>
11821                    
11822    </p>
11823    <p>where &lt;map-id&gt; is the numerical ID of the MIDI instrument map, in which
11824                    the nuber of instruments has changed and &lt;instruments&gt; will be replaced by
11825                    the new number of MIDI instruments in the specified map.
11826    </p>
11827    <a name="SUBSCRIBE MIDI_INSTRUMENT_INFO"></a><br /><hr />
11828    <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>
11829    <a name="rfc.section.8.19"></a><h3>8.19.&nbsp;
11830    MIDI instrument information changed</h3>
11831    
11832    <p>Client may want to be notified when changes were made to MIDI instruments on the
11833                    back-end by issuing the following command:
11834    </p>
11835    <p>
11836                        </p>
11837    <blockquote class="text">
11838    <p>SUBSCRIBE MIDI_INSTRUMENT_INFO
11839    </p>
11840    </blockquote><p>
11841                    
11842    </p>
11843    <p>Server will start sending the following notification messages:
11844    </p>
11845    <p>
11846                        </p>
11847    <blockquote class="text">
11848    <p>"NOTIFY:MIDI_INSTRUMENT_INFO:&lt;map-id&gt; &lt;bank&gt; &lt;program&gt;"
11849    </p>
11850    </blockquote><p>
11851                    
11852    </p>
11853    <p>where &lt;map-id&gt; will be replaced by the numerical ID of the MIDI instrument map,
11854                    in which a MIDI instrument is changed. &lt;bank&gt; and &lt;program&gt; specifies
11855                    the location of the changed MIDI instrument in the map. The front-end will have to send
11856                    the respective command to actually get the MIDI instrument info. Because these messages
11857                    will be triggered by LSCP commands issued by other clients rather than real
11858                    time events happening on the server, it is believed that an empty notification
11859                    message is sufficient here.
11860    </p>
11861    <a name="SUBSCRIBE GLOBAL_INFO"></a><br /><hr />
11862    <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>
11863    <a name="rfc.section.8.20"></a><h3>8.20.&nbsp;
11864    Global settings changed</h3>
11865    
11866    <p>Client may want to be notified when changes to the global settings
11867                    of the sampler were made by issuing the following command:
11868    </p>
11869    <p>
11870                        </p>
11871    <blockquote class="text">
11872    <p>SUBSCRIBE GLOBAL_INFO
11873    </p>
11874    </blockquote><p>
11875                    
11876    </p>
11877    <p>Server will start sending the following types of notification messages:
11878    </p>
11879    <p>
11880                        </p>
11881    <blockquote class="text">
11882    <p>"NOTIFY:GLOBAL_INFO:VOLUME &lt;volume&gt;" - Notifies that the
11883                            golbal volume of the sampler is changed, where &lt;volume&gt; will be
11884                            replaced by the optional dotted floating point value, reflecting the
11885                            new global volume parameter.
11886    </p>
11887    </blockquote><p>
11888                        </p>
11889    <blockquote class="text">
11890    <p>"NOTIFY:GLOBAL_INFO:VOICES &lt;max-voices&gt;" - Notifies that the
11891                            golbal limit of the sampler for maximum voices is changed, where
11892                            &lt;max-voices&gt; will be an integer value, reflecting the
11893                            new global voice limit parameter.
11894    </p>
11895    </blockquote><p>
11896                        </p>
11897    <blockquote class="text">
11898    <p>"NOTIFY:GLOBAL_INFO:STREAMS &lt;max-streams&gt;" - Notifies that the
11899                            golbal limit of the sampler for maximum disk streams is changed, where
11900                            &lt;max-streams&gt; will be an integer value, reflecting the
11901                            new global disk streams limit parameter.
11902    </p>
11903    </blockquote><p>
11904                    
11905    </p>
11906    <a name="SUBSCRIBE DB_INSTRUMENT_DIRECTORY_COUNT"></a><br /><hr />
11907    <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>
11908    <a name="rfc.section.8.21"></a><h3>8.21.&nbsp;
11909    Number of database instrument directories changed</h3>
11910    
11911    <p>Client may want to be notified when the number of instrument
11912                    directories in a particular directory in the instruments database
11913                    is changed by issuing the following command:
11914    </p>
11915    <p>
11916                        </p>
11917    <blockquote class="text">
11918    <p>SUBSCRIBE DB_INSTRUMENT_DIRECTORY_COUNT
11919    </p>
11920    </blockquote><p>
11921                    
11922    </p>
11923    <p>Server will start sending the following notification messages:
11924    </p>
11925    <p>
11926                        </p>
11927    <blockquote class="text">
11928    <p>"NOTIFY:DB_INSTRUMENT_DIRECTORY_COUNT:&lt;dir-path&gt;"
11929    </p>
11930    </blockquote><p>
11931                    
11932    </p>
11933    <p>where &lt;dir-path&gt; will be replaced by the absolute path
11934                    name of the directory in the instruments database,
11935                    in which the number of directories is changed.
11936    </p>
11937    <p>Note that when a non-empty directory is removed, this event
11938                    is not sent for the subdirectories in that directory.
11939    </p>
11940    <a name="SUBSCRIBE DB_INSTRUMENT_DIRECTORY_INFO"></a><br /><hr />
11941    <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>
11942    <a name="rfc.section.8.22"></a><h3>8.22.&nbsp;
11943    Database instrument directory information changed</h3>
11944    
11945    <p>Client may want to be notified when changes were made to directories
11946                    in the instruments database by issuing the following command:
11947    </p>
11948    <p>
11949                        </p>
11950    <blockquote class="text">
11951    <p>SUBSCRIBE DB_INSTRUMENT_DIRECTORY_INFO
11952    </p>
11953    </blockquote><p>
11954                    
11955    </p>
11956    <p>Server will start sending the following notification messages:
11957    </p>
11958    <p>
11959                        </p>
11960    <blockquote class="text">
11961    <p>"NOTIFY:DB_INSTRUMENT_DIRECTORY_INFO:&lt;dir-path&gt;"
11962    </p>
11963    </blockquote><p>
11964                    
11965    </p>
11966    <p>where &lt;dir-path&gt; will be replaced by the absolute path name
11967                    of the directory, for which information changes occurred. The front-end will have to send
11968                    the respective command to actually get the updated directory info. Because these messages
11969                    will be triggered by LSCP commands issued by other clients rather than real
11970                    time events happening on the server, it is believed that an empty notification
11971                    message is sufficient here.
11972    </p>
11973    <p>
11974                        </p>
11975    <blockquote class="text">
11976    <p>"NOTIFY:DB_INSTRUMENT_DIRECTORY_INFO:NAME &lt;old-dir-path&gt; &lt;new-name&gt;"
11977    </p>
11978    </blockquote><p>
11979                    
11980    </p>
11981    <p>where &lt;old-dir-path&gt; is the old absolute path name of the directory
11982                    (encapsulated into apostrophes), which name is changes and &lt;new-name&gt; is
11983                    the new name of the directory, encapsulated into apostrophes.
11984    </p>
11985    <a name="SUBSCRIBE DB_INSTRUMENT_COUNT"></a><br /><hr />
11986    <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>
11987    <a name="rfc.section.8.23"></a><h3>8.23.&nbsp;
11988    Number of database instruments changed</h3>
11989    
11990    <p>Client may want to be notified when the number of instruments
11991                    in a particular directory in the instruments database
11992                    is changed by issuing the following command:
11993    </p>
11994    <p>
11995                        </p>
11996    <blockquote class="text">
11997    <p>SUBSCRIBE DB_INSTRUMENT_COUNT
11998    </p>
11999    </blockquote><p>
12000                    
12001    </p>
12002    <p>Server will start sending the following notification messages:
12003    </p>
12004    <p>
12005                        </p>
12006    <blockquote class="text">
12007    <p>"NOTIFY:DB_INSTRUMENT_COUNT:&lt;dir-path&gt;"
12008    </p>
12009    </blockquote><p>
12010                    
12011    </p>
12012    <p>where &lt;dir-path&gt; will be replaced by the absolute path
12013                    name of the directory in the instruments database,
12014                    in which the number of instruments is changed.
12015    </p>
12016    <p>Note that when a non-empty directory is removed, this event
12017                    is not sent for the instruments in that directory.
12018    </p>
12019    <a name="SUBSCRIBE DB_INSTRUMENT_INFO"></a><br /><hr />
12020    <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>
12021    <a name="rfc.section.8.24"></a><h3>8.24.&nbsp;
12022    Database instrument information changed</h3>
12023    
12024    <p>Client may want to be notified when changes were made to instruments
12025                    in the instruments database by issuing the following command:
12026    </p>
12027    <p>
12028                        </p>
12029    <blockquote class="text">
12030    <p>SUBSCRIBE DB_INSTRUMENT_INFO
12031    </p>
12032    </blockquote><p>
12033                    
12034    </p>
12035    <p>Server will start sending the following notification messages:
12036    </p>
12037    <p>
12038                        </p>
12039    <blockquote class="text">
12040    <p>"NOTIFY:DB_INSTRUMENT_INFO:&lt;instr-path&gt;"
12041    </p>
12042    </blockquote><p>
12043                    
12044    </p>
12045    <p>where &lt;instr-path&gt; will be replaced by the absolute path name
12046                    of the instrument, which settings are changed. The front-end will have to send
12047                    the respective command to actually get the updated directory info. Because these messages
12048                    will be triggered by LSCP commands issued by other clients rather than real
12049                    time events happening on the server, it is believed that an empty notification
12050                    message is sufficient here.
12051    </p>
12052    <p>
12053                        </p>
12054    <blockquote class="text">
12055    <p>"NOTIFY:DB_INSTRUMENT_INFO:NAME &lt;old-instr-path&gt; &lt;new-name&gt;"
12056    </p>
12057    </blockquote><p>
12058                    
12059    </p>
12060    <p>where &lt;old-instr-path&gt; is the old absolute path name of the instrument
12061                    (encapsulated into apostrophes), which name is changes and &lt;new-name&gt; is
12062                    the new name of the instrument, encapsulated into apostrophes.
12063    </p>
12064    <a name="SUBSCRIBE DB_INSTRUMENTS_JOB_INFO"></a><br /><hr />
12065    <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>
12066    <a name="rfc.section.8.25"></a><h3>8.25.&nbsp;
12067    Database job status information changed</h3>
12068    
12069    <p>Client may want to be notified when the status of particular database
12070                    instruments job is changed by issuing the following command:
12071    </p>
12072    <p>
12073                        </p>
12074    <blockquote class="text">
12075    <p>SUBSCRIBE DB_INSTRUMENTS_JOB_INFO
12076    </p>
12077    </blockquote><p>
12078                    
12079    </p>
12080    <p>Server will start sending the following notification messages:
12081    </p>
12082    <p>
12083                        </p>
12084    <blockquote class="text">
12085    <p>"NOTIFY:DB_INSTRUMENTS_JOB_INFO:&lt;job-id&gt;"
12086    </p>
12087    </blockquote><p>
12088                    
12089    </p>
12090    <p>where &lt;job-id&gt; will be replaced by the numerical ID of the job,
12091                    which status is changed. The front-end will have to send the respective
12092                    command to actually get the status info. Because these messages
12093                    will be triggered by LSCP commands issued by other clients rather than real
12094                    time events happening on the server, it is believed that an empty notification
12095                    message is sufficient here.
12096    </p>
12097  <a name="SUBSCRIBE MISCELLANEOUS"></a><br /><hr />  <a name="SUBSCRIBE MISCELLANEOUS"></a><br /><hr />
12098  <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>  <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>
12099  <a name="rfc.section.8.7"></a><h3>8.7.&nbsp;  <a name="rfc.section.8.26"></a><h3>8.26.&nbsp;
12100  Miscellaneous and debugging events</h3>  Miscellaneous and debugging events</h3>
12101    
12102  <p>Client may want to be notified of miscellaneous and debugging events occurring at  <p>Client may want to be notified of miscellaneous and debugging events occurring at
# Line 7367  Acknowledgments</h3> Line 12161  Acknowledgments</h3>
12161  <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>  <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>
12162  <h3>11.&nbsp;References</h3>  <h3>11.&nbsp;References</h3>
12163  <table width="99%" border="0">  <table width="99%" border="0">
12164    <tr><td class="author-text" valign="top"><a name="RFC20">[RFC20]</a></td>
12165    <td class="author-text">UCLA, &ldquo;<a href="http://tools.ietf.org/html/rfc20">ASCII format for Network Interchange</a>,&rdquo; RFC&nbsp;20, 1969.</td></tr>
12166  <tr><td class="author-text" valign="top"><a name="RFC2119">[RFC2119]</a></td>  <tr><td class="author-text" valign="top"><a name="RFC2119">[RFC2119]</a></td>
12167  <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>  <td class="author-text">Bradner, S., &ldquo;<a href="http://tools.ietf.org/html/rfc2119">Key words for use in RFCs to Indicate Requirement Levels</a>,&rdquo; RFC&nbsp;2119, 1997.</td></tr>
12168  <tr><td class="author-text" valign="top"><a name="RFC2234">[RFC2234]</a></td>  <tr><td class="author-text" valign="top"><a name="RFC2234">[RFC2234]</a></td>
12169  <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>  <td class="author-text">Crocker, D. and P. Overell, &ldquo;<a href="http://tools.ietf.org/html/rfc2234">Augmented BNF for Syntax Specifications</a>,&rdquo; RFC&nbsp;2234, 1997.</td></tr>
12170  <tr><td class="author-text" valign="top"><a name="RFC793">[RFC793]</a></td>  <tr><td class="author-text" valign="top"><a name="RFC793">[RFC793]</a></td>
12171  <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>  <td class="author-text">Defense Advanced Research Projects Agency, &ldquo;<a href="http://tools.ietf.org/html/rfc793">TRANSMISSION CONTROL PROTOCOL</a>,&rdquo; RFC&nbsp;793, 1981.</td></tr>
12172  </table>  </table>
12173    
12174  <a name="rfc.authors"></a><br /><hr />  <a name="rfc.authors"></a><br /><hr />
# Line 7397  Schoenebeck</td></tr> Line 12193  Schoenebeck</td></tr>
12193  <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>  <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>
12194  <h3>Full Copyright Statement</h3>  <h3>Full Copyright Statement</h3>
12195  <p class='copyright'>  <p class='copyright'>
12196  Copyright &copy; The Internet Society (2006).</p>  Copyright &copy; The IETF Trust (2009).</p>
12197  <p class='copyright'>  <p class='copyright'>
12198  This document is subject to the rights,  This document is subject to the rights,
12199  licenses and restrictions contained in BCP&nbsp;78,  licenses and restrictions contained in BCP&nbsp;78,
# Line 7406  the authors retain all their rights.</p> Line 12202  the authors retain all their rights.</p>
12202  <p class='copyright'>  <p class='copyright'>
12203  This document and the information contained herein are provided  This document and the information contained herein are provided
12204  on an &ldquo;AS IS&rdquo; basis and THE CONTRIBUTOR,  on an &ldquo;AS IS&rdquo; basis and THE CONTRIBUTOR,
12205  THE ORGANIZATION HE/SHE REPRESENTS OR IS SPONSORED BY (IF ANY),  THE ORGANIZATION HE/SHE REPRESENTS
12206  THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIM  OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST
12207  ALL WARRANTIES,  AND THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES,
12208  EXPRESS OR IMPLIED,  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT
12209  INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE  THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY
12210  INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED  IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR
12211  WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.</p>  PURPOSE.</p>
12212  <h3>Intellectual Property</h3>  <h3>Intellectual Property</h3>
12213  <p class='copyright'>  <p class='copyright'>
12214  The IETF takes no position regarding the validity or scope of any  The IETF takes no position regarding the validity or scope of any
# Line 7439  or other Line 12235  or other
12235  proprietary rights that may cover technology that may be required  proprietary rights that may cover technology that may be required
12236  to implement this standard.  to implement this standard.
12237  Please address the information to the IETF at <a href='mailto:ietf-ipr@ietf.org'>ietf-ipr@ietf.org</a>.</p>  Please address the information to the IETF at <a href='mailto:ietf-ipr@ietf.org'>ietf-ipr@ietf.org</a>.</p>
 <h3>Acknowledgment</h3>  
 <p class='copyright'>  
 Funding for the RFC Editor function is provided by  
 the IETF Administrative Support Activity (IASA).</p>  
12238  </body></html>  </body></html>
12239    

Legend:
Removed from v.974  
changed lines
  Added in v.1960

  ViewVC Help
Powered by ViewVC