/[svn]/linuxsampler/trunk/Documentation/lscp.xml
ViewVC logotype

Diff of /linuxsampler/trunk/Documentation/lscp.xml

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

revision 1161 by iliev, Mon Apr 16 15:51:18 2007 UTC revision 1800 by schoenebeck, Sun Dec 7 01:26:46 2008 UTC
# Line 16  Line 16 
16       to an annoying "missing Normative/Informative References" error message -->       to an annoying "missing Normative/Informative References" error message -->
17  <?rfc strict="no" ?>  <?rfc strict="no" ?>
18    
19  <rfc category="std" ipr="full3978" docName="LSCP 1.2">  <rfc category="std" ipr="full3978" docName="LSCP 1.4">
20      <front>      <front>
21          <title>LinuxSampler Control Protocol</title>          <title>LinuxSampler Control Protocol</title>
22          <author initials='C.S.' surname="Schoenebeck" fullname='C.          <author initials='C.S.' surname="Schoenebeck" fullname='C.
# Line 34  Schoenebeck'> Line 34  Schoenebeck'>
34                  <email>schoenebeck at software minus engineering dot org</email>                  <email>schoenebeck at software minus engineering dot org</email>
35              </address>              </address>
36          </author>          </author>
37          <date month="April" year="2007"/>          <date month="December" year="2008"/>
38          <workgroup>LinuxSampler Developers</workgroup>          <workgroup>LinuxSampler Developers</workgroup>
39          <keyword>LSCP</keyword>          <keyword>LSCP</keyword>
40          <abstract>          <abstract>
# Line 61  Schoenebeck'> Line 61  Schoenebeck'>
61              (front-end) and server (LinuxSampler) respectively. Lines in              (front-end) and server (LinuxSampler) respectively. Lines in
62              examples must be interpreted as every line being CRLF              examples must be interpreted as every line being CRLF
63              terminated (carriage return character followed by line feed              terminated (carriage return character followed by line feed
64              character as defined in the ASCII standard), thus the following              character as defined in the ASCII standard <xref target="RFC20"/>),
65              example:</t>              thus the following example:</t>
66    
67              <t>              <t>
68                  <list>                  <list>
# Line 2061  Schoenebeck'> Line 2061  Schoenebeck'>
2061                      or <xref target="LIST MIDI_INPUT_DEVICES">"LIST MIDI_INPUT_DEVICES"</xref>                      or <xref target="LIST MIDI_INPUT_DEVICES">"LIST MIDI_INPUT_DEVICES"</xref>
2062                      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
2063                      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
2064                      parameter.</t>                      parameter (encapsulated into apostrophes) or NONE (not encapsulated into apostrophes)
2065                        for specifying no value for parameters allowing a list of values.</t>
2066    
2067                      <t>Possible Answers:</t>                      <t>Possible Answers:</t>
2068                      <t>                      <t>
# Line 2088  Schoenebeck'> Line 2089  Schoenebeck'>
2089                      <t>Example:</t>                      <t>Example:</t>
2090                      <t>                      <t>
2091                          <list>                          <list>
2092                              <t></t>                              <t>C: "SET MIDI_INPUT_PORT_PARAMETER 0 0 ALSA_SEQ_BINDINGS='20:0'"</t>
2093                                <t>S: "OK"</t>
2094                            </list>
2095                        </t>
2096                        <t>
2097                            <list>
2098                                <t>C: "SET MIDI_INPUT_PORT_PARAMETER 0 0 ALSA_SEQ_BINDINGS=NONE"</t>
2099                                <t>S: "OK"</t>
2100                          </list>                          </list>
2101                      </t>                      </t>
2102                  </section>                  </section>
# Line 2113  Schoenebeck'> Line 2121  Schoenebeck'>
2121                      number of the sampler channel the instrument should be assigned to.                      number of the sampler channel the instrument should be assigned to.
2122                      Each sampler channel can only have one instrument.</t>                      Each sampler channel can only have one instrument.</t>
2123    
2124                        <t>Notice: since LSCP 1.2 the &lt;filename&gt; argument supports
2125                        escape characters for special characters (see chapter
2126                        "<xref target="character_set">Character Set and Escape Sequences</xref>"
2127                        for details) and accordingly backslash characters in the filename
2128                        MUST now be escaped as well!</t>
2129    
2130                      <t>The difference between regular and NON_MODAL versions of the command                      <t>The difference between regular and NON_MODAL versions of the command
2131                      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
2132                      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 2148  Schoenebeck'> Line 2162  Schoenebeck'>
2162                              </t>                              </t>
2163                          </list>                          </list>
2164                      </t>                      </t>
2165                      <t>Example:</t>                      <t>Example (Unix):</t>
2166                      <t>                      <t>
2167                          <list>                          <list>
2168                              <t></t>                              <t>C: LOAD INSTRUMENT '/home/joe/gigs/cello.gig' 0 0</t>
2169                                <t>S: OK</t>
2170                            </list>
2171                        </t>
2172                        <t>Example (Windows):</t>
2173                        <t>
2174                            <list>
2175                                <t>C: LOAD INSTRUMENT 'D:/MySounds/cello.gig' 0 0</t>
2176                                <t>S: OK</t>
2177                          </list>                          </list>
2178                      </t>                      </t>
2179                  </section>                  </section>
# Line 2429  Schoenebeck'> Line 2451  Schoenebeck'>
2451                                  <list>                                  <list>
2452                                      <t>DESCRIPTION -                                      <t>DESCRIPTION -
2453                                          <list>                                          <list>
2454                                              <t>arbitrary description text about the engine</t>                                              <t>arbitrary description text about the engine
2455                                                (note that the character string may contain
2456                                                <xref target="character_set">escape sequences</xref>)</t>
2457                                          </list>                                          </list>
2458                                      </t>                                      </t>
2459                                       <t>VERSION -                                       <t>VERSION -
# Line 2513  Schoenebeck'> Line 2537  Schoenebeck'>
2537                                          <list>                                          <list>
2538                                              <t>the file name of the loaded instrument, "NONE" if                                              <t>the file name of the loaded instrument, "NONE" if
2539                                              there's no instrument yet loaded for this sampler                                              there's no instrument yet loaded for this sampler
2540                                              channel</t>                                              channel (note: since LSCP 1.2 this path may contain
2541                                                <xref target="character_set">escape sequences</xref>)</t>
2542                                          </list>                                          </list>
2543                                      </t>                                      </t>
2544                                      <t>INSTRUMENT_NR -                                      <t>INSTRUMENT_NR -
# Line 2523  Schoenebeck'> Line 2548  Schoenebeck'>
2548                                      </t>                                      </t>
2549                                      <t>INSTRUMENT_NAME -                                      <t>INSTRUMENT_NAME -
2550                                          <list>                                          <list>
2551                                              <t>the instrument name of the loaded instrument</t>                                              <t>the instrument name of the loaded instrument
2552                                                (note: since LSCP 1.2 this character string may contain
2553                                                <xref target="character_set">escape sequences</xref>)</t>
2554                                          </list>                                          </list>
2555                                      </t>                                      </t>
2556                                      <t>INSTRUMENT_STATUS -                                      <t>INSTRUMENT_STATUS -
# Line 3241  Schoenebeck'> Line 3268  Schoenebeck'>
3268                      sampler channel on which the effect send should be created on, &lt;midi-ctrl&gt;                      sampler channel on which the effect send should be created on, &lt;midi-ctrl&gt;
3269                      is a number between 0..127 defining the MIDI controller which can alter the                      is a number between 0..127 defining the MIDI controller which can alter the
3270                      effect send level and &lt;name&gt; is an optional argument defining a name                      effect send level and &lt;name&gt; is an optional argument defining a name
3271                      for the effect send entity. The name does not have to be unique.</t>                      for the effect send entity. The name does not have to be unique, but MUST be
3272                        encapsulated into apostrophes and supports escape sequences as described in chapter
3273                        "<xref target="character_set">Character Set and Escape Sequences</xref>".</t>
3274    
3275                      <t>By default, that is as initial routing, the effect send's audio channels                      <t>By default, that is as initial routing, the effect send's audio channels
3276                      are automatically routed to the last audio channels of the sampler channel's                      are automatically routed to the last audio channels of the sampler channel's
# Line 3431  Schoenebeck'> Line 3460  Schoenebeck'>
3460                                  <list>                                  <list>
3461                                      <t>NAME -                                      <t>NAME -
3462                                          <list>                                          <list>
3463                                              <t>name of the effect send entity</t>                                              <t>name of the effect send entity
3464                                                (note that this character string may contain
3465                                                 <xref target="character_set">escape sequences</xref>)</t>
3466                                          </list>                                          </list>
3467                                      </t>                                      </t>
3468                                      <t>MIDI_CONTROLLER -                                      <t>MIDI_CONTROLLER -
# Line 3494  Schoenebeck'> Line 3525  Schoenebeck'>
3525                      as returned by the <xref target="CREATE FX_SEND">"CREATE FX_SEND"</xref>                      as returned by the <xref target="CREATE FX_SEND">"CREATE FX_SEND"</xref>
3526                      or <xref target="LIST FX_SENDS">"LIST FX_SENDS"</xref> command and                      or <xref target="LIST FX_SENDS">"LIST FX_SENDS"</xref> command and
3527                      &lt;name&gt; is the new name of the effect send entity, which                      &lt;name&gt; is the new name of the effect send entity, which
3528                      does not have to be unique.</t>                      does not have to be unique (name MUST be encapsulated into apostrophes
3529                        and supports escape sequences as described in chapter
3530                        "<xref target="character_set">Character Set and Escape Sequences</xref>").
3531                        </t>
3532    
3533                      <t>Possible Answers:</t>                      <t>Possible Answers:</t>
3534                      <t>                      <t>
# Line 3677  Schoenebeck'> Line 3711  Schoenebeck'>
3711                      </t>                      </t>
3712                  </section>                  </section>
3713    
3714                    <section title="Sending MIDI messages to sampler channel" anchor="SEND CHANNEL MIDI_DATA">
3715                        <t>The front-end can send MIDI events to specific sampler channel
3716                        by sending the following command:</t>
3717                        <t>
3718                            <list>
3719                                <t>SEND CHANNEL MIDI_DATA &lt;midi-msg&gt; &lt;sampler-chan&gt; &lt;arg1&gt; &lt;arg2&gt;</t>
3720                            </list>
3721                        </t>
3722                        <t>Where &lt;sampler-chan&gt; is the sampler channel number
3723                        as returned by the <xref target="ADD CHANNEL">"ADD CHANNEL"</xref>
3724                        or <xref target="LIST CHANNELS">"LIST CHANNELS"</xref> command,
3725                        &lt;arg1&gt; and &lt;arg2&gt; arguments depend on the &lt;midi-msg&gt; argument, which
3726                        specifies the MIDI message type. Currently, the following MIDI messages are supported:</t>
3727                        <t>
3728                            <list>
3729                                <t>"NOTE_ON" -
3730                                    <list>
3731                                        <t>For turning on MIDI notes, where &lt;arg1&gt;
3732                                        specifies the key number and &lt;arg2&gt; the velocity
3733                                        as described in the MIDI specification.</t>
3734                                    </list>
3735                                </t>
3736                                <t>"NOTE_OFF" -
3737                                    <list>
3738                                        <t>For turning a currently playing MIDI note off, where &lt;arg1&gt;
3739                                        specifies the key number and &lt;arg2&gt; the velocity
3740                                        as described in the MIDI specification.</t>
3741                                    </list>
3742                                </t>
3743                            </list>
3744                        </t>
3745                        <t>CAUTION: This command is provided for implementations of virtual MIDI keyboards
3746                        and no realtime guarantee whatsoever will be made!</t>
3747                        <t>Possible Answers:</t>
3748                        <t>
3749                            <list>
3750                                <t>"OK" -
3751                                    <list>
3752                                        <t>on success</t>
3753                                    </list>
3754                                </t>
3755                                <t>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
3756                                    <list>
3757                                        <t>in case it failed, providing an appropriate error code and error message</t>
3758                                    </list>
3759                                </t>
3760                            </list>
3761                        </t>
3762                        <t>Example:</t>
3763                        <t>
3764                            <list>
3765                                <t>C: "SEND CHANNEL MIDI_DATA NOTE_ON 0 56 112"</t>
3766                                <t>S: "OK"</t>
3767                            </list>
3768                        </t>
3769                    </section>
3770    
3771                  <section title="Resetting a sampler channel" anchor="RESET CHANNEL">                  <section title="Resetting a sampler channel" anchor="RESET CHANNEL">
3772                      <t>The front-end can reset a particular sampler channel by sending the following command:</t>                      <t>The front-end can reset a particular sampler channel by sending the following command:</t>
3773                      <t>                      <t>
# Line 3898  Schoenebeck'> Line 3989  Schoenebeck'>
3989                      </t>                      </t>
3990                  </section>                  </section>
3991    
3992                    <section title="Current number of active disk streams" anchor="GET TOTAL_STREAM_COUNT">
3993                        <t>The front-end can ask for the current number of active disk streams on
3994                        the sampler by sending the following command:</t>
3995                        <t>
3996                            <list>
3997                                <t>GET TOTAL_STREAM_COUNT</t>
3998                            </list>
3999                        </t>
4000    
4001                        <t>Possible Answers:</t>
4002                        <t>
4003                            <list>
4004                                <t>LinuxSampler will answer by returning the number of all active
4005                                disk streams on the sampler.</t>
4006                            </list>
4007                        </t>
4008                    </section>
4009    
4010                  <section title="Reset sampler" anchor="RESET">                  <section title="Reset sampler" anchor="RESET">
4011                      <t>The front-end can reset the whole sampler by sending the following command:</t>                      <t>The front-end can reset the whole sampler by sending the following command:</t>
4012                      <t>                      <t>
# Line 3945  Schoenebeck'> Line 4054  Schoenebeck'>
4054                                  <list>                                  <list>
4055                                      <t>DESCRIPTION -                                      <t>DESCRIPTION -
4056                                          <list>                                          <list>
4057                                              <t>arbitrary textual description about the sampler</t>                                              <t>arbitrary textual description about the sampler
4058                                                (note that the character string may contain
4059                                                <xref target="character_set">escape sequences</xref>)</t>
4060                                          </list>                                          </list>
4061                                      </t>                                      </t>
4062                                      <t>VERSION -                                      <t>VERSION -
# Line 4031  Schoenebeck'> Line 4142  Schoenebeck'>
4142                          </list>                          </list>
4143                      </t>                      </t>
4144                  </section>                  </section>
4145    
4146                    <section title="Getting global voice limit" anchor="GET VOICES">
4147                        <t>The client can ask for the current global sampler-wide limit
4148                           for maximum voices by sending the following command:</t>
4149                        <t>
4150                            <list>
4151                                <t>GET VOICES</t>
4152                            </list>
4153                        </t>
4154                        <t>Possible Answers:</t>
4155                        <t>
4156                            <list>
4157                                <t>LinuxSampler will answer by returning the number for
4158                                   the current limit of maximum voices.</t>
4159                            </list>
4160                        </t>
4161    
4162                        <t>The voice limit setting defines how many voices should maximum
4163                           be processed by the sampler at the same time. If the user
4164                           triggers new notes which would exceed that voice limit, the
4165                           sampler engine will react by stealing old voices for those
4166                           newly triggered notes. Note that the amount of voices triggered
4167                           by a new note can be larger than one and is dependent to the
4168                           respective instrument and probably further criterias.</t>
4169                    </section>
4170    
4171                    <section title="Setting global voice limit" anchor="SET VOICES">
4172                        <t>The client can alter the current global sampler-wide limit
4173                        for maximum voices by sending the following command:</t>
4174                        <t>
4175                            <list>
4176                                <t>SET VOICES &lt;max-voices&gt;</t>
4177                            </list>
4178                        </t>
4179                       <t>Where &lt;max-voices&gt; should be replaced by the integer
4180                       value, reflecting the new global amount limit of maximum voices.
4181                       This value has to be larger than 0.</t>
4182    
4183                        <t>Possible Answers:</t>
4184                        <t>
4185                            <list>
4186                                <t>"OK" -
4187                                    <list>
4188                                        <t>on success</t>
4189                                    </list>
4190                                </t>
4191                                <t>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
4192                                    <list>
4193                                        <t>if the voice limit was set, but there are noteworthy
4194                                        issue(s) related, providing an appropriate warning code and
4195                                        warning message</t>
4196                                    </list>
4197                                </t>
4198                                <t>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
4199                                    <list>
4200                                        <t>in case it failed, providing an appropriate error code and error message</t>
4201                                    </list>
4202                                </t>
4203                            </list>
4204                        </t>
4205    
4206                        <t>Note: the given value will be passed to all sampler engine instances.
4207                           The total amount of maximum voices on the running system might thus
4208                           be as big as the given value multiplied by the current amount of engine
4209                           instances.</t>
4210    
4211                         <t>Caution: when adjusting the voice limit, you SHOULD also
4212                            adjust the disk stream limit respectively and vice versa.</t>
4213                    </section>
4214    
4215                    <section title="Getting global disk stream limit" anchor="GET STREAMS">
4216                        <t>The client can ask for the current global sampler-wide limit
4217                           for maximum disk streams by sending the following command:</t>
4218                        <t>
4219                            <list>
4220                                <t>GET STREAMS</t>
4221                            </list>
4222                        </t>
4223                        <t>Possible Answers:</t>
4224                        <t>
4225                            <list>
4226                                <t>LinuxSampler will answer by returning the number for
4227                                   the current limit of maximum disk streams.</t>
4228                            </list>
4229                        </t>
4230    
4231                        <t>The disk stream limit setting defines how many disk streams should
4232                           maximum be processed by a sampler engine at the same time. The
4233                           higher this value, the more memory (RAM) will be occupied, since
4234                           every disk streams allocates a certain buffer size for being able
4235                           to perform its streaming operations.</t>
4236                    </section>
4237    
4238                    <section title="Setting global disk stream limit" anchor="SET STREAMS">
4239                        <t>The client can alter the current global sampler-wide limit
4240                        for maximum disk streams by sending the following command:</t>
4241                        <t>
4242                            <list>
4243                                <t>SET STREAMS &lt;max-streams&gt;</t>
4244                            </list>
4245                        </t>
4246                       <t>Where &lt;max-streams&gt; should be replaced by the integer
4247                       value, reflecting the new global amount limit of maximum disk streams.
4248                       This value has to be positive.</t>
4249    
4250                        <t>Possible Answers:</t>
4251                        <t>
4252                            <list>
4253                                <t>"OK" -
4254                                    <list>
4255                                        <t>on success</t>
4256                                    </list>
4257                                </t>
4258                                <t>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
4259                                    <list>
4260                                        <t>if the disk stream limit was set, but there are noteworthy
4261                                        issue(s) related, providing an appropriate warning code and
4262                                        warning message</t>
4263                                    </list>
4264                                </t>
4265                                <t>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
4266                                    <list>
4267                                        <t>in case it failed, providing an appropriate error code and error message</t>
4268                                    </list>
4269                                </t>
4270                            </list>
4271                        </t>
4272    
4273                        <t>Note: the given value will be passed to all sampler engine instances.
4274                           The total amount of maximum disk streams on the running system might
4275                           thus be as big as the given value multiplied by the current amount of
4276                           engine instances.</t>
4277    
4278                         <t>Caution: when adjusting the disk stream limit, you SHOULD also
4279                            adjust the voice limit respectively and vice versa.</t>
4280                    </section>
4281    
4282              </section>              </section>
4283    
4284    
# Line 4061  Schoenebeck'> Line 4309  Schoenebeck'>
4309                  cause the sampler to switch to the respective instrument as                  cause the sampler to switch to the respective instrument as
4310                  reflected by the current MIDI instrument map.</t>                  reflected by the current MIDI instrument map.</t>
4311    
4312                  <section title="Create a new MIDI instrument map" anchor="ADD MIDI_INSTRUMENT MAP">                  <section title="Create a new MIDI instrument map" anchor="ADD MIDI_INSTRUMENT_MAP">
4313                      <t>The front-end can add a new MIDI instrument map by sending                      <t>The front-end can add a new MIDI instrument map by sending
4314                      the following command:</t>                      the following command:</t>
4315                      <t>                      <t>
# Line 4071  Schoenebeck'> Line 4319  Schoenebeck'>
4319                      </t>                      </t>
4320                      <t>Where &lt;name&gt; is an optional argument allowing to                      <t>Where &lt;name&gt; is an optional argument allowing to
4321                      assign a custom name to the new map. MIDI instrument Map                      assign a custom name to the new map. MIDI instrument Map
4322                      names do not have to be unique.</t>                      names do not have to be unique, but MUST be encapsulated
4323                        into apostrophes and support escape sequences as described
4324                        in chapter "<xref target="character_set">Character Set and Escape Sequences</xref>".
4325                        </t>
4326    
4327                      <t>Possible Answers:</t>                      <t>Possible Answers:</t>
4328                      <t>                      <t>
# Line 4242  Schoenebeck'> Line 4493  Schoenebeck'>
4493                                      <t>NAME -                                      <t>NAME -
4494                                          <list>                                          <list>
4495                                              <t>custom name of the given map,                                              <t>custom name of the given map,
4496                                              which does not have to be unique</t>                                              which does not have to be unique
4497                                                (note that this character string may contain
4498                                                 <xref target="character_set">escape sequences</xref>)</t>
4499                                          </list>                                          </list>
4500                                      </t>                                      </t>
4501                                      <t>DEFAULT -                                      <t>DEFAULT -
# Line 4278  Schoenebeck'> Line 4531  Schoenebeck'>
4531                      </t>                      </t>
4532                      <t>Where &lt;map&gt; is the numerical ID of the map and                      <t>Where &lt;map&gt; is the numerical ID of the map and
4533                      &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
4534                      have to be unique.</t>                      have to be unique (name MUST be encapsulated into apostrophes
4535                        and supports escape sequences as described in chapter
4536                        "<xref target="character_set">Character Set and Escape Sequences</xref>").
4537                        </t>
4538    
4539                      <t>Possible Answers:</t>                      <t>Possible Answers:</t>
4540                      <t>                      <t>
# Line 4325  Schoenebeck'> Line 4581  Schoenebeck'>
4581                      index, &lt;engine_name&gt; a sampler engine name as returned by                      index, &lt;engine_name&gt; a sampler engine name as returned by
4582                      the <xref target="LIST AVAILABLE_ENGINES">"LIST AVAILABLE_ENGINES"</xref>                      the <xref target="LIST AVAILABLE_ENGINES">"LIST AVAILABLE_ENGINES"</xref>
4583                      command (not encapsulated into apostrophes), &lt;filename&gt; the name                      command (not encapsulated into apostrophes), &lt;filename&gt; the name
4584                      of the instrument's file to be deployed (encapsulated into apostrophes),                      of the instrument's file to be deployed (encapsulated into apostrophes,
4585                        supporting escape sequences as described in chapter
4586                        "<xref target="character_set">Character Set and Escape Sequences</xref>"),
4587                      &lt;instrument_index&gt; the index (integer value) of the instrument                      &lt;instrument_index&gt; the index (integer value) of the instrument
4588                      within the given file, &lt;volume_value&gt; reflects the master                      within the given file, &lt;volume_value&gt; reflects the master
4589                      volume of the instrument as optionally dotted number (where a                      volume of the instrument as optionally dotted number (where a
# Line 4407  Schoenebeck'> Line 4665  Schoenebeck'>
4665                      load modes of entries, the frontend should retrieve the actual                      load modes of entries, the frontend should retrieve the actual
4666                      mode by i.e. sending                      mode by i.e. sending
4667                      <xref target="GET MIDI_INSTRUMENT INFO">"GET MIDI_INSTRUMENT INFO"</xref>                      <xref target="GET MIDI_INSTRUMENT INFO">"GET MIDI_INSTRUMENT INFO"</xref>
4668                      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
4669                      set a custom name (encapsulated into apostrophes) for the mapping                      (encapsulated into apostrophes, supporting escape sequences as described in chapter
4670                      entry, useful for frontends for displaying an appropriate name for                      "<xref target="character_set">Character Set and Escape Sequences</xref>") for the
4671                        mapping entry, useful for frontends for displaying an appropriate name for
4672                      mapped instruments (using                      mapped instruments (using
4673                      <xref target="GET MIDI_INSTRUMENT INFO">"GET MIDI_INSTRUMENT INFO"</xref>).                      <xref target="GET MIDI_INSTRUMENT INFO">"GET MIDI_INSTRUMENT INFO"</xref>).
4674                      </t>                      </t>
# Line 4633  Schoenebeck'> Line 4892  Schoenebeck'>
4892                                      name for this mapped instrument. It can be set and                                      name for this mapped instrument. It can be set and
4893                                      changed with the                                      changed with the
4894                                      <xref target="MAP MIDI_INSTRUMENT">"MAP MIDI_INSTRUMENT"</xref>                                      <xref target="MAP MIDI_INSTRUMENT">"MAP MIDI_INSTRUMENT"</xref>
4895                                      command and does not have to be unique.</t>                                      command and does not have to be unique.
4896                                        (note that this character string may contain
4897                                        <xref target="character_set">escape sequences</xref>)</t>
4898                                  </list>                                  </list>
4899                              </t>                              </t>
4900                              <t>"ENGINE_NAME" -                              <t>"ENGINE_NAME" -
# Line 4644  Schoenebeck'> Line 4905  Schoenebeck'>
4905                              </t>                              </t>
4906                              <t>"INSTRUMENT_FILE" -                              <t>"INSTRUMENT_FILE" -
4907                                  <list>                                  <list>
4908                                      <t>File name of the instrument.</t>                                      <t>File name of the instrument
4909                                        (note that this path may contain
4910                                        <xref target="character_set">escape sequences</xref>).</t>
4911                                  </list>                                  </list>
4912                              </t>                              </t>
4913                              <t>"INSTRUMENT_NR" -                              <t>"INSTRUMENT_NR" -
# Line 4656  Schoenebeck'> Line 4919  Schoenebeck'>
4919                                  <list>                                  <list>
4920                                      <t>Name of the loaded instrument as reflected by its file.                                      <t>Name of the loaded instrument as reflected by its file.
4921                                      In contrast to the "NAME" field, the "INSTRUMENT_NAME" field                                      In contrast to the "NAME" field, the "INSTRUMENT_NAME" field
4922                                      cannot be changed.</t>                                      cannot be changed (note that this character string may contain
4923                                        <xref target="character_set">escape sequences</xref>).</t>
4924                                  </list>                                  </list>
4925                              </t>                              </t>
4926                              <t>"LOAD_MODE" -                              <t>"LOAD_MODE" -
# Line 4744  Schoenebeck'> Line 5008  Schoenebeck'>
5008              <section title="Managing Instruments Database" anchor="Managing Instruments Database">              <section title="Managing Instruments Database" anchor="Managing Instruments Database">
5009                  <t>The following commands describe how to use and manage                  <t>The following commands describe how to use and manage
5010                  the instruments database.</t>                  the instruments database.</t>
5011                    <t>Notice:</t>
5012                        <t>
5013                            <list>
5014                                <t>All command arguments representing a path or
5015                                instrument/directory name support escape sequences as described in chapter
5016                                "<xref target="character_set">Character Set and Escape Sequences</xref>".
5017                                </t>
5018                                <t>All occurrences of a forward slash in instrument and directory
5019                                   names are escaped with its hex (\x2f) or octal (\057) escape sequence.
5020                                </t>
5021                            </list>
5022                        </t>
5023    
5024                  <section title="Creating a new instrument directory" anchor="ADD DB_INSTRUMENT_DIRECTORY">                  <section title="Creating a new instrument directory" anchor="ADD DB_INSTRUMENT_DIRECTORY">
5025                      <t>The front-end can add a new instrument directory to the                      <t>The front-end can add a new instrument directory to the
# Line 4827  Schoenebeck'> Line 5103  Schoenebeck'>
5103                      directories in a specific directory by sending the following command:</t>                      directories in a specific directory by sending the following command:</t>
5104                      <t>                      <t>
5105                          <list>                          <list>
5106                              <t>GET DB_INSTRUMENT_DIRECTORIES &lt;dir&gt;</t>                              <t>GET DB_INSTRUMENT_DIRECTORIES [RECURSIVE] &lt;dir&gt;</t>
5107                          </list>                          </list>
5108                      </t>                      </t>
5109                      <t>Where &lt;dir&gt; should be replaced by the absolute path                      <t>Where &lt;dir&gt; should be replaced by the absolute path
5110                      name of the directory.</t>                      name of the directory. If RECURSIVE is specified, the number of
5111                        all directories, including those located in subdirectories of the
5112                        specified directory, will be returned.</t>
5113    
5114                      <t>Possible Answers:</t>                      <t>Possible Answers:</t>
5115                      <t>                      <t>
# Line 4860  Schoenebeck'> Line 5138  Schoenebeck'>
5138                      in specific directory by sending the following command:</t>                      in specific directory by sending the following command:</t>
5139                      <t>                      <t>
5140                          <list>                          <list>
5141                              <t>LIST DB_INSTRUMENT_DIRECTORIES &lt;dir&gt;</t>                              <t>LIST DB_INSTRUMENT_DIRECTORIES [RECURSIVE] &lt;dir&gt;</t>
5142                          </list>                          </list>
5143                      </t>                      </t>
5144                      <t>Where &lt;dir&gt; should be replaced by the absolute path                      <t>Where &lt;dir&gt; should be replaced by the absolute path
5145                      name of the directory.</t>                      name of the directory. If RECURSIVE is specified, the absolute path names
5146                        of all directories, including those located in subdirectories of the
5147                        specified directory, will be returned.</t>
5148    
5149                      <t>Possible Answers:</t>                      <t>Possible Answers:</t>
5150                      <t>                      <t>
# Line 4885  Schoenebeck'> Line 5165  Schoenebeck'>
5165                              <t>S: "'Piano Collection','Percussion Collection'"</t>                              <t>S: "'Piano Collection','Percussion Collection'"</t>
5166                          </list>                          </list>
5167                      </t>                      </t>
5168                        <t>
5169                            <list>
5170                                <t>C: "LIST DB_INSTRUMENT_DIRECTORIES RECURSIVE '/'"</t>
5171                                <t>S: "'/Piano Collection','/Piano Collection/Acoustic','/Piano Collection/Acoustic/New','/Percussion Collection'"</t>
5172                            </list>
5173                        </t>
5174                  </section>                  </section>
5175    
5176                  <section title="Getting instrument directory information" anchor="GET DB_INSTRUMENT_DIRECTORY INFO">                  <section title="Getting instrument directory information" anchor="GET DB_INSTRUMENT_DIRECTORY INFO">
# Line 4911  Schoenebeck'> Line 5197  Schoenebeck'>
5197                                  <list>                                  <list>
5198                                      <t>DESCRIPTION -                                      <t>DESCRIPTION -
5199                                          <list>                                          <list>
5200                                              <t>A brief description of the directory content</t>                                              <t>A brief description of the directory content.
5201                                                Note that the character string may contain
5202                                                <xref target="character_set">escape sequences</xref>.</t>
5203                                          </list>                                          </list>
5204                                      </t>                                      </t>
5205                                      <t>CREATED -                                      <t>CREATED -
# Line 5024  Schoenebeck'> Line 5312  Schoenebeck'>
5312                      </t>                      </t>
5313                  </section>                  </section>
5314    
5315                    <section title="Copying instrument directories" anchor="COPY DB_INSTRUMENT_DIRECTORY">
5316                        <t>The front-end can copy a specific
5317                        instrument directory by sending the following command:</t>
5318                        <t>
5319                            <list>
5320                                <t>COPY DB_INSTRUMENT_DIRECTORY &lt;dir&gt; &lt;dst&gt;</t>
5321                            </list>
5322                        </t>
5323                        <t>Where &lt;dir&gt; is the absolute path name of the directory
5324                        to copy and &lt;dst&gt; is the location where the directory will
5325                        be copied to.</t>
5326    
5327                        <t>Possible Answers:</t>
5328                        <t>
5329                            <list>
5330                                <t>"OK" -
5331                                    <list>
5332                                        <t>on success</t>
5333                                    </list>
5334                                </t>
5335                                <t>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
5336                                    <list>
5337                                        <t>in case a given directory does not exists,
5338                                        or if a directory with name equal to the name
5339                                        of the specified directory already exists in
5340                                        the destination directory. Error is also thrown
5341                                        when trying to copy a directory to a subdirectory
5342                                        of itself.</t>
5343                                    </list>
5344                                </t>
5345                            </list>
5346                        </t>
5347    
5348                        <t>Example:</t>
5349                        <t>
5350                            <list>
5351                                <t>C: "COPY DB_INSTRUMENT_DIRECTORY '/Piano Collection/Acoustic' '/Acoustic/Pianos'"</t>
5352                                <t>S: "OK"</t>
5353                            </list>
5354                        </t>
5355                    </section>
5356    
5357                  <section title="Changing the description of directory" anchor="SET DB_INSTRUMENT_DIRECTORY DESCRIPTION">                  <section title="Changing the description of directory" anchor="SET DB_INSTRUMENT_DIRECTORY DESCRIPTION">
5358                      <t>The front-end can alter the description of a specific                      <t>The front-end can alter the description of a specific
5359                      instrument directory by sending the following command:</t>                      instrument directory by sending the following command:</t>
# Line 5033  Schoenebeck'> Line 5363  Schoenebeck'>
5363                          </list>                          </list>
5364                      </t>                      </t>
5365                      <t>Where &lt;dir&gt; is the absolute path name of the directory and                      <t>Where &lt;dir&gt; is the absolute path name of the directory and
5366                      &lt;desc&gt; is the new description for the directory.</t>                      &lt;desc&gt; is the new description for the directory
5367                        (encapsulated into apostrophes, supporting escape sequences as described in chapter
5368                        "<xref target="character_set">Character Set and Escape Sequences</xref>").</t>
5369    
5370                      <t>Possible Answers:</t>                      <t>Possible Answers:</t>
5371                      <t>                      <t>
# Line 5060  Schoenebeck'> Line 5392  Schoenebeck'>
5392                      </t>                      </t>
5393                  </section>                  </section>
5394    
5395                    <section title="Finding directories" anchor="FIND DB_INSTRUMENT_DIRECTORIES">
5396                        <t>The front-end can search for directories
5397                        in specific directory by sending the following command:</t>
5398                        <t>
5399                            <list>
5400                                <t>FIND DB_INSTRUMENT_DIRECTORIES [NON_RECURSIVE] &lt;dir&gt; &lt;criteria-list&gt;</t>
5401                            </list>
5402                        </t>
5403                        <t>Where &lt;dir&gt; should be replaced by the absolute path
5404                        name of the directory to search in. If NON_RECURSIVE is specified, the
5405                        directories located in subdirectories of the specified directory will not
5406                        be searched. &lt;criteria-list&gt; is a list of search criterias
5407                        in form of "key1=val1 key2=val2 ...". The following criterias are
5408                        allowed:</t>
5409                        <t>
5410                          <t>NAME='&lt;search-string&gt;'
5411                              <list>
5412                                  <t>Restricts the search to directories, which names
5413                                  satisfy the supplied search string (encapsulated into apostrophes,
5414                                  supporting escape sequences as described in chapter
5415                                  "<xref target="character_set">Character Set and Escape Sequences</xref>").</t>
5416                              </list>
5417                          </t>
5418    
5419                          <t>CREATED='[&lt;date-after&gt;]..[&lt;date-before&gt;]'
5420                              <list>
5421                                  <t>Restricts the search to directories, which creation
5422                                  date satisfies the specified period, where &lt;date-after&gt;
5423                                  and &lt;date-before&gt; are in "YYYY-MM-DD HH:MM:SS" format.
5424                                  If &lt;date-after&gt; is omitted the search is restricted to
5425                                  directories created before &lt;date-before&gt;. If
5426                                  &lt;date-before&gt; is omitted, the search is restricted
5427                                  to directories created after &lt;date-after&gt;.</t>
5428                              </list>
5429                          </t>
5430    
5431                          <t>MODIFIED='[&lt;date-after&gt;]..[&lt;date-before&gt;]'
5432                              <list>
5433                                  <t>Restricts the search to directories, which
5434                                  date of last modification satisfies the specified period, where
5435                                  &lt;date-after&gt; and &lt;date-before&gt; are in "YYYY-MM-DD HH:MM:SS"
5436                                  format. If &lt;date-after&gt; is omitted the search is restricted to
5437                                  directories, which are last modified before &lt;date-before&gt;. If
5438                                  &lt;date-before&gt; is omitted, the search is restricted to directories,
5439                                  which are last modified after &lt;date-after&gt;.</t>
5440                              </list>
5441                          </t>
5442    
5443                          <t>DESCRIPTION='&lt;search-string&gt;'
5444                              <list>
5445                                  <t>Restricts the search to directories with description
5446                                  that satisfies the supplied search string
5447                                  (encapsulated into apostrophes, supporting escape
5448                                  sequences as described in chapter
5449                                  "<xref target="character_set">Character Set and Escape Sequences</xref>").</t>
5450                              </list>
5451                          </t>
5452                        </t>
5453    
5454                        <t>Where &lt;search-string&gt; is either a regular expression, or a
5455                        word list separated with spaces for OR search and with '+' for AND search.</t>
5456    
5457                        <t>Possible Answers:</t>
5458                        <t>
5459                            <list>
5460                                <t>A comma separated list with the absolute path names (encapsulated into
5461                                apostrophes) of all directories in the specified directory that satisfy
5462                                the supplied search criterias.</t>
5463                                <t>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
5464                                    <list>
5465                                        <t>if the given directory does not exist.</t>
5466                                    </list>
5467                                </t>
5468                            </list>
5469                        </t>
5470                        <t>Example:</t>
5471                        <t>
5472                            <list>
5473                                <t>C: "FIND DB_INSTRUMENT_DIRECTORIES '/' NAME='Piano'"</t>
5474                                <t>S: "'/Piano Collection'"</t>
5475                            </list>
5476                        </t>
5477                        <t>
5478                            <list>
5479                                <t>C: "FIND DB_INSTRUMENT_DIRECTORIES '/' CREATED='..2007-04-01 09:30:13'"</t>
5480                                <t>S: "'/Piano Collection','/Percussions'"</t>
5481                            </list>
5482                        </t>
5483                    </section>
5484    
5485                  <section title="Adding instruments to the instruments database" anchor="ADD DB_INSTRUMENTS">                  <section title="Adding instruments to the instruments database" anchor="ADD DB_INSTRUMENTS">
5486                      <t>The front-end can add one or more instruments                      <t>The front-end can add one or more instruments
5487                      to the instruments database by sending the following command:</t>                      to the instruments database by sending the following command:</t>
5488                      <t>                      <t>
5489                          <list>                          <list>
5490                              <t>ADD DB_INSTRUMENTS [&lt;mode&gt;] &lt;db_dir&gt; &lt;file_path&gt; [&lt;instr_index&gt;]</t>                              <t>ADD DB_INSTRUMENTS [NON_MODAL] [&lt;mode&gt;[ FILE_AS_DIR]] &lt;db_dir&gt; &lt;file_path&gt; [&lt;instr_index&gt;]</t>
5491                          </list>                          </list>
5492                      </t>                      </t>
5493                      <t>Where &lt;db_dir&gt; is the absolute path name of a directory                      <t>Where &lt;db_dir&gt; is the absolute path name of a directory
# Line 5083  Schoenebeck'> Line 5505  Schoenebeck'>
5505                      scanning will be done and has exactly the following possibilities:</t>                      scanning will be done and has exactly the following possibilities:</t>
5506                      <t>                      <t>
5507                          <list>                          <list>
5508                                <t>"RECURSIVE" -
5509                                    <list>
5510                                        <t>All instruments will be processed, including those
5511                                        in the subdirectories, and the respective subdirectory
5512                                        tree structure will be recreated in the instruments
5513                                        database</t>
5514                                    </list>
5515                                </t>
5516                              <t>"NON_RECURSIVE" -                              <t>"NON_RECURSIVE" -
5517                                  <list>                                  <list>
5518                                      <t>Only the instruments in the specified directory                                      <t>Only the instruments in the specified directory
# Line 5099  Schoenebeck'> Line 5529  Schoenebeck'>
5529                                      the specified database directory.</t>                                      the specified database directory.</t>
5530                                  </list>                                  </list>
5531                              </t>                              </t>
                             <t>not supplied -  
                                 <list>  
                                     <t>The subdirectory tree structure will be recreated  
                                     in the instruments database and all instruments will be  
                                     processed and added to the respective subdirectory  
                                     in the instruments database.</t>  
                                 </list>  
                             </t>  
5532                          </list>                          </list>
5533                      </t>                      </t>
5534    
5535                     <t> If FILE_AS_DIR argument is supplied, all instruments in an instrument
5536                     file will be added to a separate directory in the instruments database, which
5537                     name will be the name of the instrument file with the file extension stripped off.
5538                     </t>
5539                     <t>The difference between regular and NON_MODAL versions of the command
5540                        is that the regular command returns when the scanning is finished
5541                        while NON_MODAL version returns immediately and a background process is launched.
5542                        The <xref target="GET DB_INSTRUMENTS_JOB INFO">GET DB_INSTRUMENTS_JOB INFO</xref>
5543                        command can be used to monitor the scanning progress.</t>
5544    
5545                      <t>Possible Answers:</t>                      <t>Possible Answers:</t>
5546                      <t>                      <t>
5547                          <list>                          <list>
5548                              <t>"OK" -                              <t>"OK" -
5549                                  <list>                                  <list>
5550                                      <t>on success</t>                                      <t>on success when NON_MODAL is not supplied</t>
5551                                    </list>
5552                                </t>
5553                                <t>"OK[&lt;job-id&gt;]" -
5554                                    <list>
5555                                        <t>on success when NON_MODAL is supplied, where &lt;job-id&gt;
5556                                        is a numerical ID used to obtain status information about the job progress.
5557                                        See <xref target="GET DB_INSTRUMENTS_JOB INFO">GET DB_INSTRUMENTS_JOB INFO</xref>
5558                                        </t>
5559                                  </list>                                  </list>
5560                              </t>                              </t>
5561                              <t>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -                              <t>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
# Line 5177  Schoenebeck'> Line 5617  Schoenebeck'>
5617                      instruments in a specific directory by sending the following command:</t>                      instruments in a specific directory by sending the following command:</t>
5618                      <t>                      <t>
5619                          <list>                          <list>
5620                              <t>GET DB_INSTRUMENTS &lt;dir&gt;</t>                              <t>GET DB_INSTRUMENTS [RECURSIVE] &lt;dir&gt;</t>
5621                          </list>                          </list>
5622                      </t>                      </t>
5623                      <t>Where &lt;dir&gt; should be replaced by the absolute path name                      <t>Where &lt;dir&gt; should be replaced by the absolute path name
5624                      of the directory.</t>                      of the directory. If RECURSIVE is specified, the number of all
5625                        instruments, including those located in subdirectories of the
5626                        specified directory, will be returned.</t>
5627    
5628                      <t>Possible Answers:</t>                      <t>Possible Answers:</t>
5629                      <t>                      <t>
# Line 5210  Schoenebeck'> Line 5652  Schoenebeck'>
5652                      in specific directory by sending the following command:</t>                      in specific directory by sending the following command:</t>
5653                      <t>                      <t>
5654                          <list>                          <list>
5655                              <t>LIST DB_INSTRUMENTS &lt;dir&gt;</t>                              <t>LIST DB_INSTRUMENTS [RECURSIVE] &lt;dir&gt;</t>
5656                          </list>                          </list>
5657                      </t>                      </t>
5658                      <t>Where &lt;dir&gt; should be replaced by the absolute path                      <t>Where &lt;dir&gt; should be replaced by the absolute path
5659                      name of the directory.</t>                      name of the directory. If RECURSIVE is specified, the absolute path
5660                        names of all instruments, including those located in subdirectories
5661                        of the specified directory, will be returned.</t>
5662    
5663                      <t>Possible Answers:</t>                      <t>Possible Answers:</t>
5664                      <t>                      <t>
# Line 5235  Schoenebeck'> Line 5679  Schoenebeck'>
5679                              <t>S: "'Bosendorfer 290','Steinway D'"</t>                              <t>S: "'Bosendorfer 290','Steinway D'"</t>
5680                          </list>                          </list>
5681                      </t>                      </t>
5682                        <t>
5683                            <list>
5684                                <t>C: "LIST DB_INSTRUMENTS RECURSIVE '/Piano Collection'"</t>
5685                                <t>S: "'/Piano Collection/Bosendorfer 290','/Piano Collection/Steinway D','/Piano Collection/Lite/Free Piano'"</t>
5686                            </list>
5687                        </t>
5688                  </section>                  </section>
5689    
5690                  <section title="Getting instrument information" anchor="GET DB_INSTRUMENT INFO">                  <section title="Getting instrument information" anchor="GET DB_INSTRUMENT INFO">
# Line 5261  Schoenebeck'> Line 5711  Schoenebeck'>
5711                                  <list>                                  <list>
5712                                      <t>INSTRUMENT_FILE -                                      <t>INSTRUMENT_FILE -
5713                                          <list>                                          <list>
5714                                              <t>File name of the instrument.</t>                                              <t>File name of the instrument.
5715                                                Note that the character string may contain
5716                                                <xref target="character_set">escape sequences</xref>.</t>
5717                                          </list>                                          </list>
5718                                      </t>                                      </t>
5719                                      <t>INSTRUMENT_NR -                                      <t>INSTRUMENT_NR -
# Line 5300  Schoenebeck'> Line 5752  Schoenebeck'>
5752                                      </t>                                      </t>
5753                                      <t>DESCRIPTION -                                      <t>DESCRIPTION -
5754                                          <list>                                          <list>
5755                                              <t>A brief description of the instrument</t>                                              <t>A brief description of the instrument.
5756                                                Note that the character string may contain
5757                                                <xref target="character_set">escape sequences</xref>.</t>
5758                                          </list>                                          </list>
5759                                      </t>                                      </t>
5760                                      <t>IS_DRUM -                                      <t>IS_DRUM -
# Line 5311  Schoenebeck'> Line 5765  Schoenebeck'>
5765                                      </t>                                      </t>
5766                                      <t>PRODUCT -                                      <t>PRODUCT -
5767                                          <list>                                          <list>
5768                                              <t>The product title of the instrument</t>                                              <t>The product title of the instrument.
5769                                                Note that the character string may contain
5770                                                <xref target="character_set">escape sequences</xref>.</t>
5771                                          </list>                                          </list>
5772                                      </t>                                      </t>
5773                                      <t>ARTISTS -                                      <t>ARTISTS -
5774                                          <list>                                          <list>
5775                                              <t>Lists the artist names</t>                                              <t>Lists the artist names.
5776                                                Note that the character string may contain
5777                                                <xref target="character_set">escape sequences</xref>.</t>
5778                                          </list>                                          </list>
5779                                      </t>                                      </t>
5780                                      <t>KEYWORDS -                                      <t>KEYWORDS -
5781                                          <list>                                          <list>
5782                                              <t>Provides a list of keywords that refer to the instrument.                                              <t>Provides a list of keywords that refer to the instrument.
5783                                              Keywords are separated with semicolon and blank.</t>                                              Keywords are separated with semicolon and blank.
5784                                                Note that the character string may contain
5785                                                <xref target="character_set">escape sequences</xref>.</t>
5786                                          </list>                                          </list>
5787                                      </t>                                      </t>
5788                                  </list>                                  </list>
# Line 5430  Schoenebeck'> Line 5890  Schoenebeck'>
5890                      </t>                      </t>
5891                  </section>                  </section>
5892    
5893                    <section title="Copying instruments" anchor="COPY DB_INSTRUMENT">
5894                        <t>The front-end can copy a specific instrument to another directory by
5895                        sending the following command:</t>
5896                        <t>
5897                            <list>
5898                                <t>COPY DB_INSTRUMENT &lt;instr&gt; &lt;dst&gt;</t>
5899                            </list>
5900                        </t>
5901                        <t>Where &lt;instr&gt; is the absolute path name of the instrument
5902                        to copy and &lt;dst&gt; is the directory where the instrument will
5903                        be copied to.</t>
5904    
5905                        <t>Possible Answers:</t>
5906                        <t>
5907                            <list>
5908                                <t>"OK" -
5909                                    <list>
5910                                        <t>on success</t>
5911                                    </list>
5912                                </t>
5913                                <t>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
5914                                    <list>
5915                                        <t>in case the given instrument does not exists,
5916                                        or if an instrument with name equal to the name of the
5917                                        specified instrument already exists in the destination
5918                                        directory.</t>
5919                                    </list>
5920                                </t>
5921                            </list>
5922                        </t>
5923    
5924                        <t>Example:</t>
5925                        <t>
5926                            <list>
5927                                <t>C: "COPY DB_INSTRUMENT '/Piano Collection/Bosendorfer 290' '/Acoustic/Pianos/'"</t>
5928                                <t>S: "OK"</t>
5929                            </list>
5930                        </t>
5931                    </section>
5932    
5933                  <section title="Changing the description of instrument" anchor="SET DB_INSTRUMENT DESCRIPTION">                  <section title="Changing the description of instrument" anchor="SET DB_INSTRUMENT DESCRIPTION">
5934                      <t>The front-end can alter the description of a specific                      <t>The front-end can alter the description of a specific
5935                      instrument by sending the following command:</t>                      instrument by sending the following command:</t>
# Line 5439  Schoenebeck'> Line 5939  Schoenebeck'>
5939                          </list>                          </list>
5940                      </t>                      </t>
5941                      <t>Where &lt;instr&gt; is the absolute path name of the instrument and                      <t>Where &lt;instr&gt; is the absolute path name of the instrument and
5942                      &lt;desc&gt; is the new description for the instrument.</t>                      &lt;desc&gt; is the new description for the instrument
5943                        (encapsulated into apostrophes, supporting escape sequences as described in chapter
5944                        "<xref target="character_set">Character Set and Escape Sequences</xref>").</t>
5945    
5946                      <t>Possible Answers:</t>                      <t>Possible Answers:</t>
5947                      <t>                      <t>
# Line 5466  Schoenebeck'> Line 5968  Schoenebeck'>
5968                      </t>                      </t>
5969                  </section>                  </section>
5970    
5971                    <section title="Finding instruments" anchor="FIND DB_INSTRUMENTS">
5972                        <t>The front-end can search for instruments
5973                        in specific directory by sending the following command:</t>
5974                        <t>
5975                            <list>
5976                                <t>FIND DB_INSTRUMENTS [NON_RECURSIVE] &lt;dir&gt; &lt;criteria-list&gt;</t>
5977                            </list>
5978                        </t>
5979                        <t>Where &lt;dir&gt; should be replaced by the absolute path
5980                        name of the directory to search in. If NON_RECURSIVE is specified, the
5981                        directories located in subdirectories of the specified directory will not
5982                        be searched. &lt;criteria-list&gt; is a list of search criterias
5983                        in form of "key1=val1 key2=val2 ...". The following criterias are
5984                        allowed:</t>
5985                        <t>
5986                          <t>NAME='&lt;search-string&gt;'
5987                              <list>
5988                                  <t>Restricts the search to instruments, which names
5989                                  satisfy the supplied search string (encapsulated into apostrophes,
5990                                  supporting escape sequences as described in chapter
5991                                  "<xref target="character_set">Character Set and Escape Sequences</xref>").</t>
5992                              </list>
5993                          </t>
5994    
5995                          <t>SIZE=[&lt;min&gt;]..[&lt;max&gt;]
5996                              <list>
5997                                  <t>Restricts the search to instruments, which
5998                                  size is in the specified range. If &lt;min&gt; is omitted,
5999                                  the search results are restricted to instruments with size less then
6000                                  or equal to &lt;max&gt;. If &lt;max&gt; is omitted, the
6001                                  search is restricted to instruments with size greater then
6002                                  or equal to &lt;min&gt;.</t>
6003                              </list>
6004                          </t>
6005    
6006                          <t>CREATED='[&lt;date-after&gt;]..[&lt;date-before&gt;]'
6007                              <list>
6008                                  <t>Restricts the search to instruments, which creation
6009                                  date satisfies the specified period, where &lt;date-after&gt;
6010                                  and &lt;date-before&gt; are in "YYYY-MM-DD HH:MM:SS" format.
6011                                  If &lt;date-after&gt; is omitted the search is restricted to
6012                                  instruments created before &lt;date-before&gt;. If
6013                                  &lt;date-before&gt; is omitted, the search is restricted
6014                                  to instruments created after &lt;date-after&gt;.</t>
6015                              </list>
6016                          </t>
6017    
6018                          <t>MODIFIED='[&lt;date-after&gt;]..[&lt;date-before&gt;]'
6019                              <list>
6020                                  <t>Restricts the search to instruments, which
6021                                  date of last modification satisfies the specified period, where
6022                                  &lt;date-after&gt; and &lt;date-before&gt; are in "YYYY-MM-DD HH:MM:SS"
6023                                  format. If &lt;date-after&gt; is omitted the search is restricted to
6024                                  instruments, which are last modified before &lt;date-before&gt;. If
6025                                  &lt;date-before&gt; is omitted, the search is restricted to instruments,
6026                                  which are last modified after &lt;date-after&gt;.</t>
6027                              </list>
6028                          </t>
6029    
6030                          <t>DESCRIPTION='&lt;search-string&gt;'
6031                              <list>
6032                                  <t>Restricts the search to instruments with description
6033                                  that satisfies the supplied search string (encapsulated into apostrophes,
6034                                  supporting escape sequences as described in chapter
6035                                  "<xref target="character_set">Character Set and Escape Sequences</xref>").</t>
6036                              </list>
6037                          </t>
6038    
6039                          <t>PRODUCT='&lt;search-string&gt;'
6040                              <list>
6041                                  <t>Restricts the search to instruments with product info
6042                                  that satisfies the supplied search string (encapsulated into apostrophes,
6043                                  supporting escape sequences as described in chapter
6044                                  "<xref target="character_set">Character Set and Escape Sequences</xref>").</t>
6045                              </list>
6046                          </t>
6047    
6048                          <t>ARTISTS='&lt;search-string&gt;'
6049                              <list>
6050                                  <t>Restricts the search to instruments with artists info
6051                                  that satisfies the supplied search string (encapsulated into apostrophes,
6052                                  supporting escape sequences as described in chapter
6053                                  "<xref target="character_set">Character Set and Escape Sequences</xref>").</t>
6054                              </list>
6055                          </t>
6056    
6057                          <t>KEYWORDS='&lt;search-string&gt;'
6058                              <list>
6059                                  <t>Restricts the search to instruments with keyword list
6060                                  that satisfies the supplied search string (encapsulated into apostrophes,
6061                                  supporting escape sequences as described in chapter
6062                                  "<xref target="character_set">Character Set and Escape Sequences</xref>").</t>
6063                              </list>
6064                          </t>
6065    
6066                          <t>IS_DRUM=true | false
6067                              <list>
6068                                  <t>Either true or false. Restricts the search to
6069                                  drum kits or chromatic instruments.</t>
6070                              </list>
6071                          </t>
6072    
6073                          <t>FORMAT_FAMILIES='&lt;format-list&gt;'
6074                              <list>
6075                                  <t>Restricts the search to instruments of the supplied format families,
6076                                  where &lt;format-list&gt; is a comma separated list of format families.</t>
6077                              </list>
6078                          </t>
6079                        </t>
6080    
6081                        <t>Where &lt;search-string&gt; is either a regular expression, or a
6082                        word list separated with spaces for OR search and with '+' for AND search.</t>
6083    
6084                        <t>Possible Answers:</t>
6085                        <t>
6086                            <list>
6087                                <t>A comma separated list with the absolute path names (encapsulated into
6088                                apostrophes) of all instruments in the specified directory that satisfy
6089                                the supplied search criterias.</t>
6090                                <t>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
6091                                    <list>
6092                                        <t>if the given directory does not exist.</t>
6093                                    </list>
6094                                </t>
6095                            </list>
6096                        </t>
6097                        <t>Example:</t>
6098                        <t>
6099                            <list>
6100                                <t>C: "FIND DB_INSTRUMENTS '/Piano Collection' NAME='bosendorfer+290'"</t>
6101                                <t>S: "'/Piano Collection/Bosendorfer 290'"</t>
6102                            </list>
6103                        </t>
6104                        <t>
6105                            <list>
6106                                <t>C: "FIND DB_INSTRUMENTS '/Piano Collection' CREATED='2007-04-01 09:30:13..'"</t>
6107                                <t>S: "'/Piano Collection/Bosendorfer 290','/Piano Collection/Steinway D'"</t>
6108                            </list>
6109                        </t>
6110                    </section>
6111    
6112                    <section title="Getting job status information" anchor="GET DB_INSTRUMENTS_JOB INFO">
6113                        <t>The front-end can ask for the current status of a
6114                        particular database instruments job by sending the following command:</t>
6115                        <t>
6116                            <list>
6117                                <t>GET DB_INSTRUMENTS_JOB INFO &lt;job-id&gt;</t>
6118                            </list>
6119                        </t>
6120                        <t>Where &lt;job-id&gt; should be replaced by the numerical ID
6121                        of the job the front-end is interested in.</t>
6122    
6123                        <t>Possible Answers:</t>
6124                        <t>
6125                            <list>
6126                                <t>LinuxSampler will answer by sending a &lt;CRLF&gt; separated list.
6127                                Each answer line begins with the settings category name
6128                                followed by a colon and then a space character &lt;SP&gt; and finally
6129                                the info character string to that setting category. At the
6130                                moment the following categories are defined:</t>
6131    
6132                                <t>
6133                                    <list>
6134                                        <t>FILES_TOTAL -
6135                                            <list>
6136                                                <t>The total number of files scheduled for scanning</t>
6137                                            </list>
6138                                        </t>
6139                                        <t>FILES_SCANNED -
6140                                            <list>
6141                                                <t>The current number of scanned files</t>
6142                                            </list>
6143                                        </t>
6144                                        <t>SCANNING -
6145                                            <list>
6146                                                <t>The absolute path name of the file which is currently
6147                                                being scanned</t>
6148                                            </list>
6149                                        </t>
6150                                        <t>STATUS -
6151                                            <list>
6152                                                <t>An integer value between 0 and 100 indicating the
6153                                                scanning progress percentage of the file which is
6154                                                currently being scanned</t>
6155                                            </list>
6156                                        </t>
6157                                    </list>
6158                                </t>
6159                            </list>
6160                        </t>
6161                        <t>The mentioned fields above don't have to be in particular order.</t>
6162    
6163                        <t>Example:</t>
6164                        <t>
6165                            <list>
6166                                <t>C: "GET DB_INSTRUMENTS_JOB INFO 2"</t>
6167                                <t>S: "FILES_TOTAL: 12"</t>
6168                                <t>&nbsp;&nbsp;&nbsp;"FILES_SCANNED: 7"</t>
6169                                <t>&nbsp;&nbsp;&nbsp;"SCANNING: /home/me/gigs/Bosendorfer 290.gig"</t>
6170                                <t>&nbsp;&nbsp;&nbsp;"STATUS: 42"</t>
6171                                <t>&nbsp;&nbsp;&nbsp;"."</t>
6172                            </list>
6173                        </t>
6174                    </section>
6175    
6176                    <section title="Formatting the instruments database" anchor="FORMAT INSTRUMENTS_DB">
6177                        <t>The front-end can remove all instruments and directories and re-create
6178                        the instruments database structure (e.g., in case of a database corruption)
6179                        by sending the following command:</t>
6180                        <t>
6181                            <list>
6182                                <t>FORMAT INSTRUMENTS_DB</t>
6183                            </list>
6184                        </t>
6185    
6186                        <t>Possible Answers:</t>
6187                        <t>
6188                            <list>
6189                                <t>"OK" -
6190                                    <list>
6191                                        <t>on success</t>
6192                                    </list>
6193                                </t>
6194                                <t>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
6195                                    <list>
6196                                        <t>If the formatting of the instruments database
6197                                        failed.</t>
6198                                    </list>
6199                                </t>
6200                            </list>
6201                        </t>
6202                    </section>
6203    
6204                    <section title="Checking for lost instrument files" anchor="FIND LOST DB_INSTRUMENT_FILES">
6205                        <t>The front-end can retrieve the list of all instrument files in the instruments database
6206                        that don't exist in the filesystem by sending the following command:</t>
6207                        <t>
6208                            <list>
6209                                <t>FIND LOST DB_INSTRUMENT_FILES</t>
6210                            </list>
6211                        </t>
6212    
6213                        <t>Possible Answers:</t>
6214                        <t>
6215                            <list>
6216                                <t>A comma separated list with the absolute path names
6217                                (encapsulated into apostrophes) of all lost instrument files.</t>
6218                                <t>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
6219                                    <list>
6220                                        <t>in case it failed, providing an appropriate error code and error message.</t>
6221                                    </list>
6222                                </t>
6223                            </list>
6224                        </t>
6225                        <t>Example:</t>
6226                        <t>
6227                            <list>
6228                                <t>C: "FIND LOST DB_INSTRUMENT_FILES"</t>
6229                                <t>S: "'/gigs/Bosendorfer 290.gig','/gigs/Steinway D.gig','/gigs/Free Piano.gig'"</t>
6230                            </list>
6231                        </t>
6232                    </section>
6233    
6234                    <section title="Replacing an instrument file" anchor="SET DB_INSTRUMENT FILE_PATH">
6235                        <t>The front-end can substitute all occurrences of an instrument file
6236                        in the instruments database with a new one by sending the following command:</t>
6237                        <t>
6238                            <list>
6239                                <t>SET DB_INSTRUMENT FILE_PATH &lt;old_path&gt; &lt;new_path&gt;</t>
6240                            </list>
6241                        </t>
6242                        <t>Where &lt;old_path&gt; is the absolute path name of the instrument file
6243                        to substitute with &lt;new_path&gt;.</t>
6244    
6245                        <t>Possible Answers:</t>
6246                        <t>
6247                            <list>
6248                                <t>"OK" -
6249                                    <list>
6250                                        <t>on success</t>
6251                                    </list>
6252                                </t>
6253                                <t>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
6254                                    <list>
6255                                        <t>in case it failed, providing an appropriate error code and error message.</t>
6256                                    </list>
6257                                </t>
6258                            </list>
6259                        </t>
6260    
6261                        <t>Example:</t>
6262                        <t>
6263                            <list>
6264                                <t>C: "SET DB_INSTRUMENT FILE_PATH '/gigs/Bosendorfer 290.gig' '/gigs/pianos/Bosendorfer 290.gig'"</t>
6265                                <t>S: "OK"</t>
6266                            </list>
6267                        </t>
6268                    </section>
6269    
6270              </section>              </section>
6271    
         </section>  
6272    
6273    
6274                <section title="Editing Instruments" anchor="editing_instruments">
6275                    <t>The sampler allows to edit instruments while playing with the
6276                    sampler by spawning an external (3rd party) instrument editor
6277                    application for a given instrument. The 3rd party instrument
6278                    editor applications have to place a respective plugin DLL file
6279                    into the sampler's plugins directory. The sampler will
6280                    automatically try to load all plugin DLLs in that directory on
6281                    startup and only on startup!</t>
6282                    <t>At the moment there is only one command for this feature set,
6283                    but this will most probably change in future.</t>
6284    
6285                    <section title="Opening an appropriate instrument editor application" anchor="EDIT INSTRUMENT">
6286                        <t>The front-end can request to open an appropriate instrument
6287                        editor application by sending the following command:</t>
6288                        <t>
6289                            <list>
6290                                <t>EDIT CHANNEL INSTRUMENT &lt;sampler-channel&gt;</t>
6291                            </list>
6292                        </t>
6293                        <t>Where &lt;sampler-channel&gt; should be replaced by the
6294                        number of the sampler channel as given by the
6295                        <xref target="ADD CHANNEL">"ADD CHANNEL"</xref>
6296                        or <xref target="LIST CHANNELS">"LIST CHANNELS"</xref>
6297                        command.</t>
6298    
6299                        <t>The sampler will try to ask all registered instrument
6300                        editors (or to be more specific: their sampler plugins)
6301                        whether they are capable to handle the instrument on the
6302                        given sampler channel. The sampler will simply use the first
6303                        instrument editor application which replied with a positive
6304                        answer and spawn that instrument editor application within
6305                        the sampler's process and provide that application access
6306                        to the instrument's data structures, so both applications
6307                        can share and access the same instruments data at the same
6308                        time, thus allowing to immediately hear changes with the
6309                        sampler made by the instrument editor.</t>
6310    
6311                        <t>Note: consequently instrument editors are always spawned
6312                        locally on the same machine where the sampler is running
6313                        on!</t>
6314    
6315                        <t>Possible Answers:</t>
6316                        <t>
6317                            <list>
6318                                <t>"OK" -
6319                                    <list>
6320                                        <t>when an appropriate instrument editor was
6321                                        launched</t>
6322                                    </list>
6323                                </t>
6324                                <t>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
6325                                    <list>
6326                                        <t>when an appropriate instrument editor was
6327                                        launched, but there are noteworthy issues</t>
6328                                    </list>
6329                                </t>
6330                                <t>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
6331                                    <list>
6332                                        <t>when an appropriate instrument editor
6333                                        could not be launched</t>
6334                                    </list>
6335                                </t>
6336                            </list>
6337                        </t>
6338    
6339                        <t>Examples:</t>
6340                        <t>
6341                            <list>
6342                                <t>C: "EDIT CHANNEL INSTRUMENT 0"</t>
6343                                <t>S: "OK"</t>
6344                            </list>
6345                        </t>
6346                    </section>
6347                </section>
6348    
6349                <section title="Managing Files" anchor="file_management">
6350                    <t>You can query detailed informations about files located
6351                    at the same system where the sampler instance is running on.
6352                    Using this command set allows to retrieve file informations
6353                    even remotely from another machine.</t>
6354    
6355                    <section title="Retrieving amount of instruments of a file" anchor="GET FILE INSTRUMENTS">
6356                        <t>The front-end can retrieve the amount of instruments
6357                        within a given instrument file by sending the
6358                        following command:</t>
6359                        <t>
6360                            <list>
6361                                <t>GET FILE INSTRUMENTS &lt;filename&gt;</t>
6362                            </list>
6363                        </t>
6364                        <t>Where &lt;filename&gt; is the name of the instrument
6365                        file (encapsulated into apostrophes, supporting escape
6366                        sequences as described in chapter
6367                        "<xref target="character_set">Character Set and Escape
6368                            Sequences</xref>").</t>
6369    
6370                        <t>The sampler will try to ask all sampler engines,
6371                        whether they support the given file and ask the first
6372                        engine with a positive answer for the amount of
6373                        instruments.</t>
6374    
6375                        <t>Possible Answers:</t>
6376                        <t>
6377                            <list>
6378                                <t>On success, the sampler will answer by
6379                                   returning the amount of instruments.
6380                                </t>
6381                                <t>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
6382                                    <list>
6383                                        <t>if the file could not be handled</t>
6384                                    </list>
6385                                </t>
6386                            </list>
6387                        </t>
6388    
6389                        <t>Examples:</t>
6390                        <t>
6391                            <list>
6392                                <t>C: "GET FILE INSTRUMENTS 'D:/Sounds/Foo.gig'"</t>
6393                                <t>S: "10"</t>
6394                            </list>
6395                        </t>
6396                    </section>
6397    
6398                    <section title="Retrieving all instruments of a file" anchor="LIST FILE INSTRUMENTS">
6399                        <t>The front-end can retrieve a list of all instruments
6400                        within a given instrument file by sending the
6401                        following command:</t>
6402                        <t>
6403                            <list>
6404                                <t>LIST FILE INSTRUMENTS &lt;filename&gt;</t>
6405                            </list>
6406                        </t>
6407                        <t>Where &lt;filename&gt; is the name of the instrument
6408                        file (encapsulated into apostrophes, supporting escape
6409                        sequences as described in chapter
6410                        "<xref target="character_set">Character Set and Escape
6411                            Sequences</xref>").</t>
6412    
6413                        <t>The sampler will try to ask all sampler engines,
6414                        whether they support the given file and ask the first
6415                        engine with a positive answer for a list of IDs for the
6416                        instruments in the given file.</t>
6417    
6418                        <t>Possible Answers:</t>
6419                        <t>
6420                            <list>
6421                                <t>On success, the sampler will answer by
6422                                   returning a comma separated list of
6423                                   instrument IDs.
6424                                </t>
6425                                <t>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
6426                                    <list>
6427                                        <t>if the file could not be handled</t>
6428                                    </list>
6429                                </t>
6430                            </list>
6431                        </t>
6432    
6433                        <t>Examples:</t>
6434                        <t>
6435                            <list>
6436                                <t>C: "LIST FILE INSTRUMENTS 'D:/Sounds/Foo.gig'"</t>
6437                                <t>S: "0,1,2,3,4,5,6,7,8,9"</t>
6438                            </list>
6439                        </t>
6440                    </section>
6441    
6442                    <section title="Retrieving informations about one instrument in a file" anchor="GET FILE INSTRUMENT INFO">
6443                        <t>The front-end can retrieve detailed informations
6444                        about a specific instrument within a given instrument
6445                        file by sending the following command:</t>
6446                        <t>
6447                            <list>
6448                                <t>GET FILE INSTRUMENT INFO &lt;filename&gt;
6449                                &lt;instr-id&gt;</t>
6450                            </list>
6451                        </t>
6452                        <t>Where &lt;filename&gt; is the name of the instrument
6453                        file (encapsulated into apostrophes, supporting escape
6454                        sequences as described in chapter
6455                        "<xref target="character_set">Character Set and Escape
6456                            Sequences</xref>") and &lt;instr-id&gt; is the numeric
6457                        instrument ID as returned by the
6458                        <xref target="LIST FILE INSTRUMENTS">
6459                        "LIST FILE INSTRUMENTS"</xref> command.</t>
6460    
6461                        <t>The sampler will try to ask all sampler engines,
6462                        whether they support the given file and ask the first
6463                        engine with a positive answer for informations about the
6464                        specific instrument in the given file.</t>
6465    
6466                        <t>Possible Answers:</t>
6467                        <t>
6468                            <list>
6469                                <t>LinuxSampler will answer by sending a &lt;CRLF&gt; separated list.
6470                                Each answer line begins with the settings category name
6471                                followed by a colon and then a space character &lt;SP&gt; and finally
6472                                the info character string to that setting category. At the
6473                                moment the following categories are defined:</t>
6474    
6475                                <t>
6476                                    <list>
6477                                        <t>NAME -
6478                                            <list>
6479                                                <t>name of the instrument as
6480                                                stored in the instrument file</t>
6481                                            </list>
6482                                        </t>
6483                                        <t>FORMAT_FAMILY -
6484                                            <list>
6485                                                <t>name of the sampler format
6486                                                of the given instrument</t>
6487                                            </list>
6488                                        </t>
6489                                        <t>FORMAT_VERSION -
6490                                            <list>
6491                                                <t>version of the sampler format
6492                                                the instrumen is stored as</t>
6493                                            </list>
6494                                        </t>
6495                                        <t>PRODUCT -
6496                                            <list>
6497                                                <t>official product name of the
6498                                                instrument as stored in the file
6499                                                </t>
6500                                            </list>
6501                                        </t>
6502                                        <t>ARTISTS -
6503                                            <list>
6504                                                <t>artists / sample library
6505                                                vendor of the instrument</t>
6506                                            </list>
6507                                        </t>
6508                                        <t>KEY_BINDINGS -
6509                                            <list>
6510                                                <t>comma separated list of integer values representing
6511                                                   the instrument's key mapping in the range between 0 .. 127,
6512                                                   reflecting the analog meaning of the MIDI specification.</t>
6513                                            </list>
6514                                        </t>
6515                                        <t>KEYSWITCH_BINDINGS -
6516                                            <list>
6517                                                <t>comma separated list of integer values representing
6518                                                   the instrument's keyswitch mapping in the range between 0 .. 127,
6519                                                   reflecting the analog meaning of the MIDI specification.</t>
6520                                            </list>
6521                                        </t>
6522                                    </list>
6523                                </t>
6524                            </list>
6525                        </t>
6526                        <t>The mentioned fields above don't have to be in particular order.</t>
6527    
6528                        <t>Example:</t>
6529                        <t>
6530                            <list>
6531                                <t>C: "GET FILE INSTRUMENT INFO 'D:/Sounds/Foo.gig' 0"</t>
6532                                <t>S: "NAME: Lunatic Loops"</t>
6533                                <t>&nbsp;&nbsp;&nbsp;"FORMAT_FAMILY: GIG"</t>
6534                                <t>&nbsp;&nbsp;&nbsp;"FORMAT_VERSION: 3"</t>
6535                                <t>&nbsp;&nbsp;&nbsp;"PRODUCT: The Backbone Bongo Beats"</t>
6536                                <t>&nbsp;&nbsp;&nbsp;"ARTISTS: Jimmy the Fish"</t>
6537                                <t>&nbsp;&nbsp;&nbsp;"."</t>
6538                            </list>
6539                        </t>
6540                    </section>
6541                </section>
6542            </section>
6543    
6544          <section title="Command Syntax" anchor="command_syntax">          <section title="Command Syntax" anchor="command_syntax">
6545              <t>The grammar of the control protocol as descibed in <xref target="control_commands"/>              <t>The grammar of the control protocol as descibed in <xref target="control_commands"/>
6546              is defined below using Backus-Naur Form (BNF as described in <xref target="RFC2234"/>)              is defined below using Backus-Naur Form (BNF as described in <xref target="RFC2234"/>)
# Line 5547  Schoenebeck'> Line 6617  Schoenebeck'>
6617                  </t>                  </t>
6618                  <t>/ CLEAR SP clear_instruction                  <t>/ CLEAR SP clear_instruction
6619                  </t>                  </t>
6620                    <t>/ FIND SP find_instruction
6621                    </t>
6622                  <t>/ MOVE SP move_instruction                  <t>/ MOVE SP move_instruction
6623                  </t>                  </t>
6624                    <t>/ COPY SP copy_instruction
6625                    </t>
6626                    <t>/ EDIT SP edit_instruction
6627                    </t>
6628                    <t>/ FORMAT SP format_instruction
6629                    </t>
6630                    <t>/ SEND SP send_instruction
6631                    </t>
6632                  <t>/ RESET                  <t>/ RESET
6633                  </t>                  </t>
6634                  <t>/ QUIT                  <t>/ QUIT
# Line 5559  Schoenebeck'> Line 6639  Schoenebeck'>
6639          <list>          <list>
6640                  <t>CHANNEL                  <t>CHANNEL
6641                  </t>                  </t>
6642                  <t>/ DB_INSTRUMENT_DIRECTORY SP pathname                  <t>/ DB_INSTRUMENT_DIRECTORY SP db_path
6643                    </t>
6644                    <t>/ DB_INSTRUMENTS SP NON_MODAL SP scan_mode SP db_path SP filename
6645                    </t>
6646                    <t>/ DB_INSTRUMENTS SP NON_MODAL SP scan_mode SP FILE_AS_DIR SP db_path SP filename
6647                    </t>
6648                    <t>/ DB_INSTRUMENTS SP scan_mode SP db_path SP filename
6649                    </t>
6650                    <t>/ DB_INSTRUMENTS SP scan_mode SP FILE_AS_DIR SP db_path SP filename
6651                  </t>                  </t>
6652                  <t>/ DB_INSTRUMENTS SP FLAT SP pathname SP pathname                  <t>/ DB_INSTRUMENTS SP NON_MODAL SP db_path SP filename
6653                  </t>                  </t>
6654                  <t>/ DB_INSTRUMENTS SP NON_RECURSIVE SP pathname SP pathname                  <t>/ DB_INSTRUMENTS SP NON_MODAL SP db_path SP filename SP instrument_index
6655                  </t>                  </t>
6656                  <t>/ DB_INSTRUMENTS SP pathname SP pathname                  <t>/ DB_INSTRUMENTS SP db_path SP filename
6657                  </t>                  </t>
6658                  <t>/ DB_INSTRUMENTS SP pathname SP pathname SP instrument_index                  <t>/ DB_INSTRUMENTS SP db_path SP filename SP instrument_index
6659                  </t>                  </t>
6660                  <t>/ MIDI_INSTRUMENT_MAP                  <t>/ MIDI_INSTRUMENT_MAP
6661                  </t>                  </t>
# Line 5587  Schoenebeck'> Line 6675  Schoenebeck'>
6675                  </t>                  </t>
6676                  <t>/ CHANNEL_COUNT                  <t>/ CHANNEL_COUNT
6677                  </t>                  </t>
6678                    <t>/ CHANNEL_MIDI
6679                    </t>
6680                    <t>/ DEVICE_MIDI
6681                    </t>
6682                  <t>/ VOICE_COUNT                  <t>/ VOICE_COUNT
6683                  </t>                  </t>
6684                  <t>/ STREAM_COUNT                  <t>/ STREAM_COUNT
# Line 5615  Schoenebeck'> Line 6707  Schoenebeck'>
6707                  </t>                  </t>
6708                  <t>/ DB_INSTRUMENT_INFO                  <t>/ DB_INSTRUMENT_INFO
6709                  </t>                  </t>
6710                    <t>/ DB_INSTRUMENTS_JOB_INFO
6711                    </t>
6712                  <t>/ MISCELLANEOUS                  <t>/ MISCELLANEOUS
6713                  </t>                  </t>
6714                    <t>/ TOTAL_STREAM_COUNT
6715                    </t>
6716                  <t>/ TOTAL_VOICE_COUNT                  <t>/ TOTAL_VOICE_COUNT
6717                  </t>                  </t>
6718                  <t>/ GLOBAL_INFO                  <t>/ GLOBAL_INFO
# Line 5635  Schoenebeck'> Line 6731  Schoenebeck'>
6731                  </t>                  </t>
6732                  <t>/ CHANNEL_COUNT                  <t>/ CHANNEL_COUNT
6733                  </t>                  </t>
6734                    <t>/ CHANNEL_MIDI
6735                    </t>
6736                    <t>/ DEVICE_MIDI
6737                    </t>
6738                  <t>/ VOICE_COUNT                  <t>/ VOICE_COUNT
6739                  </t>                  </t>
6740                  <t>/ STREAM_COUNT                  <t>/ STREAM_COUNT
# Line 5663  Schoenebeck'> Line 6763  Schoenebeck'>
6763                  </t>                  </t>
6764                  <t>/ DB_INSTRUMENT_INFO                  <t>/ DB_INSTRUMENT_INFO
6765                  </t>                  </t>
6766                    <t>/ DB_INSTRUMENTS_JOB_INFO
6767                    </t>
6768                  <t>/ MISCELLANEOUS                  <t>/ MISCELLANEOUS
6769                  </t>                  </t>
6770                    <t>/ TOTAL_STREAM_COUNT
6771                    </t>
6772                  <t>/ TOTAL_VOICE_COUNT                  <t>/ TOTAL_VOICE_COUNT
6773                  </t>                  </t>
6774                  <t>/ GLOBAL_INFO                  <t>/ GLOBAL_INFO
# Line 5697  Schoenebeck'> Line 6801  Schoenebeck'>
6801                  </t>                  </t>
6802                  <t>/ MIDI_INSTRUMENT_MAP SP ALL                  <t>/ MIDI_INSTRUMENT_MAP SP ALL
6803                  </t>                  </t>
6804                  <t>/ DB_INSTRUMENT_DIRECTORY SP FORCE SP pathname                  <t>/ DB_INSTRUMENT_DIRECTORY SP FORCE SP db_path
6805                  </t>                  </t>
6806                  <t>/ DB_INSTRUMENT_DIRECTORY SP pathname                  <t>/ DB_INSTRUMENT_DIRECTORY SP db_path
6807                  </t>                  </t>
6808                  <t>/ DB_INSTRUMENT SP pathname                  <t>/ DB_INSTRUMENT SP db_path
6809                  </t>                  </t>
6810          </list>          </list>
6811  </t>  </t>
# Line 5755  Schoenebeck'> Line 6859  Schoenebeck'>
6859                  </t>                  </t>
6860                  <t>/ SERVER SP INFO                  <t>/ SERVER SP INFO
6861                  </t>                  </t>
6862                    <t>/ TOTAL_STREAM_COUNT
6863                    </t>
6864                  <t>/ TOTAL_VOICE_COUNT                  <t>/ TOTAL_VOICE_COUNT
6865                  </t>                  </t>
6866                  <t>/ TOTAL_VOICE_COUNT_MAX                  <t>/ TOTAL_VOICE_COUNT_MAX
# Line 5773  Schoenebeck'> Line 6879  Schoenebeck'>
6879                  </t>                  </t>
6880                  <t>/ FX_SEND SP INFO SP sampler_channel SP fx_send_id                  <t>/ FX_SEND SP INFO SP sampler_channel SP fx_send_id
6881                  </t>                  </t>
6882                  <t>/ DB_INSTRUMENT_DIRECTORIES SP pathname                  <t>/ DB_INSTRUMENT_DIRECTORIES SP RECURSIVE SP db_path
6883                    </t>
6884                    <t>/ DB_INSTRUMENT_DIRECTORIES SP db_path
6885                    </t>
6886                    <t>/ DB_INSTRUMENT_DIRECTORY SP INFO SP db_path
6887                  </t>                  </t>
6888                  <t>/ DB_INSTRUMENT_DIRECTORY SP INFO SP pathname                  <t>/ DB_INSTRUMENTS SP RECURSIVE SP db_path
6889                  </t>                  </t>
6890                  <t>/ DB_INSTRUMENTS SP pathname                  <t>/ DB_INSTRUMENTS SP db_path
6891                  </t>                  </t>
6892                  <t>/ DB_INSTRUMENT SP INFO SP pathname                  <t>/ DB_INSTRUMENT SP INFO SP db_path
6893                    </t>
6894                    <t>/ DB_INSTRUMENTS_JOB SP INFO SP number
6895                  </t>                  </t>
6896                  <t>/ VOLUME                  <t>/ VOLUME
6897                  </t>                  </t>
6898                    <t>/ VOICES
6899                    </t>
6900                    <t>/ STREAMS
6901                    </t>
6902                    <t>/ FILE SP INSTRUMENTS SP filename
6903                    </t>
6904                    <t>/ FILE SP INSTRUMENT SP INFO SP filename SP instrument_index
6905                    </t>
6906          </list>          </list>
6907  </t>  </t>
6908  <t>set_instruction =  <t>set_instruction =
# Line 5793  Schoenebeck'> Line 6913  Schoenebeck'>
6913                  </t>                  </t>
6914                  <t>/ MIDI_INPUT_DEVICE_PARAMETER SP number SP string '=' param_val_list                  <t>/ MIDI_INPUT_DEVICE_PARAMETER SP number SP string '=' param_val_list
6915                  </t>                  </t>
6916                    <t>/ MIDI_INPUT_PORT_PARAMETER SP number SP number SP string '=' NONE
6917                    </t>
6918                  <t>/ MIDI_INPUT_PORT_PARAMETER SP number SP number SP string '=' param_val_list                  <t>/ MIDI_INPUT_PORT_PARAMETER SP number SP number SP string '=' param_val_list
6919                  </t>                  </t>
6920                  <t>/ CHANNEL SP set_chan_instruction                  <t>/ CHANNEL SP set_chan_instruction
# Line 5807  Schoenebeck'> Line 6929  Schoenebeck'>
6929                  </t>                  </t>
6930                  <t>/ FX_SEND SP LEVEL SP sampler_channel SP fx_send_id SP volume_value                  <t>/ FX_SEND SP LEVEL SP sampler_channel SP fx_send_id SP volume_value
6931                  </t>                  </t>
6932                  <t>/ DB_INSTRUMENT_DIRECTORY SP NAME SP pathname SP dirname                  <t>/ DB_INSTRUMENT_DIRECTORY SP NAME SP db_path SP stringval_escaped
6933                  </t>                  </t>
6934                  <t>/ DB_INSTRUMENT_DIRECTORY SP DESCRIPTION SP pathname SP stringval                  <t>/ DB_INSTRUMENT_DIRECTORY SP DESCRIPTION SP db_path SP stringval_escaped
6935                  </t>                  </t>
6936                  <t>/ DB_INSTRUMENT SP NAME SP pathname SP dirname                  <t>/ DB_INSTRUMENT SP NAME SP db_path SP stringval_escaped
6937                  </t>                  </t>
6938                  <t>/ DB_INSTRUMENT SP DESCRIPTION SP pathname SP stringval                  <t>/ DB_INSTRUMENT SP DESCRIPTION SP db_path SP stringval_escaped
6939                    </t>
6940                    <t>/ DB_INSTRUMENT SP FILE_PATH SP filename SP filename
6941                  </t>                  </t>
6942                  <t>/ ECHO SP boolean                  <t>/ ECHO SP boolean
6943                  </t>                  </t>
6944                  <t>/ VOLUME SP volume_value                  <t>/ VOLUME SP volume_value
6945                  </t>                  </t>
6946                    <t>/ VOICES SP number
6947                    </t>
6948                    <t>/ STREAMS SP number
6949                    </t>
6950          </list>          </list>
6951  </t>  </t>
6952  <t>create_instruction =  <t>create_instruction =
# Line 5851  Schoenebeck'> Line 6979  Schoenebeck'>
6979                  </t>                  </t>
6980          </list>          </list>
6981  </t>  </t>
6982    <t>find_instruction =
6983            <list>
6984                    <t>DB_INSTRUMENTS SP NON_RECURSIVE SP db_path SP query_val_list
6985                    </t>
6986                    <t>/ DB_INSTRUMENTS SP db_path SP query_val_list
6987                    </t>
6988                    <t>/ DB_INSTRUMENT_DIRECTORIES SP NON_RECURSIVE SP db_path SP query_val_list
6989                    </t>
6990                    <t>/ DB_INSTRUMENT_DIRECTORIES SP db_path SP query_val_list
6991                    </t>
6992                    <t>/ LOST SP DB_INSTRUMENT_FILES
6993                    </t>
6994            </list>
6995    </t>
6996  <t>move_instruction =  <t>move_instruction =
6997          <list>          <list>
6998                  <t>DB_INSTRUMENT_DIRECTORY SP pathname SP pathname                  <t>DB_INSTRUMENT_DIRECTORY SP db_path SP db_path
6999                    </t>
7000                    <t>/ DB_INSTRUMENT SP db_path SP db_path
7001                    </t>
7002            </list>
7003    </t>
7004    <t>copy_instruction =
7005            <list>
7006                    <t>DB_INSTRUMENT_DIRECTORY SP db_path SP db_path
7007                  </t>                  </t>
7008                  <t>/ DB_INSTRUMENT SP pathname SP pathname                  <t>/ DB_INSTRUMENT SP db_path SP db_path
7009                  </t>                  </t>
7010          </list>          </list>
7011  </t>  </t>
# Line 5909  Schoenebeck'> Line 7059  Schoenebeck'>
7059                  </t>                  </t>
7060          </list>          </list>
7061  </t>  </t>
7062    <t>edit_instruction =
7063            <list>
7064                    <t>CHANNEL SP INSTRUMENT SP sampler_channel
7065                    </t>
7066            </list>
7067    </t>
7068    <t>format_instruction =
7069            <list>
7070                    <t>INSTRUMENTS_DB
7071                    </t>
7072            </list>
7073    </t>
7074  <t>modal_arg =  <t>modal_arg =
7075          <list>          <list>
7076                  <t>/* epsilon (empty argument) */                  <t>/* epsilon (empty argument) */
# Line 5955  Schoenebeck'> Line 7117  Schoenebeck'>
7117                  </t>                  </t>
7118                  <t>/ FX_SENDS SP sampler_channel                  <t>/ FX_SENDS SP sampler_channel
7119                  </t>                  </t>
7120                  <t>/ DB_INSTRUMENT_DIRECTORIES SP pathname                  <t>/ DB_INSTRUMENT_DIRECTORIES SP RECURSIVE SP db_path
7121                    </t>
7122                    <t>/ DB_INSTRUMENT_DIRECTORIES SP db_path
7123                    </t>
7124                    <t>/ DB_INSTRUMENTS SP RECURSIVE SP db_path
7125                    </t>
7126                    <t>/ DB_INSTRUMENTS SP db_path
7127                  </t>                  </t>
7128                  <t>/ DB_INSTRUMENTS SP pathname                  <t>/ FILE SP INSTRUMENTS SP filename
7129                    </t>
7130            </list>
7131    </t>
7132    <t>send_instruction =
7133            <list>
7134                    <t>CHANNEL SP MIDI_DATA SP string SP sampler_channel SP number SP number
7135                  </t>                  </t>
7136          </list>          </list>
7137  </t>  </t>
# Line 6079  Schoenebeck'> Line 7253  Schoenebeck'>
7253                  </t>                  </t>
7254          </list>          </list>
7255  </t>  </t>
7256  <t>pathname =  <t>filename =
         <list>  
                 <t>stringval  
                 </t>  
         </list>  
 </t>  
 <t>dirname =  
7257          <list>          <list>
7258                  <t>stringval                  <t>path
7259                  </t>                  </t>
7260          </list>          </list>
7261  </t>  </t>
7262  <t>filename =  <t>db_path =
7263          <list>          <list>
7264                  <t>stringval                  <t>path
7265                  </t>                  </t>
7266          </list>          </list>
7267  </t>  </t>
7268  <t>map_name =  <t>map_name =
7269          <list>          <list>
7270                  <t>stringval                  <t>stringval_escaped
7271                  </t>                  </t>
7272          </list>          </list>
7273  </t>  </t>
7274  <t>entry_name =  <t>entry_name =
7275          <list>          <list>
7276                  <t>stringval                  <t>stringval_escaped
7277                  </t>                  </t>
7278          </list>          </list>
7279  </t>  </t>
7280  <t>fx_send_name =  <t>fx_send_name =
7281          <list>          <list>
7282                  <t>stringval                  <t>stringval_escaped
7283                  </t>                  </t>
7284          </list>          </list>
7285  </t>  </t>
# Line 6123  Schoenebeck'> Line 7291  Schoenebeck'>
7291                  </t>                  </t>
7292          </list>          </list>
7293  </t>  </t>
7294    
7295  <t>param_val =  <t>param_val =
7296          <list>          <list>
7297                  <t>string                  <t>string
# Line 6135  Schoenebeck'> Line 7304  Schoenebeck'>
7304                  </t>                  </t>
7305          </list>          </list>
7306  </t>  </t>
7307    <t>query_val_list =
7308            <list>
7309                    <t>string '=' query_val
7310                    </t>
7311                    <t>/ query_val_list SP string '=' query_val
7312                    </t>
7313            </list>
7314    </t>
7315    <t>query_val =
7316            <list>
7317                    <t>text_escaped
7318                    </t>
7319                    <t>/ stringval_escaped
7320                    </t>
7321            </list>
7322    </t>
7323    <t>scan_mode =
7324            <list>
7325                    <t>RECURSIVE
7326                    </t>
7327                    <t>/ NON_RECURSIVE
7328                    </t>
7329                    <t>/ FLAT
7330                    </t>
7331            </list>
7332    </t>
7333    
7334              <!-- GRAMMAR_BNF_END - do NOT delete or modify this line !!! -->              <!-- GRAMMAR_BNF_END - do NOT delete or modify this line !!! -->
7335    
7336                <section title="Character Set and Escape Sequences" anchor="character_set">
7337                    <t>Older versions of this protocol up to and including v1.1 only
7338                    supported the standard ASCII character set (ASCII code 0 - 127)
7339                    <xref target="RFC20"/>, all younger versions of this protocol
7340                    however support the Extended ASCII character set (ASCII code
7341                    0 - 255). The same group of younger protocols also support
7342                    escape sequences, but only for certain, explicitly declared
7343                    parts of the protocol. The supported escape sequences are
7344                    defined as follows:</t>
7345                    <texttable>
7346                        <ttcol>ASCII Character Sequence</ttcol>
7347                        <ttcol>Translated into (Name)</ttcol>
7348                        <c>\n</c> <c>new line</c>
7349                        <c>\r</c> <c>carriage return</c>
7350                        <c>\f</c> <c>form feed</c>
7351                        <c>\t</c> <c>horizontal tab</c>
7352                        <c>\v</c> <c>vertical tab</c>
7353                        <c>\'</c> <c>apostrophe</c>
7354                        <c>\"</c> <c>quotation mark</c>
7355                        <c>\\</c> <c>backslash</c>
7356                        <c>\OOO</c> <c>three digit octal ASCII code of the character</c>
7357                        <c>\xHH</c> <c>two digit hex ASCII code of the character</c>
7358                    </texttable>
7359                    <t>Notice: due to the transition of certain parts of the
7360                    protocol which now support escape sequences, a slight backward
7361                    incompatibility to protocols version v1.1 and younger has been
7362                    introduced. The only difference is that in parts of the protocol
7363                    where escape characters are now supported, a backslash characters
7364                    MUST be escaped as well (that is as double backslash), whereas
7365                    in the old versions a single backslash was sufficient.</t>
7366    
7367                    <t>The following LSCP commands support escape sequences as part
7368                    of their filename / path based arguments and / or may contain
7369                    a filename / path with escape sequences in their response:
7370                    <list>
7371                        <t><xref target="LOAD INSTRUMENT">"LOAD INSTRUMENT"</xref></t>
7372                        <t><xref target="GET CHANNEL INFO">"GET CHANNEL INFO"</xref></t>
7373                        <t><xref target="MAP MIDI_INSTRUMENT">"MAP MIDI_INSTRUMENT"</xref></t>
7374                        <t><xref target="GET MIDI_INSTRUMENT INFO">"GET MIDI_INSTRUMENT INFO"</xref></t>
7375                        <t><xref target="ADD DB_INSTRUMENT_DIRECTORY">"ADD DB_INSTRUMENT_DIRECTORY"</xref></t>
7376                        <t><xref target="ADD DB_INSTRUMENTS">"ADD DB_INSTRUMENTS"</xref></t>
7377                        <t><xref target="REMOVE DB_INSTRUMENT_DIRECTORY">"REMOVE DB_INSTRUMENT_DIRECTORY"</xref></t>
7378                        <t><xref target="REMOVE DB_INSTRUMENT">"REMOVE DB_INSTRUMENT"</xref></t>
7379                        <t><xref target="GET DB_INSTRUMENT_DIRECTORIES">"GET DB_INSTRUMENT_DIRECTORIES"</xref></t>
7380                        <t><xref target="LIST DB_INSTRUMENT_DIRECTORIES">"LIST DB_INSTRUMENT_DIRECTORIES"</xref></t>
7381                        <t><xref target="GET DB_INSTRUMENT_DIRECTORY INFO">"GET DB_INSTRUMENT_DIRECTORY INFO"</xref></t>
7382                        <t><xref target="GET DB_INSTRUMENTS">"GET DB_INSTRUMENTS"</xref></t>
7383                        <t><xref target="LIST DB_INSTRUMENTS">"LIST DB_INSTRUMENTS"</xref></t>
7384                        <t><xref target="GET DB_INSTRUMENT INFO">"GET DB_INSTRUMENT INFO"</xref></t>
7385                        <t><xref target="SET DB_INSTRUMENT_DIRECTORY NAME">"SET DB_INSTRUMENT_DIRECTORY NAME"</xref></t>
7386                        <t><xref target="SET DB_INSTRUMENT_DIRECTORY DESCRIPTION">"SET DB_INSTRUMENT_DIRECTORY DESCRIPTION"</xref></t>
7387                        <t><xref target="SET DB_INSTRUMENT NAME">"SET DB_INSTRUMENT NAME"</xref></t>
7388                        <t><xref target="SET DB_INSTRUMENT DESCRIPTION">"SET DB_INSTRUMENT DESCRIPTION"</xref></t>
7389                        <t><xref target="FIND DB_INSTRUMENTS">"FIND DB_INSTRUMENTS"</xref></t>
7390                        <t><xref target="FIND DB_INSTRUMENT_DIRECTORIES">"FIND DB_INSTRUMENT_DIRECTORIES"</xref></t>
7391                        <t><xref target="MOVE DB_INSTRUMENT">"MOVE DB_INSTRUMENT"</xref></t>
7392                        <t><xref target="MOVE DB_INSTRUMENT_DIRECTORY">"MOVE DB_INSTRUMENT_DIRECTORY"</xref></t>
7393                        <t><xref target="COPY DB_INSTRUMENT">"COPY DB_INSTRUMENT"</xref></t>
7394                        <t><xref target="COPY DB_INSTRUMENT_DIRECTORY">"COPY DB_INSTRUMENT_DIRECTORY"</xref></t>
7395                        <t><xref target="FIND LOST DB_INSTRUMENT_FILES">"FIND LOST DB_INSTRUMENT_FILES"</xref></t>
7396                        <t><xref target="SET DB_INSTRUMENT FILE_PATH">"SET DB_INSTRUMENT FILE_PATH"</xref></t>
7397                        <t><xref target="GET FILE INSTRUMENTS">"GET FILE INSTRUMENTS"</xref></t>
7398                        <t><xref target="LIST FILE INSTRUMENTS">"LIST FILE INSTRUMENTS"</xref></t>
7399                        <t><xref target="GET FILE INSTRUMENT INFO">"GET FILE INSTRUMENT INFO"</xref></t>
7400                    </list>
7401                    Note that the forward slash character ('/') has a special meaning in
7402                    filename / path based arguments: it acts as separator of the nodes in
7403                    the path, thus if a directory- or filename includes a forward slash
7404                    (not intended as path node separator), you MUST escape that slash
7405                    either with the respective hex escape sequence ("\x2f") or with the
7406                    respective octal escape sequence ("\057").
7407                    </t>
7408    
7409                    <t>
7410                    Note for Windows: file path arguments in LSCP are expected
7411                    to use forward slashes as directory node separator similar
7412                    to Unix based operating systems. In contrast to Unix however
7413                    a Windows typical drive character is expected to be
7414                    prefixed to the path. That is an original Windows file path
7415                    like "D:\Sounds\My.gig" would become in LSCP:
7416                    "D:/Sounds/My.gig".
7417                    </t>
7418    
7419                    <t>
7420                    The following LSCP commands even support escape sequences as
7421                    part of at least one of their text-based arguments (i.e. entity name,
7422                    description) and / or may contain escape sequences in at least one of
7423                    their text-based fields in their response:
7424                    <list>
7425                        <t><xref target="GET SERVER INFO">"GET SERVER INFO"</xref></t>
7426                        <t><xref target="GET ENGINE INFO">"GET ENGINE INFO"</xref></t>
7427                        <t><xref target="GET CHANNEL INFO">"GET CHANNEL INFO"</xref></t>
7428                        <t><xref target="CREATE FX_SEND">"CREATE FX_SEND"</xref></t>
7429                        <t><xref target="GET FX_SEND INFO">"GET FX_SEND INFO"</xref></t>
7430                        <t><xref target="SET FX_SEND NAME">"SET FX_SEND NAME"</xref></t>
7431                        <t><xref target="GET MIDI_INSTRUMENT INFO">"GET MIDI_INSTRUMENT INFO"</xref></t>
7432                        <t><xref target="GET MIDI_INSTRUMENT_MAP INFO">"GET MIDI_INSTRUMENT_MAP INFO"</xref></t>
7433                        <t><xref target="ADD MIDI_INSTRUMENT_MAP">"ADD MIDI_INSTRUMENT_MAP"</xref></t>
7434                        <t><xref target="MAP MIDI_INSTRUMENT">"MAP MIDI_INSTRUMENT"</xref></t>
7435                        <t><xref target="SET MIDI_INSTRUMENT_MAP NAME">"SET MIDI_INSTRUMENT_MAP NAME"</xref></t>
7436                        <t><xref target="GET DB_INSTRUMENT_DIRECTORY INFO">"GET DB_INSTRUMENT_DIRECTORY INFO"</xref></t>
7437                        <t><xref target="SET DB_INSTRUMENT_DIRECTORY NAME">"SET DB_INSTRUMENT_DIRECTORY NAME"</xref></t>
7438                        <t><xref target="SET DB_INSTRUMENT_DIRECTORY DESCRIPTION">"SET DB_INSTRUMENT_DIRECTORY DESCRIPTION"</xref></t>
7439                        <t><xref target="FIND DB_INSTRUMENT_DIRECTORIES">"FIND DB_INSTRUMENT_DIRECTORIES"</xref></t>
7440                        <t><xref target="GET DB_INSTRUMENT INFO">"GET DB_INSTRUMENT INFO"</xref></t>
7441                        <t><xref target="SET DB_INSTRUMENT NAME">"SET DB_INSTRUMENT NAME"</xref></t>
7442                        <t><xref target="SET DB_INSTRUMENT DESCRIPTION">"SET DB_INSTRUMENT DESCRIPTION"</xref></t>
7443                        <t><xref target="FIND DB_INSTRUMENTS">"FIND DB_INSTRUMENTS"</xref></t>
7444                    </list>
7445                    Please note that these lists are manually maintained. If you
7446                    find a command that also supports escape sequences we forgot to
7447                    mention here, please report it!
7448                    </t>
7449                </section>
7450          </section>          </section>
7451    
7452          <section title="Events" anchor="events">          <section title="Events" anchor="events">
# Line 6240  Schoenebeck'> Line 7550  Schoenebeck'>
7550                  of sampler channels.</t>                  of sampler channels.</t>
7551              </section>              </section>
7552    
7553                <section title="MIDI data on a sampler channel arrived" anchor="SUBSCRIBE CHANNEL_MIDI">
7554                    <t>Client may want to be notified when MIDI data arrive on sampler channels on
7555                    back-end side, by issuing the following command:</t>
7556                    <t>
7557                        <list>
7558                            <t>SUBSCRIBE CHANNEL_MIDI</t>
7559                        </list>
7560                    </t>
7561                    <t>Server will start sending one of the the following notification messages:</t>
7562                    <t>
7563                        <list>
7564                            <t>"NOTIFY:CHANNEL_MIDI:&lt;channel-id&gt; NOTE_ON  &lt;note&gt; &lt;velocity&gt;"</t>
7565                            <t>"NOTIFY:CHANNEL_MIDI:&lt;channel-id&gt; NOTE_OFF &lt;note&gt; &lt;velocity&gt;"</t>
7566                        </list>
7567                    </t>
7568                    <t>where &lt;channel-id&gt; will be replaced by the ID of the sampler channel where the MIDI
7569                    data arrived. &lt;note&gt; and &lt;velocity&gt; are integer values in the range between
7570                    0 .. 127, reflecting the analog meaning of the MIDI specification.
7571                    </t>
7572                    <t>CAUTION: no guarantee whatsoever will be made that MIDI events are actually all
7573                    delivered by this mechanism! With other words: events could be lost at any time!
7574                    This restriction was made to keep the RT-safeness of the backend's MIDI and audio
7575                    thread unaffected by this feature.</t>
7576                </section>
7577    
7578                <section title="MIDI data on a MIDI input device arrived" anchor="SUBSCRIBE DEVICE_MIDI">
7579                        <t>Client may want to be notified when MIDI data arrive on MIDI input devices by issuing the following command:</t>
7580                        <t>
7581                                <list>
7582                                        <t>SUBSCRIBE DEVICE_MIDI</t>
7583                                </list>
7584                        </t>
7585                        <t>Server will start sending one of the the following notification messages:</t>
7586                        <t>
7587                                <list>
7588                                        <t>"NOTIFY:DEVICE_MIDI:&lt;device-id&gt; &lt;port-id&gt; NOTE_ON &lt;note&gt; &lt;velocity&gt;"</t>
7589                                        <t>"NOTIFY:DEVICE_MIDI:&lt;device-id&gt; &lt;port-id&gt; NOTE_OFF &lt;note&gt; &lt;velocity&gt;"</t>
7590                                </list>
7591                        </t>
7592                        <t>where &lt;device-id&gt; &lt;port-id&gt; will be replaced
7593                           by the IDs of the respective MIDI input device and the device's MIDI port where the MIDI
7594                           data arrived. &lt;note&gt; and &lt;velocity&gt; are integer values in the range between
7595                           0 .. 127, reflecting the analog meaning of the MIDI specification.
7596                        </t>
7597                        <t>CAUTION: no guarantee whatsoever will be made that MIDI events are actually all
7598                           delivered by this mechanism! With other words: events could be lost at any time!
7599                           This restriction was made to keep the RT-safeness of the backend's MIDI and audio
7600                           thread unaffected by this feature.</t>
7601                </section>
7602    
7603              <section title="Number of active voices changed" anchor="SUBSCRIBE VOICE_COUNT">              <section title="Number of active voices changed" anchor="SUBSCRIBE VOICE_COUNT">
7604                  <t>Client may want to be notified when the number of voices on the                  <t>Client may want to be notified when the number of voices on the
7605                  back-end changes by issuing the following command:</t>                  back-end changes by issuing the following command:</t>
# Line 6322  Schoenebeck'> Line 7682  Schoenebeck'>
7682              </section>              </section>
7683    
7684              <section title="Number of effect sends changed" anchor="SUBSCRIBE FX_SEND_COUNT">              <section title="Number of effect sends changed" anchor="SUBSCRIBE FX_SEND_COUNT">
7685                  <t>Client may want to be notified when the number of effect sends on                  <t>Client may want to be notified when the number of effect sends on
7686                  a particular sampler channel is changed by issuing the following command:</t>                  a particular sampler channel is changed by issuing the following command:</t>
7687                  <t>                  <t>
7688                      <list>                      <list>
# Line 6377  Schoenebeck'> Line 7737  Schoenebeck'>
7737                  all currently active voices.</t>                  all currently active voices.</t>
7738              </section>              </section>
7739    
7740                <section title="Total number of active disk streams changed" anchor="SUBSCRIBE TOTAL_STREAM_COUNT">
7741                    <t>Client may want to be notified when the total number of disk streams on the
7742                    back-end changes by issuing the following command:</t>
7743                    <t>
7744                        <list>
7745                            <t>SUBSCRIBE TOTAL_STREAM_COUNT</t>
7746                        </list>
7747                    </t>
7748                    <t>Server will start sending the following notification messages:</t>
7749                    <t>
7750                        <list>
7751                            <t>"NOTIFY:TOTAL_STREAM_COUNT:&lt;streams&gt;"</t>
7752                        </list>
7753                    </t>
7754                    <t>where &lt;streams&gt; will be replaced by the new number of
7755                    all currently active disk streams.</t>
7756                </section>
7757    
7758              <section title="Number of MIDI instrument maps changed" anchor="SUBSCRIBE MIDI_INSTRUMENT_MAP_COUNT">              <section title="Number of MIDI instrument maps changed" anchor="SUBSCRIBE MIDI_INSTRUMENT_MAP_COUNT">
7759                  <t>Client may want to be notified when the number of MIDI instrument maps on the                  <t>Client may want to be notified when the number of MIDI instrument maps on the
7760                  back-end changes by issuing the following command:</t>                  back-end changes by issuing the following command:</t>
# Line 6475  Schoenebeck'> Line 7853  Schoenebeck'>
7853                          replaced by the optional dotted floating point value, reflecting the                          replaced by the optional dotted floating point value, reflecting the
7854                          new global volume parameter.</t>                          new global volume parameter.</t>
7855                      </list>                      </list>
7856                        <list>
7857                            <t>"NOTIFY:GLOBAL_INFO:VOICES &lt;max-voices&gt;" - Notifies that the
7858                            golbal limit of the sampler for maximum voices is changed, where
7859                            &lt;max-voices&gt; will be an integer value, reflecting the
7860                            new global voice limit parameter.</t>
7861                        </list>
7862                        <list>
7863                            <t>"NOTIFY:GLOBAL_INFO:STREAMS &lt;max-streams&gt;" - Notifies that the
7864                            golbal limit of the sampler for maximum disk streams is changed, where
7865                            &lt;max-streams&gt; will be an integer value, reflecting the
7866                            new global disk streams limit parameter.</t>
7867                        </list>
7868                  </t>                  </t>
7869              </section>              </section>
7870    
# Line 6582  Schoenebeck'> Line 7972  Schoenebeck'>
7972                  the new name of the instrument, encapsulated into apostrophes.</t>                  the new name of the instrument, encapsulated into apostrophes.</t>
7973              </section>              </section>
7974    
7975                <section title="Database job status information changed" anchor="SUBSCRIBE DB_INSTRUMENTS_JOB_INFO">
7976                    <t>Client may want to be notified when the status of particular database
7977                    instruments job is changed by issuing the following command:</t>
7978                    <t>
7979                        <list>
7980                            <t>SUBSCRIBE DB_INSTRUMENTS_JOB_INFO</t>
7981                        </list>
7982                    </t>
7983                    <t>Server will start sending the following notification messages:</t>
7984                    <t>
7985                        <list>
7986                            <t>"NOTIFY:DB_INSTRUMENTS_JOB_INFO:&lt;job-id&gt;"</t>
7987                        </list>
7988                    </t>
7989                    <t>where &lt;job-id&gt; will be replaced by the numerical ID of the job,
7990                    which status is changed. The front-end will have to send the respective
7991                    command to actually get the status info. Because these messages
7992                    will be triggered by LSCP commands issued by other clients rather than real
7993                    time events happening on the server, it is believed that an empty notification
7994                    message is sufficient here.</t>
7995                </section>
7996    
7997              <section title="Miscellaneous and debugging events" anchor="SUBSCRIBE MISCELLANEOUS">              <section title="Miscellaneous and debugging events" anchor="SUBSCRIBE MISCELLANEOUS">
7998                  <t>Client may want to be notified of miscellaneous and debugging events occurring at                  <t>Client may want to be notified of miscellaneous and debugging events occurring at
7999                  the server by issuing the following command:</t>                  the server by issuing the following command:</t>
# Line 6660  Schoenebeck'> Line 8072  Schoenebeck'>
8072                  </front>                  </front>
8073                  <seriesInfo name="RFC" value="2234" />                  <seriesInfo name="RFC" value="2234" />
8074              </reference>              </reference>
8075                <reference anchor="RFC20">
8076                    <front>
8077                        <title>ASCII format for Network Interchange</title>
8078                        <author>
8079                            <organization>UCLA</organization>
8080                        </author>
8081                        <date year="1969"></date>
8082                    </front>
8083                    <seriesInfo name="RFC" value="20" />
8084                </reference>
8085           </references>           </references>
8086      </back>      </back>
8087    

Legend:
Removed from v.1161  
changed lines
  Added in v.1800

  ViewVC Help
Powered by ViewVC