16 |
to an annoying "missing Normative/Informative References" error message --> |
to an annoying "missing Normative/Informative References" error message --> |
17 |
<?rfc strict="no" ?> |
<?rfc strict="no" ?> |
18 |
|
|
19 |
<rfc category="std" ipr="full3978" docName="LSCP 1.3"> |
<rfc category="std" ipr="full3978" docName="LSCP 1.4"> |
20 |
<front> |
<front> |
21 |
<title>LinuxSampler Control Protocol</title> |
<title>LinuxSampler Control Protocol</title> |
22 |
<author initials='C.S.' surname="Schoenebeck" fullname='C. |
<author initials='C.S.' surname="Schoenebeck" fullname='C. |
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="December" year="2007"/> |
<date month="December" year="2008"/> |
38 |
<workgroup>LinuxSampler Developers</workgroup> |
<workgroup>LinuxSampler Developers</workgroup> |
39 |
<keyword>LSCP</keyword> |
<keyword>LSCP</keyword> |
40 |
<abstract> |
<abstract> |
3711 |
</t> |
</t> |
3712 |
</section> |
</section> |
3713 |
|
|
3714 |
|
<section title="Sending MIDI messages to sampler channel" anchor="SEND CHANNEL MIDI_DATA"> |
3715 |
|
<t>The front-end can send MIDI events to specific sampler channel |
3716 |
|
by sending the following command:</t> |
3717 |
|
<t> |
3718 |
|
<list> |
3719 |
|
<t>SEND CHANNEL MIDI_DATA <midi-msg> <sampler-chan> <arg1> <arg2></t> |
3720 |
|
</list> |
3721 |
|
</t> |
3722 |
|
<t>Where <sampler-chan> is the sampler channel number |
3723 |
|
as returned by the <xref target="ADD CHANNEL">"ADD CHANNEL"</xref> |
3724 |
|
or <xref target="LIST CHANNELS">"LIST CHANNELS"</xref> command, |
3725 |
|
<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> |
3727 |
|
<t> |
3728 |
|
<list> |
3729 |
|
<t>"NOTE_ON" - |
3730 |
|
<list> |
3731 |
|
<t>For turning on MIDI notes, where <arg1> |
3732 |
|
specifies the key number and <arg2> the velocity |
3733 |
|
as described in the MIDI specification.</t> |
3734 |
|
</list> |
3735 |
|
</t> |
3736 |
|
<t>"NOTE_OFF" - |
3737 |
|
<list> |
3738 |
|
<t>For turning a currently playing MIDI note off, where <arg1> |
3739 |
|
specifies the key number and <arg2> the velocity |
3740 |
|
as described in the MIDI specification.</t> |
3741 |
|
</list> |
3742 |
|
</t> |
3743 |
|
</list> |
3744 |
|
</t> |
3745 |
|
<t>CAUTION: This command is provided for implementations of virtual MIDI keyboards |
3746 |
|
and no realtime guarantee whatsoever will be made!</t> |
3747 |
|
<t>Possible Answers:</t> |
3748 |
|
<t> |
3749 |
|
<list> |
3750 |
|
<t>"OK" - |
3751 |
|
<list> |
3752 |
|
<t>on success</t> |
3753 |
|
</list> |
3754 |
|
</t> |
3755 |
|
<t>"ERR:<error-code>:<error-message>" - |
3756 |
|
<list> |
3757 |
|
<t>in case it failed, providing an appropriate error code and error message</t> |
3758 |
|
</list> |
3759 |
|
</t> |
3760 |
|
</list> |
3761 |
|
</t> |
3762 |
|
<t>Example:</t> |
3763 |
|
<t> |
3764 |
|
<list> |
3765 |
|
<t>C: "SEND CHANNEL MIDI_DATA NOTE_ON 0 56 112"</t> |
3766 |
|
<t>S: "OK"</t> |
3767 |
|
</list> |
3768 |
|
</t> |
3769 |
|
</section> |
3770 |
|
|
3771 |
<section title="Resetting a sampler channel" anchor="RESET CHANNEL"> |
<section title="Resetting a sampler channel" anchor="RESET CHANNEL"> |
3772 |
<t>The front-end can reset a particular sampler channel by sending the following command:</t> |
<t>The front-end can reset a particular sampler channel by sending the following command:</t> |
3773 |
<t> |
<t> |
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. |
6201 |
</t> |
</t> |
6202 |
</section> |
</section> |
6203 |
|
|
6204 |
|
<section title="Checking for lost instrument files" anchor="FIND LOST DB_INSTRUMENT_FILES"> |
6205 |
|
<t>The front-end can retrieve the list of all instrument files in the instruments database |
6206 |
|
that don't exist in the filesystem by sending the following command:</t> |
6207 |
|
<t> |
6208 |
|
<list> |
6209 |
|
<t>FIND LOST DB_INSTRUMENT_FILES</t> |
6210 |
|
</list> |
6211 |
|
</t> |
6212 |
|
|
6213 |
|
<t>Possible Answers:</t> |
6214 |
|
<t> |
6215 |
|
<list> |
6216 |
|
<t>A comma separated list with the absolute path names |
6217 |
|
(encapsulated into apostrophes) of all lost instrument files.</t> |
6218 |
|
<t>"ERR:<error-code>:<error-message>" - |
6219 |
|
<list> |
6220 |
|
<t>in case it failed, providing an appropriate error code and error message.</t> |
6221 |
|
</list> |
6222 |
|
</t> |
6223 |
|
</list> |
6224 |
|
</t> |
6225 |
|
<t>Example:</t> |
6226 |
|
<t> |
6227 |
|
<list> |
6228 |
|
<t>C: "FIND LOST DB_INSTRUMENT_FILES"</t> |
6229 |
|
<t>S: "'/gigs/Bosendorfer 290.gig','/gigs/Steinway D.gig','/gigs/Free Piano.gig'"</t> |
6230 |
|
</list> |
6231 |
|
</t> |
6232 |
|
</section> |
6233 |
|
|
6234 |
|
<section title="Replacing an instrument file" anchor="SET DB_INSTRUMENT FILE_PATH"> |
6235 |
|
<t>The front-end can substitute all occurrences of an instrument file |
6236 |
|
in the instruments database with a new one by sending the following command:</t> |
6237 |
|
<t> |
6238 |
|
<list> |
6239 |
|
<t>SET DB_INSTRUMENT FILE_PATH <old_path> <new_path></t> |
6240 |
|
</list> |
6241 |
|
</t> |
6242 |
|
<t>Where <old_path> is the absolute path name of the instrument file |
6243 |
|
to substitute with <new_path>.</t> |
6244 |
|
|
6245 |
|
<t>Possible Answers:</t> |
6246 |
|
<t> |
6247 |
|
<list> |
6248 |
|
<t>"OK" - |
6249 |
|
<list> |
6250 |
|
<t>on success</t> |
6251 |
|
</list> |
6252 |
|
</t> |
6253 |
|
<t>"ERR:<error-code>:<error-message>" - |
6254 |
|
<list> |
6255 |
|
<t>in case it failed, providing an appropriate error code and error message.</t> |
6256 |
|
</list> |
6257 |
|
</t> |
6258 |
|
</list> |
6259 |
|
</t> |
6260 |
|
|
6261 |
|
<t>Example:</t> |
6262 |
|
<t> |
6263 |
|
<list> |
6264 |
|
<t>C: "SET DB_INSTRUMENT FILE_PATH '/gigs/Bosendorfer 290.gig' '/gigs/pianos/Bosendorfer 290.gig'"</t> |
6265 |
|
<t>S: "OK"</t> |
6266 |
|
</list> |
6267 |
|
</t> |
6268 |
|
</section> |
6269 |
|
|
6270 |
</section> |
</section> |
6271 |
|
|
6272 |
|
|
6505 |
vendor of the instrument</t> |
vendor of the instrument</t> |
6506 |
</list> |
</list> |
6507 |
</t> |
</t> |
6508 |
|
<t>KEY_BINDINGS - |
6509 |
|
<list> |
6510 |
|
<t>comma separated list of integer values representing |
6511 |
|
the instrument's key mapping in the range between 0 .. 127, |
6512 |
|
reflecting the analog meaning of the MIDI specification.</t> |
6513 |
|
</list> |
6514 |
|
</t> |
6515 |
|
<t>KEYSWITCH_BINDINGS - |
6516 |
|
<list> |
6517 |
|
<t>comma separated list of integer values representing |
6518 |
|
the instrument's keyswitch mapping in the range between 0 .. 127, |
6519 |
|
reflecting the analog meaning of the MIDI specification.</t> |
6520 |
|
</list> |
6521 |
|
</t> |
6522 |
</list> |
</list> |
6523 |
</t> |
</t> |
6524 |
</list> |
</list> |
6627 |
</t> |
</t> |
6628 |
<t>/ FORMAT SP format_instruction |
<t>/ FORMAT SP format_instruction |
6629 |
</t> |
</t> |
6630 |
|
<t>/ SEND SP send_instruction |
6631 |
|
</t> |
6632 |
<t>/ RESET |
<t>/ RESET |
6633 |
</t> |
</t> |
6634 |
<t>/ QUIT |
<t>/ QUIT |
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 |
6675 |
</t> |
</t> |
6676 |
<t>/ CHANNEL_COUNT |
<t>/ CHANNEL_COUNT |
6677 |
</t> |
</t> |
6678 |
|
<t>/ CHANNEL_MIDI |
6679 |
|
</t> |
6680 |
|
<t>/ DEVICE_MIDI |
6681 |
|
</t> |
6682 |
<t>/ VOICE_COUNT |
<t>/ VOICE_COUNT |
6683 |
</t> |
</t> |
6684 |
<t>/ STREAM_COUNT |
<t>/ STREAM_COUNT |
6731 |
</t> |
</t> |
6732 |
<t>/ CHANNEL_COUNT |
<t>/ CHANNEL_COUNT |
6733 |
</t> |
</t> |
6734 |
|
<t>/ CHANNEL_MIDI |
6735 |
|
</t> |
6736 |
|
<t>/ DEVICE_MIDI |
6737 |
|
</t> |
6738 |
<t>/ VOICE_COUNT |
<t>/ VOICE_COUNT |
6739 |
</t> |
</t> |
6740 |
<t>/ STREAM_COUNT |
<t>/ STREAM_COUNT |
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 |
6937 |
</t> |
</t> |
6938 |
<t>/ DB_INSTRUMENT SP DESCRIPTION SP db_path SP stringval_escaped |
<t>/ DB_INSTRUMENT SP DESCRIPTION SP db_path SP stringval_escaped |
6939 |
</t> |
</t> |
6940 |
|
<t>/ DB_INSTRUMENT SP FILE_PATH SP filename SP filename |
6941 |
|
</t> |
6942 |
<t>/ ECHO SP boolean |
<t>/ ECHO SP boolean |
6943 |
</t> |
</t> |
6944 |
<t>/ VOLUME SP volume_value |
<t>/ VOLUME SP volume_value |
6945 |
</t> |
</t> |
6946 |
|
<t>/ VOICES SP number |
6947 |
|
</t> |
6948 |
|
<t>/ STREAMS SP number |
6949 |
|
</t> |
6950 |
</list> |
</list> |
6951 |
</t> |
</t> |
6952 |
<t>create_instruction = |
<t>create_instruction = |
6989 |
</t> |
</t> |
6990 |
<t>/ DB_INSTRUMENT_DIRECTORIES SP db_path SP query_val_list |
<t>/ DB_INSTRUMENT_DIRECTORIES SP db_path SP query_val_list |
6991 |
</t> |
</t> |
6992 |
|
<t>/ LOST SP DB_INSTRUMENT_FILES |
6993 |
|
</t> |
6994 |
</list> |
</list> |
6995 |
</t> |
</t> |
6996 |
<t>move_instruction = |
<t>move_instruction = |
7129 |
</t> |
</t> |
7130 |
</list> |
</list> |
7131 |
</t> |
</t> |
7132 |
|
<t>send_instruction = |
7133 |
|
<list> |
7134 |
|
<t>CHANNEL SP MIDI_DATA SP string SP sampler_channel SP number SP number |
7135 |
|
</t> |
7136 |
|
</list> |
7137 |
|
</t> |
7138 |
<t>load_instr_args = |
<t>load_instr_args = |
7139 |
<list> |
<list> |
7140 |
<t>filename SP instrument_index SP sampler_channel |
<t>filename SP instrument_index SP sampler_channel |
7392 |
<t><xref target="MOVE DB_INSTRUMENT_DIRECTORY">"MOVE DB_INSTRUMENT_DIRECTORY"</xref></t> |
<t><xref target="MOVE DB_INSTRUMENT_DIRECTORY">"MOVE DB_INSTRUMENT_DIRECTORY"</xref></t> |
7393 |
<t><xref target="COPY DB_INSTRUMENT">"COPY DB_INSTRUMENT"</xref></t> |
<t><xref target="COPY DB_INSTRUMENT">"COPY DB_INSTRUMENT"</xref></t> |
7394 |
<t><xref target="COPY DB_INSTRUMENT_DIRECTORY">"COPY DB_INSTRUMENT_DIRECTORY"</xref></t> |
<t><xref target="COPY DB_INSTRUMENT_DIRECTORY">"COPY DB_INSTRUMENT_DIRECTORY"</xref></t> |
7395 |
|
<t><xref target="FIND LOST DB_INSTRUMENT_FILES">"FIND LOST DB_INSTRUMENT_FILES"</xref></t> |
7396 |
|
<t><xref target="SET DB_INSTRUMENT FILE_PATH">"SET DB_INSTRUMENT FILE_PATH"</xref></t> |
7397 |
<t><xref target="GET FILE INSTRUMENTS">"GET FILE INSTRUMENTS"</xref></t> |
<t><xref target="GET FILE INSTRUMENTS">"GET FILE INSTRUMENTS"</xref></t> |
7398 |
<t><xref target="LIST FILE INSTRUMENTS">"LIST FILE INSTRUMENTS"</xref></t> |
<t><xref target="LIST FILE INSTRUMENTS">"LIST FILE INSTRUMENTS"</xref></t> |
7399 |
<t><xref target="GET FILE INSTRUMENT INFO">"GET FILE INSTRUMENT INFO"</xref></t> |
<t><xref target="GET FILE INSTRUMENT INFO">"GET FILE INSTRUMENT INFO"</xref></t> |
7550 |
of sampler channels.</t> |
of sampler channels.</t> |
7551 |
</section> |
</section> |
7552 |
|
|
7553 |
|
<section title="MIDI data on a sampler channel arrived" anchor="SUBSCRIBE CHANNEL_MIDI"> |
7554 |
|
<t>Client may want to be notified when MIDI data arrive on sampler channels on |
7555 |
|
back-end side, by issuing the following command:</t> |
7556 |
|
<t> |
7557 |
|
<list> |
7558 |
|
<t>SUBSCRIBE CHANNEL_MIDI</t> |
7559 |
|
</list> |
7560 |
|
</t> |
7561 |
|
<t>Server will start sending one of the the following notification messages:</t> |
7562 |
|
<t> |
7563 |
|
<list> |
7564 |
|
<t>"NOTIFY:CHANNEL_MIDI:<channel-id> NOTE_ON <note> <velocity>"</t> |
7565 |
|
<t>"NOTIFY:CHANNEL_MIDI:<channel-id> NOTE_OFF <note> <velocity>"</t> |
7566 |
|
</list> |
7567 |
|
</t> |
7568 |
|
<t>where <channel-id> will be replaced by the ID of the sampler channel where the MIDI |
7569 |
|
data arrived. <note> and <velocity> are integer values in the range between |
7570 |
|
0 .. 127, reflecting the analog meaning of the MIDI specification. |
7571 |
|
</t> |
7572 |
|
<t>CAUTION: no guarantee whatsoever will be made that MIDI events are actually all |
7573 |
|
delivered by this mechanism! With other words: events could be lost at any time! |
7574 |
|
This restriction was made to keep the RT-safeness of the backend's MIDI and audio |
7575 |
|
thread unaffected by this feature.</t> |
7576 |
|
</section> |
7577 |
|
|
7578 |
|
<section title="MIDI data on a MIDI input device arrived" anchor="SUBSCRIBE DEVICE_MIDI"> |
7579 |
|
<t>Client may want to be notified when MIDI data arrive on MIDI input devices by issuing the following command:</t> |
7580 |
|
<t> |
7581 |
|
<list> |
7582 |
|
<t>SUBSCRIBE DEVICE_MIDI</t> |
7583 |
|
</list> |
7584 |
|
</t> |
7585 |
|
<t>Server will start sending one of the the following notification messages:</t> |
7586 |
|
<t> |
7587 |
|
<list> |
7588 |
|
<t>"NOTIFY:DEVICE_MIDI:<device-id> <port-id> NOTE_ON <note> <velocity>"</t> |
7589 |
|
<t>"NOTIFY:DEVICE_MIDI:<device-id> <port-id> NOTE_OFF <note> <velocity>"</t> |
7590 |
|
</list> |
7591 |
|
</t> |
7592 |
|
<t>where <device-id> <port-id> will be replaced |
7593 |
|
by the IDs of the respective MIDI input device and the device's MIDI port where the MIDI |
7594 |
|
data arrived. <note> and <velocity> are integer values in the range between |
7595 |
|
0 .. 127, reflecting the analog meaning of the MIDI specification. |
7596 |
|
</t> |
7597 |
|
<t>CAUTION: no guarantee whatsoever will be made that MIDI events are actually all |
7598 |
|
delivered by this mechanism! With other words: events could be lost at any time! |
7599 |
|
This restriction was made to keep the RT-safeness of the backend's MIDI and audio |
7600 |
|
thread unaffected by this feature.</t> |
7601 |
|
</section> |
7602 |
|
|
7603 |
<section title="Number of active voices changed" anchor="SUBSCRIBE VOICE_COUNT"> |
<section title="Number of active voices changed" anchor="SUBSCRIBE VOICE_COUNT"> |
7604 |
<t>Client may want to be notified when the number of voices on the |
<t>Client may want to be notified when the number of voices on the |
7605 |
back-end changes by issuing the following command:</t> |
back-end changes by issuing the following command:</t> |
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 |
|
|