34 |
<email>schoenebeck at software minus engineering dot org</email> |
<email>schoenebeck at software minus engineering dot org</email> |
35 |
</address> |
</address> |
36 |
</author> |
</author> |
37 |
<date month="April" year="2008"/> |
<date month="December" year="2008"/> |
38 |
<workgroup>LinuxSampler Developers</workgroup> |
<workgroup>LinuxSampler Developers</workgroup> |
39 |
<keyword>LSCP</keyword> |
<keyword>LSCP</keyword> |
40 |
<abstract> |
<abstract> |
3722 |
<t>Where <sampler-chan> is the sampler channel number |
<t>Where <sampler-chan> is the sampler channel number |
3723 |
as returned by the <xref target="ADD CHANNEL">"ADD CHANNEL"</xref> |
as returned by the <xref target="ADD CHANNEL">"ADD CHANNEL"</xref> |
3724 |
or <xref target="LIST CHANNELS">"LIST CHANNELS"</xref> command, |
or <xref target="LIST CHANNELS">"LIST CHANNELS"</xref> command, |
3725 |
<arg1> and <arg2> arguments depend on the <midi-msg> argument, which |
<arg1> and <arg2> arguments depend on the <midi-msg> argument, which |
3726 |
specifies the MIDI message type. Currently, the following MIDI messages are supported:</t> |
specifies the MIDI message type. Currently, the following MIDI messages are supported:</t> |
3727 |
<t> |
<t> |
3728 |
<list> |
<list> |
3729 |
<t>"NOTE_ON" - |
<t>"NOTE_ON" - |
3730 |
<list> |
<list> |
3731 |
<t>For turning on MIDI notes, where <arg1> |
<t>For turning on MIDI notes, where <arg1> |
3732 |
specifies the key number and <arg2> the velocity |
specifies the key number and <arg2> the velocity |
3733 |
as described in the MIDI specification.</t> |
as described in the MIDI specification.</t> |
3734 |
</list> |
</list> |
3735 |
</t> |
</t> |
3736 |
<t>"NOTE_OFF" - |
<t>"NOTE_OFF" - |
3737 |
<list> |
<list> |
3738 |
<t>For turning a currently playing MIDI note off, where <arg1> |
<t>For turning a currently playing MIDI note off, where <arg1> |
3739 |
specifies the key number and <arg2> the velocity |
specifies the key number and <arg2> the velocity |
3740 |
as described in the MIDI specification.</t> |
as described in the MIDI specification.</t> |
3741 |
</list> |
</list> |
3742 |
</t> |
</t> |
3743 |
</list> |
</list> |
3744 |
</t> |
</t> |
3745 |
<t>CAUTION: This command is provided for implementations of virtual MIDI keyboards |
<t>CAUTION: This command is provided for implementations of virtual MIDI keyboards |
3746 |
and no realtime guarantee whatsoever will be made!</t> |
and no realtime guarantee whatsoever will be made!</t> |
3747 |
<t>Possible Answers:</t> |
<t>Possible Answers:</t> |
3748 |
<t> |
<t> |
4142 |
</list> |
</list> |
4143 |
</t> |
</t> |
4144 |
</section> |
</section> |
4145 |
|
|
4146 |
|
<section title="Getting global voice limit" anchor="GET VOICES"> |
4147 |
|
<t>The client can ask for the current global sampler-wide limit |
4148 |
|
for maximum voices by sending the following command:</t> |
4149 |
|
<t> |
4150 |
|
<list> |
4151 |
|
<t>GET VOICES</t> |
4152 |
|
</list> |
4153 |
|
</t> |
4154 |
|
<t>Possible Answers:</t> |
4155 |
|
<t> |
4156 |
|
<list> |
4157 |
|
<t>LinuxSampler will answer by returning the number for |
4158 |
|
the current limit of maximum voices.</t> |
4159 |
|
</list> |
4160 |
|
</t> |
4161 |
|
|
4162 |
|
<t>The voice limit setting defines how many voices should maximum |
4163 |
|
be processed by the sampler at the same time. If the user |
4164 |
|
triggers new notes which would exceed that voice limit, the |
4165 |
|
sampler engine will react by stealing old voices for those |
4166 |
|
newly triggered notes. Note that the amount of voices triggered |
4167 |
|
by a new note can be larger than one and is dependent to the |
4168 |
|
respective instrument and probably further criterias.</t> |
4169 |
|
</section> |
4170 |
|
|
4171 |
|
<section title="Setting global voice limit" anchor="SET VOICES"> |
4172 |
|
<t>The client can alter the current global sampler-wide limit |
4173 |
|
for maximum voices by sending the following command:</t> |
4174 |
|
<t> |
4175 |
|
<list> |
4176 |
|
<t>SET VOICES <max-voices></t> |
4177 |
|
</list> |
4178 |
|
</t> |
4179 |
|
<t>Where <max-voices> should be replaced by the integer |
4180 |
|
value, reflecting the new global amount limit of maximum voices. |
4181 |
|
This value has to be larger than 0.</t> |
4182 |
|
|
4183 |
|
<t>Possible Answers:</t> |
4184 |
|
<t> |
4185 |
|
<list> |
4186 |
|
<t>"OK" - |
4187 |
|
<list> |
4188 |
|
<t>on success</t> |
4189 |
|
</list> |
4190 |
|
</t> |
4191 |
|
<t>"WRN:<warning-code>:<warning-message>" - |
4192 |
|
<list> |
4193 |
|
<t>if the voice limit was set, but there are noteworthy |
4194 |
|
issue(s) related, providing an appropriate warning code and |
4195 |
|
warning message</t> |
4196 |
|
</list> |
4197 |
|
</t> |
4198 |
|
<t>"ERR:<error-code>:<error-message>" - |
4199 |
|
<list> |
4200 |
|
<t>in case it failed, providing an appropriate error code and error message</t> |
4201 |
|
</list> |
4202 |
|
</t> |
4203 |
|
</list> |
4204 |
|
</t> |
4205 |
|
|
4206 |
|
<t>Note: the given value will be passed to all sampler engine instances. |
4207 |
|
The total amount of maximum voices on the running system might thus |
4208 |
|
be as big as the given value multiplied by the current amount of engine |
4209 |
|
instances.</t> |
4210 |
|
|
4211 |
|
<t>Caution: when adjusting the voice limit, you SHOULD also |
4212 |
|
adjust the disk stream limit respectively and vice versa.</t> |
4213 |
|
</section> |
4214 |
|
|
4215 |
|
<section title="Getting global disk stream limit" anchor="GET STREAMS"> |
4216 |
|
<t>The client can ask for the current global sampler-wide limit |
4217 |
|
for maximum disk streams by sending the following command:</t> |
4218 |
|
<t> |
4219 |
|
<list> |
4220 |
|
<t>GET STREAMS</t> |
4221 |
|
</list> |
4222 |
|
</t> |
4223 |
|
<t>Possible Answers:</t> |
4224 |
|
<t> |
4225 |
|
<list> |
4226 |
|
<t>LinuxSampler will answer by returning the number for |
4227 |
|
the current limit of maximum disk streams.</t> |
4228 |
|
</list> |
4229 |
|
</t> |
4230 |
|
|
4231 |
|
<t>The disk stream limit setting defines how many disk streams should |
4232 |
|
maximum be processed by a sampler engine at the same time. The |
4233 |
|
higher this value, the more memory (RAM) will be occupied, since |
4234 |
|
every disk streams allocates a certain buffer size for being able |
4235 |
|
to perform its streaming operations.</t> |
4236 |
|
</section> |
4237 |
|
|
4238 |
|
<section title="Setting global disk stream limit" anchor="SET STREAMS"> |
4239 |
|
<t>The client can alter the current global sampler-wide limit |
4240 |
|
for maximum disk streams by sending the following command:</t> |
4241 |
|
<t> |
4242 |
|
<list> |
4243 |
|
<t>SET STREAMS <max-streams></t> |
4244 |
|
</list> |
4245 |
|
</t> |
4246 |
|
<t>Where <max-streams> should be replaced by the integer |
4247 |
|
value, reflecting the new global amount limit of maximum disk streams. |
4248 |
|
This value has to be positive.</t> |
4249 |
|
|
4250 |
|
<t>Possible Answers:</t> |
4251 |
|
<t> |
4252 |
|
<list> |
4253 |
|
<t>"OK" - |
4254 |
|
<list> |
4255 |
|
<t>on success</t> |
4256 |
|
</list> |
4257 |
|
</t> |
4258 |
|
<t>"WRN:<warning-code>:<warning-message>" - |
4259 |
|
<list> |
4260 |
|
<t>if the disk stream limit was set, but there are noteworthy |
4261 |
|
issue(s) related, providing an appropriate warning code and |
4262 |
|
warning message</t> |
4263 |
|
</list> |
4264 |
|
</t> |
4265 |
|
<t>"ERR:<error-code>:<error-message>" - |
4266 |
|
<list> |
4267 |
|
<t>in case it failed, providing an appropriate error code and error message</t> |
4268 |
|
</list> |
4269 |
|
</t> |
4270 |
|
</list> |
4271 |
|
</t> |
4272 |
|
|
4273 |
|
<t>Note: the given value will be passed to all sampler engine instances. |
4274 |
|
The total amount of maximum disk streams on the running system might |
4275 |
|
thus be as big as the given value multiplied by the current amount of |
4276 |
|
engine instances.</t> |
4277 |
|
|
4278 |
|
<t>Caution: when adjusting the disk stream limit, you SHOULD also |
4279 |
|
adjust the voice limit respectively and vice versa.</t> |
4280 |
|
</section> |
4281 |
|
|
4282 |
</section> |
</section> |
4283 |
|
|
4284 |
|
|
5487 |
to the instruments database by sending the following command:</t> |
to the instruments database by sending the following command:</t> |
5488 |
<t> |
<t> |
5489 |
<list> |
<list> |
5490 |
<t>ADD DB_INSTRUMENTS [NON_MODAL] [<mode>] <db_dir> <file_path> [<instr_index>]</t> |
<t>ADD DB_INSTRUMENTS [NON_MODAL] [<mode>[ FILE_AS_DIR]] <db_dir> <file_path> [<instr_index>]</t> |
5491 |
</list> |
</list> |
5492 |
</t> |
</t> |
5493 |
<t>Where <db_dir> is the absolute path name of a directory |
<t>Where <db_dir> is the absolute path name of a directory |
5532 |
</list> |
</list> |
5533 |
</t> |
</t> |
5534 |
|
|
5535 |
|
<t> If FILE_AS_DIR argument is supplied, all instruments in an instrument |
5536 |
|
file will be added to a separate directory in the instruments database, which |
5537 |
|
name will be the name of the instrument file with the file extension stripped off. |
5538 |
|
</t> |
5539 |
<t>The difference between regular and NON_MODAL versions of the command |
<t>The difference between regular and NON_MODAL versions of the command |
5540 |
is that the regular command returns when the scanning is finished |
is that the regular command returns when the scanning is finished |
5541 |
while NON_MODAL version returns immediately and a background process is launched. |
while NON_MODAL version returns immediately and a background process is launched. |
6507 |
</t> |
</t> |
6508 |
<t>KEY_BINDINGS - |
<t>KEY_BINDINGS - |
6509 |
<list> |
<list> |
6510 |
<t>comma separated list of integer values representing |
<t>comma separated list of integer values representing |
6511 |
the instrument's key mapping in the range between 0 .. 127, |
the instrument's key mapping in the range between 0 .. 127, |
6512 |
reflecting the analog meaning of the MIDI specification.</t> |
reflecting the analog meaning of the MIDI specification.</t> |
6513 |
</list> |
</list> |
6514 |
</t> |
</t> |
6515 |
<t>KEYSWITCH_BINDINGS - |
<t>KEYSWITCH_BINDINGS - |
6516 |
<list> |
<list> |
6517 |
<t>comma separated list of integer values representing |
<t>comma separated list of integer values representing |
6518 |
the instrument's keyswitch mapping in the range between 0 .. 127, |
the instrument's keyswitch mapping in the range between 0 .. 127, |
6519 |
reflecting the analog meaning of the MIDI specification.</t> |
reflecting the analog meaning of the MIDI specification.</t> |
6520 |
</list> |
</list> |
6521 |
</t> |
</t> |
6625 |
</t> |
</t> |
6626 |
<t>/ EDIT SP edit_instruction |
<t>/ EDIT SP edit_instruction |
6627 |
</t> |
</t> |
6628 |
<t>/ FORMAT SP format_instruction |
<t>/ FORMAT SP format_instruction |
6629 |
</t> |
</t> |
6630 |
<t>SEND SP send_instruction |
<t>/ SEND SP send_instruction |
6631 |
</t> |
</t> |
6632 |
<t>/ RESET |
<t>/ RESET |
6633 |
</t> |
</t> |
6643 |
</t> |
</t> |
6644 |
<t>/ DB_INSTRUMENTS SP NON_MODAL SP scan_mode SP db_path SP filename |
<t>/ DB_INSTRUMENTS SP NON_MODAL SP scan_mode SP db_path SP filename |
6645 |
</t> |
</t> |
6646 |
|
<t>/ DB_INSTRUMENTS SP NON_MODAL SP scan_mode SP FILE_AS_DIR SP db_path SP filename |
6647 |
|
</t> |
6648 |
<t>/ DB_INSTRUMENTS SP scan_mode SP db_path SP filename |
<t>/ DB_INSTRUMENTS SP scan_mode SP db_path SP filename |
6649 |
</t> |
</t> |
6650 |
|
<t>/ DB_INSTRUMENTS SP scan_mode SP FILE_AS_DIR SP db_path SP filename |
6651 |
|
</t> |
6652 |
<t>/ DB_INSTRUMENTS SP NON_MODAL SP db_path SP filename |
<t>/ DB_INSTRUMENTS SP NON_MODAL SP db_path SP filename |
6653 |
</t> |
</t> |
6654 |
<t>/ DB_INSTRUMENTS SP NON_MODAL SP db_path SP filename SP instrument_index |
<t>/ DB_INSTRUMENTS SP NON_MODAL SP db_path SP filename SP instrument_index |
6895 |
</t> |
</t> |
6896 |
<t>/ VOLUME |
<t>/ VOLUME |
6897 |
</t> |
</t> |
6898 |
|
<t>/ VOICES |
6899 |
|
</t> |
6900 |
|
<t>/ STREAMS |
6901 |
|
</t> |
6902 |
<t>/ FILE SP INSTRUMENTS SP filename |
<t>/ FILE SP INSTRUMENTS SP filename |
6903 |
</t> |
</t> |
6904 |
<t>/ FILE SP INSTRUMENT SP INFO SP filename SP instrument_index |
<t>/ FILE SP INSTRUMENT SP INFO SP filename SP instrument_index |
6943 |
</t> |
</t> |
6944 |
<t>/ VOLUME SP volume_value |
<t>/ VOLUME SP volume_value |
6945 |
</t> |
</t> |
6946 |
|
<t>/ VOICES SP number |
6947 |
|
</t> |
6948 |
|
<t>/ STREAMS SP number |
6949 |
|
</t> |
6950 |
</list> |
</list> |
6951 |
</t> |
</t> |
6952 |
<t>create_instruction = |
<t>create_instruction = |
7853 |
replaced by the optional dotted floating point value, reflecting the |
replaced by the optional dotted floating point value, reflecting the |
7854 |
new global volume parameter.</t> |
new global volume parameter.</t> |
7855 |
</list> |
</list> |
7856 |
|
<list> |
7857 |
|
<t>"NOTIFY:GLOBAL_INFO:VOICES <max-voices>" - Notifies that the |
7858 |
|
golbal limit of the sampler for maximum voices is changed, where |
7859 |
|
<max-voices> will be an integer value, reflecting the |
7860 |
|
new global voice limit parameter.</t> |
7861 |
|
</list> |
7862 |
|
<list> |
7863 |
|
<t>"NOTIFY:GLOBAL_INFO:STREAMS <max-streams>" - Notifies that the |
7864 |
|
golbal limit of the sampler for maximum disk streams is changed, where |
7865 |
|
<max-streams> will be an integer value, reflecting the |
7866 |
|
new global disk streams limit parameter.</t> |
7867 |
|
</list> |
7868 |
</t> |
</t> |
7869 |
</section> |
</section> |
7870 |
|
|