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.2"> |
<rfc category="std" ipr="full3978" docName="LSCP 1.2cvs"> |
20 |
<front> |
<front> |
21 |
<title>LinuxSampler Control Protocol</title> |
<title>LinuxSampler Control Protocol (draft)</title> |
22 |
<author initials='C.S.' surname="Schoenebeck" fullname='C. |
<author initials='C.S.' surname="Schoenebeck" fullname='C. |
23 |
Schoenebeck'> |
Schoenebeck'> |
24 |
<organization> |
<organization> |
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="March" year="2007"/> |
<date month="October" year="2007"/> |
38 |
<workgroup>LinuxSampler Developers</workgroup> |
<workgroup>LinuxSampler Developers</workgroup> |
39 |
<keyword>LSCP</keyword> |
<keyword>LSCP</keyword> |
40 |
<abstract> |
<abstract> |
61 |
(front-end) and server (LinuxSampler) respectively. Lines in |
(front-end) and server (LinuxSampler) respectively. Lines in |
62 |
examples must be interpreted as every line being CRLF |
examples must be interpreted as every line being CRLF |
63 |
terminated (carriage return character followed by line feed |
terminated (carriage return character followed by line feed |
64 |
character as defined in the ASCII standard), thus the following |
character as defined in the ASCII standard <xref target="RFC20"/>), |
65 |
example:</t> |
thus the following example:</t> |
66 |
|
|
67 |
<t> |
<t> |
68 |
<list> |
<list> |
2061 |
or <xref target="LIST MIDI_INPUT_DEVICES">"LIST MIDI_INPUT_DEVICES"</xref> |
or <xref target="LIST MIDI_INPUT_DEVICES">"LIST MIDI_INPUT_DEVICES"</xref> |
2062 |
command, <port> by the MIDI port number, <key> by the name of |
command, <port> by the MIDI port number, <key> by the name of |
2063 |
the parameter to change and <value> by the new value for this |
the parameter to change and <value> by the new value for this |
2064 |
parameter.</t> |
parameter (encapsulated into apostrophes) or NONE (not encapsulated into apostrophes) |
2065 |
|
for specifying no value for parameters allowing a list of values.</t> |
2066 |
|
|
2067 |
<t>Possible Answers:</t> |
<t>Possible Answers:</t> |
2068 |
<t> |
<t> |
2089 |
<t>Example:</t> |
<t>Example:</t> |
2090 |
<t> |
<t> |
2091 |
<list> |
<list> |
2092 |
<t></t> |
<t>C: "SET MIDI_INPUT_PORT_PARAMETER 0 0 ALSA_SEQ_BINDINGS='20:0'"</t> |
2093 |
|
<t>S: "OK"</t> |
2094 |
|
</list> |
2095 |
|
</t> |
2096 |
|
<t> |
2097 |
|
<list> |
2098 |
|
<t>C: "SET MIDI_INPUT_PORT_PARAMETER 0 0 ALSA_SEQ_BINDINGS=NONE"</t> |
2099 |
|
<t>S: "OK"</t> |
2100 |
</list> |
</list> |
2101 |
</t> |
</t> |
2102 |
</section> |
</section> |
2121 |
number of the sampler channel the instrument should be assigned to. |
number of the sampler channel the instrument should be assigned to. |
2122 |
Each sampler channel can only have one instrument.</t> |
Each sampler channel can only have one instrument.</t> |
2123 |
|
|
2124 |
|
<t>Notice: since LSCP 1.2 the <filename> argument supports |
2125 |
|
escape characters for special characters (see chapter |
2126 |
|
"<xref target="character_set">Character Set and Escape Sequences</xref>" |
2127 |
|
for details) and accordingly backslash characters in the filename |
2128 |
|
MUST now be escaped as well!</t> |
2129 |
|
|
2130 |
<t>The difference between regular and NON_MODAL versions of the command |
<t>The difference between regular and NON_MODAL versions of the command |
2131 |
is that the regular command returns OK only after the instrument has been |
is that the regular command returns OK only after the instrument has been |
2132 |
fully loaded and the channel is ready to be used while NON_MODAL version |
fully loaded and the channel is ready to be used while NON_MODAL version |
2443 |
<list> |
<list> |
2444 |
<t>DESCRIPTION - |
<t>DESCRIPTION - |
2445 |
<list> |
<list> |
2446 |
<t>arbitrary description text about the engine</t> |
<t>arbitrary description text about the engine |
2447 |
|
(note that the character string may contain |
2448 |
|
<xref target="character_set">escape sequences</xref>)</t> |
2449 |
</list> |
</list> |
2450 |
</t> |
</t> |
2451 |
<t>VERSION - |
<t>VERSION - |
2529 |
<list> |
<list> |
2530 |
<t>the file name of the loaded instrument, "NONE" if |
<t>the file name of the loaded instrument, "NONE" if |
2531 |
there's no instrument yet loaded for this sampler |
there's no instrument yet loaded for this sampler |
2532 |
channel</t> |
channel (note: since LSCP 1.2 this path may contain |
2533 |
|
<xref target="character_set">escape sequences</xref>)</t> |
2534 |
</list> |
</list> |
2535 |
</t> |
</t> |
2536 |
<t>INSTRUMENT_NR - |
<t>INSTRUMENT_NR - |
2540 |
</t> |
</t> |
2541 |
<t>INSTRUMENT_NAME - |
<t>INSTRUMENT_NAME - |
2542 |
<list> |
<list> |
2543 |
<t>the instrument name of the loaded instrument</t> |
<t>the instrument name of the loaded instrument |
2544 |
|
(note: since LSCP 1.2 this character string may contain |
2545 |
|
<xref target="character_set">escape sequences</xref>)</t> |
2546 |
</list> |
</list> |
2547 |
</t> |
</t> |
2548 |
<t>INSTRUMENT_STATUS - |
<t>INSTRUMENT_STATUS - |
3260 |
sampler channel on which the effect send should be created on, <midi-ctrl> |
sampler channel on which the effect send should be created on, <midi-ctrl> |
3261 |
is a number between 0..127 defining the MIDI controller which can alter the |
is a number between 0..127 defining the MIDI controller which can alter the |
3262 |
effect send level and <name> is an optional argument defining a name |
effect send level and <name> is an optional argument defining a name |
3263 |
for the effect send entity. The name does not have to be unique.</t> |
for the effect send entity. The name does not have to be unique, but MUST be |
3264 |
|
encapsulated into apostrophes and supports escape sequences as described in chapter |
3265 |
|
"<xref target="character_set">Character Set and Escape Sequences</xref>".</t> |
3266 |
|
|
3267 |
<t>By default, that is as initial routing, the effect send's audio channels |
<t>By default, that is as initial routing, the effect send's audio channels |
3268 |
are automatically routed to the last audio channels of the sampler channel's |
are automatically routed to the last audio channels of the sampler channel's |
3452 |
<list> |
<list> |
3453 |
<t>NAME - |
<t>NAME - |
3454 |
<list> |
<list> |
3455 |
<t>name of the effect send entity</t> |
<t>name of the effect send entity |
3456 |
|
(note that this character string may contain |
3457 |
|
<xref target="character_set">escape sequences</xref>)</t> |
3458 |
</list> |
</list> |
3459 |
</t> |
</t> |
3460 |
<t>MIDI_CONTROLLER - |
<t>MIDI_CONTROLLER - |
3517 |
as returned by the <xref target="CREATE FX_SEND">"CREATE FX_SEND"</xref> |
as returned by the <xref target="CREATE FX_SEND">"CREATE FX_SEND"</xref> |
3518 |
or <xref target="LIST FX_SENDS">"LIST FX_SENDS"</xref> command and |
or <xref target="LIST FX_SENDS">"LIST FX_SENDS"</xref> command and |
3519 |
<name> is the new name of the effect send entity, which |
<name> is the new name of the effect send entity, which |
3520 |
does not have to be unique.</t> |
does not have to be unique (name MUST be encapsulated into apostrophes |
3521 |
|
and supports escape sequences as described in chapter |
3522 |
|
"<xref target="character_set">Character Set and Escape Sequences</xref>"). |
3523 |
|
</t> |
3524 |
|
|
3525 |
<t>Possible Answers:</t> |
<t>Possible Answers:</t> |
3526 |
<t> |
<t> |
3971 |
<list> |
<list> |
3972 |
<t>DESCRIPTION - |
<t>DESCRIPTION - |
3973 |
<list> |
<list> |
3974 |
<t>arbitrary textual description about the sampler</t> |
<t>arbitrary textual description about the sampler |
3975 |
|
(note that the character string may contain |
3976 |
|
<xref target="character_set">escape sequences</xref>)</t> |
3977 |
</list> |
</list> |
3978 |
</t> |
</t> |
3979 |
<t>VERSION - |
<t>VERSION - |
3987 |
complies with (see <xref target="LSCP versioning" /> for details)</t> |
complies with (see <xref target="LSCP versioning" /> for details)</t> |
3988 |
</list> |
</list> |
3989 |
</t> |
</t> |
3990 |
|
<t>INSTRUMENTS_DB_SUPPORT - |
3991 |
|
<list> |
3992 |
|
<t>either yes or no, specifies whether the |
3993 |
|
sampler is build with instruments database support.</t> |
3994 |
|
</list> |
3995 |
|
</t> |
3996 |
</list> |
</list> |
3997 |
</t> |
</t> |
3998 |
</list> |
</list> |
4089 |
cause the sampler to switch to the respective instrument as |
cause the sampler to switch to the respective instrument as |
4090 |
reflected by the current MIDI instrument map.</t> |
reflected by the current MIDI instrument map.</t> |
4091 |
|
|
4092 |
<section title="Create a new MIDI instrument map" anchor="ADD MIDI_INSTRUMENT MAP"> |
<section title="Create a new MIDI instrument map" anchor="ADD MIDI_INSTRUMENT_MAP"> |
4093 |
<t>The front-end can add a new MIDI instrument map by sending |
<t>The front-end can add a new MIDI instrument map by sending |
4094 |
the following command:</t> |
the following command:</t> |
4095 |
<t> |
<t> |
4099 |
</t> |
</t> |
4100 |
<t>Where <name> is an optional argument allowing to |
<t>Where <name> is an optional argument allowing to |
4101 |
assign a custom name to the new map. MIDI instrument Map |
assign a custom name to the new map. MIDI instrument Map |
4102 |
names do not have to be unique.</t> |
names do not have to be unique, but MUST be encapsulated |
4103 |
|
into apostrophes and support escape sequences as described |
4104 |
|
in chapter "<xref target="character_set">Character Set and Escape Sequences</xref>". |
4105 |
|
</t> |
4106 |
|
|
4107 |
<t>Possible Answers:</t> |
<t>Possible Answers:</t> |
4108 |
<t> |
<t> |
4273 |
<t>NAME - |
<t>NAME - |
4274 |
<list> |
<list> |
4275 |
<t>custom name of the given map, |
<t>custom name of the given map, |
4276 |
which does not have to be unique</t> |
which does not have to be unique |
4277 |
|
(note that this character string may contain |
4278 |
|
<xref target="character_set">escape sequences</xref>)</t> |
4279 |
</list> |
</list> |
4280 |
</t> |
</t> |
4281 |
<t>DEFAULT - |
<t>DEFAULT - |
4311 |
</t> |
</t> |
4312 |
<t>Where <map> is the numerical ID of the map and |
<t>Where <map> is the numerical ID of the map and |
4313 |
<name> the new custom name of the map, which does not |
<name> the new custom name of the map, which does not |
4314 |
have to be unique.</t> |
have to be unique (name MUST be encapsulated into apostrophes |
4315 |
|
and supports escape sequences as described in chapter |
4316 |
|
"<xref target="character_set">Character Set and Escape Sequences</xref>"). |
4317 |
|
</t> |
4318 |
|
|
4319 |
<t>Possible Answers:</t> |
<t>Possible Answers:</t> |
4320 |
<t> |
<t> |
4361 |
index, <engine_name> a sampler engine name as returned by |
index, <engine_name> a sampler engine name as returned by |
4362 |
the <xref target="LIST AVAILABLE_ENGINES">"LIST AVAILABLE_ENGINES"</xref> |
the <xref target="LIST AVAILABLE_ENGINES">"LIST AVAILABLE_ENGINES"</xref> |
4363 |
command (not encapsulated into apostrophes), <filename> the name |
command (not encapsulated into apostrophes), <filename> the name |
4364 |
of the instrument's file to be deployed (encapsulated into apostrophes), |
of the instrument's file to be deployed (encapsulated into apostrophes, |
4365 |
|
supporting escape sequences as described in chapter |
4366 |
|
"<xref target="character_set">Character Set and Escape Sequences</xref>"), |
4367 |
<instrument_index> the index (integer value) of the instrument |
<instrument_index> the index (integer value) of the instrument |
4368 |
within the given file, <volume_value> reflects the master |
within the given file, <volume_value> reflects the master |
4369 |
volume of the instrument as optionally dotted number (where a |
volume of the instrument as optionally dotted number (where a |
4445 |
load modes of entries, the frontend should retrieve the actual |
load modes of entries, the frontend should retrieve the actual |
4446 |
mode by i.e. sending |
mode by i.e. sending |
4447 |
<xref target="GET MIDI_INSTRUMENT INFO">"GET MIDI_INSTRUMENT INFO"</xref> |
<xref target="GET MIDI_INSTRUMENT INFO">"GET MIDI_INSTRUMENT INFO"</xref> |
4448 |
command(s). Finally the OPTIONAL <name> argument allows to |
command(s). Finally the OPTIONAL <name> argument allows to set a custom name |
4449 |
set a custom name (encapsulated into apostrophes) for the mapping |
(encapsulated into apostrophes, supporting escape sequences as described in chapter |
4450 |
entry, useful for frontends for displaying an appropriate name for |
"<xref target="character_set">Character Set and Escape Sequences</xref>") for the |
4451 |
|
mapping entry, useful for frontends for displaying an appropriate name for |
4452 |
mapped instruments (using |
mapped instruments (using |
4453 |
<xref target="GET MIDI_INSTRUMENT INFO">"GET MIDI_INSTRUMENT INFO"</xref>). |
<xref target="GET MIDI_INSTRUMENT INFO">"GET MIDI_INSTRUMENT INFO"</xref>). |
4454 |
</t> |
</t> |
4672 |
name for this mapped instrument. It can be set and |
name for this mapped instrument. It can be set and |
4673 |
changed with the |
changed with the |
4674 |
<xref target="MAP MIDI_INSTRUMENT">"MAP MIDI_INSTRUMENT"</xref> |
<xref target="MAP MIDI_INSTRUMENT">"MAP MIDI_INSTRUMENT"</xref> |
4675 |
command and does not have to be unique.</t> |
command and does not have to be unique. |
4676 |
|
(note that this character string may contain |
4677 |
|
<xref target="character_set">escape sequences</xref>)</t> |
4678 |
</list> |
</list> |
4679 |
</t> |
</t> |
4680 |
<t>"ENGINE_NAME" - |
<t>"ENGINE_NAME" - |
4685 |
</t> |
</t> |
4686 |
<t>"INSTRUMENT_FILE" - |
<t>"INSTRUMENT_FILE" - |
4687 |
<list> |
<list> |
4688 |
<t>File name of the instrument.</t> |
<t>File name of the instrument |
4689 |
|
(note that this path may contain |
4690 |
|
<xref target="character_set">escape sequences</xref>).</t> |
4691 |
</list> |
</list> |
4692 |
</t> |
</t> |
4693 |
<t>"INSTRUMENT_NR" - |
<t>"INSTRUMENT_NR" - |
4699 |
<list> |
<list> |
4700 |
<t>Name of the loaded instrument as reflected by its file. |
<t>Name of the loaded instrument as reflected by its file. |
4701 |
In contrast to the "NAME" field, the "INSTRUMENT_NAME" field |
In contrast to the "NAME" field, the "INSTRUMENT_NAME" field |
4702 |
cannot be changed.</t> |
cannot be changed (note that this character string may contain |
4703 |
|
<xref target="character_set">escape sequences</xref>).</t> |
4704 |
</list> |
</list> |
4705 |
</t> |
</t> |
4706 |
<t>"LOAD_MODE" - |
<t>"LOAD_MODE" - |
4784 |
</section> |
</section> |
4785 |
</section> |
</section> |
4786 |
|
|
4787 |
|
|
4788 |
|
<section title="Managing Instruments Database" anchor="Managing Instruments Database"> |
4789 |
|
<t>The following commands describe how to use and manage |
4790 |
|
the instruments database.</t> |
4791 |
|
<t>Notice:</t> |
4792 |
|
<t> |
4793 |
|
<list> |
4794 |
|
<t>All command arguments representing a path or |
4795 |
|
instrument/directory name support escape sequences as described in chapter |
4796 |
|
"<xref target="character_set">Character Set and Escape Sequences</xref>". |
4797 |
|
</t> |
4798 |
|
<t>All occurrences of a forward slash in instrument and directory |
4799 |
|
names are escaped with its hex (\x2f) or octal (\057) escape sequence. |
4800 |
|
</t> |
4801 |
|
</list> |
4802 |
|
</t> |
4803 |
|
|
4804 |
|
<section title="Creating a new instrument directory" anchor="ADD DB_INSTRUMENT_DIRECTORY"> |
4805 |
|
<t>The front-end can add a new instrument directory to the |
4806 |
|
instruments database by sending the following command:</t> |
4807 |
|
<t> |
4808 |
|
<list> |
4809 |
|
<t>ADD DB_INSTRUMENT_DIRECTORY <dir></t> |
4810 |
|
</list> |
4811 |
|
</t> |
4812 |
|
<t>Where <dir> is the absolute path name of the directory |
4813 |
|
to be created (encapsulated into apostrophes).</t> |
4814 |
|
|
4815 |
|
<t>Possible Answers:</t> |
4816 |
|
<t> |
4817 |
|
<list> |
4818 |
|
<t>"OK" - |
4819 |
|
<list> |
4820 |
|
<t>on success</t> |
4821 |
|
</list> |
4822 |
|
</t> |
4823 |
|
<t>"ERR:<error-code>:<error-message>" - |
4824 |
|
<list> |
4825 |
|
<t>when the directory could not be created, which |
4826 |
|
can happen if the directory already exists or the |
4827 |
|
name contains not allowed symbols</t> |
4828 |
|
</list> |
4829 |
|
</t> |
4830 |
|
</list> |
4831 |
|
</t> |
4832 |
|
|
4833 |
|
<t>Examples:</t> |
4834 |
|
<t> |
4835 |
|
<list> |
4836 |
|
<t>C: "ADD DB_INSTRUMENT_DIRECTORY '/Piano Collection'"</t> |
4837 |
|
<t>S: "OK"</t> |
4838 |
|
</list> |
4839 |
|
</t> |
4840 |
|
</section> |
4841 |
|
|
4842 |
|
<section title="Deleting an instrument directory" anchor="REMOVE DB_INSTRUMENT_DIRECTORY"> |
4843 |
|
<t>The front-end can delete a particular instrument directory |
4844 |
|
from the instruments database by sending the following command:</t> |
4845 |
|
<t> |
4846 |
|
<list> |
4847 |
|
<t>REMOVE DB_INSTRUMENT_DIRECTORY [FORCE] <dir></t> |
4848 |
|
</list> |
4849 |
|
</t> |
4850 |
|
<t>Where <dir> is the absolute path name of the directory |
4851 |
|
to delete. The optional FORCE argument can be used to |
4852 |
|
force the deletion of a non-empty directory and all its content.</t> |
4853 |
|
|
4854 |
|
<t>Possible Answers:</t> |
4855 |
|
<t> |
4856 |
|
<list> |
4857 |
|
<t>"OK" - |
4858 |
|
<list> |
4859 |
|
<t>if the directory is deleted successfully</t> |
4860 |
|
</list> |
4861 |
|
</t> |
4862 |
|
<t>"ERR:<error-code>:<error-message>" - |
4863 |
|
<list> |
4864 |
|
<t>if the given directory does not exist, or |
4865 |
|
if trying to delete a non-empty directory, |
4866 |
|
without using the FORCE argument.</t> |
4867 |
|
</list> |
4868 |
|
</t> |
4869 |
|
</list> |
4870 |
|
</t> |
4871 |
|
|
4872 |
|
<t>Examples:</t> |
4873 |
|
<t> |
4874 |
|
<list> |
4875 |
|
<t>C: "REMOVE DB_INSTRUMENT_DIRECTORY FORCE '/Piano Collection'"</t> |
4876 |
|
<t>S: "OK"</t> |
4877 |
|
</list> |
4878 |
|
</t> |
4879 |
|
</section> |
4880 |
|
|
4881 |
|
<section title="Getting amount of instrument directories" anchor="GET DB_INSTRUMENT_DIRECTORIES"> |
4882 |
|
<t>The front-end can retrieve the current amount of |
4883 |
|
directories in a specific directory by sending the following command:</t> |
4884 |
|
<t> |
4885 |
|
<list> |
4886 |
|
<t>GET DB_INSTRUMENT_DIRECTORIES [RECURSIVE] <dir></t> |
4887 |
|
</list> |
4888 |
|
</t> |
4889 |
|
<t>Where <dir> should be replaced by the absolute path |
4890 |
|
name of the directory. If RECURSIVE is specified, the number of |
4891 |
|
all directories, including those located in subdirectories of the |
4892 |
|
specified directory, will be returned.</t> |
4893 |
|
|
4894 |
|
<t>Possible Answers:</t> |
4895 |
|
<t> |
4896 |
|
<list> |
4897 |
|
<t>The current number of instrument directories |
4898 |
|
in the specified directory.</t> |
4899 |
|
<t>"ERR:<error-code>:<error-message>" - |
4900 |
|
<list> |
4901 |
|
<t>if the given directory does not exist.</t> |
4902 |
|
</list> |
4903 |
|
</t> |
4904 |
|
</list> |
4905 |
|
</t> |
4906 |
|
|
4907 |
|
<t>Example:</t> |
4908 |
|
<t> |
4909 |
|
<list> |
4910 |
|
<t>C: "GET DB_INSTRUMENT_DIRECTORIES '/'"</t> |
4911 |
|
<t>S: "2"</t> |
4912 |
|
</list> |
4913 |
|
</t> |
4914 |
|
</section> |
4915 |
|
|
4916 |
|
<section title="Listing all directories in specific directory" anchor="LIST DB_INSTRUMENT_DIRECTORIES"> |
4917 |
|
<t>The front-end can retrieve the current list of directories |
4918 |
|
in specific directory by sending the following command:</t> |
4919 |
|
<t> |
4920 |
|
<list> |
4921 |
|
<t>LIST DB_INSTRUMENT_DIRECTORIES [RECURSIVE] <dir></t> |
4922 |
|
</list> |
4923 |
|
</t> |
4924 |
|
<t>Where <dir> should be replaced by the absolute path |
4925 |
|
name of the directory. If RECURSIVE is specified, the absolute path names |
4926 |
|
of all directories, including those located in subdirectories of the |
4927 |
|
specified directory, will be returned.</t> |
4928 |
|
|
4929 |
|
<t>Possible Answers:</t> |
4930 |
|
<t> |
4931 |
|
<list> |
4932 |
|
<t>A comma separated list of all instrument directories |
4933 |
|
(encapsulated into apostrophes) in the specified directory.</t> |
4934 |
|
<t>"ERR:<error-code>:<error-message>" - |
4935 |
|
<list> |
4936 |
|
<t>if the given directory does not exist.</t> |
4937 |
|
</list> |
4938 |
|
</t> |
4939 |
|
</list> |
4940 |
|
</t> |
4941 |
|
<t>Example:</t> |
4942 |
|
<t> |
4943 |
|
<list> |
4944 |
|
<t>C: "LIST DB_INSTRUMENT_DIRECTORIES '/'"</t> |
4945 |
|
<t>S: "'Piano Collection','Percussion Collection'"</t> |
4946 |
|
</list> |
4947 |
|
</t> |
4948 |
|
<t> |
4949 |
|
<list> |
4950 |
|
<t>C: "LIST DB_INSTRUMENT_DIRECTORIES RECURSIVE '/'"</t> |
4951 |
|
<t>S: "'/Piano Collection','/Piano Collection/Acoustic','/Piano Collection/Acoustic/New','/Percussion Collection'"</t> |
4952 |
|
</list> |
4953 |
|
</t> |
4954 |
|
</section> |
4955 |
|
|
4956 |
|
<section title="Getting instrument directory information" anchor="GET DB_INSTRUMENT_DIRECTORY INFO"> |
4957 |
|
<t>The front-end can ask for the current settings of an |
4958 |
|
instrument directory by sending the following command:</t> |
4959 |
|
<t> |
4960 |
|
<list> |
4961 |
|
<t>GET DB_INSTRUMENT_DIRECTORY INFO <dir></t> |
4962 |
|
</list> |
4963 |
|
</t> |
4964 |
|
<t>Where <dir> should be replaced by the absolute path |
4965 |
|
name of the directory the front-end is interested in.</t> |
4966 |
|
|
4967 |
|
<t>Possible Answers:</t> |
4968 |
|
<t> |
4969 |
|
<list> |
4970 |
|
<t>LinuxSampler will answer by sending a <CRLF> separated list. |
4971 |
|
Each answer line begins with the settings category name |
4972 |
|
followed by a colon and then a space character <SP> and finally |
4973 |
|
the info character string to that setting category. At the |
4974 |
|
moment the following categories are defined:</t> |
4975 |
|
|
4976 |
|
<t> |
4977 |
|
<list> |
4978 |
|
<t>DESCRIPTION - |
4979 |
|
<list> |
4980 |
|
<t>A brief description of the directory content. |
4981 |
|
Note that the character string may contain |
4982 |
|
<xref target="character_set">escape sequences</xref>.</t> |
4983 |
|
</list> |
4984 |
|
</t> |
4985 |
|
<t>CREATED - |
4986 |
|
<list> |
4987 |
|
<t>The creation date and time of the directory, |
4988 |
|
represented in "YYYY-MM-DD HH:MM:SS" format</t> |
4989 |
|
</list> |
4990 |
|
</t> |
4991 |
|
<t>MODIFIED - |
4992 |
|
<list> |
4993 |
|
<t>The date and time of the last modification of the |
4994 |
|
directory, represented in "YYYY-MM-DD HH:MM:SS" format</t> |
4995 |
|
</list> |
4996 |
|
</t> |
4997 |
|
</list> |
4998 |
|
</t> |
4999 |
|
</list> |
5000 |
|
</t> |
5001 |
|
<t>The mentioned fields above don't have to be in particular order.</t> |
5002 |
|
|
5003 |
|
<t>Example:</t> |
5004 |
|
<t> |
5005 |
|
<list> |
5006 |
|
<t>C: "GET DB_INSTRUMENT_DIRECTORY INFO '/Piano Collection'"</t> |
5007 |
|
<t>S: "DESCRIPTION: Piano collection of instruments in GigaSampler format."</t> |
5008 |
|
<t> "CREATED: 2007-02-05 10:23:12"</t> |
5009 |
|
<t> "MODIFIED: 2007-04-07 12:50:21"</t> |
5010 |
|
<t> "."</t> |
5011 |
|
</list> |
5012 |
|
</t> |
5013 |
|
</section> |
5014 |
|
|
5015 |
|
<section title="Renaming an instrument directory" anchor="SET DB_INSTRUMENT_DIRECTORY NAME"> |
5016 |
|
<t>The front-end can alter the name of a specific |
5017 |
|
instrument directory by sending the following command:</t> |
5018 |
|
<t> |
5019 |
|
<list> |
5020 |
|
<t>SET DB_INSTRUMENT_DIRECTORY NAME <dir> <name></t> |
5021 |
|
</list> |
5022 |
|
</t> |
5023 |
|
<t>Where <dir> is the absolute path name of the directory and |
5024 |
|
<name> is the new name for that directory.</t> |
5025 |
|
|
5026 |
|
<t>Possible Answers:</t> |
5027 |
|
<t> |
5028 |
|
<list> |
5029 |
|
<t>"OK" - |
5030 |
|
<list> |
5031 |
|
<t>on success</t> |
5032 |
|
</list> |
5033 |
|
</t> |
5034 |
|
<t>"ERR:<error-code>:<error-message>" - |
5035 |
|
<list> |
5036 |
|
<t>in case the given directory does not exists, |
5037 |
|
or if a directory with name equal to the new |
5038 |
|
name already exists.</t> |
5039 |
|
</list> |
5040 |
|
</t> |
5041 |
|
</list> |
5042 |
|
</t> |
5043 |
|
|
5044 |
|
<t>Example:</t> |
5045 |
|
<t> |
5046 |
|
<list> |
5047 |
|
<t>C: "SET DB_INSTRUMENT_DIRECTORY NAME '/Piano Collection/Acustic' 'Acoustic'"</t> |
5048 |
|
<t>S: "OK"</t> |
5049 |
|
</list> |
5050 |
|
</t> |
5051 |
|
</section> |
5052 |
|
|
5053 |
|
<section title="Moving an instrument directory" anchor="MOVE DB_INSTRUMENT_DIRECTORY"> |
5054 |
|
<t>The front-end can move a specific |
5055 |
|
instrument directory by sending the following command:</t> |
5056 |
|
<t> |
5057 |
|
<list> |
5058 |
|
<t>MOVE DB_INSTRUMENT_DIRECTORY <dir> <dst></t> |
5059 |
|
</list> |
5060 |
|
</t> |
5061 |
|
<t>Where <dir> is the absolute path name of the directory |
5062 |
|
to move and <dst> is the location where the directory will |
5063 |
|
be moved to.</t> |
5064 |
|
|
5065 |
|
<t>Possible Answers:</t> |
5066 |
|
<t> |
5067 |
|
<list> |
5068 |
|
<t>"OK" - |
5069 |
|
<list> |
5070 |
|
<t>on success</t> |
5071 |
|
</list> |
5072 |
|
</t> |
5073 |
|
<t>"ERR:<error-code>:<error-message>" - |
5074 |
|
<list> |
5075 |
|
<t>in case a given directory does not exists, |
5076 |
|
or if a directory with name equal to the name |
5077 |
|
of the specified directory already exists in |
5078 |
|
the destination directory. Error is also thrown |
5079 |
|
when trying to move a directory to a subdirectory |
5080 |
|
of itself.</t> |
5081 |
|
</list> |
5082 |
|
</t> |
5083 |
|
</list> |
5084 |
|
</t> |
5085 |
|
|
5086 |
|
<t>Example:</t> |
5087 |
|
<t> |
5088 |
|
<list> |
5089 |
|
<t>C: "MOVE DB_INSTRUMENT_DIRECTORY '/Acoustic' '/Piano Collection/Acoustic'"</t> |
5090 |
|
<t>S: "OK"</t> |
5091 |
|
</list> |
5092 |
|
</t> |
5093 |
|
</section> |
5094 |
|
|
5095 |
|
<section title="Copying instrument directories" anchor="COPY DB_INSTRUMENT_DIRECTORY"> |
5096 |
|
<t>The front-end can copy a specific |
5097 |
|
instrument directory by sending the following command:</t> |
5098 |
|
<t> |
5099 |
|
<list> |
5100 |
|
<t>COPY DB_INSTRUMENT_DIRECTORY <dir> <dst></t> |
5101 |
|
</list> |
5102 |
|
</t> |
5103 |
|
<t>Where <dir> is the absolute path name of the directory |
5104 |
|
to copy and <dst> is the location where the directory will |
5105 |
|
be copied to.</t> |
5106 |
|
|
5107 |
|
<t>Possible Answers:</t> |
5108 |
|
<t> |
5109 |
|
<list> |
5110 |
|
<t>"OK" - |
5111 |
|
<list> |
5112 |
|
<t>on success</t> |
5113 |
|
</list> |
5114 |
|
</t> |
5115 |
|
<t>"ERR:<error-code>:<error-message>" - |
5116 |
|
<list> |
5117 |
|
<t>in case a given directory does not exists, |
5118 |
|
or if a directory with name equal to the name |
5119 |
|
of the specified directory already exists in |
5120 |
|
the destination directory. Error is also thrown |
5121 |
|
when trying to copy a directory to a subdirectory |
5122 |
|
of itself.</t> |
5123 |
|
</list> |
5124 |
|
</t> |
5125 |
|
</list> |
5126 |
|
</t> |
5127 |
|
|
5128 |
|
<t>Example:</t> |
5129 |
|
<t> |
5130 |
|
<list> |
5131 |
|
<t>C: "COPY DB_INSTRUMENT_DIRECTORY '/Piano Collection/Acoustic' '/Acoustic/Pianos'"</t> |
5132 |
|
<t>S: "OK"</t> |
5133 |
|
</list> |
5134 |
|
</t> |
5135 |
|
</section> |
5136 |
|
|
5137 |
|
<section title="Changing the description of directory" anchor="SET DB_INSTRUMENT_DIRECTORY DESCRIPTION"> |
5138 |
|
<t>The front-end can alter the description of a specific |
5139 |
|
instrument directory by sending the following command:</t> |
5140 |
|
<t> |
5141 |
|
<list> |
5142 |
|
<t>SET DB_INSTRUMENT_DIRECTORY DESCRIPTION <dir> <desc></t> |
5143 |
|
</list> |
5144 |
|
</t> |
5145 |
|
<t>Where <dir> is the absolute path name of the directory and |
5146 |
|
<desc> is the new description for the directory |
5147 |
|
(encapsulated into apostrophes, supporting escape sequences as described in chapter |
5148 |
|
"<xref target="character_set">Character Set and Escape Sequences</xref>").</t> |
5149 |
|
|
5150 |
|
<t>Possible Answers:</t> |
5151 |
|
<t> |
5152 |
|
<list> |
5153 |
|
<t>"OK" - |
5154 |
|
<list> |
5155 |
|
<t>on success</t> |
5156 |
|
</list> |
5157 |
|
</t> |
5158 |
|
<t>"ERR:<error-code>:<error-message>" - |
5159 |
|
<list> |
5160 |
|
<t>in case the given directory does not exists.</t> |
5161 |
|
</list> |
5162 |
|
</t> |
5163 |
|
</list> |
5164 |
|
</t> |
5165 |
|
|
5166 |
|
<t>Example:</t> |
5167 |
|
<t> |
5168 |
|
<list> |
5169 |
|
<t>C: "SET DB_INSTRUMENT_DIRECTORY DESCRIPTION '/Piano Collection' 'A collection of piano instruments in various format.'"</t> |
5170 |
|
<t>S: "OK"</t> |
5171 |
|
</list> |
5172 |
|
</t> |
5173 |
|
</section> |
5174 |
|
|
5175 |
|
<section title="Finding directories" anchor="FIND DB_INSTRUMENT_DIRECTORIES"> |
5176 |
|
<t>The front-end can search for directories |
5177 |
|
in specific directory by sending the following command:</t> |
5178 |
|
<t> |
5179 |
|
<list> |
5180 |
|
<t>FIND DB_INSTRUMENT_DIRECTORIES [NON_RECURSIVE] <dir> <criteria-list></t> |
5181 |
|
</list> |
5182 |
|
</t> |
5183 |
|
<t>Where <dir> should be replaced by the absolute path |
5184 |
|
name of the directory to search in. If NON_RECURSIVE is specified, the |
5185 |
|
directories located in subdirectories of the specified directory will not |
5186 |
|
be searched. <criteria-list> is a list of search criterias |
5187 |
|
in form of "key1=val1 key2=val2 ...". The following criterias are |
5188 |
|
allowed:</t> |
5189 |
|
<t> |
5190 |
|
<t>NAME='<search-string>' |
5191 |
|
<list> |
5192 |
|
<t>Restricts the search to directories, which names |
5193 |
|
satisfy the supplied search string (encapsulated into apostrophes, |
5194 |
|
supporting escape sequences as described in chapter |
5195 |
|
"<xref target="character_set">Character Set and Escape Sequences</xref>").</t> |
5196 |
|
</list> |
5197 |
|
</t> |
5198 |
|
|
5199 |
|
<t>CREATED='[<date-after>]..[<date-before>]' |
5200 |
|
<list> |
5201 |
|
<t>Restricts the search to directories, which creation |
5202 |
|
date satisfies the specified period, where <date-after> |
5203 |
|
and <date-before> are in "YYYY-MM-DD HH:MM:SS" format. |
5204 |
|
If <date-after> is omitted the search is restricted to |
5205 |
|
directories created before <date-before>. If |
5206 |
|
<date-before> is omitted, the search is restricted |
5207 |
|
to directories created after <date-after>.</t> |
5208 |
|
</list> |
5209 |
|
</t> |
5210 |
|
|
5211 |
|
<t>MODIFIED='[<date-after>]..[<date-before>]' |
5212 |
|
<list> |
5213 |
|
<t>Restricts the search to directories, which |
5214 |
|
date of last modification satisfies the specified period, where |
5215 |
|
<date-after> and <date-before> are in "YYYY-MM-DD HH:MM:SS" |
5216 |
|
format. If <date-after> is omitted the search is restricted to |
5217 |
|
directories, which are last modified before <date-before>. If |
5218 |
|
<date-before> is omitted, the search is restricted to directories, |
5219 |
|
which are last modified after <date-after>.</t> |
5220 |
|
</list> |
5221 |
|
</t> |
5222 |
|
|
5223 |
|
<t>DESCRIPTION='<search-string>' |
5224 |
|
<list> |
5225 |
|
<t>Restricts the search to directories with description |
5226 |
|
that satisfies the supplied search string |
5227 |
|
(encapsulated into apostrophes, supporting escape |
5228 |
|
sequences as described in chapter |
5229 |
|
"<xref target="character_set">Character Set and Escape Sequences</xref>").</t> |
5230 |
|
</list> |
5231 |
|
</t> |
5232 |
|
</t> |
5233 |
|
|
5234 |
|
<t>Where <search-string> is either a regular expression, or a |
5235 |
|
word list separated with spaces for OR search and with '+' for AND search.</t> |
5236 |
|
|
5237 |
|
<t>Possible Answers:</t> |
5238 |
|
<t> |
5239 |
|
<list> |
5240 |
|
<t>A comma separated list with the absolute path names (encapsulated into |
5241 |
|
apostrophes) of all directories in the specified directory that satisfy |
5242 |
|
the supplied search criterias.</t> |
5243 |
|
<t>"ERR:<error-code>:<error-message>" - |
5244 |
|
<list> |
5245 |
|
<t>if the given directory does not exist.</t> |
5246 |
|
</list> |
5247 |
|
</t> |
5248 |
|
</list> |
5249 |
|
</t> |
5250 |
|
<t>Example:</t> |
5251 |
|
<t> |
5252 |
|
<list> |
5253 |
|
<t>C: "FIND DB_INSTRUMENT_DIRECTORIES '/' NAME='Piano'"</t> |
5254 |
|
<t>S: "'/Piano Collection'"</t> |
5255 |
|
</list> |
5256 |
|
</t> |
5257 |
|
<t> |
5258 |
|
<list> |
5259 |
|
<t>C: "FIND DB_INSTRUMENT_DIRECTORIES '/' CREATED='..2007-04-01 09:30:13'"</t> |
5260 |
|
<t>S: "'/Piano Collection','/Percussions'"</t> |
5261 |
|
</list> |
5262 |
|
</t> |
5263 |
|
</section> |
5264 |
|
|
5265 |
|
<section title="Adding instruments to the instruments database" anchor="ADD DB_INSTRUMENTS"> |
5266 |
|
<t>The front-end can add one or more instruments |
5267 |
|
to the instruments database by sending the following command:</t> |
5268 |
|
<t> |
5269 |
|
<list> |
5270 |
|
<t>ADD DB_INSTRUMENTS [NON_MODAL] [<mode>] <db_dir> <file_path> [<instr_index>]</t> |
5271 |
|
</list> |
5272 |
|
</t> |
5273 |
|
<t>Where <db_dir> is the absolute path name of a directory |
5274 |
|
(encapsulated into apostrophes) in the instruments database in which |
5275 |
|
only the new instruments (that are not already in the database) will |
5276 |
|
be added, <file_path> is the absolute path name of a file or |
5277 |
|
directory in the file system (encapsulated into apostrophes). In case |
5278 |
|
an instrument file is supplied, only the instruments in the specified |
5279 |
|
file will be added to the instruments database. If the optional |
5280 |
|
<instr_index> (the index of the instrument within the given file) |
5281 |
|
is supplied too, then only the specified instrument will be added. |
5282 |
|
In case a directory is supplied, the instruments in that directory |
5283 |
|
will be added. The OPTIONAL <mode> argument is only applied |
5284 |
|
when a directory is provided as <file_path> and specifies how the |
5285 |
|
scanning will be done and has exactly the following possibilities:</t> |
5286 |
|
<t> |
5287 |
|
<list> |
5288 |
|
<t>"RECURSIVE" - |
5289 |
|
<list> |
5290 |
|
<t>All instruments will be processed, including those |
5291 |
|
in the subdirectories, and the respective subdirectory |
5292 |
|
tree structure will be recreated in the instruments |
5293 |
|
database</t> |
5294 |
|
</list> |
5295 |
|
</t> |
5296 |
|
<t>"NON_RECURSIVE" - |
5297 |
|
<list> |
5298 |
|
<t>Only the instruments in the specified directory |
5299 |
|
will be added, the instruments in the subdirectories |
5300 |
|
will not be processed.</t> |
5301 |
|
</list> |
5302 |
|
</t> |
5303 |
|
<t>"FLAT" - |
5304 |
|
<list> |
5305 |
|
<t>All instruments will be processed, including those |
5306 |
|
in the subdirectories, but the respective subdirectory |
5307 |
|
structure will not be recreated in the instruments |
5308 |
|
database. All instruments will be added directly in |
5309 |
|
the specified database directory.</t> |
5310 |
|
</list> |
5311 |
|
</t> |
5312 |
|
</list> |
5313 |
|
</t> |
5314 |
|
|
5315 |
|
<t>The difference between regular and NON_MODAL versions of the command |
5316 |
|
is that the regular command returns when the scanning is finished |
5317 |
|
while NON_MODAL version returns immediately and a background process is launched. |
5318 |
|
The <xref target="GET DB_INSTRUMENTS_JOB INFO">GET DB_INSTRUMENTS_JOB INFO</xref> |
5319 |
|
command can be used to monitor the scanning progress.</t> |
5320 |
|
|
5321 |
|
<t>Possible Answers:</t> |
5322 |
|
<t> |
5323 |
|
<list> |
5324 |
|
<t>"OK" - |
5325 |
|
<list> |
5326 |
|
<t>on success when NON_MODAL is not supplied</t> |
5327 |
|
</list> |
5328 |
|
</t> |
5329 |
|
<t>"OK[<job-id>]" - |
5330 |
|
<list> |
5331 |
|
<t>on success when NON_MODAL is supplied, where <job-id> |
5332 |
|
is a numerical ID used to obtain status information about the job progress. |
5333 |
|
See <xref target="GET DB_INSTRUMENTS_JOB INFO">GET DB_INSTRUMENTS_JOB INFO</xref> |
5334 |
|
</t> |
5335 |
|
</list> |
5336 |
|
</t> |
5337 |
|
<t>"ERR:<error-code>:<error-message>" - |
5338 |
|
<list> |
5339 |
|
<t>if an invalid path is specified.</t> |
5340 |
|
</list> |
5341 |
|
</t> |
5342 |
|
</list> |
5343 |
|
</t> |
5344 |
|
|
5345 |
|
<t>Examples:</t> |
5346 |
|
<t> |
5347 |
|
<list> |
5348 |
|
<t>C: "ADD DB_INSTRUMENTS '/Piano Collection' '/home/me/gigs/PMI Bosendorfer 290.gig' 0"</t> |
5349 |
|
<t>S: "OK"</t> |
5350 |
|
</list> |
5351 |
|
</t> |
5352 |
|
</section> |
5353 |
|
|
5354 |
|
<section title="Removing an instrument" anchor="REMOVE DB_INSTRUMENT"> |
5355 |
|
<t>The front-end can remove a particular instrument |
5356 |
|
from the instruments database by sending the following command:</t> |
5357 |
|
<t> |
5358 |
|
<list> |
5359 |
|
<t>REMOVE DB_INSTRUMENT <instr_path></t> |
5360 |
|
</list> |
5361 |
|
</t> |
5362 |
|
<t>Where <instr_path> is the absolute path name |
5363 |
|
(in the instruments database) of the instrument to remove.</t> |
5364 |
|
|
5365 |
|
<t>Possible Answers:</t> |
5366 |
|
<t> |
5367 |
|
<list> |
5368 |
|
<t>"OK" - |
5369 |
|
<list> |
5370 |
|
<t>if the instrument is removed successfully</t> |
5371 |
|
</list> |
5372 |
|
</t> |
5373 |
|
<t>"ERR:<error-code>:<error-message>" - |
5374 |
|
<list> |
5375 |
|
<t>if the given path does not exist or |
5376 |
|
is a directory.</t> |
5377 |
|
</list> |
5378 |
|
</t> |
5379 |
|
</list> |
5380 |
|
</t> |
5381 |
|
|
5382 |
|
<t>Examples:</t> |
5383 |
|
<t> |
5384 |
|
<list> |
5385 |
|
<t>C: "REMOVE DB_INSTRUMENT '/Piano Collection/Bosendorfer 290'"</t> |
5386 |
|
<t>S: "OK"</t> |
5387 |
|
</list> |
5388 |
|
</t> |
5389 |
|
</section> |
5390 |
|
|
5391 |
|
<section title="Getting amount of instruments" anchor="GET DB_INSTRUMENTS"> |
5392 |
|
<t>The front-end can retrieve the current amount of |
5393 |
|
instruments in a specific directory by sending the following command:</t> |
5394 |
|
<t> |
5395 |
|
<list> |
5396 |
|
<t>GET DB_INSTRUMENTS [RECURSIVE] <dir></t> |
5397 |
|
</list> |
5398 |
|
</t> |
5399 |
|
<t>Where <dir> should be replaced by the absolute path name |
5400 |
|
of the directory. If RECURSIVE is specified, the number of all |
5401 |
|
instruments, including those located in subdirectories of the |
5402 |
|
specified directory, will be returned.</t> |
5403 |
|
|
5404 |
|
<t>Possible Answers:</t> |
5405 |
|
<t> |
5406 |
|
<list> |
5407 |
|
<t>The current number of instruments |
5408 |
|
in the specified directory.</t> |
5409 |
|
<t>"ERR:<error-code>:<error-message>" - |
5410 |
|
<list> |
5411 |
|
<t>if the given directory does not exist.</t> |
5412 |
|
</list> |
5413 |
|
</t> |
5414 |
|
</list> |
5415 |
|
</t> |
5416 |
|
|
5417 |
|
<t>Example:</t> |
5418 |
|
<t> |
5419 |
|
<list> |
5420 |
|
<t>C: "GET DB_INSTRUMENTS '/Piano Collection'"</t> |
5421 |
|
<t>S: "2"</t> |
5422 |
|
</list> |
5423 |
|
</t> |
5424 |
|
</section> |
5425 |
|
|
5426 |
|
<section title="Listing all instruments in specific directory" anchor="LIST DB_INSTRUMENTS"> |
5427 |
|
<t>The front-end can retrieve the current list of instruments |
5428 |
|
in specific directory by sending the following command:</t> |
5429 |
|
<t> |
5430 |
|
<list> |
5431 |
|
<t>LIST DB_INSTRUMENTS [RECURSIVE] <dir></t> |
5432 |
|
</list> |
5433 |
|
</t> |
5434 |
|
<t>Where <dir> should be replaced by the absolute path |
5435 |
|
name of the directory. If RECURSIVE is specified, the absolute path |
5436 |
|
names of all instruments, including those located in subdirectories |
5437 |
|
of the specified directory, will be returned.</t> |
5438 |
|
|
5439 |
|
<t>Possible Answers:</t> |
5440 |
|
<t> |
5441 |
|
<list> |
5442 |
|
<t>A comma separated list of all instruments |
5443 |
|
(encapsulated into apostrophes) in the specified directory.</t> |
5444 |
|
<t>"ERR:<error-code>:<error-message>" - |
5445 |
|
<list> |
5446 |
|
<t>if the given directory does not exist.</t> |
5447 |
|
</list> |
5448 |
|
</t> |
5449 |
|
</list> |
5450 |
|
</t> |
5451 |
|
<t>Example:</t> |
5452 |
|
<t> |
5453 |
|
<list> |
5454 |
|
<t>C: "LIST DB_INSTRUMENTS '/Piano Collection'"</t> |
5455 |
|
<t>S: "'Bosendorfer 290','Steinway D'"</t> |
5456 |
|
</list> |
5457 |
|
</t> |
5458 |
|
<t> |
5459 |
|
<list> |
5460 |
|
<t>C: "LIST DB_INSTRUMENTS RECURSIVE '/Piano Collection'"</t> |
5461 |
|
<t>S: "'/Piano Collection/Bosendorfer 290','/Piano Collection/Steinway D','/Piano Collection/Lite/Free Piano'"</t> |
5462 |
|
</list> |
5463 |
|
</t> |
5464 |
|
</section> |
5465 |
|
|
5466 |
|
<section title="Getting instrument information" anchor="GET DB_INSTRUMENT INFO"> |
5467 |
|
<t>The front-end can ask for the current settings of an |
5468 |
|
instrument by sending the following command:</t> |
5469 |
|
<t> |
5470 |
|
<list> |
5471 |
|
<t>GET DB_INSTRUMENT INFO <instr_path></t> |
5472 |
|
</list> |
5473 |
|
</t> |
5474 |
|
<t>Where <instr_path> should be replaced by the absolute path |
5475 |
|
name of the instrument the front-end is interested in.</t> |
5476 |
|
|
5477 |
|
<t>Possible Answers:</t> |
5478 |
|
<t> |
5479 |
|
<list> |
5480 |
|
<t>LinuxSampler will answer by sending a <CRLF> separated list. |
5481 |
|
Each answer line begins with the settings category name |
5482 |
|
followed by a colon and then a space character <SP> and finally |
5483 |
|
the info character string to that setting category. At the |
5484 |
|
moment the following categories are defined:</t> |
5485 |
|
|
5486 |
|
<t> |
5487 |
|
<list> |
5488 |
|
<t>INSTRUMENT_FILE - |
5489 |
|
<list> |
5490 |
|
<t>File name of the instrument. |
5491 |
|
Note that the character string may contain |
5492 |
|
<xref target="character_set">escape sequences</xref>.</t> |
5493 |
|
</list> |
5494 |
|
</t> |
5495 |
|
<t>INSTRUMENT_NR - |
5496 |
|
<list> |
5497 |
|
<t>Index of the instrument within the file.</t> |
5498 |
|
</list> |
5499 |
|
</t> |
5500 |
|
<t>FORMAT_FAMILY - |
5501 |
|
<list> |
5502 |
|
<t>The format family of the instrument.</t> |
5503 |
|
</list> |
5504 |
|
</t> |
5505 |
|
<t>FORMAT_VERSION - |
5506 |
|
<list> |
5507 |
|
<t>The format version of the instrument.</t> |
5508 |
|
</list> |
5509 |
|
</t> |
5510 |
|
<t>SIZE - |
5511 |
|
<list> |
5512 |
|
<t>The size of the instrument in bytes.</t> |
5513 |
|
</list> |
5514 |
|
</t> |
5515 |
|
<t>CREATED - |
5516 |
|
<list> |
5517 |
|
<t>The date and time when the instrument is added |
5518 |
|
in the instruments database, represented in |
5519 |
|
"YYYY-MM-DD HH:MM:SS" format</t> |
5520 |
|
</list> |
5521 |
|
</t> |
5522 |
|
<t>MODIFIED - |
5523 |
|
<list> |
5524 |
|
<t>The date and time of the last modification of the |
5525 |
|
instrument's database settings, represented in |
5526 |
|
"YYYY-MM-DD HH:MM:SS" format</t> |
5527 |
|
</list> |
5528 |
|
</t> |
5529 |
|
<t>DESCRIPTION - |
5530 |
|
<list> |
5531 |
|
<t>A brief description of the instrument. |
5532 |
|
Note that the character string may contain |
5533 |
|
<xref target="character_set">escape sequences</xref>.</t> |
5534 |
|
</list> |
5535 |
|
</t> |
5536 |
|
<t>IS_DRUM - |
5537 |
|
<list> |
5538 |
|
<t>either true or false, determines whether the |
5539 |
|
instrument is a drumkit or a chromatic instrument</t> |
5540 |
|
</list> |
5541 |
|
</t> |
5542 |
|
<t>PRODUCT - |
5543 |
|
<list> |
5544 |
|
<t>The product title of the instrument. |
5545 |
|
Note that the character string may contain |
5546 |
|
<xref target="character_set">escape sequences</xref>.</t> |
5547 |
|
</list> |
5548 |
|
</t> |
5549 |
|
<t>ARTISTS - |
5550 |
|
<list> |
5551 |
|
<t>Lists the artist names. |
5552 |
|
Note that the character string may contain |
5553 |
|
<xref target="character_set">escape sequences</xref>.</t> |
5554 |
|
</list> |
5555 |
|
</t> |
5556 |
|
<t>KEYWORDS - |
5557 |
|
<list> |
5558 |
|
<t>Provides a list of keywords that refer to the instrument. |
5559 |
|
Keywords are separated with semicolon and blank. |
5560 |
|
Note that the character string may contain |
5561 |
|
<xref target="character_set">escape sequences</xref>.</t> |
5562 |
|
</list> |
5563 |
|
</t> |
5564 |
|
</list> |
5565 |
|
</t> |
5566 |
|
</list> |
5567 |
|
</t> |
5568 |
|
<t>The mentioned fields above don't have to be in particular order.</t> |
5569 |
|
|
5570 |
|
<t>Example:</t> |
5571 |
|
<t> |
5572 |
|
<list> |
5573 |
|
<t>C: "GET DB_INSTRUMENT INFO '/Piano Collection/Bosendorfer 290'"</t> |
5574 |
|
<t>S: "INSTRUMENT_FILE: /home/me/gigs/Bosendorfer 290.gig"</t> |
5575 |
|
<t> "INSTRUMENT_NR: 0"</t> |
5576 |
|
<t> "FORMAT_FAMILY: GIG"</t> |
5577 |
|
<t> "FORMAT_VERSION: 2"</t> |
5578 |
|
<t> "SIZE: 2050871870"</t> |
5579 |
|
<t> "CREATED: 2007-02-05 10:23:12"</t> |
5580 |
|
<t> "MODIFIED: 2007-04-07 12:50:21"</t> |
5581 |
|
<t> "DESCRIPTION: "</t> |
5582 |
|
<t> "IS_DRUM: false"</t> |
5583 |
|
<t> "PRODUCT: GRANDIOSO Bosendorfer 290"</t> |
5584 |
|
<t> "ARTISTS: Post Musical Instruments"</t> |
5585 |
|
<t> "KEYWORDS: Bosendorfer"</t> |
5586 |
|
<t> "."</t> |
5587 |
|
</list> |
5588 |
|
</t> |
5589 |
|
</section> |
5590 |
|
|
5591 |
|
<section title="Renaming an instrument" anchor="SET DB_INSTRUMENT NAME"> |
5592 |
|
<t>The front-end can alter the name of a specific |
5593 |
|
instrument by sending the following command:</t> |
5594 |
|
<t> |
5595 |
|
<list> |
5596 |
|
<t>SET DB_INSTRUMENT NAME <instr> <name></t> |
5597 |
|
</list> |
5598 |
|
</t> |
5599 |
|
<t>Where <instr> is the absolute path name of the instrument and |
5600 |
|
<name> is the new name for that instrument.</t> |
5601 |
|
|
5602 |
|
<t>Possible Answers:</t> |
5603 |
|
<t> |
5604 |
|
<list> |
5605 |
|
<t>"OK" - |
5606 |
|
<list> |
5607 |
|
<t>on success</t> |
5608 |
|
</list> |
5609 |
|
</t> |
5610 |
|
<t>"ERR:<error-code>:<error-message>" - |
5611 |
|
<list> |
5612 |
|
<t>in case the given instrument does not exists, |
5613 |
|
or if an instrument with name equal to the new |
5614 |
|
name already exists.</t> |
5615 |
|
</list> |
5616 |
|
</t> |
5617 |
|
</list> |
5618 |
|
</t> |
5619 |
|
|
5620 |
|
<t>Example:</t> |
5621 |
|
<t> |
5622 |
|
<list> |
5623 |
|
<t>C: "SET DB_INSTRUMENT NAME '/Piano Collection/Bosendorfer' 'Bosendorfer 290'"</t> |
5624 |
|
<t>S: "OK"</t> |
5625 |
|
</list> |
5626 |
|
</t> |
5627 |
|
</section> |
5628 |
|
|
5629 |
|
<section title="Moving an instrument" anchor="MOVE DB_INSTRUMENT"> |
5630 |
|
<t>The front-end can move a specific instrument to another directory by |
5631 |
|
sending the following command:</t> |
5632 |
|
<t> |
5633 |
|
<list> |
5634 |
|
<t>MOVE DB_INSTRUMENT <instr> <dst></t> |
5635 |
|
</list> |
5636 |
|
</t> |
5637 |
|
<t>Where <instr> is the absolute path name of the instrument |
5638 |
|
to move and <dst> is the directory where the instrument will |
5639 |
|
be moved to.</t> |
5640 |
|
|
5641 |
|
<t>Possible Answers:</t> |
5642 |
|
<t> |
5643 |
|
<list> |
5644 |
|
<t>"OK" - |
5645 |
|
<list> |
5646 |
|
<t>on success</t> |
5647 |
|
</list> |
5648 |
|
</t> |
5649 |
|
<t>"ERR:<error-code>:<error-message>" - |
5650 |
|
<list> |
5651 |
|
<t>in case the given instrument does not exists, |
5652 |
|
or if an instrument with name equal to the name of the |
5653 |
|
specified instrument already exists in the destination |
5654 |
|
directory.</t> |
5655 |
|
</list> |
5656 |
|
</t> |
5657 |
|
</list> |
5658 |
|
</t> |
5659 |
|
|
5660 |
|
<t>Example:</t> |
5661 |
|
<t> |
5662 |
|
<list> |
5663 |
|
<t>C: "MOVE DB_INSTRUMENT '/Piano Collection/Bosendorfer 290' '/Piano Collection/Acoustic'"</t> |
5664 |
|
<t>S: "OK"</t> |
5665 |
|
</list> |
5666 |
|
</t> |
5667 |
|
</section> |
5668 |
|
|
5669 |
|
<section title="Copying instruments" anchor="COPY DB_INSTRUMENT"> |
5670 |
|
<t>The front-end can copy a specific instrument to another directory by |
5671 |
|
sending the following command:</t> |
5672 |
|
<t> |
5673 |
|
<list> |
5674 |
|
<t>COPY DB_INSTRUMENT <instr> <dst></t> |
5675 |
|
</list> |
5676 |
|
</t> |
5677 |
|
<t>Where <instr> is the absolute path name of the instrument |
5678 |
|
to copy and <dst> is the directory where the instrument will |
5679 |
|
be copied to.</t> |
5680 |
|
|
5681 |
|
<t>Possible Answers:</t> |
5682 |
|
<t> |
5683 |
|
<list> |
5684 |
|
<t>"OK" - |
5685 |
|
<list> |
5686 |
|
<t>on success</t> |
5687 |
|
</list> |
5688 |
|
</t> |
5689 |
|
<t>"ERR:<error-code>:<error-message>" - |
5690 |
|
<list> |
5691 |
|
<t>in case the given instrument does not exists, |
5692 |
|
or if an instrument with name equal to the name of the |
5693 |
|
specified instrument already exists in the destination |
5694 |
|
directory.</t> |
5695 |
|
</list> |
5696 |
|
</t> |
5697 |
|
</list> |
5698 |
|
</t> |
5699 |
|
|
5700 |
|
<t>Example:</t> |
5701 |
|
<t> |
5702 |
|
<list> |
5703 |
|
<t>C: "COPY DB_INSTRUMENT '/Piano Collection/Bosendorfer 290' '/Acoustic/Pianos/'"</t> |
5704 |
|
<t>S: "OK"</t> |
5705 |
|
</list> |
5706 |
|
</t> |
5707 |
|
</section> |
5708 |
|
|
5709 |
|
<section title="Changing the description of instrument" anchor="SET DB_INSTRUMENT DESCRIPTION"> |
5710 |
|
<t>The front-end can alter the description of a specific |
5711 |
|
instrument by sending the following command:</t> |
5712 |
|
<t> |
5713 |
|
<list> |
5714 |
|
<t>SET DB_INSTRUMENT DESCRIPTION <instr> <desc></t> |
5715 |
|
</list> |
5716 |
|
</t> |
5717 |
|
<t>Where <instr> is the absolute path name of the instrument and |
5718 |
|
<desc> is the new description for the instrument |
5719 |
|
(encapsulated into apostrophes, supporting escape sequences as described in chapter |
5720 |
|
"<xref target="character_set">Character Set and Escape Sequences</xref>").</t> |
5721 |
|
|
5722 |
|
<t>Possible Answers:</t> |
5723 |
|
<t> |
5724 |
|
<list> |
5725 |
|
<t>"OK" - |
5726 |
|
<list> |
5727 |
|
<t>on success</t> |
5728 |
|
</list> |
5729 |
|
</t> |
5730 |
|
<t>"ERR:<error-code>:<error-message>" - |
5731 |
|
<list> |
5732 |
|
<t>in case the given instrument does not exists.</t> |
5733 |
|
</list> |
5734 |
|
</t> |
5735 |
|
</list> |
5736 |
|
</t> |
5737 |
|
|
5738 |
|
<t>Example:</t> |
5739 |
|
<t> |
5740 |
|
<list> |
5741 |
|
<t>C: "SET DB_INSTRUMENT DESCRIPTION '/Piano Collection/Acoustic/Bosendorfer 290' 'No comment :)'"</t> |
5742 |
|
<t>S: "OK"</t> |
5743 |
|
</list> |
5744 |
|
</t> |
5745 |
|
</section> |
5746 |
|
|
5747 |
|
<section title="Finding instruments" anchor="FIND DB_INSTRUMENTS"> |
5748 |
|
<t>The front-end can search for instruments |
5749 |
|
in specific directory by sending the following command:</t> |
5750 |
|
<t> |
5751 |
|
<list> |
5752 |
|
<t>FIND DB_INSTRUMENTS [NON_RECURSIVE] <dir> <criteria-list></t> |
5753 |
|
</list> |
5754 |
|
</t> |
5755 |
|
<t>Where <dir> should be replaced by the absolute path |
5756 |
|
name of the directory to search in. If NON_RECURSIVE is specified, the |
5757 |
|
directories located in subdirectories of the specified directory will not |
5758 |
|
be searched. <criteria-list> is a list of search criterias |
5759 |
|
in form of "key1=val1 key2=val2 ...". The following criterias are |
5760 |
|
allowed:</t> |
5761 |
|
<t> |
5762 |
|
<t>NAME='<search-string>' |
5763 |
|
<list> |
5764 |
|
<t>Restricts the search to instruments, which names |
5765 |
|
satisfy the supplied search string (encapsulated into apostrophes, |
5766 |
|
supporting escape sequences as described in chapter |
5767 |
|
"<xref target="character_set">Character Set and Escape Sequences</xref>").</t> |
5768 |
|
</list> |
5769 |
|
</t> |
5770 |
|
|
5771 |
|
<t>SIZE=[<min>]..[<max>] |
5772 |
|
<list> |
5773 |
|
<t>Restricts the search to instruments, which |
5774 |
|
size is in the specified range. If <min> is omitted, |
5775 |
|
the search results are restricted to instruments with size less then |
5776 |
|
or equal to <max>. If <max> is omitted, the |
5777 |
|
search is restricted to instruments with size greater then |
5778 |
|
or equal to <min>.</t> |
5779 |
|
</list> |
5780 |
|
</t> |
5781 |
|
|
5782 |
|
<t>CREATED='[<date-after>]..[<date-before>]' |
5783 |
|
<list> |
5784 |
|
<t>Restricts the search to instruments, which creation |
5785 |
|
date satisfies the specified period, where <date-after> |
5786 |
|
and <date-before> are in "YYYY-MM-DD HH:MM:SS" format. |
5787 |
|
If <date-after> is omitted the search is restricted to |
5788 |
|
instruments created before <date-before>. If |
5789 |
|
<date-before> is omitted, the search is restricted |
5790 |
|
to instruments created after <date-after>.</t> |
5791 |
|
</list> |
5792 |
|
</t> |
5793 |
|
|
5794 |
|
<t>MODIFIED='[<date-after>]..[<date-before>]' |
5795 |
|
<list> |
5796 |
|
<t>Restricts the search to instruments, which |
5797 |
|
date of last modification satisfies the specified period, where |
5798 |
|
<date-after> and <date-before> are in "YYYY-MM-DD HH:MM:SS" |
5799 |
|
format. If <date-after> is omitted the search is restricted to |
5800 |
|
instruments, which are last modified before <date-before>. If |
5801 |
|
<date-before> is omitted, the search is restricted to instruments, |
5802 |
|
which are last modified after <date-after>.</t> |
5803 |
|
</list> |
5804 |
|
</t> |
5805 |
|
|
5806 |
|
<t>DESCRIPTION='<search-string>' |
5807 |
|
<list> |
5808 |
|
<t>Restricts the search to instruments with description |
5809 |
|
that satisfies the supplied search string (encapsulated into apostrophes, |
5810 |
|
supporting escape sequences as described in chapter |
5811 |
|
"<xref target="character_set">Character Set and Escape Sequences</xref>").</t> |
5812 |
|
</list> |
5813 |
|
</t> |
5814 |
|
|
5815 |
|
<t>PRODUCT='<search-string>' |
5816 |
|
<list> |
5817 |
|
<t>Restricts the search to instruments with product info |
5818 |
|
that satisfies the supplied search string (encapsulated into apostrophes, |
5819 |
|
supporting escape sequences as described in chapter |
5820 |
|
"<xref target="character_set">Character Set and Escape Sequences</xref>").</t> |
5821 |
|
</list> |
5822 |
|
</t> |
5823 |
|
|
5824 |
|
<t>ARTISTS='<search-string>' |
5825 |
|
<list> |
5826 |
|
<t>Restricts the search to instruments with artists info |
5827 |
|
that satisfies the supplied search string (encapsulated into apostrophes, |
5828 |
|
supporting escape sequences as described in chapter |
5829 |
|
"<xref target="character_set">Character Set and Escape Sequences</xref>").</t> |
5830 |
|
</list> |
5831 |
|
</t> |
5832 |
|
|
5833 |
|
<t>KEYWORDS='<search-string>' |
5834 |
|
<list> |
5835 |
|
<t>Restricts the search to instruments with keyword list |
5836 |
|
that satisfies the supplied search string (encapsulated into apostrophes, |
5837 |
|
supporting escape sequences as described in chapter |
5838 |
|
"<xref target="character_set">Character Set and Escape Sequences</xref>").</t> |
5839 |
|
</list> |
5840 |
|
</t> |
5841 |
|
|
5842 |
|
<t>IS_DRUM=true | false |
5843 |
|
<list> |
5844 |
|
<t>Either true or false. Restricts the search to |
5845 |
|
drum kits or chromatic instruments.</t> |
5846 |
|
</list> |
5847 |
|
</t> |
5848 |
|
|
5849 |
|
<t>FORMAT_FAMILIES='<format-list>' |
5850 |
|
<list> |
5851 |
|
<t>Restricts the search to instruments of the supplied format families, |
5852 |
|
where <format-list> is a comma separated list of format families.</t> |
5853 |
|
</list> |
5854 |
|
</t> |
5855 |
|
</t> |
5856 |
|
|
5857 |
|
<t>Where <search-string> is either a regular expression, or a |
5858 |
|
word list separated with spaces for OR search and with '+' for AND search.</t> |
5859 |
|
|
5860 |
|
<t>Possible Answers:</t> |
5861 |
|
<t> |
5862 |
|
<list> |
5863 |
|
<t>A comma separated list with the absolute path names (encapsulated into |
5864 |
|
apostrophes) of all instruments in the specified directory that satisfy |
5865 |
|
the supplied search criterias.</t> |
5866 |
|
<t>"ERR:<error-code>:<error-message>" - |
5867 |
|
<list> |
5868 |
|
<t>if the given directory does not exist.</t> |
5869 |
|
</list> |
5870 |
|
</t> |
5871 |
|
</list> |
5872 |
|
</t> |
5873 |
|
<t>Example:</t> |
5874 |
|
<t> |
5875 |
|
<list> |
5876 |
|
<t>C: "FIND DB_INSTRUMENTS '/Piano Collection' NAME='bosendorfer+290'"</t> |
5877 |
|
<t>S: "'/Piano Collection/Bosendorfer 290'"</t> |
5878 |
|
</list> |
5879 |
|
</t> |
5880 |
|
<t> |
5881 |
|
<list> |
5882 |
|
<t>C: "FIND DB_INSTRUMENTS '/Piano Collection' CREATED='2007-04-01 09:30:13..'"</t> |
5883 |
|
<t>S: "'/Piano Collection/Bosendorfer 290','/Piano Collection/Steinway D'"</t> |
5884 |
|
</list> |
5885 |
|
</t> |
5886 |
|
</section> |
5887 |
|
|
5888 |
|
<section title="Getting job status information" anchor="GET DB_INSTRUMENTS_JOB INFO"> |
5889 |
|
<t>The front-end can ask for the current status of a |
5890 |
|
particular database instruments job by sending the following command:</t> |
5891 |
|
<t> |
5892 |
|
<list> |
5893 |
|
<t>GET DB_INSTRUMENTS_JOB INFO <job-id></t> |
5894 |
|
</list> |
5895 |
|
</t> |
5896 |
|
<t>Where <job-id> should be replaced by the numerical ID |
5897 |
|
of the job the front-end is interested in.</t> |
5898 |
|
|
5899 |
|
<t>Possible Answers:</t> |
5900 |
|
<t> |
5901 |
|
<list> |
5902 |
|
<t>LinuxSampler will answer by sending a <CRLF> separated list. |
5903 |
|
Each answer line begins with the settings category name |
5904 |
|
followed by a colon and then a space character <SP> and finally |
5905 |
|
the info character string to that setting category. At the |
5906 |
|
moment the following categories are defined:</t> |
5907 |
|
|
5908 |
|
<t> |
5909 |
|
<list> |
5910 |
|
<t>FILES_TOTAL - |
5911 |
|
<list> |
5912 |
|
<t>The total number of files scheduled for scanning</t> |
5913 |
|
</list> |
5914 |
|
</t> |
5915 |
|
<t>FILES_SCANNED - |
5916 |
|
<list> |
5917 |
|
<t>The current number of scanned files</t> |
5918 |
|
</list> |
5919 |
|
</t> |
5920 |
|
<t>SCANNING - |
5921 |
|
<list> |
5922 |
|
<t>The absolute path name of the file which is currently |
5923 |
|
being scanned</t> |
5924 |
|
</list> |
5925 |
|
</t> |
5926 |
|
<t>STATUS - |
5927 |
|
<list> |
5928 |
|
<t>An integer value between 0 and 100 indicating the |
5929 |
|
scanning progress percentage of the file which is |
5930 |
|
currently being scanned</t> |
5931 |
|
</list> |
5932 |
|
</t> |
5933 |
|
</list> |
5934 |
|
</t> |
5935 |
|
</list> |
5936 |
|
</t> |
5937 |
|
<t>The mentioned fields above don't have to be in particular order.</t> |
5938 |
|
|
5939 |
|
<t>Example:</t> |
5940 |
|
<t> |
5941 |
|
<list> |
5942 |
|
<t>C: "GET DB_INSTRUMENTS_JOB INFO 2"</t> |
5943 |
|
<t>S: "FILES_TOTAL: 12"</t> |
5944 |
|
<t> "FILES_SCANNED: 7"</t> |
5945 |
|
<t> "SCANNING: /home/me/gigs/Bosendorfer 290.gig"</t> |
5946 |
|
<t> "STATUS: 42"</t> |
5947 |
|
<t> "."</t> |
5948 |
|
</list> |
5949 |
|
</t> |
5950 |
|
</section> |
5951 |
|
|
5952 |
|
<section title="Formatting the instruments database" anchor="FORMAT INSTRUMENTS_DB"> |
5953 |
|
<t>The front-end can remove all instruments and directories and re-create |
5954 |
|
the instruments database structure (e.g., in case of a database corruption) |
5955 |
|
by sending the following command:</t> |
5956 |
|
<t> |
5957 |
|
<list> |
5958 |
|
<t>FORMAT INSTRUMENTS_DB</t> |
5959 |
|
</list> |
5960 |
|
</t> |
5961 |
|
|
5962 |
|
<t>Possible Answers:</t> |
5963 |
|
<t> |
5964 |
|
<list> |
5965 |
|
<t>"OK" - |
5966 |
|
<list> |
5967 |
|
<t>on success</t> |
5968 |
|
</list> |
5969 |
|
</t> |
5970 |
|
<t>"ERR:<error-code>:<error-message>" - |
5971 |
|
<list> |
5972 |
|
<t>If the formatting of the instruments database |
5973 |
|
failed.</t> |
5974 |
|
</list> |
5975 |
|
</t> |
5976 |
|
</list> |
5977 |
|
</t> |
5978 |
|
</section> |
5979 |
|
|
5980 |
|
</section> |
5981 |
|
|
5982 |
|
|
5983 |
|
|
5984 |
|
<section title="Editing Instruments" anchor="editing_instruments"> |
5985 |
|
<t>The sampler allows to edit instruments while playing with the |
5986 |
|
sampler by spawning an external (3rd party) instrument editor |
5987 |
|
application for a given instrument. The 3rd party instrument |
5988 |
|
editor applications have to place a respective plugin DLL file |
5989 |
|
into the sampler's plugins directory. The sampler will |
5990 |
|
automatically try to load all plugin DLLs in that directory on |
5991 |
|
startup and only on startup!</t> |
5992 |
|
<t>At the moment there is only one command for this feature set, |
5993 |
|
but this will most probably change in future.</t> |
5994 |
|
|
5995 |
|
<section title="Opening an appropriate instrument editor application" anchor="EDIT INSTRUMENT"> |
5996 |
|
<t>The front-end can request to open an appropriate instrument |
5997 |
|
editor application by sending the following command:</t> |
5998 |
|
<t> |
5999 |
|
<list> |
6000 |
|
<t>EDIT INSTRUMENT <sampler-channel></t> |
6001 |
|
</list> |
6002 |
|
</t> |
6003 |
|
<t>Where <sampler-channel> should be replaced by the |
6004 |
|
number of the sampler channel as given by the |
6005 |
|
<xref target="ADD CHANNEL">"ADD CHANNEL"</xref> |
6006 |
|
or <xref target="LIST CHANNELS">"LIST CHANNELS"</xref> |
6007 |
|
command.</t> |
6008 |
|
|
6009 |
|
<t>The sampler will try to ask all registered instrument |
6010 |
|
editors (or to be more specific: their sampler plugins) |
6011 |
|
whether they are capable to handle the instrument on the |
6012 |
|
given sampler channel. The sampler will simply use the first |
6013 |
|
instrument editor application which replied with a positive |
6014 |
|
answer and spawn that instrument editor application within |
6015 |
|
the sampler's process and provide that application access |
6016 |
|
to the instrument's data structures, so both applications |
6017 |
|
can share and access the same instruments data at the same |
6018 |
|
time, thus allowing to immediately hear changes with the |
6019 |
|
sampler made by the instrument editor.</t> |
6020 |
|
|
6021 |
|
<t>Note: consequently instrument editors are always spawned |
6022 |
|
locally on the same machine where the sampler is running |
6023 |
|
on!</t> |
6024 |
|
|
6025 |
|
<t>Possible Answers:</t> |
6026 |
|
<t> |
6027 |
|
<list> |
6028 |
|
<t>"OK" - |
6029 |
|
<list> |
6030 |
|
<t>when an appropriate instrument editor was |
6031 |
|
launched</t> |
6032 |
|
</list> |
6033 |
|
</t> |
6034 |
|
<t>"WRN:<warning-code>:<warning-message>" - |
6035 |
|
<list> |
6036 |
|
<t>when an appropriate instrument editor was |
6037 |
|
launched, but there are noteworthy issues</t> |
6038 |
|
</list> |
6039 |
|
</t> |
6040 |
|
<t>"ERR:<error-code>:<error-message>" - |
6041 |
|
<list> |
6042 |
|
<t>when an appropriate instrument editor |
6043 |
|
could not be launched</t> |
6044 |
|
</list> |
6045 |
|
</t> |
6046 |
|
</list> |
6047 |
|
</t> |
6048 |
|
|
6049 |
|
<t>Examples:</t> |
6050 |
|
<t> |
6051 |
|
<list> |
6052 |
|
<t>C: "EDIT INSTRUMENT 0"</t> |
6053 |
|
<t>S: "OK"</t> |
6054 |
|
</list> |
6055 |
|
</t> |
6056 |
|
</section> |
6057 |
|
</section> |
6058 |
</section> |
</section> |
6059 |
|
|
6060 |
|
|
6130 |
</t> |
</t> |
6131 |
<t>/ UNSUBSCRIBE SP unsubscribe_event |
<t>/ UNSUBSCRIBE SP unsubscribe_event |
6132 |
</t> |
</t> |
|
<t>/ SELECT SP text |
|
|
</t> |
|
6133 |
<t>/ RESET SP reset_instruction |
<t>/ RESET SP reset_instruction |
6134 |
</t> |
</t> |
6135 |
<t>/ CLEAR SP clear_instruction |
<t>/ CLEAR SP clear_instruction |
6136 |
</t> |
</t> |
6137 |
|
<t>/ FIND SP find_instruction |
6138 |
|
</t> |
6139 |
|
<t>/ MOVE SP move_instruction |
6140 |
|
</t> |
6141 |
|
<t>/ COPY SP copy_instruction |
6142 |
|
</t> |
6143 |
|
<t>/ EDIT SP edit_instruction |
6144 |
|
</t> |
6145 |
|
<t>/ FORMAT SP format_instruction |
6146 |
|
</t> |
6147 |
<t>/ RESET |
<t>/ RESET |
6148 |
</t> |
</t> |
6149 |
<t>/ QUIT |
<t>/ QUIT |
6154 |
<list> |
<list> |
6155 |
<t>CHANNEL |
<t>CHANNEL |
6156 |
</t> |
</t> |
6157 |
|
<t>/ DB_INSTRUMENT_DIRECTORY SP db_path |
6158 |
|
</t> |
6159 |
|
<t>/ DB_INSTRUMENTS SP NON_MODAL SP scan_mode SP db_path SP filename |
6160 |
|
</t> |
6161 |
|
<t>/ DB_INSTRUMENTS SP scan_mode SP db_path SP filename |
6162 |
|
</t> |
6163 |
|
<t>/ DB_INSTRUMENTS SP NON_MODAL SP db_path SP filename |
6164 |
|
</t> |
6165 |
|
<t>/ DB_INSTRUMENTS SP NON_MODAL SP db_path SP filename SP instrument_index |
6166 |
|
</t> |
6167 |
|
<t>/ DB_INSTRUMENTS SP db_path SP filename |
6168 |
|
</t> |
6169 |
|
<t>/ DB_INSTRUMENTS SP db_path SP filename SP instrument_index |
6170 |
|
</t> |
6171 |
<t>/ MIDI_INSTRUMENT_MAP |
<t>/ MIDI_INSTRUMENT_MAP |
6172 |
</t> |
</t> |
6173 |
<t>/ MIDI_INSTRUMENT_MAP SP map_name |
<t>/ MIDI_INSTRUMENT_MAP SP map_name |
6206 |
</t> |
</t> |
6207 |
<t>/ MIDI_INSTRUMENT_INFO |
<t>/ MIDI_INSTRUMENT_INFO |
6208 |
</t> |
</t> |
6209 |
|
<t>/ DB_INSTRUMENT_DIRECTORY_COUNT |
6210 |
|
</t> |
6211 |
|
<t>/ DB_INSTRUMENT_DIRECTORY_INFO |
6212 |
|
</t> |
6213 |
|
<t>/ DB_INSTRUMENT_COUNT |
6214 |
|
</t> |
6215 |
|
<t>/ DB_INSTRUMENT_INFO |
6216 |
|
</t> |
6217 |
|
<t>/ DB_INSTRUMENTS_JOB_INFO |
6218 |
|
</t> |
6219 |
<t>/ MISCELLANEOUS |
<t>/ MISCELLANEOUS |
6220 |
</t> |
</t> |
6221 |
<t>/ TOTAL_VOICE_COUNT |
<t>/ TOTAL_VOICE_COUNT |
6256 |
</t> |
</t> |
6257 |
<t>/ MIDI_INSTRUMENT_INFO |
<t>/ MIDI_INSTRUMENT_INFO |
6258 |
</t> |
</t> |
6259 |
|
<t>/ DB_INSTRUMENT_DIRECTORY_COUNT |
6260 |
|
</t> |
6261 |
|
<t>/ DB_INSTRUMENT_DIRECTORY_INFO |
6262 |
|
</t> |
6263 |
|
<t>/ DB_INSTRUMENT_COUNT |
6264 |
|
</t> |
6265 |
|
<t>/ DB_INSTRUMENT_INFO |
6266 |
|
</t> |
6267 |
|
<t>/ DB_INSTRUMENTS_JOB_INFO |
6268 |
|
</t> |
6269 |
<t>/ MISCELLANEOUS |
<t>/ MISCELLANEOUS |
6270 |
</t> |
</t> |
6271 |
<t>/ TOTAL_VOICE_COUNT |
<t>/ TOTAL_VOICE_COUNT |
6300 |
</t> |
</t> |
6301 |
<t>/ MIDI_INSTRUMENT_MAP SP ALL |
<t>/ MIDI_INSTRUMENT_MAP SP ALL |
6302 |
</t> |
</t> |
6303 |
|
<t>/ DB_INSTRUMENT_DIRECTORY SP FORCE SP db_path |
6304 |
|
</t> |
6305 |
|
<t>/ DB_INSTRUMENT_DIRECTORY SP db_path |
6306 |
|
</t> |
6307 |
|
<t>/ DB_INSTRUMENT SP db_path |
6308 |
|
</t> |
6309 |
</list> |
</list> |
6310 |
</t> |
</t> |
6311 |
<t>get_instruction = |
<t>get_instruction = |
6376 |
</t> |
</t> |
6377 |
<t>/ FX_SEND SP INFO SP sampler_channel SP fx_send_id |
<t>/ FX_SEND SP INFO SP sampler_channel SP fx_send_id |
6378 |
</t> |
</t> |
6379 |
|
<t>/ DB_INSTRUMENT_DIRECTORIES SP RECURSIVE SP db_path |
6380 |
|
</t> |
6381 |
|
<t>/ DB_INSTRUMENT_DIRECTORIES SP db_path |
6382 |
|
</t> |
6383 |
|
<t>/ DB_INSTRUMENT_DIRECTORY SP INFO SP db_path |
6384 |
|
</t> |
6385 |
|
<t>/ DB_INSTRUMENTS SP RECURSIVE SP db_path |
6386 |
|
</t> |
6387 |
|
<t>/ DB_INSTRUMENTS SP db_path |
6388 |
|
</t> |
6389 |
|
<t>/ DB_INSTRUMENT SP INFO SP db_path |
6390 |
|
</t> |
6391 |
|
<t>/ DB_INSTRUMENTS_JOB SP INFO SP number |
6392 |
|
</t> |
6393 |
<t>/ VOLUME |
<t>/ VOLUME |
6394 |
</t> |
</t> |
6395 |
</list> |
</list> |
6402 |
</t> |
</t> |
6403 |
<t>/ MIDI_INPUT_DEVICE_PARAMETER SP number SP string '=' param_val_list |
<t>/ MIDI_INPUT_DEVICE_PARAMETER SP number SP string '=' param_val_list |
6404 |
</t> |
</t> |
6405 |
|
<t>/ MIDI_INPUT_PORT_PARAMETER SP number SP number SP string '=' NONE |
6406 |
|
</t> |
6407 |
<t>/ MIDI_INPUT_PORT_PARAMETER SP number SP number SP string '=' param_val_list |
<t>/ MIDI_INPUT_PORT_PARAMETER SP number SP number SP string '=' param_val_list |
6408 |
</t> |
</t> |
6409 |
<t>/ CHANNEL SP set_chan_instruction |
<t>/ CHANNEL SP set_chan_instruction |
6418 |
</t> |
</t> |
6419 |
<t>/ FX_SEND SP LEVEL SP sampler_channel SP fx_send_id SP volume_value |
<t>/ FX_SEND SP LEVEL SP sampler_channel SP fx_send_id SP volume_value |
6420 |
</t> |
</t> |
6421 |
|
<t>/ DB_INSTRUMENT_DIRECTORY SP NAME SP db_path SP stringval_escaped |
6422 |
|
</t> |
6423 |
|
<t>/ DB_INSTRUMENT_DIRECTORY SP DESCRIPTION SP db_path SP stringval_escaped |
6424 |
|
</t> |
6425 |
|
<t>/ DB_INSTRUMENT SP NAME SP db_path SP stringval_escaped |
6426 |
|
</t> |
6427 |
|
<t>/ DB_INSTRUMENT SP DESCRIPTION SP db_path SP stringval_escaped |
6428 |
|
</t> |
6429 |
<t>/ ECHO SP boolean |
<t>/ ECHO SP boolean |
6430 |
</t> |
</t> |
6431 |
<t>/ VOLUME SP volume_value |
<t>/ VOLUME SP volume_value |
6462 |
</t> |
</t> |
6463 |
</list> |
</list> |
6464 |
</t> |
</t> |
6465 |
|
<t>find_instruction = |
6466 |
|
<list> |
6467 |
|
<t>DB_INSTRUMENTS SP NON_RECURSIVE SP db_path SP query_val_list |
6468 |
|
</t> |
6469 |
|
<t>/ DB_INSTRUMENTS SP db_path SP query_val_list |
6470 |
|
</t> |
6471 |
|
<t>/ DB_INSTRUMENT_DIRECTORIES SP NON_RECURSIVE SP db_path SP query_val_list |
6472 |
|
</t> |
6473 |
|
<t>/ DB_INSTRUMENT_DIRECTORIES SP db_path SP query_val_list |
6474 |
|
</t> |
6475 |
|
</list> |
6476 |
|
</t> |
6477 |
|
<t>move_instruction = |
6478 |
|
<list> |
6479 |
|
<t>DB_INSTRUMENT_DIRECTORY SP db_path SP db_path |
6480 |
|
</t> |
6481 |
|
<t>/ DB_INSTRUMENT SP db_path SP db_path |
6482 |
|
</t> |
6483 |
|
</list> |
6484 |
|
</t> |
6485 |
|
<t>copy_instruction = |
6486 |
|
<list> |
6487 |
|
<t>DB_INSTRUMENT_DIRECTORY SP db_path SP db_path |
6488 |
|
</t> |
6489 |
|
<t>/ DB_INSTRUMENT SP db_path SP db_path |
6490 |
|
</t> |
6491 |
|
</list> |
6492 |
|
</t> |
6493 |
<t>destroy_instruction = |
<t>destroy_instruction = |
6494 |
<list> |
<list> |
6495 |
<t>AUDIO_OUTPUT_DEVICE SP number |
<t>AUDIO_OUTPUT_DEVICE SP number |
6540 |
</t> |
</t> |
6541 |
</list> |
</list> |
6542 |
</t> |
</t> |
6543 |
|
<t>edit_instruction = |
6544 |
|
<list> |
6545 |
|
<t>INSTRUMENT SP sampler_channel |
6546 |
|
</t> |
6547 |
|
</list> |
6548 |
|
</t> |
6549 |
|
<t>format_instruction = |
6550 |
|
<list> |
6551 |
|
<t>INSTRUMENTS_DB |
6552 |
|
</t> |
6553 |
|
</list> |
6554 |
|
</t> |
6555 |
<t>modal_arg = |
<t>modal_arg = |
6556 |
<list> |
<list> |
6557 |
<t>/* epsilon (empty argument) */ |
<t>/* epsilon (empty argument) */ |
6598 |
</t> |
</t> |
6599 |
<t>/ FX_SENDS SP sampler_channel |
<t>/ FX_SENDS SP sampler_channel |
6600 |
</t> |
</t> |
6601 |
|
<t>/ DB_INSTRUMENT_DIRECTORIES SP RECURSIVE SP db_path |
6602 |
|
</t> |
6603 |
|
<t>/ DB_INSTRUMENT_DIRECTORIES SP db_path |
6604 |
|
</t> |
6605 |
|
<t>/ DB_INSTRUMENTS SP RECURSIVE SP db_path |
6606 |
|
</t> |
6607 |
|
<t>/ DB_INSTRUMENTS SP db_path |
6608 |
|
</t> |
6609 |
</list> |
</list> |
6610 |
</t> |
</t> |
6611 |
<t>load_instr_args = |
<t>load_instr_args = |
6728 |
</t> |
</t> |
6729 |
<t>filename = |
<t>filename = |
6730 |
<list> |
<list> |
6731 |
<t>stringval |
<t>path |
6732 |
|
</t> |
6733 |
|
</list> |
6734 |
|
</t> |
6735 |
|
<t>db_path = |
6736 |
|
<list> |
6737 |
|
<t>path |
6738 |
</t> |
</t> |
6739 |
</list> |
</list> |
6740 |
</t> |
</t> |
6741 |
<t>map_name = |
<t>map_name = |
6742 |
<list> |
<list> |
6743 |
<t>stringval |
<t>stringval_escaped |
6744 |
</t> |
</t> |
6745 |
</list> |
</list> |
6746 |
</t> |
</t> |
6747 |
<t>entry_name = |
<t>entry_name = |
6748 |
<list> |
<list> |
6749 |
<t>stringval |
<t>stringval_escaped |
6750 |
</t> |
</t> |
6751 |
</list> |
</list> |
6752 |
</t> |
</t> |
6753 |
<t>fx_send_name = |
<t>fx_send_name = |
6754 |
<list> |
<list> |
6755 |
<t>stringval |
<t>stringval_escaped |
6756 |
</t> |
</t> |
6757 |
</list> |
</list> |
6758 |
</t> |
</t> |
6764 |
</t> |
</t> |
6765 |
</list> |
</list> |
6766 |
</t> |
</t> |
6767 |
|
|
6768 |
<t>param_val = |
<t>param_val = |
6769 |
<list> |
<list> |
6770 |
<t>string |
<t>string |
6777 |
</t> |
</t> |
6778 |
</list> |
</list> |
6779 |
</t> |
</t> |
6780 |
|
<t>query_val_list = |
6781 |
|
<list> |
6782 |
|
<t>string '=' query_val |
6783 |
|
</t> |
6784 |
|
<t>/ query_val_list SP string '=' query_val |
6785 |
|
</t> |
6786 |
|
</list> |
6787 |
|
</t> |
6788 |
|
<t>query_val = |
6789 |
|
<list> |
6790 |
|
<t>text_escaped |
6791 |
|
</t> |
6792 |
|
<t>/ stringval_escaped |
6793 |
|
</t> |
6794 |
|
</list> |
6795 |
|
</t> |
6796 |
|
<t>scan_mode = |
6797 |
|
<list> |
6798 |
|
<t>RECURSIVE |
6799 |
|
</t> |
6800 |
|
<t>/ NON_RECURSIVE |
6801 |
|
</t> |
6802 |
|
<t>/ FLAT |
6803 |
|
</t> |
6804 |
|
</list> |
6805 |
|
</t> |
6806 |
|
|
6807 |
<!-- GRAMMAR_BNF_END - do NOT delete or modify this line !!! --> |
<!-- GRAMMAR_BNF_END - do NOT delete or modify this line !!! --> |
6808 |
|
|
6809 |
|
<section title="Character Set and Escape Sequences" anchor="character_set"> |
6810 |
|
<t>Older versions of this protocol up to and including v1.1 only |
6811 |
|
supported the standard ASCII character set (ASCII code 0 - 127) |
6812 |
|
<xref target="RFC20"/>, all younger versions of this protocol |
6813 |
|
however support the Extended ASCII character set (ASCII code |
6814 |
|
0 - 255). The same group of younger protocols also support |
6815 |
|
escape sequences, but only for certain, explicitly declared |
6816 |
|
parts of the protocol. The supported escape sequences are |
6817 |
|
defined as follows:</t> |
6818 |
|
<texttable> |
6819 |
|
<ttcol>ASCII Character Sequence</ttcol> |
6820 |
|
<ttcol>Translated into (Name)</ttcol> |
6821 |
|
<c>\n</c> <c>new line</c> |
6822 |
|
<c>\r</c> <c>carriage return</c> |
6823 |
|
<c>\f</c> <c>form feed</c> |
6824 |
|
<c>\t</c> <c>horizontal tab</c> |
6825 |
|
<c>\v</c> <c>vertical tab</c> |
6826 |
|
<c>\'</c> <c>apostrophe</c> |
6827 |
|
<c>\"</c> <c>quotation mark</c> |
6828 |
|
<c>\\</c> <c>backslash</c> |
6829 |
|
<c>\OOO</c> <c>three digit octal ASCII code of the character</c> |
6830 |
|
<c>\xHH</c> <c>two digit hex ASCII code of the character</c> |
6831 |
|
</texttable> |
6832 |
|
<t>Notice: due to the transition of certain parts of the |
6833 |
|
protocol which now support escape sequences, a slight backward |
6834 |
|
incompatibility to protocols version v1.1 and younger has been |
6835 |
|
introduced. The only difference is that in parts of the protocol |
6836 |
|
where escape characters are now supported, a backslash characters |
6837 |
|
MUST be escaped as well (that is as double backslash), whereas |
6838 |
|
in the old versions a single backslash was sufficient.</t> |
6839 |
|
|
6840 |
|
<t>The following LSCP commands support escape sequences as part |
6841 |
|
of their filename / path based arguments and / or may contain |
6842 |
|
a filename / path with escape sequences in their response: |
6843 |
|
<list> |
6844 |
|
<t><xref target="LOAD INSTRUMENT">"LOAD INSTRUMENT"</xref></t> |
6845 |
|
<t><xref target="GET CHANNEL INFO">"GET CHANNEL INFO"</xref></t> |
6846 |
|
<t><xref target="MAP MIDI_INSTRUMENT">"MAP MIDI_INSTRUMENT"</xref></t> |
6847 |
|
<t><xref target="GET MIDI_INSTRUMENT INFO">"GET MIDI_INSTRUMENT INFO"</xref></t> |
6848 |
|
<t><xref target="ADD DB_INSTRUMENT_DIRECTORY">"ADD DB_INSTRUMENT_DIRECTORY"</xref></t> |
6849 |
|
<t><xref target="ADD DB_INSTRUMENTS">"ADD DB_INSTRUMENTS"</xref></t> |
6850 |
|
<t><xref target="REMOVE DB_INSTRUMENT_DIRECTORY">"REMOVE DB_INSTRUMENT_DIRECTORY"</xref></t> |
6851 |
|
<t><xref target="REMOVE DB_INSTRUMENT">"REMOVE DB_INSTRUMENT"</xref></t> |
6852 |
|
<t><xref target="GET DB_INSTRUMENT_DIRECTORIES">"GET DB_INSTRUMENT_DIRECTORIES"</xref></t> |
6853 |
|
<t><xref target="LIST DB_INSTRUMENT_DIRECTORIES">"LIST DB_INSTRUMENT_DIRECTORIES"</xref></t> |
6854 |
|
<t><xref target="GET DB_INSTRUMENT_DIRECTORY INFO">"GET DB_INSTRUMENT_DIRECTORY INFO"</xref></t> |
6855 |
|
<t><xref target="GET DB_INSTRUMENTS">"GET DB_INSTRUMENTS"</xref></t> |
6856 |
|
<t><xref target="LIST DB_INSTRUMENTS">"LIST DB_INSTRUMENTS"</xref></t> |
6857 |
|
<t><xref target="GET DB_INSTRUMENT INFO">"GET DB_INSTRUMENT INFO"</xref></t> |
6858 |
|
<t><xref target="SET DB_INSTRUMENT_DIRECTORY NAME">"SET DB_INSTRUMENT_DIRECTORY NAME"</xref></t> |
6859 |
|
<t><xref target="SET DB_INSTRUMENT_DIRECTORY DESCRIPTION">"SET DB_INSTRUMENT_DIRECTORY DESCRIPTION"</xref></t> |
6860 |
|
<t><xref target="SET DB_INSTRUMENT NAME">"SET DB_INSTRUMENT NAME"</xref></t> |
6861 |
|
<t><xref target="SET DB_INSTRUMENT DESCRIPTION">"SET DB_INSTRUMENT DESCRIPTION"</xref></t> |
6862 |
|
<t><xref target="FIND DB_INSTRUMENTS">"FIND DB_INSTRUMENTS"</xref></t> |
6863 |
|
<t><xref target="FIND DB_INSTRUMENT_DIRECTORIES">"FIND DB_INSTRUMENT_DIRECTORIES"</xref></t> |
6864 |
|
<t><xref target="MOVE DB_INSTRUMENT">"MOVE DB_INSTRUMENT"</xref></t> |
6865 |
|
<t><xref target="MOVE DB_INSTRUMENT_DIRECTORY">"MOVE DB_INSTRUMENT_DIRECTORY"</xref></t> |
6866 |
|
<t><xref target="COPY DB_INSTRUMENT">"COPY DB_INSTRUMENT"</xref></t> |
6867 |
|
<t><xref target="COPY DB_INSTRUMENT_DIRECTORY">"COPY DB_INSTRUMENT_DIRECTORY"</xref></t> |
6868 |
|
</list> |
6869 |
|
Note that the forward slash character ('/') has a special meaning in |
6870 |
|
filename / path based arguments: it acts as separator of the nodes in |
6871 |
|
the path, thus if a directory- or filename includes a forward slash |
6872 |
|
(not intended as path node separator), you MUST escape that slash |
6873 |
|
either with the respective hex escape sequence ("\x2f") or with the |
6874 |
|
respective octal escape sequence ("\057"). |
6875 |
|
</t> |
6876 |
|
|
6877 |
|
<t> |
6878 |
|
The following LSCP commands even support escape sequences as |
6879 |
|
part of at least one of their text-based arguments (i.e. entity name, |
6880 |
|
description) and / or may contain escape sequences in at least one of |
6881 |
|
their text-based fields in their response: |
6882 |
|
<list> |
6883 |
|
<t><xref target="GET SERVER INFO">"GET SERVER INFO"</xref></t> |
6884 |
|
<t><xref target="GET ENGINE INFO">"GET ENGINE INFO"</xref></t> |
6885 |
|
<t><xref target="GET CHANNEL INFO">"GET CHANNEL INFO"</xref></t> |
6886 |
|
<t><xref target="CREATE FX_SEND">"CREATE FX_SEND"</xref></t> |
6887 |
|
<t><xref target="GET FX_SEND INFO">"GET FX_SEND INFO"</xref></t> |
6888 |
|
<t><xref target="SET FX_SEND NAME">"SET FX_SEND NAME"</xref></t> |
6889 |
|
<t><xref target="GET MIDI_INSTRUMENT INFO">"GET MIDI_INSTRUMENT INFO"</xref></t> |
6890 |
|
<t><xref target="GET MIDI_INSTRUMENT_MAP INFO">"GET MIDI_INSTRUMENT_MAP INFO"</xref></t> |
6891 |
|
<t><xref target="ADD MIDI_INSTRUMENT_MAP">"ADD MIDI_INSTRUMENT_MAP"</xref></t> |
6892 |
|
<t><xref target="MAP MIDI_INSTRUMENT">"MAP MIDI_INSTRUMENT"</xref></t> |
6893 |
|
<t><xref target="SET MIDI_INSTRUMENT_MAP NAME">"SET MIDI_INSTRUMENT_MAP NAME"</xref></t> |
6894 |
|
<t><xref target="GET DB_INSTRUMENT_DIRECTORY INFO">"GET DB_INSTRUMENT_DIRECTORY INFO"</xref></t> |
6895 |
|
<t><xref target="SET DB_INSTRUMENT_DIRECTORY NAME">"SET DB_INSTRUMENT_DIRECTORY NAME"</xref></t> |
6896 |
|
<t><xref target="SET DB_INSTRUMENT_DIRECTORY DESCRIPTION">"SET DB_INSTRUMENT_DIRECTORY DESCRIPTION"</xref></t> |
6897 |
|
<t><xref target="FIND DB_INSTRUMENT_DIRECTORIES">"FIND DB_INSTRUMENT_DIRECTORIES"</xref></t> |
6898 |
|
<t><xref target="GET DB_INSTRUMENT INFO">"GET DB_INSTRUMENT INFO"</xref></t> |
6899 |
|
<t><xref target="SET DB_INSTRUMENT NAME">"SET DB_INSTRUMENT NAME"</xref></t> |
6900 |
|
<t><xref target="SET DB_INSTRUMENT DESCRIPTION">"SET DB_INSTRUMENT DESCRIPTION"</xref></t> |
6901 |
|
<t><xref target="FIND DB_INSTRUMENTS">"FIND DB_INSTRUMENTS"</xref></t> |
6902 |
|
</list> |
6903 |
|
Please note that these lists are manually maintained. If you |
6904 |
|
find a command that also supports escape sequences we forgot to |
6905 |
|
mention here, please report it! |
6906 |
|
</t> |
6907 |
|
</section> |
6908 |
</section> |
</section> |
6909 |
|
|
6910 |
<section title="Events" anchor="events"> |
<section title="Events" anchor="events"> |
7090 |
</section> |
</section> |
7091 |
|
|
7092 |
<section title="Number of effect sends changed" anchor="SUBSCRIBE FX_SEND_COUNT"> |
<section title="Number of effect sends changed" anchor="SUBSCRIBE FX_SEND_COUNT"> |
7093 |
<t>Client may want to be notified when the number of effect sends on |
<t>Client may want to be notified when the number of effect sends on |
7094 |
a particular sampler channel is changed by issuing the following command:</t> |
a particular sampler channel is changed by issuing the following command:</t> |
7095 |
<t> |
<t> |
7096 |
<list> |
<list> |
7246 |
</t> |
</t> |
7247 |
</section> |
</section> |
7248 |
|
|
7249 |
|
<section title="Number of database instrument directories changed" anchor="SUBSCRIBE DB_INSTRUMENT_DIRECTORY_COUNT"> |
7250 |
|
<t>Client may want to be notified when the number of instrument |
7251 |
|
directories in a particular directory in the instruments database |
7252 |
|
is changed by issuing the following command:</t> |
7253 |
|
<t> |
7254 |
|
<list> |
7255 |
|
<t>SUBSCRIBE DB_INSTRUMENT_DIRECTORY_COUNT</t> |
7256 |
|
</list> |
7257 |
|
</t> |
7258 |
|
<t>Server will start sending the following notification messages:</t> |
7259 |
|
<t> |
7260 |
|
<list> |
7261 |
|
<t>"NOTIFY:DB_INSTRUMENT_DIRECTORY_COUNT:<dir-path>"</t> |
7262 |
|
</list> |
7263 |
|
</t> |
7264 |
|
<t>where <dir-path> will be replaced by the absolute path |
7265 |
|
name of the directory in the instruments database, |
7266 |
|
in which the number of directories is changed.</t> |
7267 |
|
<t>Note that when a non-empty directory is removed, this event |
7268 |
|
is not sent for the subdirectories in that directory.</t> |
7269 |
|
</section> |
7270 |
|
|
7271 |
|
<section title="Database instrument directory information changed" anchor="SUBSCRIBE DB_INSTRUMENT_DIRECTORY_INFO"> |
7272 |
|
<t>Client may want to be notified when changes were made to directories |
7273 |
|
in the instruments database by issuing the following command:</t> |
7274 |
|
<t> |
7275 |
|
<list> |
7276 |
|
<t>SUBSCRIBE DB_INSTRUMENT_DIRECTORY_INFO</t> |
7277 |
|
</list> |
7278 |
|
</t> |
7279 |
|
<t>Server will start sending the following notification messages:</t> |
7280 |
|
<t> |
7281 |
|
<list> |
7282 |
|
<t>"NOTIFY:DB_INSTRUMENT_DIRECTORY_INFO:<dir-path>"</t> |
7283 |
|
</list> |
7284 |
|
</t> |
7285 |
|
<t>where <dir-path> will be replaced by the absolute path name |
7286 |
|
of the directory, for which information changes occurred. The front-end will have to send |
7287 |
|
the respective command to actually get the updated directory info. Because these messages |
7288 |
|
will be triggered by LSCP commands issued by other clients rather than real |
7289 |
|
time events happening on the server, it is believed that an empty notification |
7290 |
|
message is sufficient here.</t> |
7291 |
|
<t> |
7292 |
|
<list> |
7293 |
|
<t>"NOTIFY:DB_INSTRUMENT_DIRECTORY_INFO:NAME <old-dir-path> <new-name>"</t> |
7294 |
|
</list> |
7295 |
|
</t> |
7296 |
|
<t>where <old-dir-path> is the old absolute path name of the directory |
7297 |
|
(encapsulated into apostrophes), which name is changes and <new-name> is |
7298 |
|
the new name of the directory, encapsulated into apostrophes.</t> |
7299 |
|
</section> |
7300 |
|
|
7301 |
|
<section title="Number of database instruments changed" anchor="SUBSCRIBE DB_INSTRUMENT_COUNT"> |
7302 |
|
<t>Client may want to be notified when the number of instruments |
7303 |
|
in a particular directory in the instruments database |
7304 |
|
is changed by issuing the following command:</t> |
7305 |
|
<t> |
7306 |
|
<list> |
7307 |
|
<t>SUBSCRIBE DB_INSTRUMENT_COUNT</t> |
7308 |
|
</list> |
7309 |
|
</t> |
7310 |
|
<t>Server will start sending the following notification messages:</t> |
7311 |
|
<t> |
7312 |
|
<list> |
7313 |
|
<t>"NOTIFY:DB_INSTRUMENT_COUNT:<dir-path>"</t> |
7314 |
|
</list> |
7315 |
|
</t> |
7316 |
|
<t>where <dir-path> will be replaced by the absolute path |
7317 |
|
name of the directory in the instruments database, |
7318 |
|
in which the number of instruments is changed.</t> |
7319 |
|
<t>Note that when a non-empty directory is removed, this event |
7320 |
|
is not sent for the instruments in that directory.</t> |
7321 |
|
</section> |
7322 |
|
|
7323 |
|
<section title="Database instrument information changed" anchor="SUBSCRIBE DB_INSTRUMENT_INFO"> |
7324 |
|
<t>Client may want to be notified when changes were made to instruments |
7325 |
|
in the instruments database by issuing the following command:</t> |
7326 |
|
<t> |
7327 |
|
<list> |
7328 |
|
<t>SUBSCRIBE DB_INSTRUMENT_INFO</t> |
7329 |
|
</list> |
7330 |
|
</t> |
7331 |
|
<t>Server will start sending the following notification messages:</t> |
7332 |
|
<t> |
7333 |
|
<list> |
7334 |
|
<t>"NOTIFY:DB_INSTRUMENT_INFO:<instr-path>"</t> |
7335 |
|
</list> |
7336 |
|
</t> |
7337 |
|
<t>where <instr-path> will be replaced by the absolute path name |
7338 |
|
of the instrument, which settings are changed. The front-end will have to send |
7339 |
|
the respective command to actually get the updated directory info. Because these messages |
7340 |
|
will be triggered by LSCP commands issued by other clients rather than real |
7341 |
|
time events happening on the server, it is believed that an empty notification |
7342 |
|
message is sufficient here.</t> |
7343 |
|
<t> |
7344 |
|
<list> |
7345 |
|
<t>"NOTIFY:DB_INSTRUMENT_INFO:NAME <old-instr-path> <new-name>"</t> |
7346 |
|
</list> |
7347 |
|
</t> |
7348 |
|
<t>where <old-instr-path> is the old absolute path name of the instrument |
7349 |
|
(encapsulated into apostrophes), which name is changes and <new-name> is |
7350 |
|
the new name of the instrument, encapsulated into apostrophes.</t> |
7351 |
|
</section> |
7352 |
|
|
7353 |
|
<section title="Database job status information changed" anchor="SUBSCRIBE DB_INSTRUMENTS_JOB_INFO"> |
7354 |
|
<t>Client may want to be notified when the status of particular database |
7355 |
|
instruments job is changed by issuing the following command:</t> |
7356 |
|
<t> |
7357 |
|
<list> |
7358 |
|
<t>SUBSCRIBE DB_INSTRUMENTS_JOB_INFO</t> |
7359 |
|
</list> |
7360 |
|
</t> |
7361 |
|
<t>Server will start sending the following notification messages:</t> |
7362 |
|
<t> |
7363 |
|
<list> |
7364 |
|
<t>"NOTIFY:DB_INSTRUMENTS_JOB_INFO:<job-id>"</t> |
7365 |
|
</list> |
7366 |
|
</t> |
7367 |
|
<t>where <job-id> will be replaced by the numerical ID of the job, |
7368 |
|
which status is changed. The front-end will have to send the respective |
7369 |
|
command to actually get the status info. Because these messages |
7370 |
|
will be triggered by LSCP commands issued by other clients rather than real |
7371 |
|
time events happening on the server, it is believed that an empty notification |
7372 |
|
message is sufficient here.</t> |
7373 |
|
</section> |
7374 |
|
|
7375 |
<section title="Miscellaneous and debugging events" anchor="SUBSCRIBE MISCELLANEOUS"> |
<section title="Miscellaneous and debugging events" anchor="SUBSCRIBE MISCELLANEOUS"> |
7376 |
<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 |
7377 |
the server by issuing the following command:</t> |
the server by issuing the following command:</t> |
7450 |
</front> |
</front> |
7451 |
<seriesInfo name="RFC" value="2234" /> |
<seriesInfo name="RFC" value="2234" /> |
7452 |
</reference> |
</reference> |
7453 |
|
<reference anchor="RFC20"> |
7454 |
|
<front> |
7455 |
|
<title>ASCII format for Network Interchange</title> |
7456 |
|
<author> |
7457 |
|
<organization>UCLA</organization> |
7458 |
|
</author> |
7459 |
|
<date year="1969"></date> |
7460 |
|
</front> |
7461 |
|
<seriesInfo name="RFC" value="20" /> |
7462 |
|
</reference> |
7463 |
</references> |
</references> |
7464 |
</back> |
</back> |
7465 |
|
|