/[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 1027 by schoenebeck, Sun Jan 14 17:31:48 2007 UTC revision 1108 by iliev, Thu Mar 22 20:39:04 2007 UTC
# Line 34  Schoenebeck'> Line 34  Schoenebeck'>
34                  <email>schoenebeck at software minus engineering dot org</email>                  <email>schoenebeck at software minus engineering dot org</email>
35              </address>              </address>
36          </author>          </author>
37          <date month="January" year="2007"/>          <date month="March" year="2007"/>
38          <workgroup>LinuxSampler Developers</workgroup>          <workgroup>LinuxSampler Developers</workgroup>
39          <keyword>LSCP</keyword>          <keyword>LSCP</keyword>
40          <abstract>          <abstract>
# Line 4257  Schoenebeck'> Line 4257  Schoenebeck'>
4257                      command:</t>                      command:</t>
4258                      <t>                      <t>
4259                          <list>                          <list>
4260                              <t>MAP MIDI_INSTRUMENT &lt;map&gt;                              <t>MAP MIDI_INSTRUMENT [NON_MODAL] &lt;map&gt;
4261                              &lt;midi_bank&gt; &lt;midi_prog&gt; &lt;engine_name&gt;                              &lt;midi_bank&gt; &lt;midi_prog&gt; &lt;engine_name&gt;
4262                              &lt;filename&gt; &lt;instrument_index&gt; &lt;volume_value&gt;                              &lt;filename&gt; &lt;instrument_index&gt; &lt;volume_value&gt;
4263                              [&lt;instr_load_mode&gt;] [&lt;name&gt;]</t>                              [&lt;instr_load_mode&gt;] [&lt;name&gt;]</t>
# Line 4310  Schoenebeck'> Line 4310  Schoenebeck'>
4310                              <t>"PERSISTENT" -                              <t>"PERSISTENT" -
4311                                  <list>                                  <list>
4312                                      <t>The instrument will immediately be loaded                                      <t>The instrument will immediately be loaded
4313                                      into memory in the background when this mapping                                      into memory when this mapping
4314                                      command is sent and the instrument is kept all                                      command is sent and the instrument is kept all
4315                                      the time. Instruments with this mode are                                      the time. Instruments with this mode are
4316                                      only freed when the sampler is reset or all                                      only freed when the sampler is reset or all
# Line 4360  Schoenebeck'> Line 4360  Schoenebeck'>
4360                      <xref target="GET MIDI_INSTRUMENT INFO">"GET MIDI_INSTRUMENT INFO"</xref>).                      <xref target="GET MIDI_INSTRUMENT INFO">"GET MIDI_INSTRUMENT INFO"</xref>).
4361                      </t>                      </t>
4362                      <t>                      <t>
4363                      The "MAP MIDI_INSTRUMENT" command                      By default, "MAP MIDI_INSTRUMENT" commands block until the mapping is
4364                      will immediately return, thus it will not block when an                      completely established in the sampler. The OPTIONAL "NON_MODAL" argument
4365                      instrument is to be loaded due to a "PERSISTENT" type                      however causes the respective "MAP MIDI_INSTRUMENT" command to return
4366                      entry as instruments are loaded in the background. As a                      immediately, that is to let the sampler establish the mapping in the
4367                      consequence this command may not necessarily return an error                      background. So this argument might be especially useful for mappings with
4368                      i.e. when the given instrument file does not exist or may                      a "PERSISTENT" type, because these have to load the respective instruments
4369                      turn out to be corrupt.                      immediately and might thus block for a very long time. It is recommended
4370                        however to use the OPTIONAL "NON_MODAL" argument only if really necessary,
4371                        because it has the following drawbacks: as "NON_MODAL" instructions return
4372                        immediately, they may not necessarily return an error i.e. when the given
4373                        instrument file turns out to be corrupt, beside that subsequent commands
4374                        in a LSCP instruction sequence might fail, because mandatory mappings are
4375                        not yet completed.
4376                      </t>                      </t>
4377    
4378                      <t>Possible Answers:</t>                      <t>Possible Answers:</t>
# Line 4409  Schoenebeck'> Line 4415  Schoenebeck'>
4415                      </t>                      </t>
4416                      <t>                      <t>
4417                          <list>                          <list>
4418                              <t>C: "MAP MIDI_INSTRUMENT 1 8 120 gig '/home/joe/foodrums.gig' 0 1.0 PERSISTENT 'Foo Drumkit'"</t>                              <t>C: "MAP MIDI_INSTRUMENT NON_MODAL 1 8 120 gig '/home/joe/foodrums.gig' 0 1.0 PERSISTENT 'Foo Drumkit'"</t>
4419                              <t>S: "OK"</t>                              <t>S: "OK"</t>
4420                          </list>                          </list>
4421                      </t>                      </t>
# Line 4847  Schoenebeck'> Line 4853  Schoenebeck'>
4853  </t>  </t>
4854  <t>map_instruction =  <t>map_instruction =
4855          <list>          <list>
4856                  <t>MIDI_INSTRUMENT SP midi_map SP midi_bank SP midi_prog SP engine_name SP filename SP instrument_index SP volume_value                  <t>MIDI_INSTRUMENT SP modal_arg midi_map SP midi_bank SP midi_prog SP engine_name SP filename SP instrument_index SP volume_value
4857                  </t>                  </t>
4858                  <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                  <t>/ MIDI_INSTRUMENT SP modal_arg midi_map SP midi_bank SP midi_prog SP engine_name SP filename SP instrument_index SP volume_value SP instr_load_mode
4859                  </t>                  </t>
4860                  <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                  <t>/ MIDI_INSTRUMENT SP modal_arg midi_map SP midi_bank SP midi_prog SP engine_name SP filename SP instrument_index SP volume_value SP entry_name
4861                  </t>                  </t>
4862                  <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                  <t>/ MIDI_INSTRUMENT SP modal_arg midi_map SP midi_bank SP midi_prog SP engine_name SP filename SP instrument_index SP volume_value SP instr_load_mode SP entry_name
4863                  </t>                  </t>
4864          </list>          </list>
4865  </t>  </t>
# Line 5051  Schoenebeck'> Line 5057  Schoenebeck'>
5057                  </t>                  </t>
5058          </list>          </list>
5059  </t>  </t>
5060    <t>modal_arg =
5061            <list>
5062                    <t>/* epsilon (empty argument) */
5063                    </t>
5064                    <t>/ NON_MODAL SP
5065                    </t>
5066            </list>
5067    </t>
5068  <t>key_val_list =  <t>key_val_list =
5069          <list>          <list>
5070                  <t>string '=' param_val_list                  <t>string '=' param_val_list
# Line 5369  Schoenebeck'> Line 5383  Schoenebeck'>
5383                  <t>Server will start sending the following notification messages:</t>                  <t>Server will start sending the following notification messages:</t>
5384                  <t>                  <t>
5385                      <list>                      <list>
5386                          <t>"NOTIFY:VOICE_COUNT:&lt;sampler-channel&gt; &lt;voices&gt;</t>                          <t>"NOTIFY:VOICE_COUNT:&lt;sampler-channel&gt; &lt;voices&gt;"</t>
5387                      </list>                      </list>
5388                  </t>                  </t>
5389                  <t>where &lt;sampler-channel&gt; will be replaced by the sampler channel the                  <t>where &lt;sampler-channel&gt; will be replaced by the sampler channel the
# Line 5439  Schoenebeck'> Line 5453  Schoenebeck'>
5453                  message is sufficient here.</t>                  message is sufficient here.</t>
5454              </section>              </section>
5455    
5456                <section title="Number of effect sends changed" anchor="SUBSCRIBE FX_SEND_COUNT">
5457                    <t>Client may want to be notified when the number of effect sends on
5458                    a particular sampler channel is changed by issuing the following command:</t>
5459                    <t>
5460                        <list>
5461                            <t>SUBSCRIBE FX_SEND_COUNT</t>
5462                        </list>
5463                    </t>
5464                    <t>Server will start sending the following notification messages:</t>
5465                    <t>
5466                        <list>
5467                            <t>"NOTIFY:FX_SEND_COUNT:&lt;channel-id&gt; &lt;fx-sends&gt;"</t>
5468                        </list>
5469                    </t>
5470                    <t>where &lt;channel-id&gt; will be replaced by the numerical ID of the sampler
5471                    channel, on which the effect sends number is changed and &lt;fx-sends&gt; will
5472                    be replaced by the new number of effect sends on that channel.</t>
5473                </section>
5474    
5475                <section title="Effect send information changed" anchor="SUBSCRIBE FX_SEND_INFO">
5476                    <t>Client may want to be notified when changes were made to effect sends on a
5477                    a particular sampler channel by issuing the following command:</t>
5478                    <t>
5479                        <list>
5480                            <t>SUBSCRIBE FX_SEND_INFO</t>
5481                        </list>
5482                    </t>
5483                    <t>Server will start sending the following notification messages:</t>
5484                    <t>
5485                        <list>
5486                            <t>"NOTIFY:FX_SEND_INFO:&lt;channel-id&gt; &lt;fx-send-id&gt;"</t>
5487                        </list>
5488                    </t>
5489                    <t>where &lt;channel-id&gt; will be replaced by the numerical ID of the sampler
5490                    channel, on which an effect send entity is changed and &lt;fx-send-id&gt; will
5491                    be replaced by the numerical ID of the changed effect send.</t>
5492                </section>
5493    
5494              <section title="Total number of active voices changed" anchor="SUBSCRIBE TOTAL_VOICE_COUNT">              <section title="Total number of active voices changed" anchor="SUBSCRIBE TOTAL_VOICE_COUNT">
5495                  <t>Client may want to be notified when the total number of voices on the                  <t>Client may want to be notified when the total number of voices on the
5496                  back-end changes by issuing the following command:</t>                  back-end changes by issuing the following command:</t>
# Line 5450  Schoenebeck'> Line 5502  Schoenebeck'>
5502                  <t>Server will start sending the following notification messages:</t>                  <t>Server will start sending the following notification messages:</t>
5503                  <t>                  <t>
5504                      <list>                      <list>
5505                          <t>"NOTIFY:TOTAL_VOICE_COUNT:&lt;voices&gt;</t>                          <t>"NOTIFY:TOTAL_VOICE_COUNT:&lt;voices&gt;"</t>
5506                      </list>                      </list>
5507                  </t>                  </t>
5508                  <t>where &lt;voices&gt; will be replaced by the new number of                  <t>where &lt;voices&gt; will be replaced by the new number of
# Line 5539  Schoenebeck'> Line 5591  Schoenebeck'>
5591                  message is sufficient here.</t>                  message is sufficient here.</t>
5592              </section>              </section>
5593    
5594                <section title="Global settings changed" anchor="SUBSCRIBE GLOBAL_INFO">
5595                    <t>Client may want to be notified when changes to the global settings
5596                    of the sampler were made by issuing the following command:</t>
5597                    <t>
5598                        <list>
5599                            <t>SUBSCRIBE GLOBAL_INFO</t>
5600                        </list>
5601                    </t>
5602                    <t>Server will start sending the following types of notification messages:</t>
5603                    <t>
5604                        <list>
5605                            <t>"NOTIFY:GLOBAL_INFO:VOLUME &lt;volume&gt;" - Notifies that the
5606                            golbal volume of the sampler is changed, where &lt;volume&gt; will be
5607                            replaced by the optional dotted floating point value, reflecting the
5608                            new global volume parameter.</t>
5609                        </list>
5610                    </t>
5611                </section>
5612    
5613              <section title="Miscellaneous and debugging events" anchor="SUBSCRIBE MISCELLANEOUS">              <section title="Miscellaneous and debugging events" anchor="SUBSCRIBE MISCELLANEOUS">
5614                  <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
5615                  the server by issuing the following command:</t>                  the server by issuing the following command:</t>

Legend:
Removed from v.1027  
changed lines
  Added in v.1108

  ViewVC Help
Powered by ViewVC