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="February" year="2007"/> |
38 |
<workgroup>LinuxSampler Developers</workgroup> |
<workgroup>LinuxSampler Developers</workgroup> |
39 |
<keyword>LSCP</keyword> |
<keyword>LSCP</keyword> |
40 |
<abstract> |
<abstract> |
4257 |
command:</t> |
command:</t> |
4258 |
<t> |
<t> |
4259 |
<list> |
<list> |
4260 |
<t>MAP MIDI_INSTRUMENT <map> |
<t>MAP MIDI_INSTRUMENT [NON_MODAL] <map> |
4261 |
<midi_bank> <midi_prog> <engine_name> |
<midi_bank> <midi_prog> <engine_name> |
4262 |
<filename> <instrument_index> <volume_value> |
<filename> <instrument_index> <volume_value> |
4263 |
[<instr_load_mode>] [<name>]</t> |
[<instr_load_mode>] [<name>]</t> |
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 |
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> |
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> |
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> |
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 |