/[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 828 by schoenebeck, Sun Jan 8 21:12:33 2006 UTC revision 1005 by schoenebeck, Fri Dec 29 20:06:14 2006 UTC
# Line 11  Line 11 
11  <?rfc symrefs="yes" ?>  <?rfc symrefs="yes" ?>
12  <?rfc sortrefs="yes"?>  <?rfc sortrefs="yes"?>
13  <?rfc iprnotified="no" ?>  <?rfc iprnotified="no" ?>
 <?rfc strict="yes" ?>  
14    
15  <rfc category="std" ipr="full2026" docName="LSCP 1.1">  <!-- FIXME: next attribute should actually be "yes", temporarily disbled due
16         to an annoying "missing Normative/Informative References" error message -->
17    <?rfc strict="no" ?>
18    
19    <rfc category="std" ipr="full3978" docName="LSCP 1.2">
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 31  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="September" year="2005"/>          <date month="December" year="2006"/>
38          <workgroup>LinuxSampler Developers</workgroup>          <workgroup>LinuxSampler Developers</workgroup>
39          <keyword>LSCP</keyword>          <keyword>LSCP</keyword>
40          <abstract>          <abstract>
# Line 2571  Schoenebeck'> Line 2574  Schoenebeck'>
2574                                              the channel is a solo channel; "false" otherwise</t>                                              the channel is a solo channel; "false" otherwise</t>
2575                                          </list>                                          </list>
2576                                      </t>                                      </t>
2577                                        <t>MIDI_INSTRUMENT_MAP -
2578                                            <list>
2579                                                <t>Determines to which MIDI instrument map this sampler
2580                                                channel is assigned to. Read chapter
2581                                                <xref target="SET CHANNEL MIDI_INSTRUMENT_MAP">"SET CHANNEL MIDI_INSTRUMENT_MAP"</xref>
2582                                                for a list of possible values.</t>
2583                                            </list>
2584                                        </t>
2585                                  </list>                                  </list>
2586                              </t>                              </t>
2587                          </list>                          </list>
# Line 2593  Schoenebeck'> Line 2604  Schoenebeck'>
2604                              <t>&nbsp;&nbsp;&nbsp;"MIDI_INPUT_DEVICE: 0"</t>                              <t>&nbsp;&nbsp;&nbsp;"MIDI_INPUT_DEVICE: 0"</t>
2605                              <t>&nbsp;&nbsp;&nbsp;"MIDI_INPUT_PORT: 0"</t>                              <t>&nbsp;&nbsp;&nbsp;"MIDI_INPUT_PORT: 0"</t>
2606                              <t>&nbsp;&nbsp;&nbsp;"MIDI_INPUT_CHANNEL: 5"</t>                              <t>&nbsp;&nbsp;&nbsp;"MIDI_INPUT_CHANNEL: 5"</t>
2607                                <t>&nbsp;&nbsp;&nbsp;"VOLUME: 1.0"</t>
2608                                <t>&nbsp;&nbsp;&nbsp;"MUTE: false"</t>
2609                                <t>&nbsp;&nbsp;&nbsp;"SOLO: false"</t>
2610                                <t>&nbsp;&nbsp;&nbsp;"MIDI_INSTRUMENT_MAP: NONE"</t>
2611                              <t>&nbsp;&nbsp;&nbsp;"."</t>                              <t>&nbsp;&nbsp;&nbsp;"."</t>
2612                          </list>                          </list>
2613                      </t>                      </t>
# Line 2753  Schoenebeck'> Line 2768  Schoenebeck'>
2768                      </t>                      </t>
2769                  </section>                  </section>
2770    
2771                  <section title="Setting audio output type" anchor="SET CHANNEL AUDIO_OUTPUT_TYP">                  <section title="Setting audio output type" anchor="SET CHANNEL AUDIO_OUTPUT_TYPE">
2772                      <t>DEPRECATED: THIS COMMAND WILL DISAPPEAR SOON!</t>                      <t>DEPRECATED: THIS COMMAND WILL DISAPPEAR SOON!</t>
2773    
2774                      <t>The front-end can alter the audio output type on a specific sampler                      <t>The front-end can alter the audio output type on a specific sampler
# Line 3144  Schoenebeck'> Line 3159  Schoenebeck'>
3159                      </t>                      </t>
3160                  </section>                  </section>
3161    
3162                    <section title="Assigning a MIDI instrument map to a sampler channel" anchor="SET CHANNEL MIDI_INSTRUMENT_MAP">
3163                        <t>The front-end can assign a MIDI instrument map to a specific sampler channel
3164                        by sending the following command:</t>
3165                        <t>
3166                            <list>
3167                                <t>SET CHANNEL MIDI_INSTRUMENT_MAP &lt;sampler-channel&gt; &lt;map&gt;</t>
3168                            </list>
3169                        </t>
3170                        <t>Where &lt;sampler-channel&gt; is the respective sampler channel
3171                        number as returned by the <xref target="ADD CHANNEL">"ADD CHANNEL"</xref>
3172                        or <xref target="LIST CHANNELS">"LIST CHANNELS"</xref> command and
3173                        &lt;map&gt; can have the following possibilites:</t>
3174                        <t>
3175                            <list>
3176                                <t>"NONE" -
3177                                    <list>
3178                                        <t>This is the default setting. In this case
3179                                        the sampler channel is not assigned any MIDI
3180                                        instrument map and thus will ignore all MIDI
3181                                        program change messages.</t>
3182                                    </list>
3183                                </t>
3184                                <t>"DEFAULT" -
3185                                    <list>
3186                                        <t>The sampler channel will always use the
3187                                        default MIDI instrument map to handle MIDI
3188                                        program change messages.</t>
3189                                    </list>
3190                                </t>
3191                                <t>numeric ID -
3192                                    <list>
3193                                        <t>You can assign a specific MIDI instrument map
3194                                        by replacing &lt;map&gt; with the respective numeric
3195                                        ID of the MIDI instrument map as returned by the
3196                                        <xref target="LIST MIDI_INSTRUMENT_MAPS">"LIST MIDI_INSTRUMENT_MAPS"</xref>
3197                                        command. Once that map will be deleted, the sampler
3198                                        channel would fall back to "NONE".</t>
3199                                    </list>
3200                                </t>
3201                            </list>
3202                        </t>
3203                        <t>Read chapter <xref target="MIDI Instrument Mapping">"MIDI Instrument Mapping"</xref>
3204                        for details regarding MIDI instrument mapping.</t>
3205    
3206                        <t>Possible Answers:</t>
3207                        <t>
3208                            <list>
3209                                <t>"OK" -
3210                                    <list>
3211                                        <t>on success</t>
3212                                    </list>
3213                                </t>
3214                                <t>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
3215                                    <list>
3216                                        <t>in case it failed, providing an appropriate error code and error message</t>
3217                                    </list>
3218                                </t>
3219                            </list>
3220                        </t>
3221    
3222                        <t>Examples:</t>
3223                        <t>
3224                            <list>
3225                                <t></t>
3226                            </list>
3227                        </t>
3228                    </section>
3229    
3230                    <section title="Adding an effect send to a sampler channel" anchor="CREATE FX_SEND">
3231                        <t>The front-end can create an additional effect send on a specific sampler channel
3232                        by sending the following command:</t>
3233                        <t>
3234                            <list>
3235                                <t>CREATE FX_SEND &lt;sampler-channel&gt; &lt;midi-ctrl&gt; [&lt;name&gt;]</t>
3236                            </list>
3237                        </t>
3238                        <t>Where &lt;sampler-channel&gt; is the respective sampler channel
3239                        number as returned by the <xref target="ADD CHANNEL">"ADD CHANNEL"</xref>
3240                        or <xref target="LIST CHANNELS">"LIST CHANNELS"</xref> command, that is the
3241                        sampler channel on which the effect send should be created on, &lt;midi-ctrl&gt;
3242                        is a number between 0..127 defining the MIDI controller which can alter the
3243                        effect send level and &lt;name&gt; is an optional argument defining a name
3244                        for the effect send entity. The name does not have to be unique.</t>
3245    
3246                        <t>By default, that is as initial routing, the effect send's audio channels
3247                        are automatically routed to the last audio channels of the sampler channel's
3248                        audio output device, that way you can i.e. first increase the amount of audio
3249                        channels on the audio output device for having dedicated effect send output
3250                        channels and when "CREATE FX_SEND" is called, those channels will automatically
3251                        be picked. You can alter the destination channels however with
3252                        <xref target="SET FX_SEND AUDIO_OUTPUT_CHANNEL">"SET FX_SEND AUDIO_OUTPUT_CHANNEL"</xref>.
3253                        </t>
3254    
3255                        <t>Note: Create effect sends on a sampler channel only when needed, because having effect
3256                        sends on a sampler channel will decrease runtime performance, because for implementing channel
3257                        effect sends, separate (sampler channel local) audio buffers are needed to render and mix
3258                        the voices and route the audio signal afterwards to the master outputs and effect send
3259                        outputs (along with their respective effect send levels). A sampler channel without effect
3260                        sends however can mix its voices directly into the audio output devices's audio buffers
3261                        and is thus faster.
3262                        </t>
3263    
3264                        <t>Possible Answers:</t>
3265                        <t>
3266                            <list>
3267                                <t>"OK[&lt;fx-send-id&gt;]" -
3268                                    <list>
3269                                        <t>in case a new effect send could be added to the
3270                                        sampler channel, where &lt;fx-send-id&gt; reflects the
3271                                        unique ID of the newly created effect send entity</t>
3272                                    </list>
3273                                </t>
3274                                <t>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
3275                                    <list>
3276                                        <t>when a new effect send could not be added, i.e.
3277                                        due to invalid parameters</t>
3278                                    </list>
3279                                </t>
3280                            </list>
3281                        </t>
3282    
3283                        <t>Examples:</t>
3284                        <t>
3285                            <list>
3286                                <t>C: "CREATE FX_SEND 0 91 'Reverb Send'"</t>
3287                                <t>S: "OK[0]"</t>
3288                            </list>
3289                        </t>
3290                        <t>
3291                            <list>
3292                                <t>C: "CREATE FX_SEND 0 93"</t>
3293                                <t>S: "OK[1]"</t>
3294                            </list>
3295                        </t>
3296                    </section>
3297    
3298                    <section title="Removing an effect send from a sampler channel" anchor="DESTROY FX_SEND">
3299                        <t>The front-end can remove an existing effect send on a specific sampler channel
3300                        by sending the following command:</t>
3301                        <t>
3302                            <list>
3303                                <t>DESTROY FX_SEND &lt;sampler-channel&gt; &lt;fx-send-id&gt;</t>
3304                            </list>
3305                        </t>
3306                        <t>Where &lt;sampler-channel&gt; is the respective sampler channel
3307                        number as returned by the <xref target="ADD CHANNEL">"ADD CHANNEL"</xref>
3308                        or <xref target="LIST CHANNELS">"LIST CHANNELS"</xref> command, that is the
3309                        sampler channel from which the effect send should be removed from and
3310                        &lt;fx-send-id&gt; is the respective effect send number as returned by the
3311                        <xref target="CREATE FX_SEND">"CREATE FX_SEND"</xref>
3312                        or <xref target="LIST FX_SENDS">"LIST FX_SENDS"</xref> command.</t>
3313    
3314                        <t>Possible Answers:</t>
3315                        <t>
3316                            <list>
3317                                <t>"OK" -
3318                                    <list>
3319                                        <t>on success</t>
3320                                    </list>
3321                                </t>
3322                                <t>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
3323                                    <list>
3324                                        <t>in case it failed, providing an appropriate error code and
3325                                        error message</t>
3326                                    </list>
3327                                </t>
3328                            </list>
3329                        </t>
3330    
3331                        <t>Example:</t>
3332                        <t>
3333                            <list>
3334                                <t>C: "DESTROY FX_SEND 0 0"</t>
3335                                <t>S: "OK"</t>
3336                            </list>
3337                        </t>
3338                    </section>
3339    
3340                    <section title="Getting amount of effect sends on a sampler channel" anchor="GET FX_SENDS">
3341                        <t>The front-end can ask for the amount of effect sends on a specific sampler channel
3342                        by sending the following command:</t>
3343                        <t>
3344                            <list>
3345                                <t>GET FX_SENDS &lt;sampler-channel&gt;</t>
3346                            </list>
3347                        </t>
3348                        <t>Where &lt;sampler-channel&gt; is the respective sampler channel
3349                        number as returned by the <xref target="ADD CHANNEL">"ADD CHANNEL"</xref>
3350                        or <xref target="LIST CHANNELS">"LIST CHANNELS"</xref> command.</t>
3351    
3352                        <t>Possible Answers:</t>
3353                        <t>
3354                            <list>
3355                                <t>The sampler will answer by returning the number of effect
3356                                sends on the given sampler channel.</t>
3357                            </list>
3358                        </t>
3359    
3360                        <t>Example:</t>
3361                        <t>
3362                            <list>
3363                                <t>C: "GET FX_SENDS 0"</t>
3364                                <t>S: "2"</t>
3365                            </list>
3366                        </t>
3367                    </section>
3368    
3369                    <section title="Listing all effect sends on a sampler channel" anchor="LIST FX_SENDS">
3370                        <t>The front-end can ask for a list of effect sends on a specific sampler channel
3371                        by sending the following command:</t>
3372                        <t>
3373                            <list>
3374                                <t>LIST FX_SENDS &lt;sampler-channel&gt;</t>
3375                            </list>
3376                        </t>
3377                        <t>Where &lt;sampler-channel&gt; is the respective sampler channel
3378                        number as returned by the <xref target="ADD CHANNEL">"ADD CHANNEL"</xref>
3379                        or <xref target="LIST CHANNELS">"LIST CHANNELS"</xref> command.</t>
3380    
3381                        <t>Possible Answers:</t>
3382                        <t>
3383                            <list>
3384                                <t>The sampler will answer by returning a comma separated list
3385                                with all effect sends' numerical IDs on the given sampler
3386                                channel.</t>
3387                            </list>
3388                        </t>
3389    
3390                        <t>Examples:</t>
3391                        <t>
3392                            <list>
3393                                <t>C: "LIST FX_SENDS 0"</t>
3394                                <t>S: "0,1"</t>
3395                            </list>
3396                        </t>
3397                        <t>
3398                            <list>
3399                                <t>C: "LIST FX_SENDS 1"</t>
3400                                <t>S: ""</t>
3401                            </list>
3402                        </t>
3403                    </section>
3404    
3405                    <section title="Getting effect send information" anchor="GET FX_SEND INFO">
3406                        <t>The front-end can ask for the current settings of an effect send entity
3407                        by sending the following command:</t>
3408                        <t>
3409                            <list>
3410                                <t>GET FX_SEND INFO &lt;sampler-channel&gt; &lt;fx-send-id&gt;</t>
3411                            </list>
3412                        </t>
3413                        <t>Where &lt;sampler-channel&gt; is the sampler channel number
3414                        as returned by the <xref target="ADD CHANNEL">"ADD CHANNEL"</xref>
3415                        or <xref target="LIST CHANNELS">"LIST CHANNELS"</xref> command and
3416                        &lt;fx-send-id&gt; reflects the numerical ID of the effect send entity
3417                        as returned by the <xref target="CREATE FX_SEND">"CREATE FX_SEND"</xref>
3418                        or <xref target="LIST FX_SENDS">"LIST FX_SENDS"</xref> command.
3419                       </t>
3420    
3421                        <t>Possible Answers:</t>
3422                        <t>
3423                            <list>
3424                                <t>The sampler will answer by sending a &lt;CRLF&gt; separated list.
3425                                Each answer line begins with the settings category name
3426                                followed by a colon and then a space character &lt;SP&gt; and finally
3427                                the info character string to that setting category. At the
3428                                moment the following categories are defined:</t>
3429    
3430                                <t>
3431                                    <list>
3432                                        <t>NAME -
3433                                            <list>
3434                                                <t>name of the effect send entity</t>
3435                                            </list>
3436                                        </t>
3437                                        <t>AUDIO_OUTPUT_ROUTING -
3438                                            <list>
3439                                                <t>comma separated list which reflects to which audio
3440                                                channel of the selected audio output device each
3441                                                effect send output channel is routed to, e.g. "0,3" would
3442                                                mean the effect send's output channel 0 is routed to channel
3443                                                0 of the audio output device and the effect send's output
3444                                                channel 1 is routed to the channel 3 of the audio
3445                                                output device (see
3446                                                <xref target="SET FX_SEND AUDIO_OUTPUT_CHANNEL">"SET FX_SEND AUDIO_OUTPUT_CHANNEL"</xref>
3447                                                for details)</t>
3448                                            </list>
3449                                        </t>
3450                                    </list>
3451                                </t>
3452                            </list>
3453                        </t>
3454                        <t>The mentioned fields above don't have to be in particular order.</t>
3455    
3456                        <t>Example:</t>
3457                        <t>
3458                            <list>
3459                                <t>C: "GET FX_SEND INFO 0 0"</t>
3460                                <t>S: "NAME: Reverb Send"</t>
3461                                <t>&nbsp;&nbsp;&nbsp;"AUDIO_OUTPUT_ROUTING: 2,3"</t>
3462                                <t>&nbsp;&nbsp;&nbsp;"."</t>
3463                            </list>
3464                        </t>
3465                    </section>
3466    
3467                    <section title="Altering effect send's audio routing" anchor="SET FX_SEND AUDIO_OUTPUT_CHANNEL">
3468                        <t>The front-end can alter the destination of an effect send's audio channel on a specific
3469                        sampler channel by sending the following command:</t>
3470                        <t>
3471                            <list>
3472                                <t>SET FX_SEND AUDIO_OUTPUT_CHANNEL &lt;sampler-chan&gt; &lt;fx-send-id&gt; &lt;audio-src&gt; &lt;audio-dst&gt;</t>
3473                            </list>
3474                        </t>
3475                        <t>Where &lt;sampler-chan&gt; is the sampler channel number
3476                        as returned by the <xref target="ADD CHANNEL">"ADD CHANNEL"</xref>
3477                        or <xref target="LIST CHANNELS">"LIST CHANNELS"</xref> command,
3478                        &lt;fx-send-id&gt; reflects the numerical ID of the effect send entity
3479                        as returned by the <xref target="CREATE FX_SEND">"CREATE FX_SEND"</xref>
3480                        or <xref target="LIST FX_SENDS">"LIST FX_SENDS"</xref> command,
3481                        &lt;audio-src&gt; is the numerical ID of the effect send's audio channel
3482                        which should be rerouted and &lt;audio-dst&gt; is the numerical ID of
3483                        the audio channel of the selected audio output device where &lt;audio-src&gt;
3484                        should be routed to.</t>
3485    
3486                        <t>Note that effect sends can only route audio to the same audio output
3487                        device as assigned to the effect send's sampler channel. Also note that an
3488                        effect send entity does always have exactly as much audio channels as its
3489                        sampler channel. So if the sampler channel is stereo, the effect send does
3490                        have two audio channels as well. Also keep in mind that the amount of audio
3491                        channels on a sampler channel might be dependant not only to the deployed
3492                        sampler engine on the sampler channel, but also dependant to the instrument
3493                        currently loaded. However you can (effectively) turn an i.e. stereo effect
3494                        send into a mono one by simply altering its audio routing appropriately.</t>
3495    
3496                        <t>Possible Answers:</t>
3497                        <t>
3498                            <list>
3499                                <t>"OK" -
3500                                    <list>
3501                                        <t>on success</t>
3502                                    </list>
3503                                </t>
3504                                <t>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
3505                                    <list>
3506                                        <t>if audio output channel was set, but there are noteworthy
3507                                        issue(s) related, providing an appropriate warning code and
3508                                        warning message</t>
3509                                    </list>
3510                                </t>
3511                                <t>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
3512                                    <list>
3513                                        <t>in case it failed, providing an appropriate error code and error message</t>
3514                                    </list>
3515                                </t>
3516                            </list>
3517                        </t>
3518                        <t>Example:</t>
3519                        <t>
3520                            <list>
3521                                <t>C: "SET FX_SEND AUDIO_OUTPUT_CHANNEL 0 0 0 2"</t>
3522                                <t>S: "OK"</t>
3523                            </list>
3524                        </t>
3525                    </section>
3526    
3527    
3528                  <section title="Resetting a sampler channel" anchor="RESET CHANNEL">                  <section title="Resetting a sampler channel" anchor="RESET CHANNEL">
3529                      <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>
3530                      <t>                      <t>
# Line 3433  Schoenebeck'> Line 3814  Schoenebeck'>
3814                      <t>The mentioned fields above don't have to be in particular order.                      <t>The mentioned fields above don't have to be in particular order.
3815                      Other fields might be added in future.</t>                      Other fields might be added in future.</t>
3816                  </section>                  </section>
3817    
3818                    <section title="Getting global volume attenuation" anchor="GET VOLUME">
3819                        <t>The client can ask for the current global sampler-wide volume
3820                        attenuation by sending the following command:</t>
3821                        <t>
3822                            <list>
3823                                <t>GET VOLUME</t>
3824                            </list>
3825                        </t>
3826                        <t>Possible Answers:</t>
3827                        <t>
3828                            <list>
3829                                <t>The sampler will always answer by returning the optional
3830                                dotted floating point coefficient, reflecting the current
3831                                global volume attenuation.
3832                                </t>
3833                            </list>
3834                        </t>
3835                        <t>Note: it is up to the respective sampler engine whether to obey
3836                        that global volume parameter or not, but in general all engines SHOULD
3837                        use this parameter.</t>
3838                    </section>
3839    
3840                    <section title="Setting global volume attenuation" anchor="SET VOLUME">
3841                        <t>The client can alter the current global sampler-wide volume
3842                        attenuation by sending the following command:</t>
3843                        <t>
3844                            <list>
3845                                <t>SET VOLUME &lt;volume&gt;</t>
3846                            </list>
3847                        </t>
3848                       <t>Where &lt;volume&gt; should be replaced by the optional dotted
3849                       floating point value, reflecting the new global volume parameter.
3850                       This value might usually be in the range between 0.0 and 1.0, that
3851                       is for attenuating the overall volume.</t>
3852    
3853                        <t>Possible Answers:</t>
3854                        <t>
3855                            <list>
3856                                <t>"OK" -
3857                                    <list>
3858                                        <t>on success</t>
3859                                    </list>
3860                                </t>
3861                                <t>"WRN:&lt;warning-code&gt;:&lt;warning-message&gt;" -
3862                                    <list>
3863                                        <t>if the global volume was set, but there are noteworthy
3864                                        issue(s) related, providing an appropriate warning code and
3865                                        warning message</t>
3866                                    </list>
3867                                </t>
3868                                <t>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
3869                                    <list>
3870                                        <t>in case it failed, providing an appropriate error code and error message</t>
3871                                    </list>
3872                                </t>
3873                            </list>
3874                        </t>
3875                    </section>
3876                </section>
3877    
3878    
3879                <section title="MIDI Instrument Mapping" anchor="MIDI Instrument Mapping">
3880                    <t>The MIDI protocol provides a way to switch between instruments
3881                    by sending so called MIDI bank select and MIDI program change
3882                    messages which are essentially just numbers. The following commands
3883                    allow to actually map arbitrary MIDI bank select / program change
3884                    numbers with real instruments.</t>
3885                    <t>The sampler allows to manage an arbitrary amount of MIDI
3886                    instrument maps which define which instrument to load on
3887                    which MIDI program change message.</t>
3888                    <t>By default, that is when the sampler is launched, there is no
3889                    map, thus the sampler will simply ignore all program change
3890                    messages. The front-end has to explicitly create at least one
3891                    map, add entries to the map and tell the respective sampler
3892                    channel(s) which MIDI instrument map to use, so the sampler
3893                    knows how to react on a given program change message on the
3894                    respective sampler channel, that is by switching to the
3895                    respectively defined engine type and loading the respective
3896                    instrument. See command
3897                    <xref target="SET CHANNEL MIDI_INSTRUMENT_MAP">"SET CHANNEL MIDI_INSTRUMENT_MAP"</xref>
3898                    for how to assign a MIDI instrument map to a sampler channel.</t>
3899                    <t>Also note per MIDI specification a bank select message does not
3900                    cause to switch to another instrument. Instead when receiving a
3901                    bank select message the bank value will be stored and a subsequent
3902                    program change message (which may occur at any time) will finally
3903                    cause the sampler to switch to the respective instrument as
3904                    reflected by the current MIDI instrument map.</t>
3905    
3906                    <section title="Create a new MIDI instrument map" anchor="ADD MIDI_INSTRUMENT MAP">
3907                        <t>The front-end can add a new MIDI instrument map by sending
3908                        the following command:</t>
3909                        <t>
3910                            <list>
3911                                <t>ADD MIDI_INSTRUMENT_MAP [&lt;name&gt;]</t>
3912                            </list>
3913                        </t>
3914                        <t>Where &lt;name&gt; is an optional argument allowing to
3915                        assign a custom name to the new map. MIDI instrument Map
3916                        names do not have to be unique.</t>
3917    
3918                        <t>Possible Answers:</t>
3919                        <t>
3920                            <list>
3921                                <t>"OK[&lt;map&gt;]" -
3922                                    <list>
3923                                        <t>in case a new MIDI instrument map could
3924                                        be added, where &lt;map&gt; reflects the
3925                                        unique ID of the newly created MIDI
3926                                        instrument map</t>
3927                                    </list>
3928                                </t>
3929                                <t>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
3930                                    <list>
3931                                        <t>when a new map could not be created, which
3932                                        might never occur in practice</t>
3933                                    </list>
3934                                </t>
3935                            </list>
3936                        </t>
3937    
3938                        <t>Examples:</t>
3939                        <t>
3940                            <list>
3941                                <t>C: "ADD MIDI_INSTRUMENT_MAP 'Standard Map'"</t>
3942                                <t>S: "OK[0]"</t>
3943                            </list>
3944                        </t>
3945                        <t>
3946                            <list>
3947                                <t>C: "ADD MIDI_INSTRUMENT_MAP 'Standard Drumkit'"</t>
3948                                <t>S: "OK[1]"</t>
3949                            </list>
3950                        </t>
3951                        <t>
3952                            <list>
3953                                <t>C: "ADD MIDI_INSTRUMENT_MAP"</t>
3954                                <t>S: "OK[5]"</t>
3955                            </list>
3956                        </t>
3957                    </section>
3958    
3959                    <section title="Delete one particular or all MIDI instrument maps" anchor="REMOVE MIDI_INSTRUMENT_MAP">
3960                        <t>The front-end can delete a particular MIDI instrument map
3961                        by sending the following command:</t>
3962                        <t>
3963                            <list>
3964                                <t>REMOVE MIDI_INSTRUMENT_MAP &lt;map&gt;</t>
3965                            </list>
3966                        </t>
3967                        <t>Where &lt;map&gt; reflects the unique ID of the map to delete
3968                        as returned by the <xref target="LIST MIDI_INSTRUMENT_MAPS">"LIST MIDI_INSTRUMENT_MAPS"</xref>
3969                        command.</t>
3970                        <t>The front-end can delete all MIDI instrument maps by
3971                        sending the following command:</t>
3972                        <t>
3973                            <list>
3974                                <t>REMOVE MIDI_INSTRUMENT_MAP ALL</t>
3975                            </list>
3976                        </t>
3977    
3978                        <t>Possible Answers:</t>
3979                        <t>
3980                            <list>
3981                                <t>"OK" -
3982                                    <list>
3983                                        <t>in case the map(s) could be deleted</t>
3984                                    </list>
3985                                </t>
3986                                <t>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
3987                                    <list>
3988                                        <t>when the given map does not exist</t>
3989                                    </list>
3990                                </t>
3991                            </list>
3992                        </t>
3993    
3994                        <t>Examples:</t>
3995                        <t>
3996                            <list>
3997                                <t>C: "REMOVE MIDI_INSTRUMENT_MAP 0"</t>
3998                                <t>S: "OK"</t>
3999                            </list>
4000                        </t>
4001                        <t>
4002                            <list>
4003                                <t>C: "REMOVE MIDI_INSTRUMENT_MAP ALL"</t>
4004                                <t>S: "OK"</t>
4005                            </list>
4006                        </t>
4007                    </section>
4008    
4009                    <section title="Get amount of existing MIDI instrument maps" anchor="GET MIDI_INSTRUMENT_MAPS">
4010                        <t>The front-end can retrieve the current amount of MIDI
4011                        instrument maps by sending the following command:</t>
4012                        <t>
4013                            <list>
4014                                <t>GET MIDI_INSTRUMENT_MAPS</t>
4015                            </list>
4016                        </t>
4017    
4018                        <t>Possible Answers:</t>
4019                        <t>
4020                            <list>
4021                                <t>The sampler will answer by returning the current
4022                                number of MIDI instrument maps.</t>
4023                            </list>
4024                        </t>
4025    
4026                        <t>Example:</t>
4027                        <t>
4028                            <list>
4029                                <t>C: "GET MIDI_INSTRUMENT_MAPS"</t>
4030                                <t>S: "2"</t>
4031                            </list>
4032                        </t>
4033                    </section>
4034    
4035                    <section title="Getting all created MIDI instrument maps" anchor="LIST MIDI_INSTRUMENT_MAPS">
4036                        <t>The number of MIDI instrument maps can change on runtime. To get the
4037                        current list of MIDI instrument maps, the front-end can send the
4038                        following command:</t>
4039                        <t>
4040                            <list>
4041                                <t>LIST MIDI_INSTRUMENT_MAPS</t>
4042                            </list>
4043                        </t>
4044                        <t>Possible Answers:</t>
4045                        <t>
4046                            <list>
4047                                <t>The sampler will answer by returning a comma separated list
4048                                with all MIDI instrument maps' numerical IDs.</t>
4049                            </list>
4050                        </t>
4051                        <t>Example:</t>
4052                        <t>
4053                            <list>
4054                                <t>C: "LIST MIDI_INSTRUMENT_MAPS"</t>
4055                                <t>S: "0,1,5,12"</t>
4056                            </list>
4057                        </t>
4058                    </section>
4059    
4060                    <section title="Getting MIDI instrument map information" anchor="GET MIDI_INSTRUMENT_MAP INFO">
4061                        <t>The front-end can ask for the current settings of a MIDI
4062                        instrument map by sending the following command:</t>
4063                        <t>
4064                            <list>
4065                                <t>GET MIDI_INSTRUMENT_MAP INFO &lt;map&gt;</t>
4066                            </list>
4067                        </t>
4068                        <t>Where &lt;map&gt; is the numerical ID of the map the
4069                        front-end is interested in as returned by the
4070                        <xref target="LIST MIDI_INSTRUMENT_MAPS">"LIST MIDI_INSTRUMENT_MAPS"</xref>
4071                        command.</t>
4072    
4073                        <t>Possible Answers:</t>
4074                        <t>
4075                            <list>
4076                                <t>LinuxSampler will answer by sending a &lt;CRLF&gt; separated list.
4077                                Each answer line begins with the settings category name
4078                                followed by a colon and then a space character &lt;SP&gt; and finally
4079                                the info character string to that setting category. At the
4080                                moment the following categories are defined:</t>
4081    
4082                                <t>
4083                                    <list>
4084                                        <t>NAME -
4085                                            <list>
4086                                                <t>custom name of the given map,
4087                                                which does not have to be unique</t>
4088                                            </list>
4089                                        </t>
4090                                    </list>
4091                                </t>
4092                            </list>
4093                        </t>
4094                        <t>The mentioned fields above don't have to be in particular order.</t>
4095    
4096                        <t>Example:</t>
4097                        <t>
4098                            <list>
4099                                <t>C: "GET MIDI_INSTRUMENT_MAP INFO 0"</t>
4100                                <t>S: "NAME: Standard Map"</t>
4101                                <t>&nbsp;&nbsp;&nbsp;"."</t>
4102                            </list>
4103                        </t>
4104                    </section>
4105    
4106                    <section title="Renaming a MIDI instrument map" anchor="SET MIDI_INSTRUMENT_MAP NAME">
4107                        <t>The front-end can alter the custom name of a MIDI
4108                        instrument map by sending the following command:</t>
4109                        <t>
4110                            <list>
4111                                <t>SET MIDI_INSTRUMENT_MAP NAME &lt;map&gt; &lt;name&gt;</t>
4112                            </list>
4113                        </t>
4114                        <t>Where &lt;map&gt; is the numerical ID of the map and
4115                        &lt;name&gt; the new custom name of the map, which does not
4116                        have to be unique.</t>
4117    
4118                        <t>Possible Answers:</t>
4119                        <t>
4120                            <list>
4121                                <t>"OK" -
4122                                    <list>
4123                                        <t>on success</t>
4124                                    </list>
4125                                </t>
4126                                <t>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
4127                                    <list>
4128                                        <t>in case the given map does not exist</t>
4129                                    </list>
4130                                </t>
4131                            </list>
4132                        </t>
4133    
4134                        <t>Example:</t>
4135                        <t>
4136                            <list>
4137                                <t>C: "SET MIDI_INSTRUMENT_MAP NAME 0 'Foo instruments'"</t>
4138                                <t>S: "OK"</t>
4139                            </list>
4140                        </t>
4141                    </section>
4142    
4143                    <section title="Create or replace a MIDI instrument map entry" anchor="MAP MIDI_INSTRUMENT">
4144                        <t>The front-end can create a new or replace an existing entry
4145                        in a sampler's MIDI instrument map by sending the following
4146                        command:</t>
4147                        <t>
4148                            <list>
4149                                <t>MAP MIDI_INSTRUMENT &lt;map&gt;
4150                                &lt;midi_bank&gt; &lt;midi_prog&gt; &lt;engine_name&gt;
4151                                &lt;filename&gt; &lt;instrument_index&gt; &lt;volume_value&gt;
4152                                [&lt;instr_load_mode&gt;] [&lt;name&gt;]</t>
4153                            </list>
4154                        </t>
4155                        <t>Where &lt;map&gt; is the numeric ID of the map to alter,
4156                        &lt;midi_bank&gt; is an integer value between
4157                        0..16383 reflecting the MIDI bank select index,
4158                        &lt;midi_prog&gt; an
4159                        integer value between 0..127 reflecting the MIDI program change
4160                        index, &lt;engine_name&gt; a sampler engine name as returned by
4161                        the <xref target="LIST AVAILABLE_ENGINES">"LIST AVAILABLE_ENGINES"</xref>
4162                        command (not encapsulated into apostrophes), &lt;filename&gt; the name
4163                        of the instrument's file to be deployed (encapsulated into apostrophes),
4164                        &lt;instrument_index&gt; the index (integer value) of the instrument
4165                        within the given file, &lt;volume_value&gt; reflects the master
4166                        volume of the instrument as optionally dotted number (where a
4167                        value < 1.0 means attenuation and a value > 1.0 means
4168                        amplification). This parameter easily allows to adjust the
4169                        volume of all intruments within a custom instrument map
4170                        without having to adjust their instrument files. The
4171                        OPTIONAL &lt;instr_load_mode&gt; argument defines the life
4172                        time of the instrument, that is when the instrument should
4173                        be loaded, when freed and has exactly the following
4174                        possibilities:</t>
4175                        <t>
4176                            <list>
4177                                <t>"ON_DEMAND" -
4178                                    <list>
4179                                        <t>The instrument will be loaded when needed,
4180                                        that is when demanded by at least one sampler
4181                                        channel. It will immediately be freed from memory
4182                                        when not needed by any sampler channel anymore.</t>
4183                                    </list>
4184                                </t>
4185                                <t>"ON_DEMAND_HOLD" -
4186                                    <list>
4187                                        <t>The instrument will be loaded when needed,
4188                                        that is when demanded by at least one sampler
4189                                        channel. It will be kept in memory even when
4190                                        not needed by any sampler channel anymore.
4191                                        Instruments with this mode are only freed
4192                                        when the sampler is reset or all mapping
4193                                        entries with this mode (and respective
4194                                        instrument) are explicitly changed to
4195                                        "ON_DEMAND" and no sampler channel is using
4196                                        the instrument anymore.</t>
4197                                    </list>
4198                                </t>
4199                                <t>"PERSISTENT" -
4200                                    <list>
4201                                        <t>The instrument will immediately be loaded
4202                                        into memory in the background when this mapping
4203                                        command is sent and the instrument is kept all
4204                                        the time. Instruments with this mode are
4205                                        only freed when the sampler is reset or all
4206                                        mapping entries with this mode (and
4207                                        respective instrument) are explicitly
4208                                        changed to "ON_DEMAND" and no sampler
4209                                        channel is using the instrument anymore.</t>
4210                                    </list>
4211                                </t>
4212                                <t>not supplied -
4213                                    <list>
4214                                        <t>In case there is no &lt;instr_load_mode&gt;
4215                                        argument given, it will be up to the
4216                                        InstrumentManager to decide which mode to use.
4217                                        Usually it will use "ON_DEMAND" if an entry
4218                                        for the given instrument does not exist in
4219                                        the InstrumentManager's list yet, otherwise
4220                                        if an entry already exists, it will simply
4221                                        stick with the mode currently reflected by
4222                                        the already existing entry, that is it will
4223                                        not change the mode.</t>
4224                                    </list>
4225                                </t>
4226                            </list>
4227                        </t>
4228                        <t>
4229                        The &lt;instr_load_mode&gt; argument thus allows to define an
4230                        appropriate strategy (low memory consumption vs. fast
4231                        instrument switching) for each instrument individually. Note, the
4232                        following restrictions apply to this argument: "ON_DEMAND_HOLD" and
4233                        "PERSISTENT" have to be supported by the respective sampler engine
4234                        (which is technically the case when the engine provides an
4235                        InstrumentManager for its format). If this is not the case the
4236                        argument will automatically fall back to the default value
4237                        "ON_DEMAND". Also the load mode of one instrument may
4238                        automatically change the laod mode of other instrument(s), i.e.
4239                        because the instruments are part of the same file and the
4240                        engine does not allow a way to manage load modes for them
4241                        individually. Due to this, in case the frontend shows the
4242                        load modes of entries, the frontend should retrieve the actual
4243                        mode by i.e. sending
4244                        <xref target="GET MIDI_INSTRUMENT INFO">"GET MIDI_INSTRUMENT INFO"</xref>
4245                        command(s). Finally the OPTIONAL &lt;name&gt; argument allows to
4246                        set a custom name (encapsulated into apostrophes) for the mapping
4247                        entry, useful for frontends for displaying an appropriate name for
4248                        mapped instruments (using
4249                        <xref target="GET MIDI_INSTRUMENT INFO">"GET MIDI_INSTRUMENT INFO"</xref>).
4250                        </t>
4251                        <t>
4252                        The "MAP MIDI_INSTRUMENT" command
4253                        will immediately return, thus it will not block when an
4254                        instrument is to be loaded due to a "PERSISTENT" type
4255                        entry as instruments are loaded in the background. As a
4256                        consequence this command may not necessarily return an error
4257                        i.e. when the given instrument file does not exist or may
4258                        turn out to be corrupt.
4259                        </t>
4260    
4261                        <t>Possible Answers:</t>
4262                        <t>
4263                            <list>
4264                                <t>"OK" -
4265                                    <list>
4266                                        <t>usually</t>
4267                                    </list>
4268                                </t>
4269                                <t>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
4270                                    <list>
4271                                        <t>when the given map or engine does not exist or a value
4272                                        is out of range</t>
4273                                    </list>
4274                                </t>
4275                            </list>
4276                        </t>
4277    
4278                        <t>Examples:</t>
4279                        <t>
4280                            <list>
4281                                <t>C: "MAP MIDI_INSTRUMENT 0 3 0 gig '/usr/share/Steinway D.gig' 0 0.8 PERSISTENT"</t>
4282                                <t>S: "OK"</t>
4283                            </list>
4284                        </t>
4285                        <t>
4286                            <list>
4287                                <t>C: "MAP MIDI_INSTRUMENT 0 4 50 gig '/home/john/foostrings.gig' 7 1.0"</t>
4288                                <t>S: "OK"</t>
4289                            </list>
4290                        </t>
4291                        <t>
4292                            <list>
4293                                <t>C: "MAP MIDI_INSTRUMENT 0 0 0 gig '/usr/share/piano.gig' 0 1.0 'Normal Piano'"</t>
4294                                <t>S: "OK"</t>
4295                                <t>C: "MAP MIDI_INSTRUMENT 0 1 0 gig '/usr/share/piano.gig' 0 0.25 'Silent Piano'"</t>
4296                                <t>S: "OK"</t>
4297                            </list>
4298                        </t>
4299                        <t>
4300                            <list>
4301                                <t>C: "MAP MIDI_INSTRUMENT 1 8 120 gig '/home/joe/foodrums.gig' 0 1.0 PERSISTENT 'Foo Drumkit'"</t>
4302                                <t>S: "OK"</t>
4303                            </list>
4304                        </t>
4305                    </section>
4306    
4307                    <section title="Getting ammount of MIDI instrument map entries" anchor="GET MIDI_INSTRUMENTS">
4308                        <t>The front-end can query the amount of currently existing
4309                        entries in a MIDI instrument map by sending the following
4310                        command:</t>
4311                        <t>
4312                            <list>
4313                                <t>GET MIDI_INSTRUMENTS &lt;map&gt;</t>
4314                            </list>
4315                        </t>
4316                        <t>The front-end can query the amount of currently existing
4317                        entries in all MIDI instrument maps by sending the following
4318                        command:</t>
4319                        <t>
4320                            <list>
4321                                <t>GET MIDI_INSTRUMENTS ALL</t>
4322                            </list>
4323                        </t>
4324                        <t>Possible Answers:</t>
4325                        <t>
4326                            <list>
4327                                <t>The sampler will answer by sending the current number of
4328                                entries in the MIDI instrument map(s).</t>
4329                            </list>
4330                        </t>
4331    
4332                        <t>Example:</t>
4333                        <t>
4334                            <list>
4335                                <t>C: "GET MIDI_INSTRUMENTS 0"</t>
4336                                <t>S: "234"</t>
4337                            </list>
4338                        </t>
4339                        <t>
4340                            <list>
4341                                <t>C: "GET MIDI_INSTRUMENTS ALL"</t>
4342                                <t>S: "954"</t>
4343                            </list>
4344                        </t>
4345                    </section>
4346    
4347                    <section title="Getting indeces of all entries of a MIDI instrument map" anchor="LIST MIDI_INSTRUMENTS">
4348                        <t>The front-end can query a list of all currently existing
4349                        entries in a certain MIDI instrument map by sending the following
4350                        command:</t>
4351                        <t>
4352                            <list>
4353                                <t>LIST MIDI_INSTRUMENTS &lt;map&gt;</t>
4354                            </list>
4355                        </t>
4356                        <t>Where &lt;map&gt; is the numeric ID of the MIDI instrument map.</t>
4357                        <t>The front-end can query a list of all currently existing
4358                        entries of all MIDI instrument maps by sending the following
4359                        command:</t>
4360                        <t>
4361                            <list>
4362                                <t>LIST MIDI_INSTRUMENTS ALL</t>
4363                            </list>
4364                        </t>
4365    
4366                        <t>Possible Answers:</t>
4367                        <t>
4368                            <list>
4369                                <t>The sampler will answer by sending a comma separated
4370                                list of map ID - MIDI bank - MIDI program triples, where
4371                                each triple is encapsulated into curly braces. The
4372                                list is returned in one single line. Each triple
4373                                just reflects the key of the respective map entry,
4374                                thus subsequent
4375                                <xref target="GET MIDI_INSTRUMENT INFO">"GET MIDI_INSTRUMENT INFO"</xref>
4376                                command(s) are necessary to retrieve detailed informations
4377                                about each entry.</t>
4378                            </list>
4379                        </t>
4380    
4381                        <t>Example:</t>
4382                        <t>
4383                            <list>
4384                                <t>C: "LIST MIDI_INSTRUMENTS 0"</t>
4385                                <t>S: "{0,0,0},{0,0,1},{0,0,3},{0,1,4},{1,127,127}"</t>
4386                            </list>
4387                        </t>
4388                    </section>
4389    
4390                    <section title="Remove an entry from the MIDI instrument map" anchor="UNMAP MIDI_INSTRUMENT">
4391                        <t>The front-end can delete an entry from a MIDI instrument
4392                        map by sending the following command:</t>
4393                        <t>
4394                            <list>
4395                                <t>UNMAP MIDI_INSTRUMENT &lt;map&gt; &lt;midi_bank&gt; &lt;midi_prog&gt;</t>
4396                            </list>
4397                        </t>
4398                        <t>
4399                        Where &lt;map&gt; is the numeric ID of the MIDI instrument map,
4400                        &lt;midi_bank&gt; is an integer value between 0..16383
4401                        reflecting the MIDI bank value and
4402                        &lt;midi_prog&gt; an integer value between
4403                        0..127 reflecting the MIDI program value of the map's entrie's key
4404                        index triple.
4405                        </t>
4406    
4407                        <t>Possible Answers:</t>
4408                        <t>
4409                            <list>
4410                                <t>"OK" -
4411                                    <list>
4412                                        <t>usually</t>
4413                                    </list>
4414                                </t>
4415                                <t>"ERR:&lt;error-code&gt;:&lt;error-message&gt;" -
4416                                    <list>
4417                                        <t>when index out of bounds</t>
4418                                    </list>
4419                                </t>
4420                            </list>
4421                        </t>
4422    
4423                        <t>Example:</t>
4424                        <t>
4425                            <list>
4426                                <t>C: "UNMAP MIDI_INSTRUMENT 0 2 127"</t>
4427                                <t>S: "OK"</t>
4428                            </list>
4429                        </t>
4430                    </section>
4431    
4432                    <section title="Get current settings of MIDI instrument map entry" anchor="GET MIDI_INSTRUMENT INFO">
4433                        <t>The front-end can retrieve the current settings of a certain
4434                        instrument map entry by sending the following command:</t>
4435                        <t>
4436                            <list>
4437                                <t>GET MIDI_INSTRUMENT INFO &lt;map&gt; &lt;midi_bank&gt; &lt;midi_prog&gt;</t>
4438                            </list>
4439                        </t>
4440                        <t>
4441                        Where &lt;map&gt; is the numeric ID of the MIDI instrument map,
4442                        &lt;midi_bank&gt; is an integer value between 0..16383
4443                        reflecting the MIDI bank value, &lt;midi_bank&gt;
4444                        and &lt;midi_prog&gt; an integer value between
4445                        0..127 reflecting the MIDI program value of the map's entrie's key
4446                        index triple.
4447                        </t>
4448    
4449                        <t>Possible Answers:</t>
4450                        <t>
4451                            <list>
4452                                <t>LinuxSampler will answer by sending a &lt;CRLF&gt;
4453                                separated list. Each answer line begins with the
4454                                information category name followed by a colon and then
4455                                a space character &lt;SP&gt; and finally the info
4456                                character string to that info category. At the moment
4457                                the following categories are defined:</t>
4458                                <t>"NAME" -
4459                                    <list>
4460                                        <t>Name for this MIDI instrument map entry (if defined).
4461                                        This name shall be used by frontends for displaying a
4462                                        name for this mapped instrument. It can be set and
4463                                        changed with the
4464                                        <xref target="MAP MIDI_INSTRUMENT">"MAP MIDI_INSTRUMENT"</xref>
4465                                        command and does not have to be unique.</t>
4466                                    </list>
4467                                </t>
4468                                <t>"ENGINE_NAME" -
4469                                    <list>
4470                                        <t>Name of the engine to be deployed for this
4471                                        instrument.</t>
4472                                    </list>
4473                                </t>
4474                                <t>"INSTRUMENT_FILE" -
4475                                    <list>
4476                                        <t>File name of the instrument.</t>
4477                                    </list>
4478                                </t>
4479                                <t>"INSTRUMENT_NR" -
4480                                    <list>
4481                                        <t>Index of the instrument within the file.</t>
4482                                    </list>
4483                                </t>
4484                                <t>"INSTRUMENT_NAME" -
4485                                    <list>
4486                                        <t>Name of the loaded instrument as reflected by its file.
4487                                        In contrast to the "NAME" field, the "INSTRUMENT_NAME" field
4488                                        cannot be changed.</t>
4489                                    </list>
4490                                </t>
4491                                <t>"LOAD_MODE" -
4492                                    <list>
4493                                        <t>Life time of instrument
4494                                        (see <xref target="MAP MIDI_INSTRUMENT">"MAP MIDI_INSTRUMENT"</xref> for details about this setting).</t>
4495                                    </list>
4496                                </t>
4497                                <t>"VOLUME" -
4498                                    <list>
4499                                        <t>master volume of the instrument as optionally
4500                                        dotted number (where a value < 1.0 means attenuation
4501                                        and a value > 1.0 means amplification)</t>
4502                                    </list>
4503                                </t>
4504                                <t>The mentioned fields above don't have to be in particular order.</t>
4505                            </list>
4506                        </t>
4507    
4508                        <t>Example:</t>
4509                        <t>
4510                            <list>
4511                                <t>C: "GET MIDI_INSTRUMENT INFO 1 45 120"</t>
4512                                <t>S: "NAME: Drums for Foo Song"</t>
4513                                <t>&nbsp;&nbsp;&nbsp;"ENGINE_NAME: GigEngine"</t>
4514                                <t>&nbsp;&nbsp;&nbsp;"INSTRUMENT_FILE: /usr/share/joesdrumkit.gig"</t>
4515                                <t>&nbsp;&nbsp;&nbsp;"INSTRUMENT_NR: 0"</t>
4516                                <t>&nbsp;&nbsp;&nbsp;"INSTRUMENT_NAME: Joe's Drumkit"</t>
4517                                <t>&nbsp;&nbsp;&nbsp;"LOAD_MODE: PERSISTENT"</t>
4518                                <t>&nbsp;&nbsp;&nbsp;"VOLUME: 1.0"</t>
4519                                <t>&nbsp;&nbsp;&nbsp;"."</t>
4520                            </list>
4521                        </t>
4522                    </section>
4523    
4524                    <section title="Clear MIDI instrument map" anchor="CLEAR MIDI_INSTRUMENTS">
4525                        <t>The front-end can clear a whole MIDI instrument map, that
4526                        is delete all its entries by sending the following command:</t>
4527                        <t>
4528                            <list>
4529                                <t>CLEAR MIDI_INSTRUMENTS &lt;map&gt;</t>
4530                            </list>
4531                        </t>
4532                        <t>Where &lt;map&gt; is the numeric ID of the map to clear.</t>
4533                        <t>The front-end can clear all MIDI instrument maps, that
4534                        is delete all entries of all maps by sending the following
4535                        command:</t>
4536                        <t>
4537                            <list>
4538                                <t>CLEAR MIDI_INSTRUMENTS ALL</t>
4539                            </list>
4540                        </t>
4541                        <t>The command "CLEAR MIDI_INSTRUMENTS ALL" does not delete the
4542                        maps, only their entries, thus the map's settings like
4543                        custom name will be preservevd.</t>
4544    
4545                       <t>Possible Answers:</t>
4546                        <t>
4547                            <list>
4548                                <t>"OK" -
4549                                    <list>
4550                                        <t>always</t>
4551                                    </list>
4552                                </t>
4553                            </list>
4554                        </t>
4555    
4556                        <t>Examples:</t>
4557                        <t>
4558                           <list>
4559                                <t>C: "CLEAR MIDI_INSTRUMENTS 0"</t>
4560                                <t>S: "OK"</t>
4561                            </list>
4562                        </t>
4563                        <t>
4564                           <list>
4565                                <t>C: "CLEAR MIDI_INSTRUMENTS ALL"</t>
4566                                <t>S: "OK"</t>
4567                            </list>
4568                        </t>
4569                    </section>
4570              </section>              </section>
4571    
4572          </section>          </section>
4573    
4574    
4575          <section title="Command Syntax" anchor="command_syntax">          <section title="Command Syntax" anchor="command_syntax">
4576              <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"/>
4577              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 3447  Schoenebeck'> Line 4583  Schoenebeck'>
4583                  manually !                  manually !
4584              -->              -->
4585              <!-- GRAMMAR_BNF_BEGIN - do NOT delete or modify this line !!! -->              <!-- GRAMMAR_BNF_BEGIN - do NOT delete or modify this line !!! -->
4586    
4587  <t>input =  <t>input =
4588          <list>          <list>
4589                  <t>line LF                  <t>line LF
4590                  </t>                  </t>
4591                  <t>/ line CR LF                  <t>/ line CR LF
4592                  </t>                  </t>
4593          </list>          </list>
4594  </t>  </t>
4595  <t>line =  <t>line =
4596          <list>          <list>
4597                  <t>/* epsilon (empty line ignored) */                  <t>/* epsilon (empty line ignored) */
4598                  </t>                  </t>
4599                  <t>/ comment                  <t>/ comment
4600                  </t>                  </t>
4601                  <t>/ command                  <t>/ command
4602                  </t>                  </t>
4603                  <t>/ error                  <t>/ error
4604                  </t>                  </t>
4605          </list>          </list>
4606  </t>  </t>
4607  <t>comment =  <t>comment =
4608          <list>          <list>
4609                  <t>'#'                  <t>'#'
4610                  </t>                  </t>
4611                  <t>/ comment '#'                  <t>/ comment '#'
4612                  </t>                  </t>
4613                  <t>/ comment SP                  <t>/ comment SP
4614                  </t>                  </t>
4615                  <t>/ comment number                  <t>/ comment number
4616                  </t>                  </t>
4617                  <t>/ comment string                  <t>/ comment string
4618                  </t>                  </t>
4619          </list>          </list>
4620  </t>  </t>
4621  <t>command =  <t>command =
4622          <list>          <list>
4623                  <t>ADD SP CHANNEL                  <t>ADD SP add_instruction
4624                  </t>                  </t>
4625                  <t>/ GET SP get_instruction                  <t>/ MAP SP map_instruction
4626                  </t>                  </t>
4627                  <t>/ CREATE SP create_instruction                  <t>/ UNMAP SP unmap_instruction
4628                  </t>                  </t>
4629                  <t>/ DESTROY SP destroy_instruction                  <t>/ GET SP get_instruction
4630                  </t>                  </t>
4631                  <t>/ LIST SP list_instruction                  <t>/ CREATE SP create_instruction
4632                  </t>                  </t>
4633                  <t>/ LOAD SP load_instruction                  <t>/ DESTROY SP destroy_instruction
4634                  </t>                  </t>
4635                  <t>/ REMOVE SP CHANNEL SP sampler_channel                  <t>/ LIST SP list_instruction
4636                  </t>                  </t>
4637                  <t>/ SET SP set_instruction                  <t>/ LOAD SP load_instruction
4638                  </t>                  </t>
4639                  <t>/ SUBSCRIBE SP subscribe_event                  <t>/ REMOVE SP remove_instruction
4640                  </t>                  </t>
4641                  <t>/ UNSUBSCRIBE SP unsubscribe_event                  <t>/ SET SP set_instruction
4642                  </t>                  </t>
4643                  <t>/ SELECT SP text                  <t>/ SUBSCRIBE SP subscribe_event
4644                  </t>                  </t>
4645                  <t>/ RESET SP CHANNEL SP sampler_channel                  <t>/ UNSUBSCRIBE SP unsubscribe_event
4646                  </t>                  </t>
4647                  <t>/ RESET                  <t>/ SELECT SP text
4648                  </t>                  </t>
4649                  <t>/ QUIT                  <t>/ RESET SP reset_instruction
4650                  </t>                  </t>
4651          </list>                  <t>/ CLEAR SP clear_instruction
4652  </t>                  </t>
4653  <t>subscribe_event =                  <t>/ RESET
4654          <list>                  </t>
4655                  <t>CHANNEL_COUNT                  <t>/ QUIT
4656                  </t>                  </t>
4657                  <t>/ VOICE_COUNT          </list>
4658                  </t>  </t>
4659                  <t>/ STREAM_COUNT  <t>add_instruction =
4660                  </t>          <list>
4661                  <t>/ BUFFER_FILL                  <t>CHANNEL
4662                  </t>                  </t>
4663                  <t>/ CHANNEL_INFO                  <t>/ MIDI_INSTRUMENT_MAP
4664                  </t>                  </t>
4665                  <t>/ MISCELLANEOUS                  <t>/ MIDI_INSTRUMENT_MAP SP map_name
4666                  </t>                  </t>
4667                  <t>/ TOTAL_VOICE_COUNT          </list>
4668                  </t>  </t>
4669          </list>  <t>subscribe_event =
4670  </t>          <list>
4671  <t>unsubscribe_event =                  <t>AUDIO_OUTPUT_DEVICE_COUNT
4672          <list>                  </t>
4673                  <t>CHANNEL_COUNT                  <t>/ AUDIO_OUTPUT_DEVICE_INFO
4674                  </t>                  </t>
4675                  <t>/ VOICE_COUNT                  <t>/ MIDI_INPUT_DEVICE_COUNT
4676                  </t>                  </t>
4677                  <t>/ STREAM_COUNT                  <t>/ MIDI_INPUT_DEVICE_INFO
4678                  </t>                  </t>
4679                  <t>/ BUFFER_FILL                  <t>/ CHANNEL_COUNT
4680                  </t>                  </t>
4681                  <t>/ CHANNEL_INFO                  <t>/ VOICE_COUNT
4682                  </t>                  </t>
4683                  <t>/ MISCELLANEOUS                  <t>/ STREAM_COUNT
4684                  </t>                  </t>
4685                  <t>/ TOTAL_VOICE_COUNT                  <t>/ BUFFER_FILL
4686                  </t>                  </t>
4687          </list>                  <t>/ CHANNEL_INFO
4688  </t>                  </t>
4689  <t>get_instruction =                  <t>/ MIDI_INSTRUMENT_MAP_COUNT
4690          <list>                  </t>
4691                  <t>AVAILABLE_ENGINES                  <t>/ MIDI_INSTRUMENT_MAP_INFO
4692                  </t>                  </t>
4693                  <t>/ AVAILABLE_MIDI_INPUT_DRIVERS                  <t>/ MIDI_INSTRUMENT_COUNT
4694                  </t>                  </t>
4695                  <t>/ MIDI_INPUT_DRIVER SP INFO SP string                  <t>/ MIDI_INSTRUMENT_INFO
4696                  </t>                  </t>
4697                  <t>/ MIDI_INPUT_DRIVER_PARAMETER SP INFO SP string SP string                  <t>/ MISCELLANEOUS
4698                  </t>                  </t>
4699                  <t>/ MIDI_INPUT_DRIVER_PARAMETER SP INFO SP string SP string SP key_val_list                  <t>/ TOTAL_VOICE_COUNT
4700                  </t>                  </t>
4701                  <t>/ AVAILABLE_AUDIO_OUTPUT_DRIVERS          </list>
4702                  </t>  </t>
4703                  <t>/ AUDIO_OUTPUT_DRIVER SP INFO SP string  <t>unsubscribe_event =
4704                  </t>          <list>
4705                  <t>/ AUDIO_OUTPUT_DRIVER_PARAMETER SP INFO SP string SP string                  <t>AUDIO_OUTPUT_DEVICE_COUNT
4706                  </t>                  </t>
4707                  <t>/ AUDIO_OUTPUT_DRIVER_PARAMETER SP INFO SP string SP string SP key_val_list                  <t>/ AUDIO_OUTPUT_DEVICE_INFO
4708                  </t>                  </t>
4709                  <t>/ AUDIO_OUTPUT_DEVICES                  <t>/ MIDI_INPUT_DEVICE_COUNT
4710                  </t>                  </t>
4711                  <t>/ MIDI_INPUT_DEVICES                  <t>/ MIDI_INPUT_DEVICE_INFO
4712                  </t>                  </t>
4713                  <t>/ AUDIO_OUTPUT_DEVICE SP INFO SP number                  <t>/ CHANNEL_COUNT
4714                  </t>                  </t>
4715                  <t>/ MIDI_INPUT_DEVICE SP INFO SP number                  <t>/ VOICE_COUNT
4716                  </t>                  </t>
4717                  <t>/ MIDI_INPUT_PORT SP INFO SP number SP number                  <t>/ STREAM_COUNT
4718                  </t>                  </t>
4719                  <t>/ MIDI_INPUT_PORT_PARAMETER SP INFO SP number SP number SP string                  <t>/ BUFFER_FILL
4720                  </t>                  </t>
4721                  <t>/ AUDIO_OUTPUT_CHANNEL SP INFO SP number SP number                  <t>/ CHANNEL_INFO
4722                  </t>                  </t>
4723                  <t>/ AUDIO_OUTPUT_CHANNEL_PARAMETER SP INFO SP number SP number SP string                  <t>/ MIDI_INSTRUMENT_MAP_COUNT
4724                  </t>                  </t>
4725                  <t>/ CHANNELS                  <t>/ MIDI_INSTRUMENT_MAP_INFO
4726                  </t>                  </t>
4727                  <t>/ CHANNEL SP INFO SP sampler_channel                  <t>/ MIDI_INSTRUMENT_COUNT
4728                  </t>                  </t>
4729                  <t>/ CHANNEL SP BUFFER_FILL SP buffer_size_type SP sampler_channel                  <t>/ MIDI_INSTRUMENT_INFO
4730                  </t>                  </t>
4731                  <t>/ CHANNEL SP STREAM_COUNT SP sampler_channel                  <t>/ MISCELLANEOUS
4732                  </t>                  </t>
4733                  <t>/ CHANNEL SP VOICE_COUNT SP sampler_channel                  <t>/ TOTAL_VOICE_COUNT
4734                  </t>                  </t>
4735                  <t>/ ENGINE SP INFO SP engine_name          </list>
4736                  </t>  </t>
4737                  <t>/ SERVER SP INFO  <t>map_instruction =
4738                  </t>          <list>
4739                  <t>/ TOTAL_VOICE_COUNT                  <t>MIDI_INSTRUMENT SP midi_map SP midi_bank SP midi_prog SP engine_name SP filename SP instrument_index SP volume_value
4740                  </t>                  </t>
4741                  <t>/ TOTAL_VOICE_COUNT_MAX                  <t>/ MIDI_INSTRUMENT SP midi_map SP midi_bank SP midi_prog SP engine_name SP filename SP instrument_index SP volume_value SP instr_load_mode
4742                  </t>                  </t>
4743          </list>                  <t>/ MIDI_INSTRUMENT SP midi_map SP midi_bank SP midi_prog SP engine_name SP filename SP instrument_index SP volume_value SP entry_name
4744  </t>                  </t>
4745  <t>set_instruction =                  <t>/ MIDI_INSTRUMENT SP midi_map SP midi_bank SP midi_prog SP engine_name SP filename SP instrument_index SP volume_value SP instr_load_mode SP entry_name
4746          <list>                  </t>
4747                  <t>AUDIO_OUTPUT_DEVICE_PARAMETER SP number SP string '=' param_val_list          </list>
4748                  </t>  </t>
4749                  <t>/ AUDIO_OUTPUT_CHANNEL_PARAMETER SP number SP number SP string '=' param_val_list  <t>unmap_instruction =
4750                  </t>          <list>
4751                  <t>/ MIDI_INPUT_DEVICE_PARAMETER SP number SP string '=' param_val_list                  <t>MIDI_INSTRUMENT SP midi_map SP midi_bank SP midi_prog
4752                  </t>                  </t>
4753                  <t>/ MIDI_INPUT_PORT_PARAMETER SP number SP number SP string '=' param_val_list          </list>
4754                  </t>  </t>
4755                  <t>/ CHANNEL SP set_chan_instruction  <t>remove_instruction =
4756                  </t>          <list>
4757                  <t>/ ECHO SP boolean                  <t>CHANNEL SP sampler_channel
4758                  </t>                  </t>
4759          </list>                  <t>/ MIDI_INSTRUMENT_MAP SP midi_map
4760  </t>                  </t>
4761  <t>create_instruction =                  <t>/ MIDI_INSTRUMENT_MAP SP ALL
4762          <list>                  </t>
4763                  <t>AUDIO_OUTPUT_DEVICE SP string SP key_val_list          </list>
4764                  </t>  </t>
4765                  <t>/ AUDIO_OUTPUT_DEVICE SP string  <t>get_instruction =
4766                  </t>          <list>
4767                  <t>/ MIDI_INPUT_DEVICE SP string SP key_val_list                  <t>AVAILABLE_ENGINES
4768                  </t>                  </t>
4769                  <t>/ MIDI_INPUT_DEVICE SP string                  <t>/ AVAILABLE_MIDI_INPUT_DRIVERS
4770                  </t>                  </t>
4771          </list>                  <t>/ MIDI_INPUT_DRIVER SP INFO SP string
4772  </t>                  </t>
4773  <t>destroy_instruction =                  <t>/ MIDI_INPUT_DRIVER_PARAMETER SP INFO SP string SP string
4774          <list>                  </t>
4775                  <t>AUDIO_OUTPUT_DEVICE SP number                  <t>/ MIDI_INPUT_DRIVER_PARAMETER SP INFO SP string SP string SP key_val_list
4776                  </t>                  </t>
4777                  <t>/ MIDI_INPUT_DEVICE SP number                  <t>/ AVAILABLE_AUDIO_OUTPUT_DRIVERS
4778                  </t>                  </t>
4779          </list>                  <t>/ AUDIO_OUTPUT_DRIVER SP INFO SP string
4780  </t>                  </t>
4781  <t>load_instruction =                  <t>/ AUDIO_OUTPUT_DRIVER_PARAMETER SP INFO SP string SP string
4782          <list>                  </t>
4783                  <t>INSTRUMENT SP load_instr_args                  <t>/ AUDIO_OUTPUT_DRIVER_PARAMETER SP INFO SP string SP string SP key_val_list
4784                  </t>                  </t>
4785                  <t>/ ENGINE SP load_engine_args                  <t>/ AUDIO_OUTPUT_DEVICES
4786                  </t>                  </t>
4787          </list>                  <t>/ MIDI_INPUT_DEVICES
4788  </t>                  </t>
4789  <t>set_chan_instruction =                  <t>/ AUDIO_OUTPUT_DEVICE SP INFO SP number
4790          <list>                  </t>
4791                  <t>AUDIO_OUTPUT_DEVICE SP sampler_channel SP device_index                  <t>/ MIDI_INPUT_DEVICE SP INFO SP number
4792                  </t>                  </t>
4793                  <t>/ AUDIO_OUTPUT_CHANNEL SP sampler_channel SP audio_channel_index SP audio_channel_index                  <t>/ MIDI_INPUT_PORT SP INFO SP number SP number
4794                  </t>                  </t>
4795                  <t>/ AUDIO_OUTPUT_TYPE SP sampler_channel SP audio_output_type_name                  <t>/ MIDI_INPUT_PORT_PARAMETER SP INFO SP number SP number SP string
4796                  </t>                  </t>
4797                  <t>/ MIDI_INPUT SP sampler_channel SP device_index SP midi_input_port_index SP midi_input_channel_index                  <t>/ AUDIO_OUTPUT_CHANNEL SP INFO SP number SP number
4798                  </t>                  </t>
4799                  <t>/ MIDI_INPUT_DEVICE SP sampler_channel SP device_index                  <t>/ AUDIO_OUTPUT_CHANNEL_PARAMETER SP INFO SP number SP number SP string
4800                  </t>                  </t>
4801                  <t>/ MIDI_INPUT_PORT SP sampler_channel SP midi_input_port_index                  <t>/ CHANNELS
4802                  </t>                  </t>
4803                  <t>/ MIDI_INPUT_CHANNEL SP sampler_channel SP midi_input_channel_index                  <t>/ CHANNEL SP INFO SP sampler_channel
4804                  </t>                  </t>
4805                  <t>/ MIDI_INPUT_TYPE SP sampler_channel SP midi_input_type_name                  <t>/ CHANNEL SP BUFFER_FILL SP buffer_size_type SP sampler_channel
4806                  </t>                  </t>
4807                  <t>/ VOLUME SP sampler_channel SP volume_value                  <t>/ CHANNEL SP STREAM_COUNT SP sampler_channel
4808                  </t>                  </t>
4809                  <t>/ MUTE SP sampler_channel SP boolean                  <t>/ CHANNEL SP VOICE_COUNT SP sampler_channel
4810                  </t>                  </t>
4811                  <t>/ SOLO SP sampler_channel SP boolean                  <t>/ ENGINE SP INFO SP engine_name
4812                  </t>                  </t>
4813          </list>                  <t>/ SERVER SP INFO
4814  </t>                  </t>
4815  <t>key_val_list =                  <t>/ TOTAL_VOICE_COUNT
4816          <list>                  </t>
4817                  <t>string '=' param_val_list                  <t>/ TOTAL_VOICE_COUNT_MAX
4818                  </t>                  </t>
4819                  <t>/ key_val_list SP string '=' param_val_list                  <t>/ MIDI_INSTRUMENTS SP midi_map
4820                  </t>                  </t>
4821          </list>                  <t>/ MIDI_INSTRUMENTS SP ALL
4822  </t>                  </t>
4823  <t>buffer_size_type =                  <t>/ MIDI_INSTRUMENT SP INFO SP midi_map SP midi_bank SP midi_prog
4824          <list>                  </t>
4825                  <t>BYTES                  <t>/ MIDI_INSTRUMENT_MAPS
4826                  </t>                  </t>
4827                  <t>/ PERCENTAGE                  <t>/ MIDI_INSTRUMENT_MAP SP INFO SP midi_map
4828                  </t>                  </t>
4829          </list>                  <t>/ FX_SENDS SP sampler_channel
4830  </t>                  </t>
4831  <t>list_instruction =                  <t>/ FX_SEND SP INFO SP sampler_channel SP fx_send_id
4832          <list>                  </t>
4833                  <t>AUDIO_OUTPUT_DEVICES                  <t>/ VOLUME
4834                  </t>                  </t>
4835                  <t>/ MIDI_INPUT_DEVICES          </list>
4836                  </t>  </t>
4837                  <t>/ CHANNELS  <t>set_instruction =
4838                  </t>          <list>
4839                  <t>/ AVAILABLE_ENGINES                  <t>AUDIO_OUTPUT_DEVICE_PARAMETER SP number SP string '=' param_val_list
4840                  </t>                  </t>
4841                  <t>/ AVAILABLE_MIDI_INPUT_DRIVERS                  <t>/ AUDIO_OUTPUT_CHANNEL_PARAMETER SP number SP number SP string '=' param_val_list
4842                  </t>                  </t>
4843                  <t>/ AVAILABLE_AUDIO_OUTPUT_DRIVERS                  <t>/ MIDI_INPUT_DEVICE_PARAMETER SP number SP string '=' param_val_list
4844                  </t>                  </t>
4845          </list>                  <t>/ MIDI_INPUT_PORT_PARAMETER SP number SP number SP string '=' param_val_list
4846  </t>                  </t>
4847  <t>load_instr_args =                  <t>/ CHANNEL SP set_chan_instruction
4848          <list>                  </t>
4849                  <t>filename SP instrument_index SP sampler_channel                  <t>/ MIDI_INSTRUMENT_MAP SP NAME SP midi_map SP map_name
4850                  </t>                  </t>
4851                  <t>/ NON_MODAL SP filename SP instrument_index SP sampler_channel                  <t>/ FX_SEND SP AUDIO_OUTPUT_CHANNEL SP sampler_channel SP fx_send_id SP audio_channel_index SP audio_channel_index
4852                  </t>                  </t>
4853          </list>                  <t>/ ECHO SP boolean
4854  </t>                  </t>
4855  <t>load_engine_args =                  <t>/ VOLUME SP volume_value
4856          <list>                  </t>
4857                  <t>engine_name SP sampler_channel          </list>
4858                  </t>  </t>
4859          </list>  <t>create_instruction =
4860  </t>          <list>
4861  <t>device_index =                  <t>AUDIO_OUTPUT_DEVICE SP string SP key_val_list
4862          <list>                  </t>
4863                  <t>number                  <t>/ AUDIO_OUTPUT_DEVICE SP string
4864                  </t>                  </t>
4865          </list>                  <t>/ MIDI_INPUT_DEVICE SP string SP key_val_list
4866  </t>                  </t>
4867  <t>audio_channel_index =                  <t>/ MIDI_INPUT_DEVICE SP string
4868          <list>                  </t>
4869                  <t>number                  <t>/ FX_SEND SP sampler_channel SP midi_ctrl
4870                  </t>                  </t>
4871          </list>                  <t>/ FX_SEND SP sampler_channel SP midi_ctrl SP fx_send_name
4872  </t>                  </t>
4873  <t>audio_output_type_name =          </list>
4874          <list>  </t>
4875                  <t>string  <t>reset_instruction =
4876                  </t>          <list>
4877          </list>                  <t>CHANNEL SP sampler_channel
4878  </t>                  </t>
4879  <t>midi_input_port_index =          </list>
4880          <list>  </t>
4881                  <t>number  <t>clear_instruction =
4882                  </t>          <list>
4883          </list>                  <t>MIDI_INSTRUMENTS SP midi_map
4884  </t>                  </t>
4885  <t>midi_input_channel_index =                  <t>/ MIDI_INSTRUMENTS SP ALL
4886          <list>                  </t>
4887                  <t>number          </list>
4888                  </t>  </t>
4889                  <t>/ ALL  <t>destroy_instruction =
4890                  </t>          <list>
4891          </list>                  <t>AUDIO_OUTPUT_DEVICE SP number
4892  </t>                  </t>
4893  <t>midi_input_type_name =                  <t>/ MIDI_INPUT_DEVICE SP number
4894          <list>                  </t>
4895                  <t>string                  <t>/ FX_SEND SP sampler_channel SP fx_send_id
4896                  </t>                  </t>
4897          </list>          </list>
4898  </t>  </t>
4899  <t>volume_value =  <t>load_instruction =
4900          <list>          <list>
4901                  <t>dotnum                  <t>INSTRUMENT SP load_instr_args
4902                  </t>                  </t>
4903                  <t>/ number                  <t>/ ENGINE SP load_engine_args
4904                  </t>                  </t>
4905          </list>          </list>
4906  </t>  </t>
4907  <t>sampler_channel =  <t>set_chan_instruction =
4908          <list>          <list>
4909                  <t>number                  <t>AUDIO_OUTPUT_DEVICE SP sampler_channel SP device_index
4910                  </t>                  </t>
4911          </list>                  <t>/ AUDIO_OUTPUT_CHANNEL SP sampler_channel SP audio_channel_index SP audio_channel_index
4912  </t>                  </t>
4913  <t>instrument_index =                  <t>/ AUDIO_OUTPUT_TYPE SP sampler_channel SP audio_output_type_name
4914          <list>                  </t>
4915                  <t>number                  <t>/ MIDI_INPUT SP sampler_channel SP device_index SP midi_input_port_index SP midi_input_channel_index
4916                  </t>                  </t>
4917          </list>                  <t>/ MIDI_INPUT_DEVICE SP sampler_channel SP device_index
4918  </t>                  </t>
4919  <t>engine_name =                  <t>/ MIDI_INPUT_PORT SP sampler_channel SP midi_input_port_index
4920          <list>                  </t>
4921                  <t>string                  <t>/ MIDI_INPUT_CHANNEL SP sampler_channel SP midi_input_channel_index
4922                  </t>                  </t>
4923          </list>                  <t>/ MIDI_INPUT_TYPE SP sampler_channel SP midi_input_type_name
4924  </t>                  </t>
4925  <t>filename =                  <t>/ VOLUME SP sampler_channel SP volume_value
4926          <list>                  </t>
4927                  <t>stringval                  <t>/ MUTE SP sampler_channel SP boolean
4928                  </t>                  </t>
4929          </list>                  <t>/ SOLO SP sampler_channel SP boolean
4930  </t>                  </t>
4931  <t>param_val_list =                  <t>/ MIDI_INSTRUMENT_MAP SP sampler_channel SP midi_map
4932          <list>                  </t>
4933                  <t>param_val                  <t>/ MIDI_INSTRUMENT_MAP SP sampler_channel SP NONE
4934                  </t>                  </t>
4935                  <t>/ param_val_list','param_val                  <t>/ MIDI_INSTRUMENT_MAP SP sampler_channel SP DEFAULT
4936                  </t>                  </t>
4937          </list>          </list>
4938  </t>  </t>
4939  <t>param_val =  <t>key_val_list =
4940          <list>          <list>
4941                  <t>string                  <t>string '=' param_val_list
4942                  </t>                  </t>
4943                  <t>/ stringval                  <t>/ key_val_list SP string '=' param_val_list
4944                  </t>                  </t>
4945                  <t>/ number          </list>
4946                  </t>  </t>
4947                  <t>/ dotnum  <t>buffer_size_type =
4948                  </t>          <list>
4949          </list>                  <t>BYTES
4950  </t>                  </t>
4951                    <t>/ PERCENTAGE
4952                    </t>
4953            </list>
4954    </t>
4955    <t>list_instruction =
4956            <list>
4957                    <t>AUDIO_OUTPUT_DEVICES
4958                    </t>
4959                    <t>/ MIDI_INPUT_DEVICES
4960                    </t>
4961                    <t>/ CHANNELS
4962                    </t>
4963                    <t>/ AVAILABLE_ENGINES
4964                    </t>
4965                    <t>/ AVAILABLE_MIDI_INPUT_DRIVERS
4966                    </t>
4967                    <t>/ AVAILABLE_AUDIO_OUTPUT_DRIVERS
4968                    </t>
4969                    <t>/ MIDI_INSTRUMENTS SP midi_map
4970                    </t>
4971                    <t>/ MIDI_INSTRUMENTS SP ALL
4972                    </t>
4973                    <t>/ MIDI_INSTRUMENT_MAPS
4974                    </t>
4975                    <t>/ FX_SENDS SP sampler_channel
4976                    </t>
4977            </list>
4978    </t>
4979    <t>load_instr_args =
4980            <list>
4981                    <t>filename SP instrument_index SP sampler_channel
4982                    </t>
4983                    <t>/ NON_MODAL SP filename SP instrument_index SP sampler_channel
4984                    </t>
4985            </list>
4986    </t>
4987    <t>load_engine_args =
4988            <list>
4989                    <t>engine_name SP sampler_channel
4990                    </t>
4991            </list>
4992    </t>
4993    <t>instr_load_mode =
4994            <list>
4995                    <t>ON_DEMAND
4996                    </t>
4997                    <t>/ ON_DEMAND_HOLD
4998                    </t>
4999                    <t>/ PERSISTENT
5000                    </t>
5001            </list>
5002    </t>
5003    <t>device_index =
5004            <list>
5005                    <t>number
5006                    </t>
5007            </list>
5008    </t>
5009    <t>audio_channel_index =
5010            <list>
5011                    <t>number
5012                    </t>
5013            </list>
5014    </t>
5015    <t>audio_output_type_name =
5016            <list>
5017                    <t>string
5018                    </t>
5019            </list>
5020    </t>
5021    <t>midi_input_port_index =
5022            <list>
5023                    <t>number
5024                    </t>
5025            </list>
5026    </t>
5027    <t>midi_input_channel_index =
5028            <list>
5029                    <t>number
5030                    </t>
5031                    <t>/ ALL
5032                    </t>
5033            </list>
5034    </t>
5035    <t>midi_input_type_name =
5036            <list>
5037                    <t>string
5038                    </t>
5039            </list>
5040    </t>
5041    <t>midi_map =
5042            <list>
5043                    <t>number
5044                    </t>
5045            </list>
5046    </t>
5047    <t>midi_bank =
5048            <list>
5049                    <t>number
5050                    </t>
5051            </list>
5052    </t>
5053    <t>midi_prog =
5054            <list>
5055                    <t>number
5056                    </t>
5057            </list>
5058    </t>
5059    <t>midi_ctrl =
5060            <list>
5061                    <t>number
5062                    </t>
5063            </list>
5064    </t>
5065    <t>volume_value =
5066            <list>
5067                    <t>dotnum
5068                    </t>
5069                    <t>/ number
5070                    </t>
5071            </list>
5072    </t>
5073    <t>sampler_channel =
5074            <list>
5075                    <t>number
5076                    </t>
5077            </list>
5078    </t>
5079    <t>instrument_index =
5080            <list>
5081                    <t>number
5082                    </t>
5083            </list>
5084    </t>
5085    <t>fx_send_id =
5086            <list>
5087                    <t>number
5088                    </t>
5089            </list>
5090    </t>
5091    <t>engine_name =
5092            <list>
5093                    <t>string
5094                    </t>
5095            </list>
5096    </t>
5097    <t>filename =
5098            <list>
5099                    <t>stringval
5100                    </t>
5101            </list>
5102    </t>
5103    <t>map_name =
5104            <list>
5105                    <t>stringval
5106                    </t>
5107            </list>
5108    </t>
5109    <t>entry_name =
5110            <list>
5111                    <t>stringval
5112                    </t>
5113            </list>
5114    </t>
5115    <t>fx_send_name =
5116            <list>
5117                    <t>stringval
5118                    </t>
5119            </list>
5120    </t>
5121    <t>param_val_list =
5122            <list>
5123                    <t>param_val
5124                    </t>
5125                    <t>/ param_val_list','param_val
5126                    </t>
5127            </list>
5128    </t>
5129    <t>param_val =
5130            <list>
5131                    <t>string
5132                    </t>
5133                    <t>/ stringval
5134                    </t>
5135                    <t>/ number
5136                    </t>
5137                    <t>/ dotnum
5138                    </t>
5139            </list>
5140    </t>
5141    
5142              <!-- GRAMMAR_BNF_END - do NOT delete or modify this line !!! -->              <!-- GRAMMAR_BNF_END - do NOT delete or modify this line !!! -->
5143          </section>          </section>
5144    
5145          <section title="Events" anchor="events">          <section title="Events" anchor="events">
5146              <t>This chapter will describe all currently defined events supported by LinuxSampler.</t>              <t>This chapter will describe all currently defined events supported by LinuxSampler.</t>
5147    
5148              <section title="Number of sampler channels changed" anchor="SUBSCRIBE CHANNEL">              <section title="Number of audio output devices changed" anchor="SUBSCRIBE AUDIO_OUTPUT_DEVICE_COUNT">
5149                    <t>Client may want to be notified when the total number of audio output devices on the
5150                    back-end changes by issuing the following command:</t>
5151                    <t>
5152                        <list>
5153                            <t>SUBSCRIBE AUDIO_OUTPUT_DEVICE_COUNT</t>
5154                        </list>
5155                    </t>
5156                    <t>Server will start sending the following notification messages:</t>
5157                    <t>
5158                        <list>
5159                            <t>"NOTIFY:AUDIO_OUTPUT_DEVICE_COUNT:&lt;devices&gt;"</t>
5160                        </list>
5161                    </t>
5162                    <t>where &lt;devices&gt; will be replaced by the new number
5163                    of audio output devices.</t>
5164                </section>
5165    
5166                <section title="Audio output device's settings changed" anchor="SUBSCRIBE AUDIO_OUTPUT_DEVICE_INFO">
5167                    <t>Client may want to be notified when changes were made to audio output devices on the
5168                    back-end by issuing the following command:</t>
5169                    <t>
5170                        <list>
5171                            <t>SUBSCRIBE AUDIO_OUTPUT_DEVICE_INFO</t>
5172                        </list>
5173                    </t>
5174                    <t>Server will start sending the following notification messages:</t>
5175                    <t>
5176                        <list>
5177                            <t>"NOTIFY:AUDIO_OUTPUT_DEVICE_INFO:&lt;device-id&gt;"</t>
5178                        </list>
5179                    </t>
5180                    <t>where &lt;device-id&gt; will be replaced by the numerical ID of the audio output device,
5181                    which settings has been changed. The front-end will have to send
5182                    the respective command to actually get the audio output device info. Because these messages
5183                    will be triggered by LSCP commands issued by other clients rather than real
5184                    time events happening on the server, it is believed that an empty notification
5185                    message is sufficient here.</t>
5186                </section>
5187    
5188                <section title="Number of MIDI input devices changed" anchor="SUBSCRIBE MIDI_INPUT_DEVICE_COUNT">
5189                    <t>Client may want to be notified when the total number of MIDI input devices on the
5190                    back-end changes by issuing the following command:</t>
5191                    <t>
5192                        <list>
5193                            <t>SUBSCRIBE MIDI_INPUT_DEVICE_COUNT</t>
5194                        </list>
5195                    </t>
5196                    <t>Server will start sending the following notification messages:</t>
5197                    <t>
5198                        <list>
5199                            <t>"NOTIFY:MIDI_INPUT_DEVICE_COUNT:&lt;devices&gt;"</t>
5200                        </list>
5201                    </t>
5202                    <t>where &lt;devices&gt; will be replaced by the new number
5203                    of MIDI input devices.</t>
5204                </section>
5205    
5206                <section title="MIDI input device's settings changed" anchor="SUBSCRIBE MIDI_INPUT_DEVICE_INFO">
5207                    <t>Client may want to be notified when changes were made to MIDI input devices on the
5208                    back-end by issuing the following command:</t>
5209                    <t>
5210                        <list>
5211                            <t>SUBSCRIBE MIDI_INPUT_DEVICE_INFO</t>
5212                        </list>
5213                    </t>
5214                    <t>Server will start sending the following notification messages:</t>
5215                    <t>
5216                        <list>
5217                            <t>"NOTIFY:MIDI_INPUT_DEVICE_INFO:&lt;device-id&gt;"</t>
5218                        </list>
5219                    </t>
5220                    <t>where &lt;device-id&gt; will be replaced by the numerical ID of the MIDI input device,
5221                    which settings has been changed. The front-end will have to send
5222                    the respective command to actually get the MIDI input device info. Because these messages
5223                    will be triggered by LSCP commands issued by other clients rather than real
5224                    time events happening on the server, it is believed that an empty notification
5225                    message is sufficient here.</t>
5226                </section>
5227    
5228                <section title="Number of sampler channels changed" anchor="SUBSCRIBE CHANNEL_COUNT">
5229                  <t>Client may want to be notified when the total number of channels on the                  <t>Client may want to be notified when the total number of channels on the
5230                  back-end changes by issuing the following command:</t>                  back-end changes by issuing the following command:</t>
5231                  <t>                  <t>
# Line 3896  Schoenebeck'> Line 5302  Schoenebeck'>
5302                  "GET CHANNEL BUFFER_FILL PERCENTAGE"</xref> command was issued on this channel.</t>                  "GET CHANNEL BUFFER_FILL PERCENTAGE"</xref> command was issued on this channel.</t>
5303              </section>              </section>
5304    
5305              <section title="Channel information changed" anchor="SUBSCRIBE INFO">              <section title="Channel information changed" anchor="SUBSCRIBE CHANNEL_INFO">
5306                  <t>Client may want to be notified when changes were made to sampler channels on the                  <t>Client may want to be notified when changes were made to sampler channels on the
5307                  back-end by issuing the following command:</t>                  back-end by issuing the following command:</t>
5308                  <t>                  <t>
# Line 3936  Schoenebeck'> Line 5342  Schoenebeck'>
5342                  all currently active voices.</t>                  all currently active voices.</t>
5343              </section>              </section>
5344    
5345                <section title="Number of MIDI instrument maps changed" anchor="SUBSCRIBE MIDI_INSTRUMENT_MAP_COUNT">
5346                    <t>Client may want to be notified when the number of MIDI instrument maps on the
5347                    back-end changes by issuing the following command:</t>
5348                    <t>
5349                        <list>
5350                            <t>SUBSCRIBE MIDI_INSTRUMENT_MAP_COUNT</t>
5351                        </list>
5352                    </t>
5353                    <t>Server will start sending the following notification messages:</t>
5354                    <t>
5355                        <list>
5356                            <t>"NOTIFY:MIDI_INSTRUMENT_MAP_COUNT:&lt;maps&gt;"</t>
5357                        </list>
5358                    </t>
5359                    <t>where &lt;maps&gt; will be replaced by the new number
5360                    of MIDI instrument maps.</t>
5361                </section>
5362    
5363                <section title="MIDI instrument map information changed" anchor="SUBSCRIBE MIDI_INSTRUMENT_MAP_INFO">
5364                    <t>Client may want to be notified when changes were made to MIDI instrument maps on the
5365                    back-end by issuing the following command:</t>
5366                    <t>
5367                        <list>
5368                            <t>SUBSCRIBE MIDI_INSTRUMENT_MAP_INFO</t>
5369                        </list>
5370                    </t>
5371                    <t>Server will start sending the following notification messages:</t>
5372                    <t>
5373                        <list>
5374                            <t>"NOTIFY:MIDI_INSTRUMENT_MAP_INFO:&lt;map-id&gt;"</t>
5375                        </list>
5376                    </t>
5377                    <t>where &lt;map-id&gt; will be replaced by the numerical ID of the MIDI instrument map,
5378                    for which information changes occurred. The front-end will have to send
5379                    the respective command to actually get the MIDI instrument map info. Because these messages
5380                    will be triggered by LSCP commands issued by other clients rather than real
5381                    time events happening on the server, it is believed that an empty notification
5382                    message is sufficient here.</t>
5383                </section>
5384    
5385                <section title="Number of MIDI instruments changed" anchor="SUBSCRIBE MIDI_INSTRUMENT_COUNT">
5386                    <t>Client may want to be notified when the number of MIDI instrument maps on the
5387                    back-end changes by issuing the following command:</t>
5388                    <t>
5389                        <list>
5390                            <t>SUBSCRIBE MIDI_INSTRUMENT_COUNT</t>
5391                        </list>
5392                    </t>
5393                    <t>Server will start sending the following notification messages:</t>
5394                    <t>
5395                        <list>
5396                            <t>"NOTIFY:MIDI_INSTRUMENT_COUNT:&lt;map-id&gt; &lt;instruments&gt;"</t>
5397                        </list>
5398                    </t>
5399                    <t>where &lt;map-id&gt; is the numerical ID of the MIDI instrument map, in which
5400                    the nuber of instruments has changed and &lt;instruments&gt; will be replaced by
5401                    the new number of MIDI instruments in the specified map.</t>
5402                </section>
5403    
5404                <section title="MIDI instrument information changed" anchor="SUBSCRIBE MIDI_INSTRUMENT_INFO">
5405                    <t>Client may want to be notified when changes were made to MIDI instruments on the
5406                    back-end by issuing the following command:</t>
5407                    <t>
5408                        <list>
5409                            <t>SUBSCRIBE MIDI_INSTRUMENT_INFO</t>
5410                        </list>
5411                    </t>
5412                    <t>Server will start sending the following notification messages:</t>
5413                    <t>
5414                        <list>
5415                            <t>"NOTIFY:MIDI_INSTRUMENT_INFO:&lt;map-id&gt; &lt;bank&gt; &lt;program&gt;"</t>
5416                        </list>
5417                    </t>
5418                    <t>where &lt;map-id&gt; will be replaced by the numerical ID of the MIDI instrument map,
5419                    in which a MIDI instrument is changed. &lt;bank&gt; and &lt;program&gt; specifies
5420                    the location of the changed MIDI instrument in the map. The front-end will have to send
5421                    the respective command to actually get the MIDI instrument info. Because these messages
5422                    will be triggered by LSCP commands issued by other clients rather than real
5423                    time events happening on the server, it is believed that an empty notification
5424                    message is sufficient here.</t>
5425                </section>
5426    
5427              <section title="Miscellaneous and debugging events" anchor="SUBSCRIBE MISCELLANEOUS">              <section title="Miscellaneous and debugging events" anchor="SUBSCRIBE MISCELLANEOUS">
5428                  <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
5429                  the server by issuing the following command:</t>                  the server by issuing the following command:</t>

Legend:
Removed from v.828  
changed lines
  Added in v.1005

  ViewVC Help
Powered by ViewVC