--- linuxsampler/trunk/Documentation/lscp.xml 2004/08/20 17:25:19 221 +++ linuxsampler/trunk/Documentation/lscp.xml 2005/05/21 20:01:32 561 @@ -31,7 +31,7 @@ schoenebeck at software minus engineering dot org - + LinuxSampler Developers LSCP @@ -122,12 +122,12 @@ referred in this document as "sampler channels". The channels are in such way virtual as they can be connected to an arbitrary MIDI input method and arbitrary MIDI channel (e.g. - sampler channel 17 could be connected to an Alsa sequencer + sampler channel 17 could be connected to an ALSA sequencer device 64:0 and listening to MIDI channel 1 there). Each sampler engine will be assigned an own instance of one of the available sampler engines (e.g. GigEngine, DLSEngine). The audio output of each sampler channel can be routed to an arbitrary audio output - method (Alsa / Jack) and an arbitrary audio output channel + method (ALSA / JACK) and an arbitrary audio output channel there. @@ -216,6 +216,25 @@ <warning-message> and <error-message> are human readable descriptions of the warning or error respectively. + Examples: + + + C: "LOAD INSTRUMENT '/home/me/Boesendorfer24bit.gig" 0 0 + S: "WRN:32:This is a 24 bit patch which is not supported natively yet." + + + + + C: "GET AUDIO_OUTPUT_DRIVER_PARAMETER INFO ALSA EAR" + S: "ERR:3456:Audio output driver 'ALSA' does not have a parameter 'EAR'." + + + + + C: "GET AUDIO_OUTPUT_DEVICE INFO 123456" + S: "ERR:9:There is no audio output device with index 123456." + + Normal result sets could be: @@ -234,6 +253,13 @@ "OK" + Example: + + + C: "SET AUDIO_OUTPUT_DEVICE_PARAMETER 0 CHANNELS=4" + S: "OK" + + Single line result sets are command specific. One example of a single line result set is an empty line. Multi-line result sets are command specific and may @@ -244,6 +270,20 @@ "." + Example: + + + C: "GET AUDIO_OUTPUT_DEVICE INFO 0" + S: "DRIVER: ALSA" +    "CHANNELS: 2" +    "SAMPLERATE: 44100" +    "ACTIVE: true" +    "FRAGMENTS: 2" +    "FRAGMENTSIZE: 128" +    "CARD: '0,0'" +    "." + + In addition to above mentioned formats, warnings and empty result sets MAY be indexed. In this case, they have the following formats respectively: @@ -258,6 +298,19 @@ related to or other integer value. Each line of the result set MUST end with <CRLF>. + Examples: + + + C: "ADD CHANNEL" + S: "OK[12]" + + + + + C: "CREATE AUDIO_OUTPUT_DEVICE ALSA SAMPLERATE=96000" + S: "WRN[0]:32:Sample rate not supported, using 44100 instead." + +
@@ -326,7 +379,7 @@ where <event-id> will be replace by the respective event that client is no longer interested in receiving. For - a list of supported events see chapter 6. + a list of supported events see . Example: the fill states of disk stream buffers have changed on sampler channel 4 and the LinuxSampler instance @@ -375,7 +428,8 @@
This chapter will describe the available control commands that can be sent on the TCP connection in detail. Some certain - commands (e.g. "GET CHANNEL INFO" or "GET ENGINE INFO") lead to + commands (e.g. "GET CHANNEL INFO" + or "GET ENGINE INFO") lead to multiple-line responses. In this case LinuxSampler signals the end of the response by a "." (single dot) line. @@ -390,11 +444,11 @@
Instances of drivers in LinuxSampler are called devices. You can use multiple audio devices simultaneously, e.g. to - output the sound of one sampler channel using the Alsa audio + output the sound of one sampler channel using the ALSA audio output driver, and on another sampler channel you might want - to use the Jack audio output driver. For particular audio + to use the JACK audio output driver. For particular audio output systems it's also possible to create several devices - of the same audio output driver, e.g. two separate Alsa + of the same audio output driver, e.g. two separate ALSA audio output devices for using two different sound cards at the same time. This chapter describes all commands to configure LinuxSampler's audio output devices and their @@ -419,13 +473,38 @@ what parameters drivers are offering, how to retrieve their possible values, etc. -
+
+ Use the following command to get the number of + audio output drivers currently available for the + LinuxSampler instance: + + + GET AVAILABLE_AUDIO_OUTPUT_DRIVERS + + + Possible Answers: + + + LinuxSampler will answer by sending the + number of audio output drivers. + + + Example: + + + C: "GET AVAILABLE_AUDIO_OUTPUT_DRIVERS" + S: "2" + + +
+ +
Use the following command to list all audio output drivers currently available for the LinuxSampler instance: - GET AVAILABLE_AUDIO_OUTPUT_DRIVERS + LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS Possible Answers: @@ -439,14 +518,14 @@ Example: - C: "GET AVAILABLE_AUDIO_OUTPUT_DRIVERS" - S: "Alsa,Jack" + C: "LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS" + S: "ALSA,JACK"
+ output driver" anchor="GET AUDIO_OUTPUT_DRIVER INFO"> Use the following command to get detailed information about a specific audio output driver: @@ -456,8 +535,8 @@ Where <audio-output-driver> is the name of the - audio output driver, returned by the "GET - AVAILABLE_AUDIO_OUTPUT_DRIVERS" command. + audio output driver, returned by the + "LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS" command. Possible Answers: @@ -506,20 +585,20 @@ Example: - C: "GET AUDIO_OUTPUT_DRIVER INFO Alsa" + C: "GET AUDIO_OUTPUT_DRIVER INFO ALSA" S: "DESCRIPTION: Advanced Linux Sound Architecture"    "VERSION: 1.0"    "PARAMETERS: - driver,channels,samplerate,active,fragments, - fragmentsize,card" + DRIVER,CHANNELS,SAMPLERATE,ACTIVE,FRAGMENTS, + FRAGMENTSIZE,CARD"    "."
+ output driver parameter" anchor="GET AUDIO_OUTPUT_DRIVER_PARAMETER INFO"> Use the following command to get detailed information about a specific audio output driver parameter: @@ -528,9 +607,11 @@ Where <audio> is the name of the audio output - driver as returned by the "GET AVAILABLE_AUDIO_OUTPUT_DRIVERS" command, + driver as returned by the + "LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS" command, <prm> a specific parameter name for which information should be - obtained (as returned by the "GET AUDIO_OUTPUT_DRIVER INFO" command) and + obtained (as returned by the + "GET AUDIO_OUTPUT_DRIVER INFO" command) and <deplist> is an optional list of parameters on which the sought parameter <prm> depends on, <deplist> is a list of key-value pairs in form of "key1=val1 key2=val2 ...", where character string values @@ -542,7 +623,7 @@ LinuxSampler will answer by sending a - &lz;CRLF> separated list. + <CRLF> separated list. Each answer line begins with the information category name followed by a colon and then a space character <SP> and finally @@ -577,8 +658,8 @@ either true or false, defines if this parameter must be given when the device is to be created with the - 'CREATE AUDIO_OUTPUT_DEVICE' command - (always returned, no matter which driver parameter) + 'CREATE AUDIO_OUTPUT_DEVICE' + command (always returned, no matter which driver parameter) @@ -586,8 +667,8 @@ either true or false, if false then this parameter can be changed at any time, once the device is created by - the 'CREATE AUDIO_OUTPUT_DEVICE' command - (always returned, no matter which driver parameter) + the 'CREATE AUDIO_OUTPUT_DEVICE' + command (always returned, no matter which driver parameter) @@ -602,11 +683,11 @@ DEPENDS - - comma separated list of paramters this parameter depends + comma separated list of parameters this parameter depends on, means the values for fields 'DEFAULT', 'RANGE_MIN', 'RANGE_MAX' and 'POSSIBILITIES' might depend on these listed parameters, for example assuming that an audio - driver (like the Alsa driver) offers parameters 'card' + driver (like the ALSA driver) offers parameters 'card' and 'samplerate' then parameter 'samplerate' would depend on 'card' because the possible values for 'samplerate' depends on the sound card which can be @@ -619,7 +700,8 @@ reflects the default value for this parameter which is used when the device is created and not explicitly - given with the 'CREATE AUDIO_OUTPUT_DEVICE' command, + given with the + 'CREATE AUDIO_OUTPUT_DEVICE' command, in case of MULTIPLCITY=true, this is a comma separated list, that's why character strings are encapsulated into apostrophes (') @@ -647,7 +729,7 @@ - POSSIBILITES - + POSSIBILITIES - comma separated list of possible values for this parameter, character strings are encapsulated into @@ -663,20 +745,20 @@ Examples: - C: "GET AUDIO_OUTPUT_DRIVER_PARAMETER INFO Alsa card" + C: "GET AUDIO_OUTPUT_DRIVER_PARAMETER INFO ALSA CARD" S: "DESCRIPTION: sound card to be used"    "TYPE: STRING"    "MANDATORY: false"    "FIX: true"    "MULTIPLICITY: false"    "DEFAULT: '0,0'" -    "POSSIBILITES: '0,0','1,0','2,0'" +    "POSSIBILITIES: '0,0','1,0','2,0'"    "." - C: "GET AUDIO_OUTPUT_DRIVER_PARAMETER INFO Alsa samplerate" + C: "GET AUDIO_OUTPUT_DRIVER_PARAMETER INFO ALSA SAMPLERATE" S: "DESCRIPTION: output sample rate in Hz"    "TYPE: INT"    "MANDATORY: false" @@ -689,7 +771,7 @@ - C: "GET AUDIO_OUTPUT_DRIVER_PARAMETER INFO Alsa samplerate card='0,0'" + C: "GET AUDIO_OUTPUT_DRIVER_PARAMETER INFO ALSA SAMPLERATE CARD='0,0'" S: "DESCRIPTION: output sample rate in Hz"    "TYPE: INT"    "MANDATORY: false" @@ -704,7 +786,7 @@
-
+
Use the following command to create a new audio output device for the desired audio output system: @@ -750,19 +832,19 @@ Examples: - C: "CREATE AUDIO_OUTPUT_DEVICE Alsa" + C: "CREATE AUDIO_OUTPUT_DEVICE ALSA" S: "OK[0]" - C: "CREATE AUDIO_OUTPUT_DEVICE Alsa card='2,0' samplerate=96000" + C: "CREATE AUDIO_OUTPUT_DEVICE ALSA CARD='2,0' SAMPLERATE=96000" S: "OK[1]"
-
+
Use the following command to destroy a created output device: @@ -770,8 +852,10 @@ Where <device-id> should be replaced by the numerical ID of the - audio output device as given by the "CREATE AUDIO_OUTPUT_DEVICE" or - "GET AUDIO_OUTPUT_DEVICES" command. + audio output device as given by the + "CREATE AUDIO_OUTPUT_DEVICE" + or "LIST AUDIO_OUTPUT_DEVICES" + command. Possible Answers: @@ -806,7 +890,7 @@
-
+
Use the following command to count all created audio output devices: @@ -829,7 +913,7 @@
-
+
Use the following command to list all created audio output devices: @@ -852,16 +936,16 @@
-
+
Use the following command to get current settings of a specific, created audio output device: GET AUDIO_OUTPUT_DEVICE INFO <device-id> - Where <device-id> should be replaced by be numerical ID + Where <device-id> should be replaced by numerical ID of the audio output device as e.g. returned by the - "GET AUDIO_OUTPUT_DEVICES" command. + "LIST AUDIO_OUTPUT_DEVICES" command. Possible Answers: LinuxSampler will answer by sending a <CRLF> separated list. Each answer line begins with the information category name @@ -872,25 +956,27 @@ information categories are defined (independently of device): - driver - + DRIVER - identifier of the used audio output driver, as also - returned by the "GET AVAILABLE_AUDIO_OUTPUT_DRIVERS" + returned by the + + "LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS" command - channels - + CHANNELS - amount of audio output channels this device currently offers - samplerate - + SAMPLERATE - playback sample rate the device uses - active - + ACTIVE - either true or false, if false then the audio device is inactive and doesn't output any sound, nor do the @@ -904,26 +990,26 @@ order. The fields above are only those fields which are returned by all audio output devices. Every audio output driver might have its own, additional driver specific parameters (see - "GET AUDIO_OUTPUT_DRIVER INFO" command) which are also returned - by this command. + ) + which are also returned by this command. Example: C: "GET AUDIO_OUTPUT_DEVICE INFO 0" - S: "driver: Alsa" -    "channels: 2" -    "samplerate: 44100" -    "active: true" -    "fragments: 2" -    "fragmentsize: 128" -    "card: '0,0'" + S: "DRIVER: ALSA" +    "CHANNELS: 2" +    "SAMPLERATE: 44100" +    "ACTIVE: true" +    "FRAGMENTS: 2" +    "FRAGMENTSIZE: 128" +    "CARD: '0,0'"    "."
-
+
Use the following command to alter a specific setting of a created audio output device: @@ -959,13 +1045,13 @@ Example: - C: "SET AUDIO_OUTPUT_DEVICE_PARAMETER 0 fragmentsize=128" + C: "SET AUDIO_OUTPUT_DEVICE_PARAMETER 0 FRAGMENTSIZE=128" S: "OK"
-
+
Use the following command to get information about an audio channel: @@ -1003,7 +1089,8 @@ MIX_CHANNEL_DESTINATION - - reflects the real audio channel (of the same audio + numerical ID (positive integer including 0) + which reflects the real audio channel (of the same audio output device) this mix channel refers to, means where the audio signal actually will be routed / added to (only returned in case the audio channel is mix channel) @@ -1056,13 +1143,13 @@ C: "GET AUDIO_OUTPUT_CHANNEL INFO 1 0" S: "NAME: 'ardour (left)'"    "IS_MIX_CHANNEL: false" -    "jack_bindings: 'ardour:0'" +    "JACK_BINDINGS: 'ardour:0'"    "."
-
+
Use the following command to get detailed information about specific audio channel parameter: @@ -1072,9 +1159,11 @@ Where <dev-id> is the numerical ID of the audio output device as returned - by the "GET AUDIO_OUTPUT_DEVICES" command, <chan> the audio channel number + by the "LIST AUDIO_OUTPUT_DEVICES" + command, <chan> the audio channel number and <param> a specific channel parameter name for which information should - be obtained (as returned by the "GET AUDIO_OUTPUT_CHANNEL INFO" command). + be obtained (as returned by the + "GET AUDIO_OUTPUT_CHANNEL INFO" command). Possible Answers: @@ -1137,7 +1226,7 @@ parameter) - POSSIBILITES - + POSSIBILITIES - comma separated list of possible values for this parameter, character strings are encapsulated into @@ -1154,18 +1243,18 @@ Example: - C: "GET AUDIO_OUTPUT_CHANNEL_PARAMETER INFO 1 0 jack_bindings" - S: "DESCRIPTION: bindings to other Jack clients" + C: "GET AUDIO_OUTPUT_CHANNEL_PARAMETER INFO 1 0 JACK_BINDINGS" + S: "DESCRIPTION: bindings to other JACK clients"    "TYPE: STRING"    "FIX: false"    "MULTIPLICITY: true" -    "POSSIBILITES: 'PCM:0','PCM:1','ardour:0','ardour:1'" +    "POSSIBILITIES: 'PCM:0','PCM:1','ardour:0','ardour:1'"    "."
-
+
Use the following command to alter a specific setting of an audio output channel: @@ -1201,7 +1290,7 @@ Example: - C: "SET AUDIO_OUTPUT_CHANNEL PARAMETER 0 0 jack_bindings='PCM:0'" + C: "SET AUDIO_OUTPUT_CHANNEL PARAMETER 0 0 JACK_BINDINGS='PCM:0'" S: "OK" @@ -1217,7 +1306,7 @@
Instances of drivers in LinuxSampler are called devices. You can use multiple MIDI devices simultaneously, e.g. to use MIDI over ethernet as - MIDI input on one sampler channel and Alsa as MIDI input on another sampler + MIDI input on one sampler channel and ALSA as MIDI input on another sampler channel. For particular MIDI input systems it's also possible to create several devices of the same MIDI input type. This chapter describes all commands to configure LinuxSampler's MIDI input devices and their parameters. @@ -1241,12 +1330,37 @@ showing how to retrieve what parameters drivers are offering, how to retrieve their possible values, etc. -
+
+ Use the following command to get the number of + MIDI input drivers currently available for the + LinuxSampler instance: + + + GET AVAILABLE_MIDI_INPUT_DRIVERS + + + Possible Answers: + + + LinuxSampler will answer by sending the + number of available MIDI input drivers. + + + Example: + + + C: "GET AVAILABLE_MIDI_INPUT_DRIVERS" + S: "2" + + +
+ +
Use the following command to list all MIDI input drivers currently available for the LinuxSampler instance: - GET AVAILABLE_MIDI_INPUT_DRIVERS + LIST AVAILABLE_MIDI_INPUT_DRIVERS Possible Answers: @@ -1259,13 +1373,13 @@ Example: - C: "GET AVAILABLE_MIDI_INPUT_DRIVERS" - S: "Alsa,Jack" + C: "LIST AVAILABLE_MIDI_INPUT_DRIVERS" + S: "ALSA,JACK"
-
+
Use the following command to get detailed information about a specific MIDI input driver: @@ -1310,16 +1424,16 @@ - C: "GET MIDI_INPUT_DRIVER INFO Alsa" + C: "GET MIDI_INPUT_DRIVER INFO ALSA" S: "DESCRIPTION: Advanced Linux Sound Architecture"    "VERSION: 1.0" -    "PARAMETERS: driver,active" +    "PARAMETERS: DRIVER,ACTIVE"    "."
-
+
Use the following command to get detailed information about a specific parameter of a specific MIDI input driver: @@ -1327,10 +1441,12 @@ - Where <midi-t> is the name of the MIDI input driver as returned - by the "GET AVAILABLE_MIDI_INPUT_DRIVERS" command, <param> a specific + Where <midit> is the name of the MIDI input driver as returned + by the + "LIST AVAILABLE_MIDI_INPUT_DRIVERS" command, <param> a specific parameter name for which information should be obtained (as returned by the - "GET MIDI_INPUT_DRIVER INFO" command) and <deplist> is an optional list + + "GET MIDI_INPUT_DRIVER INFO" command) and <deplist> is an optional list of parameters on which the sought parameter <param> depends on, <deplist> is a key-value pair list in form of "key1=val1 key2=val2 ...", where character string values are encapsulated into apostrophes ('). Arguments @@ -1371,7 +1487,8 @@ either true or false, defines if this parameter must be given when the device is to be created with the - 'CREATE MIDI_INPUT_DEVICE' command + + 'CREATE MIDI_INPUT_DEVICE' command (always returned, no matter which driver parameter) @@ -1380,7 +1497,8 @@ either true or false, if false then this parameter can be changed at any time, once the device is created by - the 'CREATE MIDI_INPUT_DEVICE' command + the + 'CREATE MIDI_INPUT_DEVICE' command (always returned, no matter which driver parameter) @@ -1396,11 +1514,11 @@ DEPENDS - - comma separated list of paramters this parameter depends + comma separated list of parameters this parameter depends on, means the values for fields 'DEFAULT', 'RANGE_MIN', 'RANGE_MAX' and 'POSSIBILITIES' might depend on these listed parameters, for example assuming that an audio - driver (like the Alsa driver) offers parameters 'card' + driver (like the ALSA driver) offers parameters 'card' and 'samplerate' then parameter 'samplerate' would depend on 'card' because the possible values for 'samplerate' depends on the sound card which can be @@ -1413,7 +1531,8 @@ reflects the default value for this parameter which is used when the device is created and not explicitly - given with the 'CREATE MIDI_INPUT_DEVICE' command, + given with the + 'CREATE MIDI_INPUT_DEVICE' command, in case of MULTIPLCITY=true, this is a comma separated list, that's why character strings are encapsulated into apostrophes (') @@ -1441,7 +1560,7 @@ - POSSIBILITES - + POSSIBILITIES - comma separated list of possible values for this parameter, character strings are encapsulated into @@ -1457,7 +1576,7 @@ Example: - C: "GET MIDI_INPUT_DRIVER_PARAMETER INFO Alsa active" + C: "GET MIDI_INPUT_DRIVER_PARAMETER INFO ALSA ACTIVE" S: "DESCRIPTION: Whether device is enabled"    "TYPE: BOOL"    "MANDATORY: false" @@ -1469,7 +1588,7 @@
-
+
Use the following command to create a new MIDI input device for the desired MIDI input system: @@ -1511,13 +1630,13 @@ Example: - C: "CREATE MIDI_INPUT_DEVICE Alsa" + C: "CREATE MIDI_INPUT_DEVICE ALSA" S: "OK[0]"
-
+
Use the following command to destroy a created MIDI input device: @@ -1556,7 +1675,7 @@
-
+
Use the following command to count all created MIDI input devices: @@ -1580,7 +1699,7 @@
-
+
Use the following command to list all created MIDI input devices: @@ -1609,7 +1728,7 @@
-
+
Use the following command to get current settings of a specific, created MIDI input device: @@ -1633,7 +1752,8 @@ DRIVER - identifier of the used MIDI input driver, as e.g. - returned by the "GET AVAILABLE_MIDI_INPUT_DRIVERS" + returned by the + "LIST AVAILABLE_MIDI_INPUT_DRIVERS" command @@ -1656,21 +1776,22 @@ order. The fields above are only those fields which are returned by all MIDI input devices. Every MIDI input driver might have its own, additional driver specific parameters (see - "GET MIDI_INPUT_DRIVER INFO" command) which are also returned + + "GET MIDI_INPUT_DRIVER INFO" command) which are also returned by this command. Example: C: "GET MIDI_INPUT_DEVICE INFO 0" - S: "driver: Alsa" -    "active: true" + S: "DRIVER: ALSA" +    "ACTIVE: true"    "."
-
+
Use the following command to alter a specific setting of a created MIDI input device: @@ -1707,13 +1828,13 @@ Example: - C: "SET MIDI_INPUT_DEVICE PARAMETER 0 ACTIVE=false" + C: "SET MIDI_INPUT_DEVICE_PARAMETER 0 ACTIVE=false" S: "OK"
-
+
Use the following command to get information about a MIDI port: @@ -1748,14 +1869,14 @@ C: "GET MIDI_INPUT_PORT INFO 0 0" - S: "name: 'Masterkeyboard'" -    "alsa_seq_bindings: '64:0'" + S: "NAME: 'Masterkeyboard'" +    "ALSA_SEQ_BINDINGS: '64:0'"    "."
-
+
Use the following command to get detailed information about specific MIDI port parameter: @@ -1764,9 +1885,11 @@ Where <dev-id> is the numerical ID of the MIDI input device as returned - by the "GET MIDI_INPUT_DEVICES" command, <port> the MIDI port number and + by the + "LIST MIDI_INPUT_DEVICES" command, <port> the MIDI port number and <param> a specific port parameter name for which information should be - obtained (as returned by the "GET MIDI_INPUT_PORT INFO" command). + obtained (as returned by the + "GET MIDI_INPUT_PORT INFO" command). Possible Answers: @@ -1829,7 +1952,7 @@ parameter) - POSSIBILITES - + POSSIBILITIES - comma separated list of possible values for this parameter, character strings are encapsulated into @@ -1846,18 +1969,18 @@ Example: - C: "GET MIDI_INPUT_PORT_PARAMETER INFO 0 0 alsa_seq_bindings" - S: "DESCRIPTION: bindings to other Alsa sequencer clients" - "TYPE: STRING" + C: "GET MIDI_INPUT_PORT_PARAMETER INFO 0 0 ALSA_SEQ_BINDINGS" + S: "DESCRIPTION: bindings to other ALSA sequencer clients" +    "TYPE: STRING"    "FIX: false"    "MULTIPLICITY: true" -    "POSSIBILITES: '64:0','68:0','68:1'" +    "POSSIBILITIES: '64:0','68:0','68:1'"    "."
-
+
Use the following command to alter a specific setting of a MIDI input port: @@ -1905,7 +2028,7 @@ The following commands describe how to add and remove sampler channels, deploy sampler engines, load instruments and connect sampler channels to MIDI and audio devices. -
+
An instrument file can be loaded and assigned to a sampler channel by one of the following commands: @@ -1923,7 +2046,8 @@ is that the regular command returns OK only after the instrument has been fully loaded and the channel is ready to be used while NON_MODAL version returns immediately and a background process is launched to load the instrument - on the channel. GET CHANNEL INFO command can be used to obtain loading + on the channel. The GET CHANNEL INFO + command can be used to obtain loading progress from INSTRUMENT_STATUS field. LOAD command will perform sanity checks such as making sure that the file could be read and it is of a proper format and SHOULD return ERR and SHOULD not launch the background process should any @@ -1961,7 +2085,7 @@
-
+
A sample engine can be deployed and assigned to a specific sampler channel by the following command: @@ -1970,8 +2094,9 @@ - Where <engine-name> is usually the C++ class name of the engine - implementation and <sampler-channel> the sampler channel the + Where <engine-name> is an engine name as obtained by the + + "LIST AVAILABLE_ENGINES" command and <sampler-channel> the sampler channel the deployed engine should be assigned to. Even if the respective sampler channel has already a deployed engine with that engine name, a new engine instance will be assigned to the sampler channel. @@ -2007,7 +2132,7 @@
-
+
The number of sampler channels can change on runtime. To get the current amount of sampler channels, the front-end can send the following command: @@ -2031,7 +2156,7 @@
-
+
The number of sampler channels can change on runtime. To get the current list of sampler channels, the front-end can send the following command: @@ -2056,7 +2181,7 @@
-
+
A new sampler channel can be added to the end of the sampler channel list by sending the following command: @@ -2080,8 +2205,8 @@ in case a new sampler channel could be added, where <sampler-channel> reflects the channel number of the new - created sampler channel which should the be used to set up - the sampler channel by sending subsequent intialization + created sampler channel which should be used to set up + the sampler channel by sending subsequent initialization commands @@ -2108,7 +2233,7 @@
-
+
A sampler channel can be removed by sending the following command: @@ -2116,9 +2241,12 @@ - This will decrement the sampler channel count by one and also - decrement the channel numbers of all subsequent sampler channels by - one. + Where <sampler-channel> should be replaced by the + number of the sampler channel as given by the + "ADD CHANNEL" + or "LIST CHANNELS" + command. The channel numbers of all subsequent sampler channels + remain the same. Possible Answers: @@ -2151,8 +2279,8 @@
-
- The front-end can ask for all available engines by sending the following command: +
+ The front-end can ask for the number of available engines by sending the following command: GET AVAILABLE_ENGINES @@ -2161,20 +2289,44 @@ Possible Answers: - LinuxSampler will answer by sending a comma separated character - string of the engines' C++ class names. + LinuxSampler will answer by sending the number of available engines. Example: C: "GET AVAILABLE_ENGINES" - S: "GigEngine,AkaiEngine,DLSEngine,JoesCustomEngine" + S: "4" + + +
+ +
+ The front-end can ask for a list of all available engines by sending the following command: + + + LIST AVAILABLE_ENGINES + + + Possible Answers: + + + LinuxSampler will answer by sending a comma separated list + of the engines' names encapsulated into apostrophes ('). + Engine names can consist of lower and upper cases, + digits and underlines ("_" character). + + + Example: + + + C: "LIST AVAILABLE_ENGINES" + S: "'GigEngine','AkaiEngine','DLSEngine','JoesCustomEngine'"
-
+
The front-end can ask for information about a specific engine by sending the following command: @@ -2182,11 +2334,13 @@ GET ENGINE INFO <engine-name> - Where <engine-name> is usually the C++ class name of the engine implementation. + Where <engine-name> is an engine name as obtained by the + + "LIST AVAILABLE_ENGINES" command. Possible Answers: - LinuxSampler will answer by sending <> separated list. + LinuxSampler will answer by sending a <CRLF> separated list. Each answer line begins with the information category name followed by a colon and then a space character <SP> and finally the info character string to that info category. At the moment @@ -2222,7 +2376,7 @@
-
+
The front-end can ask for the current settings of a sampler channel by sending the following command: @@ -2286,6 +2440,11 @@ the instrument index number of the loaded instrument + INSTRUMENT_NAME - + + the instrument name of the loaded instrument + + INSTRUMENT_STATUS - integer values 0 to 100 indicating loading progress percentage for the instrument. Negative @@ -2336,6 +2495,7 @@    "AUDIO_OUTPUT_ROUTING: 0,1"    "INSTRUMENT_FILE: /home/joe/FazioliPiano.gig"    "INSTRUMENT_NR: 0" +    "INSTRUMENT_NAME: Fazioli Piano"    "INSTRUMENT_STATUS: 100"    "MIDI_INPUT_DEVICE: 0"    "MIDI_INPUT_PORT: 0" @@ -2345,7 +2505,7 @@
-
+
The front-end can ask for the current number of active voices on a sampler channel by sending the following command: @@ -2370,7 +2530,7 @@
-
+
The front-end can ask for the current number of active disk streams on a sampler channel by sending the following command: @@ -2397,7 +2557,7 @@
-
+
The front-end can ask for the current fill state of all disk streams on a sampler channel by sending the following command: @@ -2448,7 +2608,7 @@
-
+
The front-end can set the audio output device on a specific sampler channel by sending the following command: @@ -2490,7 +2650,7 @@
-
+
DEPRECATED: THIS COMMAND WILL DISAPPEAR SOON! The front-end can alter the audio output type on a specific sampler @@ -2500,7 +2660,7 @@ SET CHANNEL AUDIO_OUTPUT_TYPE <sampler-channel> <audio-output-type> - Where <audio-output-type> is currently either "Alsa" or "Jack" and + Where <audio-output-type> is currently either "ALSA" or "JACK" and <sampler-channel> is the respective sampler channel number. Possible Answers: @@ -2533,7 +2693,7 @@
-
+
The front-end can alter the audio output channel on a specific sampler channel by sending the following command: @@ -2541,9 +2701,9 @@ SET CHANNEL AUDIO_OUTPUT_CHANNEL <sampler-chan> <audio-out> <audio-in> - Where <sampler-chan> is the sampler channel, <audio-out> is the - sampler channel's audio output channel which should be - rerouted and <audio-in> the audio channel of the selected audio + Where <sampler-chan> is the sampler channel number, <audio-out> is the + numerical ID of the sampler channel's audio output channel which should be + rerouted and <audio-in> is the numerical ID of the audio channel of the selected audio output device where <audio-out> should be routed to. Possible Answers: @@ -2576,7 +2736,7 @@
-
+
The front-end can set the MIDI input device on a specific sampler channel by sending the following command: @@ -2584,7 +2744,8 @@ SET CHANNEL MIDI_INPUT_DEVICE <sampler-channel> <midi-device-id> - + Where <sampler-channel> is the sampler channel number and <midi-device-id> is the + the numerical ID of the MIDI input device. Possible Answers: @@ -2616,7 +2777,7 @@
-
+
DEPRECATED: THIS COMMAND WILL DISAPPEAR SOON! The front-end can alter the MIDI input type on a specific sampler @@ -2626,7 +2787,7 @@ SET CHANNEL MIDI_INPUT_TYPE <sampler-channel> <midi-input-type> - Where <midi-input-type> is currently only "Alsa" and + Where <midi-input-type> is currently only "ALSA" and <sampler-channel> is the respective sampler channel number. Possible Answers: @@ -2659,8 +2820,8 @@
-
- The front-end can alter the input MIDI port on a specific sampler +
+ The front-end can alter the MIDI input port on a specific sampler channel by sending the following command: @@ -2688,7 +2849,7 @@ "ERR:<error-code>:<error-message>" - - in case it failed, providing an appropriate error code and error messag + in case it failed, providing an appropriate error code and error message @@ -2701,7 +2862,7 @@
-
+
The front-end can alter the MIDI channel a sampler channel should listen to by sending the following command: @@ -2709,7 +2870,7 @@ SET CHANNEL MIDI_INPUT_CHANNEL <sampler-channel> <midi-input-chan> - Where <midi-input-chan> is the new MIDI input channel where + Where <midi-input-chan> is the number of the new MIDI input channel where <sampler-channel> should listen to or "ALL" to listen on all 16 MIDI channels. @@ -2743,7 +2904,7 @@
-
+
The front-end can alter the volume of a sampler channel by sending the following command: @@ -2786,7 +2947,7 @@
-
+
The front-end can reset a particular sampler channel by sending the following command: @@ -2834,7 +2995,7 @@
The following commands are used to control the connection to LinuxSampler. -
+
The front-end can register itself to the LinuxSampler application to be informed about noteworthy events by sending this command: @@ -2876,7 +3037,7 @@
-
+
The front-end can unregister itself if it doesn't want to receive event messages anymore by sending the following command: @@ -2918,7 +3079,7 @@
-
+
To enable or disable back sending of commands to the client the following command can be used: @@ -2956,7 +3117,7 @@
-
+
The client can close its network connection to LinuxSampler by sending the following command: @@ -2971,7 +3132,7 @@
The following commands have global impact on the sampler. -
+
The front-end can reset the whole sampler by sending the following command: @@ -2999,34 +3160,34 @@
-
+
TODO: will soon automatically included from src/network/lscp.y, meanwhile have a look at that file to get the exact definition of the command syntax.
-
+
This chapter will describe all currently defined events supported by LinuxSampler. -
+
Client may want to be notified when the total number of channels on the back-end changes by issuing the following command: - SUBSCRIBE CHANNELS + SUBSCRIBE CHANNEL_COUNT Server will start sending the following notification messages: - "NOTIFY:CHANNELS:<channels>" + "NOTIFY:CHANNEL_COUNT:<channels>" where <channels> will be replaced by the new number of sampler channels.
-
+
Client may want to be notified when the number of voices on the back-end changes by issuing the following command: @@ -3037,15 +3198,15 @@ Server will start sending the following notification messages: - "NOTIFY:VOICE_COUNT:<sampler-channel> <voices>> + "NOTIFY:VOICE_COUNT:<sampler-channel> <voices> where <sampler-channel> will be replaced by the sampler channel the - voice count change occurred and <voices>> by the new number of + voice count change occurred and <voices> by the new number of active voices on that channel.
-
+
Client may want to be notified when the number of streams on the back-end changes by issuing the following command: SUBSCRIBE STREAM_COUNT @@ -3064,9 +3225,9 @@ active disk streams on that channel.
-
- Client may want to be notified when the number of streams on the back-end - changes by issuing the following command: +
+ Client may want to be notified when the buffer fill state of a disk stream + on the back-end changes by issuing the following command: SUBSCRIBE BUFFER_FILL @@ -3079,23 +3240,24 @@ where <sampler-channel> will be replaced by the sampler channel the - buffer fill state change occurred and <fill-data> will be replaced by the - buffer fill data for this channel as described in 4.4.12 as if the - "GET CHANNEL BUFFER_FILL PERCENTAGE" was issued on this channel. + buffer fill state change occurred on and <fill-data> will be replaced by the + buffer fill data for this channel as described in + as if the + "GET CHANNEL BUFFER_FILL PERCENTAGE" command was issued on this channel.
-
+
Client may want to be notified when changes were made to sampler channels on the - back-end changes by issuing the following command: + back-end by issuing the following command: - SUBSCRIBE INFO + SUBSCRIBE CHANNEL_INFO Server will start sending the following notification messages: - "NOTIFY:INFO:<sampler-channel>" + "NOTIFY:CHANNEL_INFO:<sampler-channel>" where <sampler-channel> will be replaced by the sampler channel the @@ -3106,7 +3268,7 @@ message is sufficient here.
-
+
Client may want to be notified of miscellaneous and debugging events occurring at the server by issuing the following command: @@ -3142,6 +3304,7 @@ Rui Nuno Capela Vladimir Senkov Mark Knecht + Grigor Iliev