--- web/trunk/www.linuxsampler.org/api/draft-linuxsampler-protocol.html 2005/05/24 03:26:22 575 +++ web/trunk/www.linuxsampler.org/api/draft-linuxsampler-protocol.html 2007/12/07 01:07:11 1572 @@ -3,123 +3,159 @@ - - + hr { height: 1px; } + hr.insert { + width: 80%; border-style: none; border-width: 0; + color: #CCC; background-color: #CCC; + } +--> -
 TOC 
+
 TOC 
- - + +
LinuxSampler DevelopersC. Schoenebeck
Internet-DraftInteressengemeinschaft Software
Expires: November 22, 2005Engineering e. V.
 May 24, 2005
Intended status: Standards TrackEngineering e. V.
Expires: June 7, 2008December 5, 2007
-

LinuxSampler Control Protocol
-

LSCP 1.0
+


LinuxSampler Control Protocol
LSCP 1.3

Status of this Memo

-This document is an Internet-Draft and is -in full conformance with all provisions of Section 10 of RFC2026.

+By submitting this Internet-Draft, +each author represents that any applicable patent or other IPR claims of which +he or she is aware have been or will be disclosed, +and any of which he or she becomes aware will be disclosed, +in accordance with Section 6 of BCP 79.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF), its areas, and its working groups. @@ -129,7 +165,7 @@ Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite -them other than as "work in progress."

+them other than as “work in progress.”

The list of current Internet-Drafts can be accessed at http://www.ietf.org/ietf/1id-abstracts.txt.

@@ -137,11 +173,11 @@ The list of Internet-Draft Shadow Directories can be accessed at http://www.ietf.org/shadow.html.

-This Internet-Draft will expire on November 22, 2005.

+This Internet-Draft will expire on June 7, 2008.

Copyright Notice

-Copyright (C) The Internet Society (2005). All Rights Reserved.

+Copyright © The IETF Trust (2007).

Abstract

@@ -164,151 +200,307 @@ Focus of this protocol
5.  Communication Overview
-    5.1  +    5.1.  Request/response communication method
-        5.1.1  +        5.1.1.  Result format
-    5.2  +    5.2.  Subscribe/notify communication method
6.  Description for control commands
-    6.1  +    6.1.  Ignored lines and comments
-    6.2  +    6.2.  Configuring audio drivers
-        6.2.1  +        6.2.1.  Getting amount of available audio output drivers
-        6.2.2  +        6.2.2.  Getting all available audio output drivers
-        6.2.3  +        6.2.3.  Getting information about a specific audio output driver
-        6.2.4  +        6.2.4.  Getting information about specific audio output driver parameter
-        6.2.5  +        6.2.5.  Creating an audio output device
-        6.2.6  +        6.2.6.  Destroying an audio output device
-        6.2.7  +        6.2.7.  Getting all created audio output device count
-        6.2.8  +        6.2.8.  Getting all created audio output device list
-        6.2.9  +        6.2.9.  Getting current settings of an audio output device
-        6.2.10  +        6.2.10.  Changing settings of audio output devices
-        6.2.11  +        6.2.11.  Getting information about an audio channel
-        6.2.12  +        6.2.12.  Getting information about specific audio channel parameter
-        6.2.13  +        6.2.13.  Changing settings of audio output channels
-    6.3  +    6.3.  Configuring MIDI input drivers
-        6.3.1  +        6.3.1.  Getting amount of available MIDI input drivers
-        6.3.2  +        6.3.2.  Getting all available MIDI input drivers
-        6.3.3  +        6.3.3.  Getting information about a specific MIDI input driver
-        6.3.4  +        6.3.4.  Getting information about specific MIDI input driver parameter
-        6.3.5  +        6.3.5.  Creating a MIDI input device
-        6.3.6  +        6.3.6.  Destroying a MIDI input device
-        6.3.7  +        6.3.7.  Getting all created MIDI input device count
-        6.3.8  +        6.3.8.  Getting all created MIDI input device list
-        6.3.9  +        6.3.9.  Getting current settings of a MIDI input device
-        6.3.10  +        6.3.10.  Changing settings of MIDI input devices
-        6.3.11  +        6.3.11.  Getting information about a MIDI port
-        6.3.12  +        6.3.12.  Getting information about specific MIDI port parameter
-        6.3.13  +        6.3.13.  Changing settings of MIDI input ports
-    6.4  +    6.4.  Configuring sampler channels
-        6.4.1  +        6.4.1.  Loading an instrument
-        6.4.2  +        6.4.2.  Loading a sampler engine
-        6.4.3  +        6.4.3.  Getting all created sampler channel count
-        6.4.4  +        6.4.4.  Getting all created sampler channel list
-        6.4.5  +        6.4.5.  Adding a new sampler channel
-        6.4.6  +        6.4.6.  Removing a sampler channel
-        6.4.7  +        6.4.7.  Getting amount of available engines
-        6.4.8  +        6.4.8.  Getting all available engines
-        6.4.9  +        6.4.9.  Getting information about an engine
-        6.4.10  +        6.4.10.  Getting sampler channel information
-        6.4.11  +        6.4.11.  Current number of active voices
-        6.4.12  +        6.4.12.  Current number of active disk streams
-        6.4.13  +        6.4.13.  Current fill state of disk stream buffers
-        6.4.14  +        6.4.14.  Setting audio output device
-        6.4.15  +        6.4.15.  Setting audio output type
-        6.4.16  +        6.4.16.  Setting audio output channel
-        6.4.17  +        6.4.17.  Setting MIDI input device
-        6.4.18  +        6.4.18.  Setting MIDI input type
-        6.4.19  +        6.4.19.  Setting MIDI input port
-        6.4.20  +        6.4.20.  Setting MIDI input channel
-        6.4.21  +        6.4.21.  Setting channel volume
-        6.4.22  +        6.4.22.  +Muting a sampler channel
+        6.4.23.  +Soloing a sampler channel
+        6.4.24.  +Assigning a MIDI instrument map to a sampler channel
+        6.4.25.  +Adding an effect send to a sampler channel
+        6.4.26.  +Removing an effect send from a sampler channel
+        6.4.27.  +Getting amount of effect sends on a sampler channel
+        6.4.28.  +Listing all effect sends on a sampler channel
+        6.4.29.  +Getting effect send information
+        6.4.30.  +Changing effect send's name
+        6.4.31.  +Altering effect send's audio routing
+        6.4.32.  +Altering effect send's MIDI controller
+        6.4.33.  +Altering effect send's send level
+        6.4.34.  Resetting a sampler channel
-    6.5  +    6.5.  Controlling connection
-        6.5.1  +        6.5.1.  Register front-end for receiving event messages
-        6.5.2  +        6.5.2.  Unregister front-end for not receiving event messages
-        6.5.3  +        6.5.3.  Enable or disable echo of commands
-        6.5.4  +        6.5.4.  Close client connection
-    6.6  +    6.6.  Global commands
-        6.6.1  +        6.6.1.  +Current number of active voices
+        6.6.2.  +Maximum amount of active voices
+        6.6.3.  +Current number of active disk streams
+        6.6.4.  Reset sampler
-        6.6.2  +        6.6.5.  General sampler informations
+        6.6.6.  +Getting global volume attenuation
+        6.6.7.  +Setting global volume attenuation
+    6.7.  +MIDI Instrument Mapping
+        6.7.1.  +Create a new MIDI instrument map
+        6.7.2.  +Delete one particular or all MIDI instrument maps
+        6.7.3.  +Get amount of existing MIDI instrument maps
+        6.7.4.  +Getting all created MIDI instrument maps
+        6.7.5.  +Getting MIDI instrument map information
+        6.7.6.  +Renaming a MIDI instrument map
+        6.7.7.  +Create or replace a MIDI instrument map entry
+        6.7.8.  +Getting ammount of MIDI instrument map entries
+        6.7.9.  +Getting indeces of all entries of a MIDI instrument map
+        6.7.10.  +Remove an entry from the MIDI instrument map
+        6.7.11.  +Get current settings of MIDI instrument map entry
+        6.7.12.  +Clear MIDI instrument map
+    6.8.  +Managing Instruments Database
+        6.8.1.  +Creating a new instrument directory
+        6.8.2.  +Deleting an instrument directory
+        6.8.3.  +Getting amount of instrument directories
+        6.8.4.  +Listing all directories in specific directory
+        6.8.5.  +Getting instrument directory information
+        6.8.6.  +Renaming an instrument directory
+        6.8.7.  +Moving an instrument directory
+        6.8.8.  +Copying instrument directories
+        6.8.9.  +Changing the description of directory
+        6.8.10.  +Finding directories
+        6.8.11.  +Adding instruments to the instruments database
+        6.8.12.  +Removing an instrument
+        6.8.13.  +Getting amount of instruments
+        6.8.14.  +Listing all instruments in specific directory
+        6.8.15.  +Getting instrument information
+        6.8.16.  +Renaming an instrument
+        6.8.17.  +Moving an instrument
+        6.8.18.  +Copying instruments
+        6.8.19.  +Changing the description of instrument
+        6.8.20.  +Finding instruments
+        6.8.21.  +Getting job status information
+        6.8.22.  +Formatting the instruments database
+    6.9.  +Editing Instruments
+        6.9.1.  +Opening an appropriate instrument editor application
+    6.10.  +Managing Files
+        6.10.1.  +Retrieving amount of instruments of a file
+        6.10.2.  +Retrieving all instruments of a file
+        6.10.3.  +Retrieving informations about one instrument in a file
7.  Command Syntax
+    7.1.  +Character Set and Escape Sequences
8.  Events
-    8.1  +    8.1.  +Number of audio output devices changed
+    8.2.  +Audio output device's settings changed
+    8.3.  +Number of MIDI input devices changed
+    8.4.  +MIDI input device's settings changed
+    8.5.  Number of sampler channels changed
-    8.2  +    8.6.  Number of active voices changed
-    8.3  +    8.7.  Number of active disk streams changed
-    8.4  +    8.8.  Disk stream buffer fill state changed
-    8.5  +    8.9.  Channel information changed
-    8.6  +    8.10.  +Number of effect sends changed
+    8.11.  +Effect send information changed
+    8.12.  +Total number of active voices changed
+    8.13.  +Total number of active disk streams changed
+    8.14.  +Number of MIDI instrument maps changed
+    8.15.  +MIDI instrument map information changed
+    8.16.  +Number of MIDI instruments changed
+    8.17.  +MIDI instrument information changed
+    8.18.  +Global settings changed
+    8.19.  +Number of database instrument directories changed
+    8.20.  +Database instrument directory information changed
+    8.21.  +Number of database instruments changed
+    8.22.  +Database instrument information changed
+    8.23.  +Database job status information changed
+    8.24.  Miscellaneous and debugging events
9.  Security Considerations
@@ -324,13 +516,14 @@


-
 TOC 
-

1. Requirements notation

+
 TOC 
+

1.  +Requirements notation

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as - described in [RFC2119]Bradner, S., Key words for use in RFCs to Indicate Requirement Levels, 1997.. + described in [RFC2119] (Bradner, S., “Key words for use in RFCs to Indicate Requirement Levels,” 1997.).

This protocol is always case-sensitive if not explicitly claimed the opposite. @@ -339,27 +532,31 @@ (front-end) and server (LinuxSampler) respectively. Lines in examples must be interpreted as every line being CRLF terminated (carriage return character followed by line feed - character as defined in the ASCII standard), thus the following - example: + character as defined in the ASCII standard [RFC20] (UCLA, “ASCII format for Network Interchange,” 1969.)), + thus the following example:

-

+

+

C: "some line"

   "another line"

-
- +

+ +

must actually be interpreted as client sending the following message:

-

+

+

"some line<CR><LF>another line<CR><LF>"

-
- +

+ +

where <CR> symbolizes the carriage return character and <LF> the line feed character as defined in the ASCII standard. @@ -367,16 +564,19 @@

Due to technical reasons, messages can arbitrary be fragmented, means the following example:

-

+

+

S: "abcd"

-
- +

+ +

could also happen to be sent in three messages like in the following sequence scenario:

-

+

+

- +

+ +

where again <CR> and <LF> symbolize the carriage return and line feed characters respectively.



-
 TOC 
-

2. Versioning of this specification

+
 TOC 
+

2.  +Versioning of this specification

LSCP will certainly be extended and enhanced by-and-by. Each official release of the LSCP specification will be tagged with a unique version @@ -407,12 +609,14 @@ number like:

-

+

+

"1.2"

-
- +

+ +

In this example the major version number would be "1" and the minor version number would be "2". Note that the version tuple might also @@ -425,7 +629,8 @@

Compatibility:

-

+

+

  1. The frontend's LSCP major version and the sampler's LSCP major version are exactly equal. @@ -433,18 +638,20 @@
  2. The frontend's LSCP minor version is less or equal than the sampler's LSCP minor version.
  3. -
- +

+ +

Compatibility can only be claimed if both rules are true. The frontend can use the - "GET SERVER INFO"General sampler informations command to + "GET SERVER INFO" (General sampler informations) command to get the version of the LSCP specification the sampler complies with.



-
 TOC 
-

3. Introduction

+
 TOC 
+

3.  +Introduction

LinuxSampler is a so called software sampler application capable to playback audio samples from a computer's Random @@ -464,8 +671,9 @@ there.



-
 TOC 
-

4. Focus of this protocol

+
 TOC 
+

4.  +Focus of this protocol

Main focus of this protocol is to provide a way to configure a running LinuxSampler instance and to retrieve information @@ -476,8 +684,9 @@ via MIDI System Exclusive Messages.



-
 TOC 
-

5. Communication Overview

+
 TOC 
+

5.  +Communication Overview

There are two distinct methods of communication between a running instance of LinuxSampler and one or more control @@ -490,10 +699,13 @@ implemented in the front-end application. The two communication methods will be described next.

-

5.1 Request/response communication method

+

+
 TOC 
+

5.1.  +Request/response communication method

This simple communication method is based on - TCPDefense Advanced Research Projects Agency, TRANSMISSION CONTROL PROTOCOL, 1981.[RFC793]. The + TCP (Defense Advanced Research Projects Agency, “TRANSMISSION CONTROL PROTOCOL,” 1981.) [RFC793]. The front-end application establishes a TCP connection to the LinuxSampler instance on a certain host system. Then the front-end application will send certain ASCII based commands @@ -533,11 +745,15 @@ processed in the order they were received and result sets MUST be sent back in the same order.

-

5.1.1 Result format

+

+
 TOC 
+

5.1.1.  +Result format

Result set could be one of the following types:

-

+

+

  1. Normal
  2. @@ -545,19 +761,22 @@
  3. Error
  4. -
- +

+ +

Warning and Error result sets MUST be single line and have the following format:

-

+

+

- +

+ +

Where <warning-code> and <error-code> are numeric unique identifiers of the warning or error and <warning-message> and <error-message> are @@ -566,33 +785,40 @@

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:

-

+

+

  1. Empty
  2. @@ -600,45 +826,53 @@
  3. Multi-line
  4. -
- +

+ +

Empty result set is issued when the server only needed to acknowledge the fact that the request was received and it was processed successfully and no additional information is available. This result set has the following format:

-

+

+

"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 include one or more lines of information. They MUST always end with the following line:

-

+

+

"."

-
- +

+ +

Example:

-

+

+

C: "GET AUDIO_OUTPUT_DEVICE INFO 0"

@@ -658,20 +892,23 @@

   "."

-
- +

+ +

In addition to above mentioned formats, warnings and empty result sets MAY be indexed. In this case, they have the following formats respectively:

-

+

+

- +

+ +

where <index> is command specific and is used to indicate channel number that the result set was related to or other integer value. @@ -681,23 +918,30 @@

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."

-
- -

5.2 Subscribe/notify communication method

+

+ +

+

+
 TOC 
+

5.2.  +Subscribe/notify communication method

This more sophisticated communication method is actually only an extension of the simple request/response @@ -709,12 +953,14 @@ as they happen on the server. The SUBSCRIBE command has the following syntax:

-

+

+

SUBSCRIBE <event-id>

-
- +

+ +

where <event-id> will be replaced by the respective event that client wants to subscribe to. Upon receiving such request, server SHOULD respond with OK and start sending @@ -724,12 +970,14 @@ time nature of their generation. Event messages have the following format:

-

+

+

NOTIFY:<event-id>:<custom-event-data>

-
- +

+ +

where <event-id> uniquely identifies the event that has occurred and <custom-event-data> is event specific. @@ -737,7 +985,8 @@

Several rules must be followed by the server when generating events:

-

+

+

  1. Events MUST NOT be sent to any client who has not issued an appropriate SUBSCRIBE command. @@ -752,33 +1001,38 @@ middle of the event message as well as any other response.
  2. -
- +

+ +

If the client is not interested in a particular event anymore it MAY issue UNSUBSCRIBE command using the following syntax:

-

+

+

UNSUBSCRIBE <event-id>

-
- +

+ +

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 Section 8Events. + a list of supported events see Section 8 (Events).

Example: the fill states of disk stream buffers have changed on sampler channel 4 and the LinuxSampler instance will react by sending the following message to all clients who subscribed to this event:

-

+

+

NOTIFY:CHANNEL_BUFFER_FILL:4 [35]62%,[33]80%,[37]98%

-
- +

+ +

Which means there are currently three active streams on sampler channel 4, where the stream with ID "35" is filled by 62%, stream with ID 33 is filled by 80% and stream with @@ -810,17 +1064,21 @@ it wants to receive.



-
 TOC 
-

6. Description for control commands

+
 TOC 
+

6.  +Description for control commands

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"Getting sampler channel information - or "GET ENGINE INFO"Getting information about an engine) lead to + commands (e.g. "GET CHANNEL INFO" (Getting sampler channel information) + or "GET ENGINE INFO" (Getting information about an engine)) lead to multiple-line responses. In this case LinuxSampler signals the end of the response by a "." (single dot) line.

-

6.1 Ignored lines and comments

+

+
 TOC 
+

6.1.  +Ignored lines and comments

White lines, that is lines which only contain space and tabulator characters, and lines that start with a "#" @@ -828,7 +1086,10 @@ group commands and to place comments in a LSCP script file.

-

6.2 Configuring audio drivers

+

+
 TOC 
+

6.2.  +Configuring audio drivers

Instances of drivers in LinuxSampler are called devices. You can use multiple audio devices simultaneously, e.g. to @@ -861,89 +1122,113 @@ what parameters drivers are offering, how to retrieve their possible values, etc.

-

6.2.1 Getting amount of available audio output drivers

+

+
 TOC 
+

6.2.1.  +Getting amount of available audio output drivers

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"

-
- -

6.2.2 Getting all available audio output drivers

+

+ +

+

+
 TOC 
+

6.2.2.  +Getting all available audio output drivers

Use the following command to list all audio output drivers currently available for the LinuxSampler instance:

-

+

+

LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS

-
- +

+ +

Possible Answers:

-

+

+

LinuxSampler will answer by sending comma separated character strings, each symbolizing an audio output driver.

-
- +

+ +

Example:

-

+

+

C: "LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS"

S: "ALSA,JACK"

-
- -

6.2.3 Getting information about a specific audio - output driver

+

+ +

+

+
 TOC 
+

6.2.3.  +Getting information about a specific audio + output driver

Use the following command to get detailed information about a specific audio output driver:

-

+

+

GET AUDIO_OUTPUT_DRIVER INFO <audio-output-driver>

-
- +

+ +

Where <audio-output-driver> is the name of the audio output driver, returned by the - "LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS"Getting all available audio output drivers command. + "LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS" (Getting all available audio output drivers) command.

Possible Answers:

-

+

+

LinuxSampler will answer by sending a <CRLF> separated list. Each answer line @@ -954,7 +1239,8 @@ following information categories are defined:

-

+

+

DESCRIPTION -

@@ -963,6 +1249,7 @@ audio output driver

+

VERSION -

@@ -971,6 +1258,7 @@ driver's version

+

PARAMETERS -

@@ -983,17 +1271,21 @@ output drivers

+ +

The mentioned fields above don't have to be in particular order.

- - +

+ +

Example:

-

+

+

C: "GET AUDIO_OUTPUT_DRIVER INFO ALSA"

@@ -1008,25 +1300,31 @@

   "."

-
- -

6.2.4 Getting information about specific audio - output driver parameter

+

+ +

+

+
 TOC 
+

6.2.4.  +Getting information about specific audio + output driver parameter

Use the following command to get detailed information about a specific audio output driver parameter:

-

+

+

GET AUDIO_OUTPUT_DRIVER_PARAMETER INFO <audio> <prm> [<deplist>]

-
- +

+ +

Where <audio> is the name of the audio output - driver as returned by the "LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS"Getting all available audio output drivers command, + driver as returned by the "LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS" (Getting all 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"Getting information about a specific audio output driver command) and + "GET AUDIO_OUTPUT_DRIVER INFO" (Getting information about a specific audio output driver) 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 @@ -1037,7 +1335,8 @@

Possible Answers:

-

+

+

LinuxSampler will answer by sending a <CRLF> separated list. @@ -1050,9 +1349,11 @@ which is only shown dependently to given driver parameter. At the moment the following information categories are defined:

-
- -

+

+ +

+

+

TYPE -

@@ -1064,6 +1365,7 @@ (always returned, no matter which driver parameter)

+

DESCRIPTION -

@@ -1072,26 +1374,29 @@ (always returned, no matter which driver parameter)

+

MANDATORY -

either true or false, defines if this parameter must be given when the device is to be created with the - 'CREATE AUDIO_OUTPUT_DEVICE'Creating an audio output device + 'CREATE AUDIO_OUTPUT_DEVICE' (Creating an audio output device) command (always returned, no matter which driver parameter)

+

FIX -

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'Creating an audio output device + the 'CREATE AUDIO_OUTPUT_DEVICE' (Creating an audio output device) command (always returned, no matter which driver parameter)

+

MULTIPLICITY -

@@ -1102,6 +1407,7 @@ (always returned, no matter which driver parameter)

+

DEPENDS -

@@ -1118,19 +1424,21 @@ (optionally returned, dependent to driver parameter)

+

DEFAULT -

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'Creating an audio output device command, + given with the 'CREATE AUDIO_OUTPUT_DEVICE' (Creating an audio output device) command, in case of MULTIPLCITY=true, this is a comma separated list, that's why character strings are encapsulated into apostrophes (') (optionally returned, dependent to driver parameter)

+

RANGE_MIN -

@@ -1142,6 +1450,7 @@ (optionally returned, dependent to driver parameter)

+

RANGE_MAX -

@@ -1153,6 +1462,7 @@ (optionally returned, dependent to driver parameter)

+

POSSIBILITIES -

@@ -1163,14 +1473,17 @@ (optionally returned, dependent to driver parameter)

+ - - +

+ +

The mentioned fields above don't have to be in particular order.

Examples:

-

+

+

C: "GET AUDIO_OUTPUT_DRIVER_PARAMETER INFO ALSA CARD"

@@ -1190,9 +1503,11 @@

   "."

-
- -

+

+ +

+

+

C: "GET AUDIO_OUTPUT_DRIVER_PARAMETER INFO ALSA SAMPLERATE"

@@ -1212,9 +1527,11 @@

   "."

-
- -

+

+ +

+

+

C: "GET AUDIO_OUTPUT_DRIVER_PARAMETER INFO ALSA SAMPLERATE CARD='0,0'"

@@ -1238,21 +1555,27 @@

   "."

-
- -

6.2.5 Creating an audio output device

+

+ +

+

+
 TOC 
+

6.2.5.  +Creating an audio output device

Use the following command to create a new audio output device for the desired audio output system:

-

+

+

CREATE AUDIO_OUTPUT_DEVICE <audio-output-driver> [<param-list>]

-
- +

+ +

Where <audio-output-driver> should be replaced by the desired audio output system as returned by the - "LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS"Getting all available audio output drivers + "LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS" (Getting all available audio output drivers) command and <param-list> by an optional list of driver specific parameters in form of "key1=val1 key2=val2 ...", where character string values should be encapsulated into apostrophes ('). @@ -1262,7 +1585,8 @@

Possible Answers:

-

+

+

"OK[<device-id>]" -

@@ -1271,6 +1595,7 @@ <device-id> is the numerical ID of the new device

+

"WRN[<device-id>]:<warning-code>:<warning-message>" -

@@ -1283,6 +1608,7 @@ warning message

+

"ERR:<error-code>:<error-message>" -

@@ -1290,46 +1616,58 @@

in case it failed, providing an appropriate error code and error message

+ - - +

+ +

Examples:

-

+

+

C: "CREATE AUDIO_OUTPUT_DEVICE ALSA"

S: "OK[0]"

-
- -

+

+ +

+

+

C: "CREATE AUDIO_OUTPUT_DEVICE ALSA CARD='2,0' SAMPLERATE=96000"

S: "OK[1]"

-
- -

6.2.6 Destroying an audio output device

+

+ +

+

+
 TOC 
+

6.2.6.  +Destroying an audio output device

Use the following command to destroy a created output device:

-

+

+

DESTROY AUDIO_OUTPUT_DEVICE <device-id>

-
- +

+ +

Where <device-id> should be replaced by the numerical ID of the audio output device as given by the - "CREATE AUDIO_OUTPUT_DEVICE"Creating an audio output device - or "LIST AUDIO_OUTPUT_DEVICES"Getting all created audio output device list + "CREATE AUDIO_OUTPUT_DEVICE" (Creating an audio output device) + or "LIST AUDIO_OUTPUT_DEVICES" (Getting all created audio output device list) command.

Possible Answers:

-

+

+

"OK" -

@@ -1337,6 +1675,7 @@

in case the device was successfully destroyed

+

"WRN:<warning-code>:<warning-message>" -

@@ -1348,6 +1687,7 @@ warning code and warning message

+

"ERR:<error-code>:<error-message>" -

@@ -1356,90 +1696,117 @@ error message

+ - - +

+ +

Example:

-

+

+

C: "DESTROY AUDIO_OUTPUT_DEVICE 0"

S: "OK"

-
- -

6.2.7 Getting all created audio output device count

+

+ +

+

+
 TOC 
+

6.2.7.  +Getting all created audio output device count

Use the following command to count all created audio output devices:

-

+

+

GET AUDIO_OUTPUT_DEVICES

-
- +

+ +

Possible Answers:

-

+

+

LinuxSampler will answer by sending the current number of all audio output devices.

-
- +

+ +

Example:

-

+

+

C: "GET AUDIO_OUTPUT_DEVICES"

S: "4"

-
- -

6.2.8 Getting all created audio output device list

+

+ +

+

+
 TOC 
+

6.2.8.  +Getting all created audio output device list

Use the following command to list all created audio output devices:

-

+

+

LIST AUDIO_OUTPUT_DEVICES

-
- +

+ +

Possible Answers:

-

+

+

LinuxSampler will answer by sending a comma separated list with the numerical IDs of all audio output devices.

-
- +

+ +

Example:

-

+

+

C: "LIST AUDIO_OUTPUT_DEVICES"

S: "0,1,4,5"

-
- -

6.2.9 Getting current settings of an audio output device

+

+ +

+

+
 TOC 
+

6.2.9.  +Getting current settings of an audio output device

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 numerical ID of the audio output device as e.g. returned by the - "LIST AUDIO_OUTPUT_DEVICES"Getting all created audio output device list command. + "LIST AUDIO_OUTPUT_DEVICES" (Getting all created audio output device list) command.

Possible Answers:

@@ -1451,17 +1818,19 @@ encapsulated into apostrophes ('). At the moment the following information categories are defined (independently of device):

-

+

+

DRIVER -

identifier of the used audio output driver, as also returned by the - "LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS"Getting all available audio output drivers + "LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS" (Getting all available audio output drivers) command

+

CHANNELS -

@@ -1470,6 +1839,7 @@ offers

+

SAMPLERATE -

@@ -1477,6 +1847,7 @@

playback sample rate the device uses

+

ACTIVE -

@@ -1487,19 +1858,22 @@ any audio

+ - - +

+ +

The mentioned fields above don't have to be in particular 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 - Section 6.2.3Getting information about a specific audio output driver) + Section 6.2.3 (Getting information about a specific audio output driver)) which are also returned by this command.

Example:

-

+

+

C: "GET AUDIO_OUTPUT_DEVICE INFO 0"

@@ -1519,28 +1893,35 @@

   "."

-
- -

6.2.10 Changing settings of audio output devices

+

+ +

+

+
 TOC 
+

6.2.10.  +Changing settings of audio output devices

Use the following command to alter a specific setting of a created audio output device:

-

+

+

SET AUDIO_OUTPUT_DEVICE_PARAMETER <device-id> <key>=<value>

-
- +

+ +

Where <device-id> should be replaced by the numerical ID of the audio output device as given by the - "CREATE AUDIO_OUTPUT_DEVICE"Creating an audio output device - or "LIST AUDIO_OUTPUT_DEVICES"Getting all created audio output device list + "CREATE AUDIO_OUTPUT_DEVICE" (Creating an audio output device) + or "LIST AUDIO_OUTPUT_DEVICES" (Getting all created audio output device list) command, <key> by the name of the parameter to change and <value> by the new value for this parameter.

Possible Answers:

-

+

+

"OK" -

@@ -1548,6 +1929,7 @@

in case setting was successfully changed

+

"WRN:<warning-code>:<warning-message>" -

@@ -1557,6 +1939,7 @@ warning code and warning message

+

"ERR:<error-code>:<error-message>" -

@@ -1565,37 +1948,47 @@ error message

+ - - +

+ +

Example:

-

+

+

C: "SET AUDIO_OUTPUT_DEVICE_PARAMETER 0 FRAGMENTSIZE=128"

S: "OK"

-
- -

6.2.11 Getting information about an audio channel

+

+ +

+

+
 TOC 
+

6.2.11.  +Getting information about an audio channel

Use the following command to get information about an audio channel:

-

+

+

GET AUDIO_OUTPUT_CHANNEL INFO <device-id> <audio-chan>

-
- +

+ +

Where <device-id> is the numerical ID of the audio output device as given by the - "CREATE AUDIO_OUTPUT_DEVICE"Creating an audio output device - or "LIST AUDIO_OUTPUT_DEVICES"Getting all created audio output device list + "CREATE AUDIO_OUTPUT_DEVICE" (Creating an audio output device) + or "LIST AUDIO_OUTPUT_DEVICES" (Getting all created audio output device list) command and <audio-chan> the audio channel number.

Possible Answers:

-

+

+

LinuxSampler will answer by sending a <CRLF> separated list. Each answer line begins with the information category name @@ -1603,7 +1996,8 @@ the info character string to that info category. At the moment the following information categories are defined:

-

+

+

NAME -

@@ -1612,6 +2006,7 @@ doesn't have to be unique (always returned by all audio channels)

+

IS_MIX_CHANNEL -

@@ -1624,6 +2019,7 @@ (always returned by all audio channels)

+

MIX_CHANNEL_DESTINATION -

@@ -1635,11 +2031,14 @@ (only returned in case the audio channel is mix channel)

+ + - - +

+ +

The mentioned fields above don't have to be in particular order. The fields above are only those fields which are generally returned for the described cases by all audio @@ -1649,7 +2048,8 @@

Examples:

-

+

+

C: "GET AUDIO_OUTPUT_CHANNEL INFO 0 0"

@@ -1659,9 +2059,11 @@

   "."

-
- -

+

+ +

+

+

C: "GET AUDIO_OUTPUT_CHANNEL INFO 0 1"

@@ -1671,9 +2073,11 @@

   "."

-
- -

+

+ +

+

+

C: "GET AUDIO_OUTPUT_CHANNEL INFO 0 2"

@@ -1685,9 +2089,11 @@

   "."

-
- -

+

+ +

+

+

C: "GET AUDIO_OUTPUT_CHANNEL INFO 1 0"

@@ -1699,28 +2105,35 @@

   "."

-
- -

6.2.12 Getting information about specific audio channel parameter

+

+ +

+

+
 TOC 
+

6.2.12.  +Getting information about specific audio channel parameter

Use the following command to get detailed information about specific audio channel parameter:

-

+

+

GET AUDIO_OUTPUT_CHANNEL_PARAMETER INFO <dev-id> <chan> <param>

-
- +

+ +

Where <dev-id> is the numerical ID of the audio output device as returned by the - "CREATE AUDIO_OUTPUT_DEVICE"Creating an audio output device - or "LIST AUDIO_OUTPUT_DEVICES"Getting all created audio output device list + "CREATE AUDIO_OUTPUT_DEVICE" (Creating an audio output device) + or "LIST AUDIO_OUTPUT_DEVICES" (Getting all created audio output device list) 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"Getting information about an audio channel command). + be obtained (as returned by the "GET AUDIO_OUTPUT_CHANNEL INFO" (Getting information about an audio channel) command).

Possible Answers:

-

+

+

LinuxSampler will answer by sending a <CRLF> separated list. Each answer line begins with the information category name @@ -1731,7 +2144,8 @@ which is only shown dependently to the given audio channel. At the moment the following information categories are defined:

-

+

+

TYPE -

@@ -1742,6 +2156,7 @@ (always returned)

+

DESCRIPTION -

@@ -1749,6 +2164,7 @@

arbitrary text describing the purpose of the parameter (always returned)

+

FIX -

@@ -1758,6 +2174,7 @@ (always returned)

+

MULTIPLICITY -

@@ -1768,6 +2185,7 @@ (always returned)

+

RANGE_MIN -

@@ -1780,6 +2198,7 @@ parameter)

+

RANGE_MAX -

@@ -1792,6 +2211,7 @@ parameter)

+

POSSIBILITIES -

@@ -1803,16 +2223,20 @@ parameter)

+ +

The mentioned fields above don't have to be in particular order.

- - +

+ +

Example:

-

+

+

C: "GET AUDIO_OUTPUT_CHANNEL_PARAMETER INFO 1 0 JACK_BINDINGS"

@@ -1828,27 +2252,34 @@

   "."

-
- -

6.2.13 Changing settings of audio output channels

+

+ +

+

+
 TOC 
+

6.2.13.  +Changing settings of audio output channels

Use the following command to alter a specific setting of an audio output channel:

-

+

+

SET AUDIO_OUTPUT_CHANNEL_PARAMETER <dev-id> <chn> <key>=<value>

-
- +

+ +

Where <dev-id> should be replaced by the numerical ID of the audio output device as returned by the - "CREATE AUDIO_OUTPUT_DEVICE"Creating an audio output device - or "LIST AUDIO_OUTPUT_DEVICES"Getting all created audio output device list + "CREATE AUDIO_OUTPUT_DEVICE" (Creating an audio output device) + or "LIST AUDIO_OUTPUT_DEVICES" (Getting all created audio output device list) command, <chn> by the audio channel number, <key> by the name of the parameter to change and <value> by the new value for this parameter.

Possible Answers:

-

+

+

"OK" -

@@ -1856,6 +2287,7 @@

in case setting was successfully changed

+

"WRN:<warning-code>:<warning-message>" -

@@ -1865,6 +2297,7 @@ warning code and warning message

+

"ERR:<error-code>:<error-message>" -

@@ -1873,28 +2306,37 @@ error message

+ - - +

+ +

Example:

-

+

+

C: "SET AUDIO_OUTPUT_CHANNEL PARAMETER 0 0 JACK_BINDINGS='PCM:0'"

S: "OK"

-
- -

+

+ +

+

+

C: "SET AUDIO_OUTPUT_CHANNEL PARAMETER 0 0 NAME='monitor left'"

S: "OK"

-
- -

6.3 Configuring MIDI input drivers

+

+ +

+

+
 TOC 
+

6.3.  +Configuring MIDI input drivers

Instances of drivers in LinuxSampler are called devices. You can use multiple MIDI devices simultaneously, e.g. to use MIDI over ethernet as @@ -1922,83 +2364,107 @@ showing how to retrieve what parameters drivers are offering, how to retrieve their possible values, etc.

-

6.3.1 Getting amount of available MIDI input drivers

+

+
 TOC 
+

6.3.1.  +Getting amount of available MIDI input drivers

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"

-
- -

6.3.2 Getting all available MIDI input drivers

+

+ +

+

+
 TOC 
+

6.3.2.  +Getting all available MIDI input drivers

Use the following command to list all MIDI input drivers currently available for the LinuxSampler instance:

-

+

+

LIST AVAILABLE_MIDI_INPUT_DRIVERS

-
- +

+ +

Possible Answers:

-

+

+

LinuxSampler will answer by sending comma separated character strings, each symbolizing a MIDI input driver.

-
- +

+ +

Example:

-

+

+

C: "LIST AVAILABLE_MIDI_INPUT_DRIVERS"

S: "ALSA,JACK"

-
- -

6.3.3 Getting information about a specific MIDI input driver

+

+ +

+

+
 TOC 
+

6.3.3.  +Getting information about a specific MIDI input driver

Use the following command to get detailed information about a specific MIDI input driver:

-

+

+

GET MIDI_INPUT_DRIVER INFO <midi-input-driver>

-
- +

+ +

Where <midi-input-driver> is the name of the MIDI input driver as returned - by the "LIST AVAILABLE_MIDI_INPUT_DRIVERS"Getting all available MIDI input drivers command. + by the "LIST AVAILABLE_MIDI_INPUT_DRIVERS" (Getting all available MIDI input drivers) command.

Possible Answers:

-

+

+

LinuxSampler will answer by sending a <CRLF> separated list. Each answer line begins with the information category name @@ -2006,7 +2472,8 @@ the info character string to that info category. At the moment the following information categories are defined:

-

+

+

DESCRIPTION -

@@ -2014,6 +2481,7 @@

arbitrary description text about the MIDI input driver

+

VERSION -

@@ -2021,6 +2489,7 @@

arbitrary character string regarding the driver's version

+

PARAMETERS -

@@ -2028,16 +2497,20 @@

comma separated list of all parameters available for the given MIDI input driver

+ +

The mentioned fields above don't have to be in particular order.

- - +

+ +

Example:

-

+

+

C: "GET MIDI_INPUT_DRIVER INFO ALSA"

@@ -2049,22 +2522,28 @@

   "."

-
- -

6.3.4 Getting information about specific MIDI input driver parameter

+

+ +

+

+
 TOC 
+

6.3.4.  +Getting information about specific MIDI input driver parameter

Use the following command to get detailed information about a specific parameter of a specific MIDI input driver:

-

+

+

GET MIDI_INPUT_DRIVER_PARAMETER INFO <midit> <param> [<deplist>]

-
- +

+ +

Where <midit> is the name of the MIDI input driver as returned - by the "LIST AVAILABLE_MIDI_INPUT_DRIVERS"Getting all available MIDI input drivers command, <param> a specific + by the "LIST AVAILABLE_MIDI_INPUT_DRIVERS" (Getting all 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"Getting information about a specific MIDI input driver command) and <deplist> is an optional list + "GET MIDI_INPUT_DRIVER INFO" (Getting information about a specific MIDI input driver) 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 @@ -2083,7 +2562,8 @@ which is only shown dependent to given driver parameter. At the moment the following information categories are defined:

-

+

+

TYPE -

@@ -2094,6 +2574,7 @@ (always returned, no matter which driver parameter)

+

DESCRIPTION -

@@ -2102,26 +2583,29 @@ (always returned, no matter which driver parameter)

+

MANDATORY -

either true or false, defines if this parameter must be given when the device is to be created with the - 'CREATE MIDI_INPUT_DEVICE'Creating a MIDI input device command + 'CREATE MIDI_INPUT_DEVICE' (Creating a MIDI input device) command (always returned, no matter which driver parameter)

+

FIX -

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'Creating a MIDI input device command + the 'CREATE MIDI_INPUT_DEVICE' (Creating a MIDI input device) command (always returned, no matter which driver parameter)

+

MULTIPLICITY -

@@ -2132,6 +2616,7 @@ (always returned, no matter which driver parameter)

+

DEPENDS -

@@ -2148,19 +2633,21 @@ (optionally returned, dependent to driver parameter)

+

DEFAULT -

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'Creating a MIDI input device command, + given with the 'CREATE MIDI_INPUT_DEVICE' (Creating a MIDI input device) command, in case of MULTIPLCITY=true, this is a comma separated list, that's why character strings are encapsulated into apostrophes (') (optionally returned, dependent to driver parameter)

+

RANGE_MIN -

@@ -2172,6 +2659,7 @@ (optionally returned, dependent to driver parameter)

+

RANGE_MAX -

@@ -2183,6 +2671,7 @@ (optionally returned, dependent to driver parameter)

+

POSSIBILITIES -

@@ -2193,14 +2682,17 @@ (optionally returned, dependent to driver parameter)

+ - - +

+ +

The mentioned fields above don't have to be in particular order.

Example:

-

+

+

C: "GET MIDI_INPUT_DRIVER_PARAMETER INFO ALSA ACTIVE"

@@ -2218,20 +2710,26 @@

   "."

-
- -

6.3.5 Creating a MIDI input device

+

+ +

+

+
 TOC 
+

6.3.5.  +Creating a MIDI input device

Use the following command to create a new MIDI input device for the desired MIDI input system:

-

+

+

CREATE MIDI_INPUT_DEVICE <midi-input-driver> [<param-list>]

-
- +

+ +

Where <midi-input-driver> should be replaced by the desired MIDI input system as returned - by the "LIST AVAILABLE_MIDI_INPUT_DRIVERS"Getting all available MIDI input drivers command and <param-list> by an + by the "LIST AVAILABLE_MIDI_INPUT_DRIVERS" (Getting all available MIDI input drivers) command and <param-list> by an optional list of driver specific parameters in form of "key1=val1 key2=val2 ...", where character string values should be encapsulated into apostrophes ('). Note that there might be drivers which require parameter(s) to be @@ -2240,7 +2738,8 @@

Possible Answers:

-

+

+

"OK[<device-id>]" -

@@ -2249,6 +2748,7 @@ <device-id> is the numerical ID of the new device

+

"WRN[<device-id>]:<warning-code>:<warning-message>" -

@@ -2259,6 +2759,7 @@ appropriate warning code and warning message

+

"ERR:<error-code>:<error-message>" -

@@ -2266,37 +2767,47 @@

in case it failed, providing an appropriate error code and error message

+ - - +

+ +

Example:

-

+

+

C: "CREATE MIDI_INPUT_DEVICE ALSA"

S: "OK[0]"

-
- -

6.3.6 Destroying a MIDI input device

+

+ +

+

+
 TOC 
+

6.3.6.  +Destroying a MIDI input device

Use the following command to destroy a created MIDI input device:

-

+

+

DESTROY MIDI_INPUT_DEVICE <device-id>

-
- +

+ +

Where <device-id> should be replaced by the device's numerical ID as returned by the - "CREATE MIDI_INPUT_DEVICE"Creating a MIDI input device - or "LIST MIDI_INPUT_DEVICES"Getting all created MIDI input device list + "CREATE MIDI_INPUT_DEVICE" (Creating a MIDI input device) + or "LIST MIDI_INPUT_DEVICES" (Getting all created MIDI input device list) command.

Possible Answers:

-

+

+

"OK" -

@@ -2304,6 +2815,7 @@

in case the device was successfully destroyed

+

"WRN:<warning-code>:<warning-message>" -

@@ -2313,6 +2825,7 @@ warning message

+

"ERR:<error-code>:<error-message>" -

@@ -2320,103 +2833,133 @@

in case it failed, providing an appropriate error code and error message

+ - - +

+ +

Example:

-

+

+

C: "DESTROY MIDI_INPUT_DEVICE 0"

S: "OK"

-
- -

6.3.7 Getting all created MIDI input device count

+

+ +

+

+
 TOC 
+

6.3.7.  +Getting all created MIDI input device count

Use the following command to count all created MIDI input devices:

-

+

+

GET MIDI_INPUT_DEVICES

-
- +

+ +

Possible Answers:

-

+

+

LinuxSampler will answer by sending the current number of all MIDI input devices.

-
- +

+ +

Example:

-

+

+

C: "GET MIDI_INPUT_DEVICES"

S: "3"

-
- -

6.3.8 Getting all created MIDI input device list

+

+ +

+

+
 TOC 
+

6.3.8.  +Getting all created MIDI input device list

Use the following command to list all created MIDI input devices:

-

+

+

LIST MIDI_INPUT_DEVICES

-
- +

+ +

Possible Answers:

-

+

+

LinuxSampler will answer by sending a comma separated list with the numerical Ids of all created MIDI input devices.

-
- +

+ +

Examples:

-

+

+

C: "LIST MIDI_INPUT_DEVICES"

S: "0,1,2"

-
- -

+

+ +

+

+

C: "LIST MIDI_INPUT_DEVICES"

S: "1,3"

-
- -

6.3.9 Getting current settings of a MIDI input device

+

+ +

+

+
 TOC 
+

6.3.9.  +Getting current settings of a MIDI input device

Use the following command to get current settings of a specific, created MIDI input device:

-

+

+

GET MIDI_INPUT_DEVICE INFO <device-id>

-
- +

+ +

Where <device-id> is the numerical ID of the MIDI input device as returned by the - "CREATE MIDI_INPUT_DEVICE"Creating a MIDI input device - or "LIST MIDI_INPUT_DEVICES"Getting all created MIDI input device list + "CREATE MIDI_INPUT_DEVICE" (Creating a MIDI input device) + or "LIST MIDI_INPUT_DEVICES" (Getting all created MIDI input device list) command.

Possible Answers:

-

+

+

LinuxSampler will answer by sending a <CRLF> separated list. Each answer line begins with the information category name @@ -2426,20 +2969,23 @@ encapsulated into apostrophes ('). At the moment the following information categories are defined (independent of driver):

-

+

+

DRIVER -

identifier of the used MIDI input driver, as e.g. - returned by the "LIST AVAILABLE_MIDI_INPUT_DRIVERS"Getting all available MIDI input drivers + returned by the "LIST AVAILABLE_MIDI_INPUT_DRIVERS" (Getting all available MIDI input drivers) command

+
+
-

ACTIVE - +

ACTIVE -

either true or false, if false then the MIDI device is @@ -2448,21 +2994,25 @@ channels

+
+ -
- +

+ +

The mentioned fields above don't have to be in particular 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"Getting information about a specific MIDI input driver command) which are also returned + "GET MIDI_INPUT_DRIVER INFO" (Getting information about a specific MIDI input driver) command) which are also returned by this command.

Example:

-

+

+

C: "GET MIDI_INPUT_DEVICE INFO 0"

@@ -2472,28 +3022,35 @@

   "."

-
- -

6.3.10 Changing settings of MIDI input devices

+

+ +

+

+
 TOC 
+

6.3.10.  +Changing settings of MIDI input devices

Use the following command to alter a specific setting of a created MIDI input device:

-

+

+

SET MIDI_INPUT_DEVICE_PARAMETER <device-id> <key>=<value>

-
- +

+ +

Where <device-id> should be replaced by the numerical ID of the MIDI input device as returned by the - "CREATE MIDI_INPUT_DEVICE"Creating a MIDI input device - or "LIST MIDI_INPUT_DEVICES"Getting all created MIDI input device list + "CREATE MIDI_INPUT_DEVICE" (Creating a MIDI input device) + or "LIST MIDI_INPUT_DEVICES" (Getting all created MIDI input device list) command, <key> by the name of the parameter to change and <value> by the new value for this parameter.

Possible Answers:

-

+

+

"OK" -

@@ -2501,6 +3058,7 @@

in case setting was successfully changed

+

"WRN:<warning-code>:<warning-message>" -

@@ -2510,6 +3068,7 @@ warning code and warning message

+

"ERR:<error-code>:<error-message>" -

@@ -2517,37 +3076,47 @@

in case it failed, providing an appropriate error code and error message

+ - - +

+ +

Example:

-

+

+

C: "SET MIDI_INPUT_DEVICE_PARAMETER 0 ACTIVE=false"

S: "OK"

-
- -

6.3.11 Getting information about a MIDI port

+

+ +

+

+
 TOC 
+

6.3.11.  +Getting information about a MIDI port

Use the following command to get information about a MIDI port:

-

+

+

GET MIDI_INPUT_PORT INFO <device-id> <midi-port>

-
- +

+ +

Where <device-id> is the numerical ID of the MIDI input device as returned by the - "CREATE MIDI_INPUT_DEVICE"Creating a MIDI input device - or "LIST MIDI_INPUT_DEVICES"Getting all created MIDI input device list + "CREATE MIDI_INPUT_DEVICE" (Creating a MIDI input device) + or "LIST MIDI_INPUT_DEVICES" (Getting all created MIDI input device list) command and <midi-port> the MIDI input port number.

Possible Answers:

-

+

+

LinuxSampler will answer by sending a <CRLF> separated list. Each answer line begins with the information category name @@ -2561,9 +3130,11 @@

arbitrary character string naming the port

+ - - +

+ +

The field above is only the one which is returned by all MIDI ports regardless of the MIDI driver and port. Every MIDI port might have its own, additional driver and port specific @@ -2571,7 +3142,8 @@

Example:

-

+

+

C: "GET MIDI_INPUT_PORT INFO 0 0"

@@ -2581,28 +3153,35 @@

   "."

-
- -

6.3.12 Getting information about specific MIDI port parameter

+

+ +

+

+
 TOC 
+

6.3.12.  +Getting information about specific MIDI port parameter

Use the following command to get detailed information about specific MIDI port parameter:

-

+

+

GET MIDI_INPUT_PORT_PARAMETER INFO <dev-id> <port> <param>

-
- +

+ +

Where <dev-id> is the numerical ID of the MIDI input device as returned by the - "CREATE MIDI_INPUT_DEVICE"Creating a MIDI input device - or "LIST MIDI_INPUT_DEVICES"Getting all created MIDI input device list + "CREATE MIDI_INPUT_DEVICE" (Creating a MIDI input device) + or "LIST MIDI_INPUT_DEVICES" (Getting all created MIDI input device list) 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"Getting information about a MIDI port command). + obtained (as returned by the "GET MIDI_INPUT_PORT INFO" (Getting information about a MIDI port) command).

Possible Answers:

-

+

+

LinuxSampler will answer by sending a <CRLF> separated list. Each answer line begins with the information category name @@ -2622,6 +3201,7 @@ (always returned)

+

DESCRIPTION -

@@ -2630,6 +3210,7 @@ (always returned)

+

FIX -

@@ -2639,6 +3220,7 @@ (always returned)

+

MULTIPLICITY -

@@ -2649,6 +3231,7 @@ (always returned)

+

RANGE_MIN -

@@ -2661,6 +3244,7 @@ parameter)

+

RANGE_MAX -

@@ -2673,6 +3257,7 @@ parameter)

+

POSSIBILITIES -

@@ -2684,14 +3269,17 @@ parameter)

+ - - +

+ +

The mentioned fields above don't have to be in particular order.

Example:

-

+

+

C: "GET MIDI_INPUT_PORT_PARAMETER INFO 0 0 ALSA_SEQ_BINDINGS"

@@ -2707,29 +3295,37 @@

   "."

-
- -

6.3.13 Changing settings of MIDI input ports

+

+ +

+

+
 TOC 
+

6.3.13.  +Changing settings of MIDI input ports

Use the following command to alter a specific setting of a MIDI input port:

-

+

+

SET MIDI_INPUT_PORT_PARAMETER <device-id> <port> <key>=<value>

-
- +

+ +

Where <device-id> should be replaced by the numerical ID of the MIDI device as returned by the - "CREATE MIDI_INPUT_DEVICE"Creating a MIDI input device - or "LIST MIDI_INPUT_DEVICES"Getting all created MIDI input device list + "CREATE MIDI_INPUT_DEVICE" (Creating a MIDI input device) + or "LIST MIDI_INPUT_DEVICES" (Getting all created MIDI input device list) command, <port> by the MIDI port number, <key> by the name of the parameter to change and <value> by the new value for this - parameter. + parameter (encapsulated into apostrophes) or NONE (not encapsulated into apostrophes) + for specifying no value for parameters allowing a list of values.

Possible Answers:

-

+

+

"OK" -

@@ -2737,6 +3333,7 @@

in case setting was successfully changed

+

"WRN:<warning-code>:<warning-message>" -

@@ -2746,6 +3343,7 @@ warning code and warning message

+

"ERR:<error-code>:<error-message>" -

@@ -2753,44 +3351,74 @@

in case it failed, providing an appropriate error code and error message

+ - - +

+ +

Example:

-

+

+

+

C: "SET MIDI_INPUT_PORT_PARAMETER 0 0 ALSA_SEQ_BINDINGS='20:0'" +

+

S: "OK" +

+

+ +

+

+
+

C: "SET MIDI_INPUT_PORT_PARAMETER 0 0 ALSA_SEQ_BINDINGS=NONE"

-
- -

6.4 Configuring sampler channels

+

S: "OK" +

+

+ +

+

+
 TOC 
+

6.4.  +Configuring sampler channels

The following commands describe how to add and remove sampler channels, associate a sampler channel with a sampler engine, load instruments and connect sampler channels to MIDI and audio devices.

-

6.4.1 Loading an instrument

+

+
 TOC 
+

6.4.1.  +Loading an instrument

An instrument file can be loaded and assigned to a sampler channel by one of the following commands:

-

+

+

LOAD INSTRUMENT [NON_MODAL] '<filename>' <instr-index> <sampler-channel>

-
- +

+ +

Where <filename> is the name of the instrument file on the LinuxSampler instance's host system, <instr-index> the index of the instrument in the instrument file and <sampler-channel> is the number of the sampler channel the instrument should be assigned to. Each sampler channel can only have one instrument.

+

Notice: since LSCP 1.2 the <filename> argument supports + escape characters for special characters (see chapter + "Character Set and Escape Sequences (Character Set and Escape Sequences)" + for details) and accordingly backslash characters in the filename + MUST now be escaped as well! +

The difference between regular and NON_MODAL versions of the command 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. The GET CHANNEL INFOGetting sampler channel information + on the channel. The GET CHANNEL INFO (Getting sampler channel information) 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 @@ -2799,7 +3427,8 @@

Possible Answers:

-

+

+

"OK" -

@@ -2807,6 +3436,7 @@

in case the instrument was successfully loaded

+

"WRN:<warning-code>:<warning-message>" -

@@ -2818,6 +3448,7 @@ warning message

+

"ERR:<error-code>:<error-message>" -

@@ -2825,33 +3456,56 @@

in case it failed, providing an appropriate error code and error message

+ - - -

Example: +

+

-

+

Example (Unix): +

+

+

+

C: LOAD INSTRUMENT '/home/joe/gigs/cello.gig' 0 0 +

+

S: OK +

+

+ +

+

Example (Windows): +

+

+
+

C: LOAD INSTRUMENT 'D:/MySounds/cello.gig' 0 0

-
- -

6.4.2 Loading a sampler engine

+

S: OK +

+

+ +

+

+
 TOC 
+

6.4.2.  +Loading a sampler engine

A sampler engine type can be associated to a specific sampler channel by the following command:

-

+

+

LOAD ENGINE <engine-name> <sampler-channel>

-
- +

+ +

Where <engine-name> is an engine name as obtained by the - "LIST AVAILABLE_ENGINES"Getting all available engines command and <sampler-channel> + "LIST AVAILABLE_ENGINES" (Getting all available engines) command and <sampler-channel> the sampler channel as returned by the - "ADD CHANNEL"Adding a new sampler channel or - "LIST CHANNELS"Getting all created sampler channel list command where + "ADD CHANNEL" (Adding a new sampler channel) or + "LIST CHANNELS" (Getting all created sampler channel list) command where the engine type should be assigned to. This command should be issued after adding a new sampler channel and before any other control commands on the new sampler channel. It can also be used to change @@ -2863,7 +3517,8 @@

Possible Answers:

-

+

+

"OK" -

@@ -2871,6 +3526,7 @@

in case the engine was successfully deployed

+

"WRN:<warning-code>:<warning-message>" -

@@ -2880,6 +3536,7 @@ warning code and warning message

+

"ERR:<error-code>:<error-message>" -

@@ -2888,89 +3545,116 @@ error message

+ - - +

+ +

Example:

-

+

+

-
- -

6.4.3 Getting all created sampler channel count

+

+ +

+

+
 TOC 
+

6.4.3.  +Getting all created sampler channel count

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:

-

+

+

GET CHANNELS

-
- +

+ +

Possible Answers:

-

+

+

LinuxSampler will answer by returning the current number of sampler channels.

-
- +

+ +

Example:

-

+

+

C: "GET CHANNELS"

S: "12"

-
- -

6.4.4 Getting all created sampler channel list

+

+ +

+

+
 TOC 
+

6.4.4.  +Getting all created sampler channel list

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:

-

+

+

LIST CHANNELS

-
- +

+ +

Possible Answers:

-

+

+

LinuxSampler will answer by returning a comma separated list with all sampler channels numerical IDs.

-
- +

+ +

Example:

-

+

+

C: "LIST CHANNELS"

S: "0,1,2,3,4,5,6,9,10,11,15,20"

-
- -

6.4.5 Adding a new sampler channel

+

+ +

+

+
 TOC 
+

6.4.5.  +Adding a new sampler channel

A new sampler channel can be added to the end of the sampler channel list by sending the following command:

-

+

+

ADD CHANNEL

-
- +

+ +

This will increment the sampler channel count by one and the new sampler channel will be appended to the end of the sampler channel list. The front-end should send the respective, related commands @@ -2983,7 +3667,8 @@

Possible Answers:

-

+

+

"OK[<sampler-channel>]" -

@@ -2995,6 +3680,7 @@ commands

+

"WRN:<warning-code>:<warning-message>" -

@@ -3004,6 +3690,7 @@ warning code and warning message

+

"ERR:<error-code>:<error-message>" -

@@ -3012,37 +3699,47 @@ error message

+ - - +

+ +

Example:

-

+

+

-
- -

6.4.6 Removing a sampler channel

+

+ +

+

+
 TOC 
+

6.4.6.  +Removing a sampler channel

A sampler channel can be removed by sending the following command:

-

+

+

REMOVE CHANNEL <sampler-channel>

-
- +

+ +

Where <sampler-channel> should be replaced by the number of the sampler channel as given by the - "ADD CHANNEL"Adding a new sampler channel - or "LIST CHANNELS"Getting all created sampler channel list + "ADD CHANNEL" (Adding a new sampler channel) + or "LIST CHANNELS" (Getting all created sampler channel list) command. The channel numbers of all subsequent sampler channels remain the same.

Possible Answers:

-

+

+

"OK" -

@@ -3050,6 +3747,7 @@

in case the given sampler channel could be removed

+

"WRN:<warning-code>:<warning-message>" -

@@ -3059,6 +3757,7 @@ warning code and warning message

+

"ERR:<error-code>:<error-message>" -

@@ -3067,93 +3766,121 @@ error message

+ - - +

+ +

Example:

-

+

+

-
- -

6.4.7 Getting amount of available engines

+

+ +

+

+
 TOC 
+

6.4.7.  +Getting amount of available engines

The front-end can ask for the number of available engines by sending the following command:

-

+

+

GET AVAILABLE_ENGINES

-
- +

+ +

Possible Answers:

-

+

+

LinuxSampler will answer by sending the number of available engines.

-
- +

+ +

Example:

-

+

+

C: "GET AVAILABLE_ENGINES"

S: "4"

-
- -

6.4.8 Getting all available engines

+

+ +

+

+
 TOC 
+

6.4.8.  +Getting all available engines

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'"

-
- -

6.4.9 Getting information about an engine

+

+ +

+

+
 TOC 
+

6.4.9.  +Getting information about an engine

The front-end can ask for information about a specific engine by sending the following command:

-

+

+

GET ENGINE INFO <engine-name>

-
- +

+ +

Where <engine-name> is an engine name as obtained by the - "LIST AVAILABLE_ENGINES"Getting all available engines command. + "LIST AVAILABLE_ENGINES" (Getting all available engines) command.

Possible Answers:

-

+

+

LinuxSampler will answer by sending a <CRLF> separated list. Each answer line begins with the information category name @@ -3161,14 +3888,18 @@ the info character string to that info category. At the moment the following categories are defined:

-

+

+

DESCRIPTION -

arbitrary description text about the engine + (note that the character string may contain + escape sequences (Character Set and Escape Sequences))

+

VERSION -

@@ -3176,16 +3907,20 @@

arbitrary character string regarding the engine's version

+
+ - - +

+ +

The mentioned fields above don't have to be in particular order.

Example:

-

+

+

C: "GET ENGINE INFO JoesCustomEngine"

@@ -3195,26 +3930,33 @@

   "."

-
- -

6.4.10 Getting sampler channel information

+

+ +

+

+
 TOC 
+

6.4.10.  +Getting sampler channel information

The front-end can ask for the current settings of a sampler channel by sending the following command:

-

+

+

GET CHANNEL INFO <sampler-channel>

-
- +

+ +

Where <sampler-channel> is the sampler channel number the front-end is interested in - as returned by the "ADD CHANNEL"Adding a new sampler channel - or "LIST CHANNELS"Getting all created sampler channel list command. + as returned by the "ADD CHANNEL" (Adding a new sampler channel) + or "LIST CHANNELS" (Getting all created sampler channel list) command.

Possible Answers:

-

+

+

LinuxSampler will answer by sending a <CRLF> separated list. Each answer line begins with the settings category name @@ -3222,7 +3964,8 @@ the info character string to that setting category. At the moment the following categories are defined:

-

+

+

ENGINE_NAME -

@@ -3232,6 +3975,7 @@ this sampler channel

+

AUDIO_OUTPUT_DEVICE -

@@ -3242,6 +3986,7 @@ connected to this sampler channel

+

AUDIO_OUTPUT_CHANNELS -

@@ -3250,6 +3995,7 @@ (dependent to used sampler engine and loaded instrument)

+

AUDIO_OUTPUT_ROUTING -

@@ -3263,15 +4009,18 @@ output device

+

INSTRUMENT_FILE -

the file name of the loaded instrument, "NONE" if there's no instrument yet loaded for this sampler - channel + channel (note: since LSCP 1.2 this path may contain + escape sequences (Character Set and Escape Sequences))

+

INSTRUMENT_NR -

@@ -3279,13 +4028,17 @@

the instrument index number of the loaded instrument

+

INSTRUMENT_NAME -

the instrument name of the loaded instrument + (note: since LSCP 1.2 this character string may contain + escape sequences (Character Set and Escape Sequences))

+

INSTRUMENT_STATUS -

@@ -3295,6 +4048,7 @@ loaded.

+

MIDI_INPUT_DEVICE -

@@ -3305,6 +4059,7 @@ connected to this sampler channel

+

MIDI_INPUT_PORT -

@@ -3312,6 +4067,7 @@

port number of the MIDI input device

+

MIDI_INPUT_CHANNEL -

@@ -3320,25 +4076,62 @@ should listen to or "ALL" to listen on all MIDI channels

+

VOLUME -

optionally dotted number for the channel volume factor - (where a value < 1.0 means attenuation and a value > + (where a value < 1.0 means attenuation and a value > 1.0 means amplification)

+ + +

MUTE - +

+
+

Determines whether the channel is muted, "true" if the + channel is muted, "false" if the channel is not muted, and + "MUTED_BY_SOLO" if the channel is muted because of the + presence of a solo channel and will be unmuted when + there are no solo channels left +

+
+ + +

SOLO - +

+
+

Determines whether this is a solo channel, "true" if + the channel is a solo channel; "false" otherwise +

+
+ +

MIDI_INSTRUMENT_MAP - +

+
+

Determines to which MIDI instrument map this sampler + channel is assigned to. Read chapter + "SET CHANNEL MIDI_INSTRUMENT_MAP" (Assigning a MIDI instrument map to a sampler channel) + for a list of possible values. +

+ + +

+ +

The mentioned fields above don't have to be in particular order.

Example:

-

+

+

C: "GET CHANNEL INFO 34"

@@ -3366,103 +4159,138 @@

   "MIDI_INPUT_CHANNEL: 5"

+

   "VOLUME: 1.0" +

+

   "MUTE: false" +

+

   "SOLO: false" +

+

   "MIDI_INSTRUMENT_MAP: NONE" +

   "."

-
- -

6.4.11 Current number of active voices

+

+ +

+

+
 TOC 
+

6.4.11.  +Current number of active voices

The front-end can ask for the current number of active voices on a sampler channel by sending the following command:

-

+

+

GET CHANNEL VOICE_COUNT <sampler-channel>

-
- +

+ +

Where <sampler-channel> is the sampler channel number the front-end is interested in - as returned by the "ADD CHANNEL"Adding a new sampler channel - or "LIST CHANNELS"Getting all created sampler channel list command. + as returned by the "ADD CHANNEL" (Adding a new sampler channel) + or "LIST CHANNELS" (Getting all created sampler channel list) command.

Possible Answers:

-

+

+

LinuxSampler will answer by returning the number of active voices on that channel.

-
- +

+ +

Example:

-

+

+

-
- -

6.4.12 Current number of active disk streams

+

+ +

+

+
 TOC 
+

6.4.12.  +Current number of active disk streams

The front-end can ask for the current number of active disk streams on a sampler channel by sending the following command:

-

+

+

GET CHANNEL STREAM_COUNT <sampler-channel>

-
- +

+ +

Where <sampler-channel> is the sampler channel number the front-end is interested in - as returned by the "ADD CHANNEL"Adding a new sampler channel - or "LIST CHANNELS"Getting all created sampler channel list command. + as returned by the "ADD CHANNEL" (Adding a new sampler channel) + or "LIST CHANNELS" (Getting all created sampler channel list) command.

Possible Answers:

-

+

+

LinuxSampler will answer by returning the number of active disk streams on that channel in case the engine supports disk streaming, if the engine doesn't support disk streaming it will return "NA" for not available.

-
- +

+ +

Example:

-

+

+

-
- -

6.4.13 Current fill state of disk stream buffers

+

+ +

+

+
 TOC 
+

6.4.13.  +Current fill state of disk stream buffers

The front-end can ask for the current fill state of all disk streams on a sampler channel by sending the following command:

-

+

+

GET CHANNEL BUFFER_FILL BYTES <sampler-channel>

-
- +

+ +

to get the fill state in bytes or

-

+

+

GET CHANNEL BUFFER_FILL PERCENTAGE <sampler-channel>

-
- +

+ +

to get the fill state in percent, where <sampler-channel> is the sampler channel number the front-end is interested in - as returned by the "ADD CHANNEL"Adding a new sampler channel - or "LIST CHANNELS"Getting all created sampler channel list command. + as returned by the "ADD CHANNEL" (Adding a new sampler channel) + or "LIST CHANNELS" (Getting all created sampler channel list) command.

Possible Answers:

-

+

+

LinuxSampler will either answer by returning a comma separated string with the fill state of all disk stream buffers on that @@ -3475,52 +4303,65 @@ the response are not in particular order, thus the front-end has to sort them by itself if necessary.

-
- +

+ +

Examples:

-

+

+

C: "GET CHANNEL BUFFER_FILL BYTES 4"

S: "[115]420500,[116]510300,[75]110000,[120]230700"

-
+

+ +

-

C: "GET CHANNEL BUFFER_FILL PERCENTAGE 4" +

C: "GET CHANNEL BUFFER_FILL PERCENTAGE 4"

S: "[115]90%,[116]98%,[75]40%,[120]62%"

-
+

+ +

-

C: "GET CHANNEL BUFFER_FILL PERCENTAGE 4" +

C: "GET CHANNEL BUFFER_FILL PERCENTAGE 4"

S: ""

-
- -

6.4.14 Setting audio output device

+

+ +

+

+
 TOC 
+

6.4.14.  +Setting audio output device

The front-end can set the audio output device on a specific sampler channel by sending the following command:

-

+

+

SET CHANNEL AUDIO_OUTPUT_DEVICE <sampler-channel> <audio-device-id>

-
- +

+ +

Where <sampler-channel> is the respective sampler channel - number as returned by the "ADD CHANNEL"Adding a new sampler channel - or "LIST CHANNELS"Getting all created sampler channel list command and + number as returned by the "ADD CHANNEL" (Adding a new sampler channel) + or "LIST CHANNELS" (Getting all created sampler channel list) command and <audio-device-id> is the numerical ID of the audio output device as given by the - "CREATE AUDIO_OUTPUT_DEVICE"Creating an audio output device - or "LIST AUDIO_OUTPUT_DEVICES"Getting all created audio output device list + "CREATE AUDIO_OUTPUT_DEVICE" (Creating an audio output device) + or "LIST AUDIO_OUTPUT_DEVICES" (Getting all created audio output device list) command.

Possible Answers:

-

+

+

"OK" -

@@ -3528,6 +4369,7 @@

on success

+

"WRN:<warning-code>:<warning-message>" -

@@ -3537,6 +4379,7 @@ warning message

+

"ERR:<error-code>:<error-message>" -

@@ -3544,36 +4387,46 @@

in case it failed, providing an appropriate error code and error message

+ - - +

+ +

Examples:

-

+

+

-
- -

6.4.15 Setting audio output type

+

+ +

+

+
 TOC 
+

6.4.15.  +Setting audio output type

DEPRECATED: THIS COMMAND WILL DISAPPEAR SOON!

The front-end can alter the audio output type on a specific sampler channel by sending the following command:

-

+

+

SET CHANNEL AUDIO_OUTPUT_TYPE <sampler-channel> <audio-output-type>

-
- +

+ +

Where <audio-output-type> is currently either "ALSA" or "JACK" and <sampler-channel> is the respective sampler channel number.

Possible Answers:

-

+

+

"OK" -

@@ -3581,6 +4434,7 @@

on success

+

"WRN:<warning-code>:<warning-message>" -

@@ -3590,6 +4444,7 @@ warning message

+

"ERR:<error-code>:<error-message>" -

@@ -3597,38 +4452,48 @@

in case it failed, providing an appropriate error code and error message

+ - - +

+ +

Examples:

-

+

+

-
- -

6.4.16 Setting audio output channel

+

+ +

+

+
 TOC 
+

6.4.16.  +Setting audio output channel

The front-end can alter the audio output channel on a specific sampler channel by sending the following command:

-

+

+

SET CHANNEL AUDIO_OUTPUT_CHANNEL <sampler-chan> <audio-out> <audio-in>

-
- +

+ +

Where <sampler-chan> is the sampler channel number - as returned by the "ADD CHANNEL"Adding a new sampler channel - or "LIST CHANNELS"Getting all created sampler channel list command, <audio-out> is the + as returned by the "ADD CHANNEL" (Adding a new sampler channel) + or "LIST CHANNELS" (Getting all created sampler channel list) command, <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:

-

+

+

"OK" -

@@ -3636,6 +4501,7 @@

on success

+

"WRN:<warning-code>:<warning-message>" -

@@ -3645,6 +4511,7 @@ warning message

+

"ERR:<error-code>:<error-message>" -

@@ -3652,38 +4519,48 @@

in case it failed, providing an appropriate error code and error message

+ - - +

+ +

Examples:

-

+

+

-
- -

6.4.17 Setting MIDI input device

+

+ +

+

+
 TOC 
+

6.4.17.  +Setting MIDI input device

The front-end can set the MIDI input device on a specific sampler channel by sending the following command:

-

+

+

SET CHANNEL MIDI_INPUT_DEVICE <sampler-channel> <midi-device-id>

-
- +

+ +

Where <sampler-channel> is the sampler channel number - as returned by the "ADD CHANNEL"Adding a new sampler channel - or "LIST CHANNELS"Getting all created sampler channel list command + as returned by the "ADD CHANNEL" (Adding a new sampler channel) + or "LIST CHANNELS" (Getting all created sampler channel list) command and <midi-device-id> is the numerical ID of the MIDI input device as returned by the - "CREATE MIDI_INPUT_DEVICE"Creating a MIDI input device - or "LIST MIDI_INPUT_DEVICES"Getting all created MIDI input device list command. + "CREATE MIDI_INPUT_DEVICE" (Creating a MIDI input device) + or "LIST MIDI_INPUT_DEVICES" (Getting all created MIDI input device list) command.

Possible Answers:

-

+

+

"OK" -

@@ -3691,6 +4568,7 @@

on success

+

"WRN:<warning-code>:<warning-message>" -

@@ -3700,6 +4578,7 @@ warning message

+

"ERR:<error-code>:<error-message>" -

@@ -3707,36 +4586,46 @@

in case it failed, providing an appropriate error code and error message

+ - - +

+ +

Examples:

-

+

+

-
- -

6.4.18 Setting MIDI input type

+

+ +

+

+
 TOC 
+

6.4.18.  +Setting MIDI input type

DEPRECATED: THIS COMMAND WILL DISAPPEAR SOON!

The front-end can alter the MIDI input type on a specific sampler channel by sending the following command:

-

+

+

SET CHANNEL MIDI_INPUT_TYPE <sampler-channel> <midi-input-type>

-
- +

+ +

Where <midi-input-type> is currently only "ALSA" and <sampler-channel> is the respective sampler channel number.

Possible Answers:

-

+

+

"OK" -

@@ -3744,6 +4633,7 @@

on success

+

"WRN:<warning-code>:<warning-message>" -

@@ -3753,6 +4643,7 @@ warning message

+

"ERR:<error-code>:<error-message>" -

@@ -3760,35 +4651,45 @@

in case it failed, providing an appropriate error code and error message

+ - - +

+ +

Examples:

-

+

+

-
- -

6.4.19 Setting MIDI input port

+

+ +

+

+
 TOC 
+

6.4.19.  +Setting MIDI input port

The front-end can alter the MIDI input port on a specific sampler channel by sending the following command:

-

+

+

SET CHANNEL MIDI_INPUT_PORT <sampler-channel> <midi-input-port>

-
- +

+ +

Where <midi-input-port> is a MIDI input port number of the MIDI input device connected to the sampler channel given by <sampler-channel>.

Possible Answers:

-

+

+

"OK" -

@@ -3796,6 +4697,7 @@

on success

+

"WRN:<warning-code>:<warning-message>" -

@@ -3805,6 +4707,7 @@ warning message

+

"ERR:<error-code>:<error-message>" -

@@ -3812,35 +4715,45 @@

in case it failed, providing an appropriate error code and error message

+ - - +

+ +

Examples:

-

+

+

-
- -

6.4.20 Setting MIDI input channel

+

+ +

+

+
 TOC 
+

6.4.20.  +Setting MIDI input channel

The front-end can alter the MIDI channel a sampler channel should listen to by sending the following command:

-

+

+

SET CHANNEL MIDI_INPUT_CHANNEL <sampler-channel> <midi-input-chan>

-
- +

+ +

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.

Possible Answers:

-

+

+

"OK" -

@@ -3848,6 +4761,7 @@

on success

+

"WRN:<warning-code>:<warning-message>" -

@@ -3857,6 +4771,7 @@ warning message

+

"ERR:<error-code>:<error-message>" -

@@ -3864,28 +4779,37 @@

in case it failed, providing an appropriate error code and error message

+ - - +

+ +

Examples:

-

+

+

-
- -

6.4.21 Setting channel volume

+

+ +

+

+
 TOC 
+

6.4.21.  +Setting channel volume

The front-end can alter the volume of a sampler channel by sending the following command:

-

+

+

SET CHANNEL VOLUME <sampler-channel> <volume>

-
- +

+ +

Where <volume> is an optionally dotted positive number (a value smaller than 1.0 means attenuation, whereas a value greater than 1.0 means amplification) and <sampler-channel> defines the sampler @@ -3893,7 +4817,8 @@

Possible Answers:

-

+

+

"OK" -

@@ -3901,6 +4826,7 @@

on success

+

"WRN:<warning-code>:<warning-message>" -

@@ -3910,6 +4836,73 @@ warning message

+ + +

"ERR:<error-code>:<error-message>" - +

+
+

in case it failed, providing an appropriate error code and error message +

+
+ + +

+ +

+

Examples: +

+

+

+
+

+

+

+ +

+

+
 TOC 
+

6.4.22.  +Muting a sampler channel

+ +

The front-end can mute/unmute a specific sampler + channel by sending the following command: +

+

+

+
+

SET CHANNEL MUTE <sampler-channel> <mute> +

+

+ +

+

Where <sampler-channel> is the respective sampler channel + number as returned by the "ADD CHANNEL" (Adding a new sampler channel) + or "LIST CHANNELS" (Getting all created sampler channel list) command and + <mute> should be replaced either by "1" to mute the channel or "0" + to unmute the channel. +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

on success +

+
+ + +

"WRN:<warning-code>:<warning-message>" - +

+
+

if the channel was muted/unmuted, but there are noteworthy + issue(s) related, providing an appropriate warning code and + warning message +

+
+

"ERR:<error-code>:<error-message>" -

@@ -3917,27 +4910,852 @@

in case it failed, providing an appropriate error code and error message

+ + +

+ +

+

Examples: +

+

+

+
+

+

+

+ +

+

+
 TOC 
+

6.4.23.  +Soloing a sampler channel

+ +

The front-end can solo/unsolo a specific sampler channel + by sending the following command: +

+

+

+
+

SET CHANNEL SOLO <sampler-channel> <solo> +

+

+ +

+

Where <sampler-channel> is the respective sampler channel + number as returned by the "ADD CHANNEL" (Adding a new sampler channel) + or "LIST CHANNELS" (Getting all created sampler channel list) command and + <solo> should be replaced either by "1" to solo the channel or "0" + to unsolo the channel. +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

on success +

+
+ + +

"WRN:<warning-code>:<warning-message>" - +

+
+

if the channel was soloed/unsoloed, but there are noteworthy + issue(s) related, providing an appropriate warning code and + warning message +

+
+ +

"ERR:<error-code>:<error-message>" - +

+
+

in case it failed, providing an appropriate error code and error message +

+ +

+ +

Examples:

-

+

+

+
+

+

+

+ +

+

+
 TOC 
+

6.4.24.  +Assigning a MIDI instrument map to a sampler channel

+ +

The front-end can assign a MIDI instrument map to a specific sampler channel + by sending the following command: +

+

+

+

SET CHANNEL MIDI_INSTRUMENT_MAP <sampler-channel> <map> +

+

+ +

+

Where <sampler-channel> is the respective sampler channel + number as returned by the "ADD CHANNEL" (Adding a new sampler channel) + or "LIST CHANNELS" (Getting all created sampler channel list) command and + <map> can have the following possibilites: +

+

+
+

"NONE" - +

+
+

This is the default setting. In this case + the sampler channel is not assigned any MIDI + instrument map and thus will ignore all MIDI + program change messages.

+ -

6.4.22 Resetting a sampler channel

+

"DEFAULT" - +

+
+

The sampler channel will always use the + default MIDI instrument map to handle MIDI + program change messages. +

+
+ -

The front-end can reset a particular sampler channel by sending the following command: +

numeric ID - +

+
+

You can assign a specific MIDI instrument map + by replacing <map> with the respective numeric + ID of the MIDI instrument map as returned by the + "LIST MIDI_INSTRUMENT_MAPS" (Getting all created MIDI instrument maps) + command. Once that map will be deleted, the sampler + channel would fall back to "NONE". +

+
+ + +

+

-

+

Read chapter "MIDI Instrument Mapping" (MIDI Instrument Mapping) + for details regarding MIDI instrument mapping. +

+

Possible Answers: +

+

+

-

RESET CHANNEL <sampler-channel> +

"OK" - +

+
+

on success +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

in case it failed, providing an appropriate error code and error message +

+
+ + +

+ +

+

Examples: +

+

+

+
+

+

+

+ +

+

+
 TOC 
+

6.4.25.  +Adding an effect send to a sampler channel

+ +

The front-end can create an additional effect send on a specific sampler channel + by sending the following command: +

+

+

+
+

CREATE FX_SEND <sampler-channel> <midi-ctrl> [<name>] +

+

+ +

+

Where <sampler-channel> is the respective sampler channel + number as returned by the "ADD CHANNEL" (Adding a new sampler channel) + or "LIST CHANNELS" (Getting all created sampler channel list) command, that is the + sampler channel on which the effect send should be created on, <midi-ctrl> + is a number between 0..127 defining the MIDI controller which can alter the + effect send level and <name> is an optional argument defining a name + for the effect send entity. The name does not have to be unique, but MUST be + encapsulated into apostrophes and supports escape sequences as described in chapter + "Character Set and Escape Sequences (Character Set and Escape Sequences)". +

+

By default, that is as initial routing, the effect send's audio channels + are automatically routed to the last audio channels of the sampler channel's + audio output device, that way you can i.e. first increase the amount of audio + channels on the audio output device for having dedicated effect send output + channels and when "CREATE FX_SEND" is called, those channels will automatically + be picked. You can alter the destination channels however with + "SET FX_SEND AUDIO_OUTPUT_CHANNEL" (Altering effect send's audio routing). + +

+

Note: Create effect sends on a sampler channel only when needed, because having effect + sends on a sampler channel will decrease runtime performance, because for implementing channel + effect sends, separate (sampler channel local) audio buffers are needed to render and mix + the voices and route the audio signal afterwards to the master outputs and effect send + outputs (along with their respective effect send levels). A sampler channel without effect + sends however can mix its voices directly into the audio output devices's audio buffers + and is thus faster. + +

+

Possible Answers: +

+

+

+
+

"OK[<fx-send-id>]" - +

+
+

in case a new effect send could be added to the + sampler channel, where <fx-send-id> reflects the + unique ID of the newly created effect send entity +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

when a new effect send could not be added, i.e. + due to invalid parameters +

+
+ + +

+ +

+

Examples: +

+

+

+
+

C: "CREATE FX_SEND 0 91 'Reverb Send'" +

+

S: "OK[0]" +

+

+ +

+

+

+
+

C: "CREATE FX_SEND 0 93" +

+

S: "OK[1]" +

+

+ +

+

+
 TOC 
+

6.4.26.  +Removing an effect send from a sampler channel

+ +

The front-end can remove an existing effect send on a specific sampler channel + by sending the following command: +

+

+

+
+

DESTROY FX_SEND <sampler-channel> <fx-send-id> +

+

+ +

+

Where <sampler-channel> is the respective sampler channel + number as returned by the "ADD CHANNEL" (Adding a new sampler channel) + or "LIST CHANNELS" (Getting all created sampler channel list) command, that is the + sampler channel from which the effect send should be removed from and + <fx-send-id> is the respective effect send number as returned by the + "CREATE FX_SEND" (Adding an effect send to a sampler channel) + or "LIST FX_SENDS" (Listing all effect sends on a sampler channel) command. +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

on success +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

in case it failed, providing an appropriate error code and + error message +

+
+ + +

+ +

+

Example: +

+

+

+
+

C: "DESTROY FX_SEND 0 0" +

+

S: "OK" +

+

+ +

+

+
 TOC 
+

6.4.27.  +Getting amount of effect sends on a sampler channel

+ +

The front-end can ask for the amount of effect sends on a specific sampler channel + by sending the following command: +

+

+

+
+

GET FX_SENDS <sampler-channel> +

+

+ +

+

Where <sampler-channel> is the respective sampler channel + number as returned by the "ADD CHANNEL" (Adding a new sampler channel) + or "LIST CHANNELS" (Getting all created sampler channel list) command. +

+

Possible Answers: +

+

+

+
+

The sampler will answer by returning the number of effect + sends on the given sampler channel. +

+

+ +

+

Example: +

+

+

+
+

C: "GET FX_SENDS 0" +

+

S: "2" +

+

+ +

+

+
 TOC 
+

6.4.28.  +Listing all effect sends on a sampler channel

+ +

The front-end can ask for a list of effect sends on a specific sampler channel + by sending the following command: +

+

+

+
+

LIST FX_SENDS <sampler-channel> +

+

+ +

+

Where <sampler-channel> is the respective sampler channel + number as returned by the "ADD CHANNEL" (Adding a new sampler channel) + or "LIST CHANNELS" (Getting all created sampler channel list) command. +

+

Possible Answers: +

+

+

+
+

The sampler will answer by returning a comma separated list + with all effect sends' numerical IDs on the given sampler + channel. +

+

+ +

+

Examples: +

+

+

+
+

C: "LIST FX_SENDS 0" +

+

S: "0,1" +

+

+ +

+

+

+
+

C: "LIST FX_SENDS 1" +

+

S: "" +

+

+ +

+

+
 TOC 
+

6.4.29.  +Getting effect send information

+ +

The front-end can ask for the current settings of an effect send entity + by sending the following command: +

+

+

+
+

GET FX_SEND INFO <sampler-channel> <fx-send-id> +

+

+ +

+

Where <sampler-channel> is the sampler channel number + as returned by the "ADD CHANNEL" (Adding a new sampler channel) + or "LIST CHANNELS" (Getting all created sampler channel list) command and + <fx-send-id> reflects the numerical ID of the effect send entity + as returned by the "CREATE FX_SEND" (Adding an effect send to a sampler channel) + or "LIST FX_SENDS" (Listing all effect sends on a sampler channel) command. + +

+

Possible Answers: +

+

+

+
+

The sampler will answer by sending a <CRLF> separated list. + Each answer line begins with the settings category name + followed by a colon and then a space character <SP> and finally + the info character string to that setting category. At the + moment the following categories are defined: +

+

+

+
+

NAME - +

+
+

name of the effect send entity + (note that this character string may contain + escape sequences (Character Set and Escape Sequences)) +

+
+ + +

MIDI_CONTROLLER - +

+
+

a value between 0 and 127 reflecting the MIDI controller + which is able to modify the effect send's send level +

+
+ + +

LEVEL - +

+
+

optionally dotted number reflecting the effect send's + current send level (where a value < 1.0 means attenuation + and a value > 1.0 means amplification) +

+
+ + +

AUDIO_OUTPUT_ROUTING - +

+
+

comma separated list which reflects to which audio + channel of the selected audio output device each + effect send output channel is routed to, e.g. "0,3" would + mean the effect send's output channel 0 is routed to channel + 0 of the audio output device and the effect send's output + channel 1 is routed to the channel 3 of the audio + output device (see + "SET FX_SEND AUDIO_OUTPUT_CHANNEL" (Altering effect send's audio routing) + for details) +

+
+ + +
+ + +

+ +

+

The mentioned fields above don't have to be in particular order. +

+

Example: +

+

+

+
+

C: "GET FX_SEND INFO 0 0" +

+

S: "NAME: Reverb Send" +

+

   "MIDI_CONTROLLER: 91" +

+

   "LEVEL: 0.3" +

+

   "AUDIO_OUTPUT_ROUTING: 2,3" +

+

   "." +

+

+ +

+

+
 TOC 
+

6.4.30.  +Changing effect send's name

+ +

The front-end can alter the current name of an effect + send entity by sending the following command: +

+

+

+
+

SET FX_SEND NAME <sampler-chan> <fx-send-id> <name> +

+

+ +

+

Where <sampler-chan> is the sampler channel number + as returned by the "ADD CHANNEL" (Adding a new sampler channel) + or "LIST CHANNELS" (Getting all created sampler channel list) command, + <fx-send-id> reflects the numerical ID of the effect send entity + as returned by the "CREATE FX_SEND" (Adding an effect send to a sampler channel) + or "LIST FX_SENDS" (Listing all effect sends on a sampler channel) command and + <name> is the new name of the effect send entity, which + does not have to be unique (name MUST be encapsulated into apostrophes + and supports escape sequences as described in chapter + "Character Set and Escape Sequences (Character Set and Escape Sequences)"). + +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

on success +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

in case it failed, providing an appropriate error code and error message +

+
+ + +

+ +

+

Example: +

+

+

+
+

C: "SET FX_SEND NAME 0 0 'Fx Send 1'" +

+

S: "OK" +

+

+ +

+

+
 TOC 
+

6.4.31.  +Altering effect send's audio routing

+ +

The front-end can alter the destination of an effect send's audio channel on a specific + sampler channel by sending the following command: +

+

+

+
+

SET FX_SEND AUDIO_OUTPUT_CHANNEL <sampler-chan> <fx-send-id> <audio-src> <audio-dst> +

+

+ +

+

Where <sampler-chan> is the sampler channel number + as returned by the "ADD CHANNEL" (Adding a new sampler channel) + or "LIST CHANNELS" (Getting all created sampler channel list) command, + <fx-send-id> reflects the numerical ID of the effect send entity + as returned by the "CREATE FX_SEND" (Adding an effect send to a sampler channel) + or "LIST FX_SENDS" (Listing all effect sends on a sampler channel) command, + <audio-src> is the numerical ID of the effect send's audio channel + which should be rerouted and <audio-dst> is the numerical ID of + the audio channel of the selected audio output device where <audio-src> + should be routed to. +

+

Note that effect sends can only route audio to the same audio output + device as assigned to the effect send's sampler channel. Also note that an + effect send entity does always have exactly as much audio channels as its + sampler channel. So if the sampler channel is stereo, the effect send does + have two audio channels as well. Also keep in mind that the amount of audio + channels on a sampler channel might be dependant not only to the deployed + sampler engine on the sampler channel, but also dependant to the instrument + currently loaded. However you can (effectively) turn an i.e. stereo effect + send into a mono one by simply altering its audio routing appropriately. +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

on success +

+
+ + +

"WRN:<warning-code>:<warning-message>" - +

+
+

if audio output channel was set, but there are noteworthy + issue(s) related, providing an appropriate warning code and + warning message +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

in case it failed, providing an appropriate error code and error message +

+
+ + +

+ +

+

Example: +

+

+

+
+

C: "SET FX_SEND AUDIO_OUTPUT_CHANNEL 0 0 0 2" +

+

S: "OK" +

+

+ +

+

+
 TOC 
+

6.4.32.  +Altering effect send's MIDI controller

+ +

The front-end can alter the MIDI controller of an effect + send entity by sending the following command: +

+

+

+
+

SET FX_SEND MIDI_CONTROLLER <sampler-chan> <fx-send-id> <midi-ctrl> +

+

+ +

+

Where <sampler-chan> is the sampler channel number + as returned by the "ADD CHANNEL" (Adding a new sampler channel) + or "LIST CHANNELS" (Getting all created sampler channel list) command, + <fx-send-id> reflects the numerical ID of the effect send entity + as returned by the "CREATE FX_SEND" (Adding an effect send to a sampler channel) + or "LIST FX_SENDS" (Listing all effect sends on a sampler channel) command and + <midi-ctrl> reflects the MIDI controller which shall be + able to modify the effect send's send level. +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

on success +

+
+ + +

"WRN:<warning-code>:<warning-message>" - +

+
+

if MIDI controller was set, but there are noteworthy + issue(s) related, providing an appropriate warning code and + warning message +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

in case it failed, providing an appropriate error code and error message

+ + +

+ +

+

Example: +

+

+

+
+

C: "SET FX_SEND MIDI_CONTROLLER 0 0 91" +

+

S: "OK" +

+

+ +

+

+
 TOC 
+

6.4.33.  +Altering effect send's send level

+

The front-end can alter the current send level of an effect + send entity by sending the following command: +

+

+

+
+

SET FX_SEND LEVEL <sampler-chan> <fx-send-id> <volume> +

+

+ +

+

Where <sampler-chan> is the sampler channel number + as returned by the "ADD CHANNEL" (Adding a new sampler channel) + or "LIST CHANNELS" (Getting all created sampler channel list) command, + <fx-send-id> reflects the numerical ID of the effect send entity + as returned by the "CREATE FX_SEND" (Adding an effect send to a sampler channel) + or "LIST FX_SENDS" (Listing all effect sends on a sampler channel) command and + <volume> is an optionally dotted positive number (a value + smaller than 1.0 means attenuation, whereas a value greater than + 1.0 means amplification) reflecting the new send level. +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

on success +

+
+ + +

"WRN:<warning-code>:<warning-message>" - +

+
+

if new send level was set, but there are noteworthy + issue(s) related, providing an appropriate warning code and + warning message +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

in case it failed, providing an appropriate error code and error message +

+
+ + +

+ +

+

Example: +

+

+

+
+

C: "SET FX_SEND LEVEL 0 0 0.15" +

+

S: "OK" +

+

+ +

+

+
 TOC 
+

6.4.34.  +Resetting a sampler channel

+ +

The front-end can reset a particular sampler channel by sending the following command: +

+

+

+
+

RESET CHANNEL <sampler-channel> +

+

+ +

Where <sampler-channel> defines the sampler channel to be reset. This will cause the engine on that sampler channel, its voices and @@ -3946,7 +5764,8 @@

Possible Answers:

-

+

+

"OK" -

@@ -3954,6 +5773,7 @@

on success

+

"WRN:<warning-code>:<warning-message>" -

@@ -3963,6 +5783,7 @@ message

+

"ERR:<error-code>:<error-message>" -

@@ -3971,38 +5792,51 @@ error message

+ - - +

+ +

Examples:

-

+

+

-
- -

6.5 Controlling connection

+

+ +

+

+
 TOC 
+

6.5.  +Controlling connection

The following commands are used to control the connection to LinuxSampler.

-

6.5.1 Register front-end for receiving event messages

+

+
 TOC 
+

6.5.1.  +Register front-end for receiving event messages

The front-end can register itself to the LinuxSampler application to be informed about noteworthy events by sending this command:

-

+

+

SUBSCRIBE <event-id>

-
- +

+ +

where <event-id> will be replaced by the respective event that client wants to subscribe to.

Possible Answers:

-

+

+

"OK" -

@@ -4010,6 +5844,7 @@

on success

+

"WRN:<warning-code>:<warning-message>" -

@@ -4019,6 +5854,7 @@ warning message

+

"ERR:<error-code>:<error-message>" -

@@ -4027,34 +5863,44 @@ error message

+ - - +

+ +

Examples:

-

+

+

-
- -

6.5.2 Unregister front-end for not receiving event messages

+

+ +

+

+
 TOC 
+

6.5.2.  +Unregister front-end for not receiving event messages

The front-end can unregister itself if it doesn't want to receive event messages anymore by sending the following command:

-

+

+

UNSUBSCRIBE <event-id>

-
- +

+ +

Where <event-id> will be replaced by the respective event that client doesn't want to receive anymore.

Possible Answers:

-

+

+

"OK" -

@@ -4062,6 +5908,7 @@

on success

+

"WRN:<warning-code>:<warning-message>" -

@@ -4071,6 +5918,7 @@ warning message

+

"ERR:<error-code>:<error-message>" -

@@ -4079,27 +5927,36 @@ error message

+ - - +

+ +

Examples:

-

+

+

-
- -

6.5.3 Enable or disable echo of commands

+

+ +

+

+
 TOC 
+

6.5.3.  +Enable or disable echo of commands

To enable or disable back sending of commands to the client the following command can be used:

-

+

+

SET ECHO <value>

-
- +

+ +

Where <value> should be replaced either by "1" to enable echo mode or "0" to disable echo mode. When echo mode is enabled, all commands send to LinuxSampler will be immediately send back and @@ -4110,7 +5967,8 @@

Possible Answers:

-

+

+

"OK" -

@@ -4118,6 +5976,7 @@

usually

+

"ERR:<error-code>:<error-message>" -

@@ -4125,47 +5984,146 @@

on syntax error, e.g. non boolean value

+ - - +

+ +

Examples:

-

+

+

-
- -

6.5.4 Close client connection

+

+ +

+

+
 TOC 
+

6.5.4.  +Close client connection

The client can close its network connection to LinuxSampler by sending the following command:

-

+

+

QUIT

-
- +

+ +

This is probably more interesting for manual telnet connections to LinuxSampler than really useful for a front-end implementation.

-

6.6 Global commands

+

+
 TOC 
+

6.6.  +Global commands

The following commands have global impact on the sampler.

-

6.6.1 Reset sampler

+

+
 TOC 
+

6.6.1.  +Current number of active voices

+ +

The front-end can ask for the current number of active voices on + the sampler by sending the following command: +

+

+

+
+

GET TOTAL_VOICE_COUNT +

+

+ +

+

Possible Answers: +

+

+

+
+

LinuxSampler will answer by returning the number of all active + voices on the sampler. +

+

+ +

+

+
 TOC 
+

6.6.2.  +Maximum amount of active voices

+ +

The front-end can ask for the maximum number of active voices + by sending the following command: +

+

+

+
+

GET TOTAL_VOICE_COUNT_MAX +

+

+ +

+

Possible Answers: +

+

+

+
+

LinuxSampler will answer by returning the maximum number + of active voices. +

+

+ +

+

+
 TOC 
+

6.6.3.  +Current number of active disk streams

+ +

The front-end can ask for the current number of active disk streams on + the sampler by sending the following command: +

+

+

+
+

GET TOTAL_STREAM_COUNT +

+

+ +

+

Possible Answers: +

+

+

+
+

LinuxSampler will answer by returning the number of all active + disk streams on the sampler. +

+

+ +

+

+
 TOC 
+

6.6.4.  +Reset sampler

The front-end can reset the whole sampler by sending the following command:

-

+

+

RESET

-
- +

+ +

Possible Answers:

-

+

+

"OK" -

@@ -4173,31 +6131,41 @@

always

+ - - +

+ +

Examples:

-

+

+

-
- -

6.6.2 General sampler informations

+

+ +

+

+
 TOC 
+

6.6.5.  +General sampler informations

The client can ask for general informations about the LinuxSampler instance by sending the following command:

-

+

+

GET SERVER INFO

-
- +

+ +

Possible Answers:

-

+

+

LinuxSampler will answer by sending a <CRLF> separated list. Each answer line begins with the information category name @@ -4206,14 +6174,18 @@ moment the following categories are defined:

-

+

+

DESCRIPTION -

arbitrary textual description about the sampler + (note that the character string may contain + escape sequences (Character Set and Escape Sequences))

+

VERSION -

@@ -4221,28 +6193,3273 @@

version of the sampler

+

PROTOCOL_VERSION -

version of the LSCP specification the sampler - complies with (see Section 2Versioning of this specification for details) + complies with (see Section 2 (Versioning of this specification) for details)

+ +

INSTRUMENTS_DB_SUPPORT - +

+
+

either yes or no, specifies whether the + sampler is build with instruments database support. +

+
+ +

+ +

The mentioned fields above don't have to be in particular order. Other fields might be added in future.

+

+
 TOC 
+

6.6.6.  +Getting global volume attenuation

+ +

The client can ask for the current global sampler-wide volume + attenuation by sending the following command: +

+

+

+
+

GET VOLUME +

+

+ +

+

Possible Answers: +

+

+

+
+

The sampler will always answer by returning the optional + dotted floating point coefficient, reflecting the current + global volume attenuation. + +

+

+ +

+

Note: it is up to the respective sampler engine whether to obey + that global volume parameter or not, but in general all engines SHOULD + use this parameter. +

+

+
 TOC 
+

6.6.7.  +Setting global volume attenuation

+ +

The client can alter the current global sampler-wide volume + attenuation by sending the following command: +

+

+

+
+

SET VOLUME <volume> +

+

+ +

+

Where <volume> should be replaced by the optional dotted + floating point value, reflecting the new global volume parameter. + This value might usually be in the range between 0.0 and 1.0, that + is for attenuating the overall volume. +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

on success +

+
+ + +

"WRN:<warning-code>:<warning-message>" - +

+
+

if the global volume was set, but there are noteworthy + issue(s) related, providing an appropriate warning code and + warning message +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

in case it failed, providing an appropriate error code and error message +

+
+ + +

+ +

+

+
 TOC 
+

6.7.  +MIDI Instrument Mapping

+ +

The MIDI protocol provides a way to switch between instruments + by sending so called MIDI bank select and MIDI program change + messages which are essentially just numbers. The following commands + allow to actually map arbitrary MIDI bank select / program change + numbers with real instruments. +

+

The sampler allows to manage an arbitrary amount of MIDI + instrument maps which define which instrument to load on + which MIDI program change message. +

+

By default, that is when the sampler is launched, there is no + map, thus the sampler will simply ignore all program change + messages. The front-end has to explicitly create at least one + map, add entries to the map and tell the respective sampler + channel(s) which MIDI instrument map to use, so the sampler + knows how to react on a given program change message on the + respective sampler channel, that is by switching to the + respectively defined engine type and loading the respective + instrument. See command + "SET CHANNEL MIDI_INSTRUMENT_MAP" (Assigning a MIDI instrument map to a sampler channel) + for how to assign a MIDI instrument map to a sampler channel. +

+

Also note per MIDI specification a bank select message does not + cause to switch to another instrument. Instead when receiving a + bank select message the bank value will be stored and a subsequent + program change message (which may occur at any time) will finally + cause the sampler to switch to the respective instrument as + reflected by the current MIDI instrument map. +

+

+
 TOC 
+

6.7.1.  +Create a new MIDI instrument map

+ +

The front-end can add a new MIDI instrument map by sending + the following command: +

+

+

+
+

ADD MIDI_INSTRUMENT_MAP [<name>] +

+

+ +

+

Where <name> is an optional argument allowing to + assign a custom name to the new map. MIDI instrument Map + names do not have to be unique, but MUST be encapsulated + into apostrophes and support escape sequences as described + in chapter "Character Set and Escape Sequences (Character Set and Escape Sequences)". + +

+

Possible Answers: +

+

+

+
+

"OK[<map>]" - +

+
+

in case a new MIDI instrument map could + be added, where <map> reflects the + unique ID of the newly created MIDI + instrument map +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

when a new map could not be created, which + might never occur in practice +

+
+ + +

+ +

+

Examples: +

+

+

+
+

C: "ADD MIDI_INSTRUMENT_MAP 'Standard Map'" +

+

S: "OK[0]" +

+

+ +

+

+

+
+

C: "ADD MIDI_INSTRUMENT_MAP 'Standard Drumkit'" +

+

S: "OK[1]" +

+

+ +

+

+

+
+

C: "ADD MIDI_INSTRUMENT_MAP" +

+

S: "OK[5]" +

+

+ +

+

+
 TOC 
+

6.7.2.  +Delete one particular or all MIDI instrument maps

+ +

The front-end can delete a particular MIDI instrument map + by sending the following command: +

+

+

+
+

REMOVE MIDI_INSTRUMENT_MAP <map> +

+

+ +

+

Where <map> reflects the unique ID of the map to delete + as returned by the "LIST MIDI_INSTRUMENT_MAPS" (Getting all created MIDI instrument maps) + command. +

+

The front-end can delete all MIDI instrument maps by + sending the following command: +

+

+

+
+

REMOVE MIDI_INSTRUMENT_MAP ALL +

+

+ +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

in case the map(s) could be deleted +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

when the given map does not exist +

+
+ + +

+ +

+

Examples: +

+

+

+
+

C: "REMOVE MIDI_INSTRUMENT_MAP 0" +

+

S: "OK" +

+

+ +

+

+

+
+

C: "REMOVE MIDI_INSTRUMENT_MAP ALL" +

+

S: "OK" +

+

+ +

+

+
 TOC 
+

6.7.3.  +Get amount of existing MIDI instrument maps

+ +

The front-end can retrieve the current amount of MIDI + instrument maps by sending the following command: +

+

+

+
+

GET MIDI_INSTRUMENT_MAPS +

+

+ +

+

Possible Answers: +

+

+

+
+

The sampler will answer by returning the current + number of MIDI instrument maps. +

+

+ +

+

Example: +

+

+

+
+

C: "GET MIDI_INSTRUMENT_MAPS" +

+

S: "2" +

+

+ +

+

+
 TOC 
+

6.7.4.  +Getting all created MIDI instrument maps

+ +

The number of MIDI instrument maps can change on runtime. To get the + current list of MIDI instrument maps, the front-end can send the + following command: +

+

+

+
+

LIST MIDI_INSTRUMENT_MAPS +

+

+ +

+

Possible Answers: +

+

+

+
+

The sampler will answer by returning a comma separated list + with all MIDI instrument maps' numerical IDs. +

+

+ +

+

Example: +

+

+

+
+

C: "LIST MIDI_INSTRUMENT_MAPS" +

+

S: "0,1,5,12" +

+

+ +

+

+
 TOC 
+

6.7.5.  +Getting MIDI instrument map information

+ +

The front-end can ask for the current settings of a MIDI + instrument map by sending the following command: +

+

+

+
+

GET MIDI_INSTRUMENT_MAP INFO <map> +

+

+ +

+

Where <map> is the numerical ID of the map the + front-end is interested in as returned by the + "LIST MIDI_INSTRUMENT_MAPS" (Getting all created MIDI instrument maps) + command. +

+

Possible Answers: +

+

+

+
+

LinuxSampler will answer by sending a <CRLF> separated list. + Each answer line begins with the settings category name + followed by a colon and then a space character <SP> and finally + the info character string to that setting category. At the + moment the following categories are defined: +

+

+

+
+

NAME - +

+
+

custom name of the given map, + which does not have to be unique + (note that this character string may contain + escape sequences (Character Set and Escape Sequences)) +

+
+ + +

DEFAULT - +

+
+

either true or false, + defines whether this map is the default map +

+
+ + +
+ + +

+ +

+

The mentioned fields above don't have to be in particular order. +

+

Example: +

+

+

+
+

C: "GET MIDI_INSTRUMENT_MAP INFO 0" +

+

S: "NAME: Standard Map" +

+

   "DEFAULT: true" +

+

   "." +

+

+ +

+

+
 TOC 
+

6.7.6.  +Renaming a MIDI instrument map

+ +

The front-end can alter the custom name of a MIDI + instrument map by sending the following command: +

+

+

+
+

SET MIDI_INSTRUMENT_MAP NAME <map> <name> +

+

+ +

+

Where <map> is the numerical ID of the map and + <name> the new custom name of the map, which does not + have to be unique (name MUST be encapsulated into apostrophes + and supports escape sequences as described in chapter + "Character Set and Escape Sequences (Character Set and Escape Sequences)"). + +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

on success +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

in case the given map does not exist +

+
+ + +

+ +

+

Example: +

+

+

+
+

C: "SET MIDI_INSTRUMENT_MAP NAME 0 'Foo instruments'" +

+

S: "OK" +

+

+ +

+

+
 TOC 
+

6.7.7.  +Create or replace a MIDI instrument map entry

+ +

The front-end can create a new or replace an existing entry + in a sampler's MIDI instrument map by sending the following + command: +

+

+

+
+

MAP MIDI_INSTRUMENT [NON_MODAL] <map> + <midi_bank> <midi_prog> <engine_name> + <filename> <instrument_index> <volume_value> + [<instr_load_mode>] [<name>] +

+

+ +

+

Where <map> is the numeric ID of the map to alter, + <midi_bank> is an integer value between + 0..16383 reflecting the MIDI bank select index, + <midi_prog> an + integer value between 0..127 reflecting the MIDI program change + index, <engine_name> a sampler engine name as returned by + the "LIST AVAILABLE_ENGINES" (Getting all available engines) + command (not encapsulated into apostrophes), <filename> the name + of the instrument's file to be deployed (encapsulated into apostrophes, + supporting escape sequences as described in chapter + "Character Set and Escape Sequences (Character Set and Escape Sequences)"), + <instrument_index> the index (integer value) of the instrument + within the given file, <volume_value> reflects the master + volume of the instrument as optionally dotted number (where a + value < 1.0 means attenuation and a value > 1.0 means + amplification). This parameter easily allows to adjust the + volume of all intruments within a custom instrument map + without having to adjust their instrument files. The + OPTIONAL <instr_load_mode> argument defines the life + time of the instrument, that is when the instrument should + be loaded, when freed and has exactly the following + possibilities: +

+

+

+
+

"ON_DEMAND" - +

+
+

The instrument will be loaded when needed, + that is when demanded by at least one sampler + channel. It will immediately be freed from memory + when not needed by any sampler channel anymore. +

+
+ + +

"ON_DEMAND_HOLD" - +

+
+

The instrument will be loaded when needed, + that is when demanded by at least one sampler + channel. It will be kept in memory even when + not needed by any sampler channel anymore. + Instruments with this mode are only freed + when the sampler is reset or all mapping + entries with this mode (and respective + instrument) are explicitly changed to + "ON_DEMAND" and no sampler channel is using + the instrument anymore. +

+
+ + +

"PERSISTENT" - +

+
+

The instrument will immediately be loaded + into memory when this mapping + command is sent and the instrument is kept all + the time. Instruments with this mode are + only freed when the sampler is reset or all + mapping entries with this mode (and + respective instrument) are explicitly + changed to "ON_DEMAND" and no sampler + channel is using the instrument anymore. +

+
+ + +

not supplied - +

+
+

In case there is no <instr_load_mode> + argument given, it will be up to the + InstrumentManager to decide which mode to use. + Usually it will use "ON_DEMAND" if an entry + for the given instrument does not exist in + the InstrumentManager's list yet, otherwise + if an entry already exists, it will simply + stick with the mode currently reflected by + the already existing entry, that is it will + not change the mode. +

+
+ + +

+ +

+

+ The <instr_load_mode> argument thus allows to define an + appropriate strategy (low memory consumption vs. fast + instrument switching) for each instrument individually. Note, the + following restrictions apply to this argument: "ON_DEMAND_HOLD" and + "PERSISTENT" have to be supported by the respective sampler engine + (which is technically the case when the engine provides an + InstrumentManager for its format). If this is not the case the + argument will automatically fall back to the default value + "ON_DEMAND". Also the load mode of one instrument may + automatically change the laod mode of other instrument(s), i.e. + because the instruments are part of the same file and the + engine does not allow a way to manage load modes for them + individually. Due to this, in case the frontend shows the + load modes of entries, the frontend should retrieve the actual + mode by i.e. sending + "GET MIDI_INSTRUMENT INFO" (Get current settings of MIDI instrument map entry) + command(s). Finally the OPTIONAL <name> argument allows to set a custom name + (encapsulated into apostrophes, supporting escape sequences as described in chapter + "Character Set and Escape Sequences (Character Set and Escape Sequences)") for the + mapping entry, useful for frontends for displaying an appropriate name for + mapped instruments (using + "GET MIDI_INSTRUMENT INFO" (Get current settings of MIDI instrument map entry)). + +

+

+ By default, "MAP MIDI_INSTRUMENT" commands block until the mapping is + completely established in the sampler. The OPTIONAL "NON_MODAL" argument + however causes the respective "MAP MIDI_INSTRUMENT" command to return + immediately, that is to let the sampler establish the mapping in the + background. So this argument might be especially useful for mappings with + a "PERSISTENT" type, because these have to load the respective instruments + immediately and might thus block for a very long time. It is recommended + however to use the OPTIONAL "NON_MODAL" argument only if really necessary, + because it has the following drawbacks: as "NON_MODAL" instructions return + immediately, they may not necessarily return an error i.e. when the given + instrument file turns out to be corrupt, beside that subsequent commands + in a LSCP instruction sequence might fail, because mandatory mappings are + not yet completed. + +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

usually +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

when the given map or engine does not exist or a value + is out of range +

+
+ + +

+ +

+

Examples: +

+

+

+
+

C: "MAP MIDI_INSTRUMENT 0 3 0 gig '/usr/share/Steinway D.gig' 0 0.8 PERSISTENT" +

+

S: "OK" +

+

+ +

+

+

+
+

C: "MAP MIDI_INSTRUMENT 0 4 50 gig '/home/john/foostrings.gig' 7 1.0" +

+

S: "OK" +

+

+ +

+

+

+
+

C: "MAP MIDI_INSTRUMENT 0 0 0 gig '/usr/share/piano.gig' 0 1.0 'Normal Piano'" +

+

S: "OK" +

+

C: "MAP MIDI_INSTRUMENT 0 1 0 gig '/usr/share/piano.gig' 0 0.25 'Silent Piano'" +

+

S: "OK" +

+

+ +

+

+

+
+

C: "MAP MIDI_INSTRUMENT NON_MODAL 1 8 120 gig '/home/joe/foodrums.gig' 0 1.0 PERSISTENT 'Foo Drumkit'" +

+

S: "OK" +

+

+ +

+

+
 TOC 
+

6.7.8.  +Getting ammount of MIDI instrument map entries

+ +

The front-end can query the amount of currently existing + entries in a MIDI instrument map by sending the following + command: +

+

+

+
+

GET MIDI_INSTRUMENTS <map> +

+

+ +

+

The front-end can query the amount of currently existing + entries in all MIDI instrument maps by sending the following + command: +

+

+

+
+

GET MIDI_INSTRUMENTS ALL +

+

+ +

+

Possible Answers: +

+

+

+
+

The sampler will answer by sending the current number of + entries in the MIDI instrument map(s). +

+

+ +

+

Example: +

+

+

+
+

C: "GET MIDI_INSTRUMENTS 0" +

+

S: "234" +

+

+ +

+

+

+
+

C: "GET MIDI_INSTRUMENTS ALL" +

+

S: "954" +

+

+ +

+

+
 TOC 
+

6.7.9.  +Getting indeces of all entries of a MIDI instrument map

+ +

The front-end can query a list of all currently existing + entries in a certain MIDI instrument map by sending the following + command: +

+

+

+
+

LIST MIDI_INSTRUMENTS <map> +

+

+ +

+

Where <map> is the numeric ID of the MIDI instrument map. +

+

The front-end can query a list of all currently existing + entries of all MIDI instrument maps by sending the following + command: +

+

+

+
+

LIST MIDI_INSTRUMENTS ALL +

+

+ +

+

Possible Answers: +

+

+

+
+

The sampler will answer by sending a comma separated + list of map ID - MIDI bank - MIDI program triples, where + each triple is encapsulated into curly braces. The + list is returned in one single line. Each triple + just reflects the key of the respective map entry, + thus subsequent + "GET MIDI_INSTRUMENT INFO" (Get current settings of MIDI instrument map entry) + command(s) are necessary to retrieve detailed informations + about each entry. +

+

+ +

+

Example: +

+

+

+
+

C: "LIST MIDI_INSTRUMENTS 0" +

+

S: "{0,0,0},{0,0,1},{0,0,3},{0,1,4},{1,127,127}" +

+

+ +

+

+
 TOC 
+

6.7.10.  +Remove an entry from the MIDI instrument map

+ +

The front-end can delete an entry from a MIDI instrument + map by sending the following command: +

+

+

+
+

UNMAP MIDI_INSTRUMENT <map> <midi_bank> <midi_prog> +

+

+ +

+

+ Where <map> is the numeric ID of the MIDI instrument map, + <midi_bank> is an integer value between 0..16383 + reflecting the MIDI bank value and + <midi_prog> an integer value between + 0..127 reflecting the MIDI program value of the map's entrie's key + index triple. + +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

usually +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

when index out of bounds +

+
+ + +

+ +

+

Example: +

+

+

+
+

C: "UNMAP MIDI_INSTRUMENT 0 2 127" +

+

S: "OK" +

+

+ +

+

+
 TOC 
+

6.7.11.  +Get current settings of MIDI instrument map entry

+ +

The front-end can retrieve the current settings of a certain + instrument map entry by sending the following command: +

+

+

+
+

GET MIDI_INSTRUMENT INFO <map> <midi_bank> <midi_prog> +

+

+ +

+

+ Where <map> is the numeric ID of the MIDI instrument map, + <midi_bank> is an integer value between 0..16383 + reflecting the MIDI bank value, <midi_bank> + and <midi_prog> an integer value between + 0..127 reflecting the MIDI program value of the map's entrie's key + index triple. + +

+

Possible Answers: +

+

+

+
+

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 + the following categories are defined: +

+

"NAME" - +

+
+

Name for this MIDI instrument map entry (if defined). + This name shall be used by frontends for displaying a + name for this mapped instrument. It can be set and + changed with the + "MAP MIDI_INSTRUMENT" (Create or replace a MIDI instrument map entry) + command and does not have to be unique. + (note that this character string may contain + escape sequences (Character Set and Escape Sequences)) +

+
+ + +

"ENGINE_NAME" - +

+
+

Name of the engine to be deployed for this + instrument. +

+
+ + +

"INSTRUMENT_FILE" - +

+
+

File name of the instrument + (note that this path may contain + escape sequences (Character Set and Escape Sequences)). +

+
+ + +

"INSTRUMENT_NR" - +

+
+

Index of the instrument within the file. +

+
+ + +

"INSTRUMENT_NAME" - +

+
+

Name of the loaded instrument as reflected by its file. + In contrast to the "NAME" field, the "INSTRUMENT_NAME" field + cannot be changed (note that this character string may contain + escape sequences (Character Set and Escape Sequences)). +

+
+ + +

"LOAD_MODE" - +

+
+

Life time of instrument + (see "MAP MIDI_INSTRUMENT" (Create or replace a MIDI instrument map entry) for details about this setting). +

+
+ + +

"VOLUME" - +

+
+

master volume of the instrument as optionally + dotted number (where a value < 1.0 means attenuation + and a value > 1.0 means amplification) +

+
+ + +

The mentioned fields above don't have to be in particular order. +

+

+ +

+

Example: +

+

+

+
+

C: "GET MIDI_INSTRUMENT INFO 1 45 120" +

+

S: "NAME: Drums for Foo Song" +

+

   "ENGINE_NAME: GigEngine" +

+

   "INSTRUMENT_FILE: /usr/share/joesdrumkit.gig" +

+

   "INSTRUMENT_NR: 0" +

+

   "INSTRUMENT_NAME: Joe's Drumkit" +

+

   "LOAD_MODE: PERSISTENT" +

+

   "VOLUME: 1.0" +

+

   "." +

+

+ +

+

+
 TOC 
+

6.7.12.  +Clear MIDI instrument map

+ +

The front-end can clear a whole MIDI instrument map, that + is delete all its entries by sending the following command: +

+

+

+
+

CLEAR MIDI_INSTRUMENTS <map> +

+

+ +

+

Where <map> is the numeric ID of the map to clear. +

+

The front-end can clear all MIDI instrument maps, that + is delete all entries of all maps by sending the following + command: +

+

+

+
+

CLEAR MIDI_INSTRUMENTS ALL +

+

+ +

+

The command "CLEAR MIDI_INSTRUMENTS ALL" does not delete the + maps, only their entries, thus the map's settings like + custom name will be preservevd. +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

always +

+
+ + +

+ +

+

Examples: +

+

+

+
+

C: "CLEAR MIDI_INSTRUMENTS 0" +

+

S: "OK" +

+

+ +

+

+

+
+

C: "CLEAR MIDI_INSTRUMENTS ALL" +

+

S: "OK" +

+

+ +

+

+
 TOC 
+

6.8.  +Managing Instruments Database

+ +

The following commands describe how to use and manage + the instruments database. +

+

Notice: +

+

+

+
+

All command arguments representing a path or + instrument/directory name support escape sequences as described in chapter + "Character Set and Escape Sequences (Character Set and Escape Sequences)". + +

+

All occurrences of a forward slash in instrument and directory + names are escaped with its hex (\x2f) or octal (\057) escape sequence. + +

+

+ +

+

+
 TOC 
+

6.8.1.  +Creating a new instrument directory

+ +

The front-end can add a new instrument directory to the + instruments database by sending the following command: +

+

+

+
+

ADD DB_INSTRUMENT_DIRECTORY <dir> +

+

+ +

+

Where <dir> is the absolute path name of the directory + to be created (encapsulated into apostrophes). +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

on success +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

when the directory could not be created, which + can happen if the directory already exists or the + name contains not allowed symbols +

+
+ + +

+ +

+

Examples: +

+

+

+
+

C: "ADD DB_INSTRUMENT_DIRECTORY '/Piano Collection'" +

+

S: "OK" +

+

+ +

+

+
 TOC 
+

6.8.2.  +Deleting an instrument directory

+ +

The front-end can delete a particular instrument directory + from the instruments database by sending the following command: +

+

+

+
+

REMOVE DB_INSTRUMENT_DIRECTORY [FORCE] <dir> +

+

+ +

+

Where <dir> is the absolute path name of the directory + to delete. The optional FORCE argument can be used to + force the deletion of a non-empty directory and all its content. +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

if the directory is deleted successfully +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

if the given directory does not exist, or + if trying to delete a non-empty directory, + without using the FORCE argument. +

+
+ + +

+ +

+

Examples: +

+

+

+
+

C: "REMOVE DB_INSTRUMENT_DIRECTORY FORCE '/Piano Collection'" +

+

S: "OK" +

+

+ +

+

+
 TOC 
+

6.8.3.  +Getting amount of instrument directories

+ +

The front-end can retrieve the current amount of + directories in a specific directory by sending the following command: +

+

+

+
+

GET DB_INSTRUMENT_DIRECTORIES [RECURSIVE] <dir> +

+

+ +

+

Where <dir> should be replaced by the absolute path + name of the directory. If RECURSIVE is specified, the number of + all directories, including those located in subdirectories of the + specified directory, will be returned. +

+

Possible Answers: +

+

+

+
+

The current number of instrument directories + in the specified directory. +

+

"ERR:<error-code>:<error-message>" - +

+
+

if the given directory does not exist. +

+
+ + +

+ +

+

Example: +

+

+

+
+

C: "GET DB_INSTRUMENT_DIRECTORIES '/'" +

+

S: "2" +

+

+ +

+

+
 TOC 
+

6.8.4.  +Listing all directories in specific directory

+ +

The front-end can retrieve the current list of directories + in specific directory by sending the following command: +

+

+

+
+

LIST DB_INSTRUMENT_DIRECTORIES [RECURSIVE] <dir> +

+

+ +

+

Where <dir> should be replaced by the absolute path + name of the directory. If RECURSIVE is specified, the absolute path names + of all directories, including those located in subdirectories of the + specified directory, will be returned. +

+

Possible Answers: +

+

+

+
+

A comma separated list of all instrument directories + (encapsulated into apostrophes) in the specified directory. +

+

"ERR:<error-code>:<error-message>" - +

+
+

if the given directory does not exist. +

+
+ + +

+ +

+

Example: +

+

+

+
+

C: "LIST DB_INSTRUMENT_DIRECTORIES '/'" +

+

S: "'Piano Collection','Percussion Collection'" +

+

+ +

+

+

+
+

C: "LIST DB_INSTRUMENT_DIRECTORIES RECURSIVE '/'" +

+

S: "'/Piano Collection','/Piano Collection/Acoustic','/Piano Collection/Acoustic/New','/Percussion Collection'" +

+

+ +

+

+
 TOC 
+

6.8.5.  +Getting instrument directory information

+ +

The front-end can ask for the current settings of an + instrument directory by sending the following command: +

+

+

+
+

GET DB_INSTRUMENT_DIRECTORY INFO <dir> +

+

+ +

+

Where <dir> should be replaced by the absolute path + name of the directory the front-end is interested in. +

+

Possible Answers: +

+

+

+
+

LinuxSampler will answer by sending a <CRLF> separated list. + Each answer line begins with the settings category name + followed by a colon and then a space character <SP> and finally + the info character string to that setting category. At the + moment the following categories are defined: +

+

+

+
+

DESCRIPTION - +

+
+

A brief description of the directory content. + Note that the character string may contain + escape sequences (Character Set and Escape Sequences). +

+
+ + +

CREATED - +

+
+

The creation date and time of the directory, + represented in "YYYY-MM-DD HH:MM:SS" format +

+
+ + +

MODIFIED - +

+
+

The date and time of the last modification of the + directory, represented in "YYYY-MM-DD HH:MM:SS" format +

+
+ + +
+ + +

+ +

+

The mentioned fields above don't have to be in particular order. +

+

Example: +

+

+

+
+

C: "GET DB_INSTRUMENT_DIRECTORY INFO '/Piano Collection'" +

+

S: "DESCRIPTION: Piano collection of instruments in GigaSampler format." +

+

   "CREATED: 2007-02-05 10:23:12" +

+

   "MODIFIED: 2007-04-07 12:50:21" +

+

   "." +

+

+ +

+

+
 TOC 
+

6.8.6.  +Renaming an instrument directory

+ +

The front-end can alter the name of a specific + instrument directory by sending the following command: +

+

+

+
+

SET DB_INSTRUMENT_DIRECTORY NAME <dir> <name> +

+

+ +

+

Where <dir> is the absolute path name of the directory and + <name> is the new name for that directory. +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

on success +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

in case the given directory does not exists, + or if a directory with name equal to the new + name already exists. +

+
+ + +

+ +

+

Example: +

+

+

+
+

C: "SET DB_INSTRUMENT_DIRECTORY NAME '/Piano Collection/Acustic' 'Acoustic'" +

+

S: "OK" +

+

+ +

+

+
 TOC 
+

6.8.7.  +Moving an instrument directory

+ +

The front-end can move a specific + instrument directory by sending the following command: +

+

+

+
+

MOVE DB_INSTRUMENT_DIRECTORY <dir> <dst> +

+

+ +

+

Where <dir> is the absolute path name of the directory + to move and <dst> is the location where the directory will + be moved to. +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

on success +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

in case a given directory does not exists, + or if a directory with name equal to the name + of the specified directory already exists in + the destination directory. Error is also thrown + when trying to move a directory to a subdirectory + of itself. +

+
+ + +

+ +

+

Example: +

+

+

+
+

C: "MOVE DB_INSTRUMENT_DIRECTORY '/Acoustic' '/Piano Collection/Acoustic'" +

+

S: "OK" +

+

+ +

+

+
 TOC 
+

6.8.8.  +Copying instrument directories

+ +

The front-end can copy a specific + instrument directory by sending the following command: +

+

+

+
+

COPY DB_INSTRUMENT_DIRECTORY <dir> <dst> +

+

+ +

+

Where <dir> is the absolute path name of the directory + to copy and <dst> is the location where the directory will + be copied to. +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

on success +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

in case a given directory does not exists, + or if a directory with name equal to the name + of the specified directory already exists in + the destination directory. Error is also thrown + when trying to copy a directory to a subdirectory + of itself. +

+
+ + +

+ +

+

Example: +

+

+

+
+

C: "COPY DB_INSTRUMENT_DIRECTORY '/Piano Collection/Acoustic' '/Acoustic/Pianos'" +

+

S: "OK" +

+

+ +

+

+
 TOC 
+

6.8.9.  +Changing the description of directory

+ +

The front-end can alter the description of a specific + instrument directory by sending the following command: +

+

+

+
+

SET DB_INSTRUMENT_DIRECTORY DESCRIPTION <dir> <desc> +

+

+ +

+

Where <dir> is the absolute path name of the directory and + <desc> is the new description for the directory + (encapsulated into apostrophes, supporting escape sequences as described in chapter + "Character Set and Escape Sequences (Character Set and Escape Sequences)"). +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

on success +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

in case the given directory does not exists. +

+
+ + +

+ +

+

Example: +

+

+

+
+

C: "SET DB_INSTRUMENT_DIRECTORY DESCRIPTION '/Piano Collection' 'A collection of piano instruments in various format.'" +

+

S: "OK" +

+

+ +

+

+
 TOC 
+

6.8.10.  +Finding directories

+ +

The front-end can search for directories + in specific directory by sending the following command: +

+

+

+
+

FIND DB_INSTRUMENT_DIRECTORIES [NON_RECURSIVE] <dir> <criteria-list> +

+

+ +

+

Where <dir> should be replaced by the absolute path + name of the directory to search in. If NON_RECURSIVE is specified, the + directories located in subdirectories of the specified directory will not + be searched. <criteria-list> is a list of search criterias + in form of "key1=val1 key2=val2 ...". The following criterias are + allowed: +

+

+ +

NAME='<search-string>' +

+
+

Restricts the search to directories, which names + satisfy the supplied search string (encapsulated into apostrophes, + supporting escape sequences as described in chapter + "Character Set and Escape Sequences (Character Set and Escape Sequences)"). +

+

+ +

+ + +

CREATED='[<date-after>]..[<date-before>]' +

+
+

Restricts the search to directories, which creation + date satisfies the specified period, where <date-after> + and <date-before> are in "YYYY-MM-DD HH:MM:SS" format. + If <date-after> is omitted the search is restricted to + directories created before <date-before>. If + <date-before> is omitted, the search is restricted + to directories created after <date-after>. +

+

+ +

+ + +

MODIFIED='[<date-after>]..[<date-before>]' +

+
+

Restricts the search to directories, which + date of last modification satisfies the specified period, where + <date-after> and <date-before> are in "YYYY-MM-DD HH:MM:SS" + format. If <date-after> is omitted the search is restricted to + directories, which are last modified before <date-before>. If + <date-before> is omitted, the search is restricted to directories, + which are last modified after <date-after>. +

+

+ +

+ + +

DESCRIPTION='<search-string>' +

+
+

Restricts the search to directories with description + that satisfies the supplied search string + (encapsulated into apostrophes, supporting escape + sequences as described in chapter + "Character Set and Escape Sequences (Character Set and Escape Sequences)"). +

+

+ +

+ + +

Where <search-string> is either a regular expression, or a + word list separated with spaces for OR search and with '+' for AND search. +

+

Possible Answers: +

+

+

+
+

A comma separated list with the absolute path names (encapsulated into + apostrophes) of all directories in the specified directory that satisfy + the supplied search criterias. +

+

"ERR:<error-code>:<error-message>" - +

+
+

if the given directory does not exist. +

+
+ + +

+ +

+

Example: +

+

+

+
+

C: "FIND DB_INSTRUMENT_DIRECTORIES '/' NAME='Piano'" +

+

S: "'/Piano Collection'" +

+

+ +

+

+

+
+

C: "FIND DB_INSTRUMENT_DIRECTORIES '/' CREATED='..2007-04-01 09:30:13'" +

+

S: "'/Piano Collection','/Percussions'" +

+

+ +

+

+
 TOC 
+

6.8.11.  +Adding instruments to the instruments database

+ +

The front-end can add one or more instruments + to the instruments database by sending the following command: +

+

+

+
+

ADD DB_INSTRUMENTS [NON_MODAL] [<mode>] <db_dir> <file_path> [<instr_index>] +

+

+ +

+

Where <db_dir> is the absolute path name of a directory + (encapsulated into apostrophes) in the instruments database in which + only the new instruments (that are not already in the database) will + be added, <file_path> is the absolute path name of a file or + directory in the file system (encapsulated into apostrophes). In case + an instrument file is supplied, only the instruments in the specified + file will be added to the instruments database. If the optional + <instr_index> (the index of the instrument within the given file) + is supplied too, then only the specified instrument will be added. + In case a directory is supplied, the instruments in that directory + will be added. The OPTIONAL <mode> argument is only applied + when a directory is provided as <file_path> and specifies how the + scanning will be done and has exactly the following possibilities: +

+

+

+
+

"RECURSIVE" - +

+
+

All instruments will be processed, including those + in the subdirectories, and the respective subdirectory + tree structure will be recreated in the instruments + database +

+
+ + +

"NON_RECURSIVE" - +

+
+

Only the instruments in the specified directory + will be added, the instruments in the subdirectories + will not be processed. +

+
+ + +

"FLAT" - +

+
+

All instruments will be processed, including those + in the subdirectories, but the respective subdirectory + structure will not be recreated in the instruments + database. All instruments will be added directly in + the specified database directory. +

+
+ + +

+ +

+

The difference between regular and NON_MODAL versions of the command + is that the regular command returns when the scanning is finished + while NON_MODAL version returns immediately and a background process is launched. + The GET DB_INSTRUMENTS_JOB INFO (Getting job status information) + command can be used to monitor the scanning progress. +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

on success when NON_MODAL is not supplied +

+
+ + +

"OK[<job-id>]" - +

+
+

on success when NON_MODAL is supplied, where <job-id> + is a numerical ID used to obtain status information about the job progress. + See GET DB_INSTRUMENTS_JOB INFO (Getting job status information) + +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

if an invalid path is specified. +

+
+ + +

+ +

+

Examples: +

+

+

+
+

C: "ADD DB_INSTRUMENTS '/Piano Collection' '/home/me/gigs/PMI Bosendorfer 290.gig' 0" +

+

S: "OK" +

+

+ +

+

+
 TOC 
+

6.8.12.  +Removing an instrument

+ +

The front-end can remove a particular instrument + from the instruments database by sending the following command: +

+

+

+
+

REMOVE DB_INSTRUMENT <instr_path> +

+

+ +

+

Where <instr_path> is the absolute path name + (in the instruments database) of the instrument to remove. +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

if the instrument is removed successfully +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

if the given path does not exist or + is a directory. +

+
+ + +

+ +

+

Examples: +

+

+

+
+

C: "REMOVE DB_INSTRUMENT '/Piano Collection/Bosendorfer 290'" +

+

S: "OK" +

+

+ +

+

+
 TOC 
+

6.8.13.  +Getting amount of instruments

+ +

The front-end can retrieve the current amount of + instruments in a specific directory by sending the following command: +

+

+

+
+

GET DB_INSTRUMENTS [RECURSIVE] <dir> +

+

+ +

+

Where <dir> should be replaced by the absolute path name + of the directory. If RECURSIVE is specified, the number of all + instruments, including those located in subdirectories of the + specified directory, will be returned. +

+

Possible Answers: +

+

+

+
+

The current number of instruments + in the specified directory. +

+

"ERR:<error-code>:<error-message>" - +

+
+

if the given directory does not exist. +

+
+ + +

+ +

+

Example: +

+

+

+
+

C: "GET DB_INSTRUMENTS '/Piano Collection'" +

+

S: "2" +

+

+ +

+

+
 TOC 
+

6.8.14.  +Listing all instruments in specific directory

+ +

The front-end can retrieve the current list of instruments + in specific directory by sending the following command: +

+

+

+
+

LIST DB_INSTRUMENTS [RECURSIVE] <dir> +

+

+ +

+

Where <dir> should be replaced by the absolute path + name of the directory. If RECURSIVE is specified, the absolute path + names of all instruments, including those located in subdirectories + of the specified directory, will be returned. +

+

Possible Answers: +

+

+

+
+

A comma separated list of all instruments + (encapsulated into apostrophes) in the specified directory. +

+

"ERR:<error-code>:<error-message>" - +

+
+

if the given directory does not exist. +

+
+ + +

+ +

+

Example: +

+

+

+
+

C: "LIST DB_INSTRUMENTS '/Piano Collection'" +

+

S: "'Bosendorfer 290','Steinway D'" +

+

+ +

+

+

+
+

C: "LIST DB_INSTRUMENTS RECURSIVE '/Piano Collection'" +

+

S: "'/Piano Collection/Bosendorfer 290','/Piano Collection/Steinway D','/Piano Collection/Lite/Free Piano'" +

+

+ +

+

+
 TOC 
+

6.8.15.  +Getting instrument information

+ +

The front-end can ask for the current settings of an + instrument by sending the following command: +

+

+

+
+

GET DB_INSTRUMENT INFO <instr_path> +

+

+ +

+

Where <instr_path> should be replaced by the absolute path + name of the instrument the front-end is interested in. +

+

Possible Answers: +

+

+

+
+

LinuxSampler will answer by sending a <CRLF> separated list. + Each answer line begins with the settings category name + followed by a colon and then a space character <SP> and finally + the info character string to that setting category. At the + moment the following categories are defined: +

+

+

+
+

INSTRUMENT_FILE - +

+
+

File name of the instrument. + Note that the character string may contain + escape sequences (Character Set and Escape Sequences). +

+
+ + +

INSTRUMENT_NR - +

+
+

Index of the instrument within the file. +

+
+ + +

FORMAT_FAMILY - +

+
+

The format family of the instrument. +

+
+ + +

FORMAT_VERSION - +

+
+

The format version of the instrument. +

+
+ + +

SIZE - +

+
+

The size of the instrument in bytes. +

+
+ + +

CREATED - +

+
+

The date and time when the instrument is added + in the instruments database, represented in + "YYYY-MM-DD HH:MM:SS" format +

+
+ + +

MODIFIED - +

+
+

The date and time of the last modification of the + instrument's database settings, represented in + "YYYY-MM-DD HH:MM:SS" format +

+
+ + +

DESCRIPTION - +

+
+

A brief description of the instrument. + Note that the character string may contain + escape sequences (Character Set and Escape Sequences). +

+
+ + +

IS_DRUM - +

+
+

either true or false, determines whether the + instrument is a drumkit or a chromatic instrument +

+
+ + +

PRODUCT - +

+
+

The product title of the instrument. + Note that the character string may contain + escape sequences (Character Set and Escape Sequences). +

+
+ + +

ARTISTS - +

+
+

Lists the artist names. + Note that the character string may contain + escape sequences (Character Set and Escape Sequences). +

+
+ + +

KEYWORDS - +

+
+

Provides a list of keywords that refer to the instrument. + Keywords are separated with semicolon and blank. + Note that the character string may contain + escape sequences (Character Set and Escape Sequences). +

+
+ + +
+ + +

+ +

+

The mentioned fields above don't have to be in particular order. +

+

Example: +

+

+

+
+

C: "GET DB_INSTRUMENT INFO '/Piano Collection/Bosendorfer 290'" +

+

S: "INSTRUMENT_FILE: /home/me/gigs/Bosendorfer 290.gig" +

+

   "INSTRUMENT_NR: 0" +

+

   "FORMAT_FAMILY: GIG" +

+

   "FORMAT_VERSION: 2" +

+

   "SIZE: 2050871870" +

+

   "CREATED: 2007-02-05 10:23:12" +

+

   "MODIFIED: 2007-04-07 12:50:21" +

+

   "DESCRIPTION: " +

+

   "IS_DRUM: false" +

+

   "PRODUCT: GRANDIOSO Bosendorfer 290" +

+

   "ARTISTS: Post Musical Instruments" +

+

   "KEYWORDS: Bosendorfer" +

+

   "." +

+

+ +

+

+
 TOC 
+

6.8.16.  +Renaming an instrument

+ +

The front-end can alter the name of a specific + instrument by sending the following command: +

+

+

+
+

SET DB_INSTRUMENT NAME <instr> <name> +

+

+ +

+

Where <instr> is the absolute path name of the instrument and + <name> is the new name for that instrument. +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

on success +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

in case the given instrument does not exists, + or if an instrument with name equal to the new + name already exists. +

+
+ + +

+ +

+

Example: +

+

+

+
+

C: "SET DB_INSTRUMENT NAME '/Piano Collection/Bosendorfer' 'Bosendorfer 290'" +

+

S: "OK" +

+

+ +

+

+
 TOC 
+

6.8.17.  +Moving an instrument

+ +

The front-end can move a specific instrument to another directory by + sending the following command: +

+

+

+
+

MOVE DB_INSTRUMENT <instr> <dst> +

+

+ +

+

Where <instr> is the absolute path name of the instrument + to move and <dst> is the directory where the instrument will + be moved to. +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

on success +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

in case the given instrument does not exists, + or if an instrument with name equal to the name of the + specified instrument already exists in the destination + directory. +

+
+ + +

+ +

+

Example: +

+

+

+
+

C: "MOVE DB_INSTRUMENT '/Piano Collection/Bosendorfer 290' '/Piano Collection/Acoustic'" +

+

S: "OK" +

+

+ +

+

+
 TOC 
+

6.8.18.  +Copying instruments

+ +

The front-end can copy a specific instrument to another directory by + sending the following command: +

+

+

+
+

COPY DB_INSTRUMENT <instr> <dst> +

+

+ +

+

Where <instr> is the absolute path name of the instrument + to copy and <dst> is the directory where the instrument will + be copied to. +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

on success +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

in case the given instrument does not exists, + or if an instrument with name equal to the name of the + specified instrument already exists in the destination + directory. +

+
+ + +

+ +

+

Example: +

+

+

+
+

C: "COPY DB_INSTRUMENT '/Piano Collection/Bosendorfer 290' '/Acoustic/Pianos/'" +

+

S: "OK" +

+

+ +

+

+
 TOC 
+

6.8.19.  +Changing the description of instrument

+ +

The front-end can alter the description of a specific + instrument by sending the following command: +

+

+

+
+

SET DB_INSTRUMENT DESCRIPTION <instr> <desc> +

+

+ +

+

Where <instr> is the absolute path name of the instrument and + <desc> is the new description for the instrument + (encapsulated into apostrophes, supporting escape sequences as described in chapter + "Character Set and Escape Sequences (Character Set and Escape Sequences)"). +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

on success +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

in case the given instrument does not exists. +

+
+ + +

+ +

+

Example: +

+

+

+
+

C: "SET DB_INSTRUMENT DESCRIPTION '/Piano Collection/Acoustic/Bosendorfer 290' 'No comment :)'" +

+

S: "OK" +

+

+ +

+

+
 TOC 
+

6.8.20.  +Finding instruments

+ +

The front-end can search for instruments + in specific directory by sending the following command: +

+

+

+
+

FIND DB_INSTRUMENTS [NON_RECURSIVE] <dir> <criteria-list> +

+

+ +

+

Where <dir> should be replaced by the absolute path + name of the directory to search in. If NON_RECURSIVE is specified, the + directories located in subdirectories of the specified directory will not + be searched. <criteria-list> is a list of search criterias + in form of "key1=val1 key2=val2 ...". The following criterias are + allowed: +

+

+ +

NAME='<search-string>' +

+
+

Restricts the search to instruments, which names + satisfy the supplied search string (encapsulated into apostrophes, + supporting escape sequences as described in chapter + "Character Set and Escape Sequences (Character Set and Escape Sequences)"). +

+

+ +

+ + +

SIZE=[<min>]..[<max>] +

+
+

Restricts the search to instruments, which + size is in the specified range. If <min> is omitted, + the search results are restricted to instruments with size less then + or equal to <max>. If <max> is omitted, the + search is restricted to instruments with size greater then + or equal to <min>. +

+

+ +

+ + +

CREATED='[<date-after>]..[<date-before>]' +

+
+

Restricts the search to instruments, which creation + date satisfies the specified period, where <date-after> + and <date-before> are in "YYYY-MM-DD HH:MM:SS" format. + If <date-after> is omitted the search is restricted to + instruments created before <date-before>. If + <date-before> is omitted, the search is restricted + to instruments created after <date-after>. +

+

+ +

+ + +

MODIFIED='[<date-after>]..[<date-before>]' +

+
+

Restricts the search to instruments, which + date of last modification satisfies the specified period, where + <date-after> and <date-before> are in "YYYY-MM-DD HH:MM:SS" + format. If <date-after> is omitted the search is restricted to + instruments, which are last modified before <date-before>. If + <date-before> is omitted, the search is restricted to instruments, + which are last modified after <date-after>. +

+

+ +

+ + +

DESCRIPTION='<search-string>' +

+
+

Restricts the search to instruments with description + that satisfies the supplied search string (encapsulated into apostrophes, + supporting escape sequences as described in chapter + "Character Set and Escape Sequences (Character Set and Escape Sequences)"). +

+

+ +

+ + +

PRODUCT='<search-string>' +

+
+

Restricts the search to instruments with product info + that satisfies the supplied search string (encapsulated into apostrophes, + supporting escape sequences as described in chapter + "Character Set and Escape Sequences (Character Set and Escape Sequences)"). +

+

+ +

+ + +

ARTISTS='<search-string>' +

+
+

Restricts the search to instruments with artists info + that satisfies the supplied search string (encapsulated into apostrophes, + supporting escape sequences as described in chapter + "Character Set and Escape Sequences (Character Set and Escape Sequences)"). +

+

+ +

+ + +

KEYWORDS='<search-string>' +

+
+

Restricts the search to instruments with keyword list + that satisfies the supplied search string (encapsulated into apostrophes, + supporting escape sequences as described in chapter + "Character Set and Escape Sequences (Character Set and Escape Sequences)"). +

+

+ +

+ + +

IS_DRUM=true | false +

+
+

Either true or false. Restricts the search to + drum kits or chromatic instruments. +

+

+ +

+ + +

FORMAT_FAMILIES='<format-list>' +

+
+

Restricts the search to instruments of the supplied format families, + where <format-list> is a comma separated list of format families. +

+

+ +

+ + +

Where <search-string> is either a regular expression, or a + word list separated with spaces for OR search and with '+' for AND search. +

+

Possible Answers: +

+

+

+
+

A comma separated list with the absolute path names (encapsulated into + apostrophes) of all instruments in the specified directory that satisfy + the supplied search criterias. +

+

"ERR:<error-code>:<error-message>" - +

+
+

if the given directory does not exist. +

+
+ + +

+ +

+

Example: +

+

+

+
+

C: "FIND DB_INSTRUMENTS '/Piano Collection' NAME='bosendorfer+290'" +

+

S: "'/Piano Collection/Bosendorfer 290'" +

+

+ +

+

+

+
+

C: "FIND DB_INSTRUMENTS '/Piano Collection' CREATED='2007-04-01 09:30:13..'" +

+

S: "'/Piano Collection/Bosendorfer 290','/Piano Collection/Steinway D'" +

+

+ +

+

+
 TOC 
+

6.8.21.  +Getting job status information

+ +

The front-end can ask for the current status of a + particular database instruments job by sending the following command: +

+

+

+
+

GET DB_INSTRUMENTS_JOB INFO <job-id> +

+

+ +

+

Where <job-id> should be replaced by the numerical ID + of the job the front-end is interested in. +

+

Possible Answers: +

+

+

+
+

LinuxSampler will answer by sending a <CRLF> separated list. + Each answer line begins with the settings category name + followed by a colon and then a space character <SP> and finally + the info character string to that setting category. At the + moment the following categories are defined: +

+

+

+
+

FILES_TOTAL - +

+
+

The total number of files scheduled for scanning +

+
+ + +

FILES_SCANNED - +

+
+

The current number of scanned files +

+
+ + +

SCANNING - +

+
+

The absolute path name of the file which is currently + being scanned +

+
+ + +

STATUS - +

+
+

An integer value between 0 and 100 indicating the + scanning progress percentage of the file which is + currently being scanned +

+
+ + +
+ + +

+ +

+

The mentioned fields above don't have to be in particular order. +

+

Example: +

+

+

+
+

C: "GET DB_INSTRUMENTS_JOB INFO 2" +

+

S: "FILES_TOTAL: 12" +

+

   "FILES_SCANNED: 7" +

+

   "SCANNING: /home/me/gigs/Bosendorfer 290.gig" +

+

   "STATUS: 42" +

+

   "." +

+

+ +

+

+
 TOC 
+

6.8.22.  +Formatting the instruments database

+ +

The front-end can remove all instruments and directories and re-create + the instruments database structure (e.g., in case of a database corruption) + by sending the following command: +

+

+

+
+

FORMAT INSTRUMENTS_DB +

+

+ +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

on success +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

If the formatting of the instruments database + failed. +

+
+ + +

+ +

+

+
 TOC 
+

6.9.  +Editing Instruments

+ +

The sampler allows to edit instruments while playing with the + sampler by spawning an external (3rd party) instrument editor + application for a given instrument. The 3rd party instrument + editor applications have to place a respective plugin DLL file + into the sampler's plugins directory. The sampler will + automatically try to load all plugin DLLs in that directory on + startup and only on startup! +

+

At the moment there is only one command for this feature set, + but this will most probably change in future. +

+

+
 TOC 
+

6.9.1.  +Opening an appropriate instrument editor application

+ +

The front-end can request to open an appropriate instrument + editor application by sending the following command: +

+

+

+
+

EDIT CHANNEL INSTRUMENT <sampler-channel> +

+

+ +

+

Where <sampler-channel> should be replaced by the + number of the sampler channel as given by the + "ADD CHANNEL" (Adding a new sampler channel) + or "LIST CHANNELS" (Getting all created sampler channel list) + command. +

+

The sampler will try to ask all registered instrument + editors (or to be more specific: their sampler plugins) + whether they are capable to handle the instrument on the + given sampler channel. The sampler will simply use the first + instrument editor application which replied with a positive + answer and spawn that instrument editor application within + the sampler's process and provide that application access + to the instrument's data structures, so both applications + can share and access the same instruments data at the same + time, thus allowing to immediately hear changes with the + sampler made by the instrument editor. +

+

Note: consequently instrument editors are always spawned + locally on the same machine where the sampler is running + on! +

+

Possible Answers: +

+

+

+
+

"OK" - +

+
+

when an appropriate instrument editor was + launched +

+
+ + +

"WRN:<warning-code>:<warning-message>" - +

+
+

when an appropriate instrument editor was + launched, but there are noteworthy issues +

+
+ + +

"ERR:<error-code>:<error-message>" - +

+
+

when an appropriate instrument editor + could not be launched +

+
+ + +

+ +

+

Examples: +

+

+

+
+

C: "EDIT CHANNEL INSTRUMENT 0" +

+

S: "OK" +

+

+ +

+

+
 TOC 
+

6.10.  +Managing Files

+ +

You can query detailed informations about files located + at the same system where the sampler instance is running on. + Using this command set allows to retrieve file informations + even remotely from another machine. +

+

+
 TOC 
+

6.10.1.  +Retrieving amount of instruments of a file

+ +

The front-end can retrieve the amount of instruments + within a given instrument file by sending the + following command: +

+

+

+
+

GET FILE INSTRUMENTS <filename> +

+

+ +

+

Where <filename> is the name of the instrument + file (encapsulated into apostrophes, supporting escape + sequences as described in chapter + "Character Set and Escape + Sequences (Character Set and Escape Sequences)"). +

+

The sampler will try to ask all sampler engines, + whether they support the given file and ask the first + engine with a positive answer for the amount of + instruments. +

+

Possible Answers: +

+

+

+
+

On success, the sampler will answer by + returning the amount of instruments. + +

+

"ERR:<error-code>:<error-message>" - +

+
+

if the file could not be handled +

+
+ + +

+ +

+

Examples: +

+

+

+
+

C: "GET FILE INSTRUMENTS 'D:/Sounds/Foo.gig'" +

+

S: "10" +

+

+ +

+

+
 TOC 
+

6.10.2.  +Retrieving all instruments of a file

+ +

The front-end can retrieve a list of all instruments + within a given instrument file by sending the + following command: +

+

+

+
+

LIST FILE INSTRUMENTS <filename> +

+

+ +

+

Where <filename> is the name of the instrument + file (encapsulated into apostrophes, supporting escape + sequences as described in chapter + "Character Set and Escape + Sequences (Character Set and Escape Sequences)"). +

+

The sampler will try to ask all sampler engines, + whether they support the given file and ask the first + engine with a positive answer for a list of IDs for the + instruments in the given file. +

+

Possible Answers: +

+

+

+
+

On success, the sampler will answer by + returning a comma separated list of + instrument IDs. + +

+

"ERR:<error-code>:<error-message>" - +

+
+

if the file could not be handled +

+
+ + +

+ +

+

Examples: +

+

+

+
+

C: "LIST FILE INSTRUMENTS 'D:/Sounds/Foo.gig'" +

+

S: "0,1,2,3,4,5,6,7,8,9" +

+

+ +

+

+
 TOC 
+

6.10.3.  +Retrieving informations about one instrument in a file

+ +

The front-end can retrieve detailed informations + about a specific instrument within a given instrument + file by sending the following command: +

+

+

+
+

GET FILE INSTRUMENT INFO <filename> + <instr-id> +

+

+ +

+

Where <filename> is the name of the instrument + file (encapsulated into apostrophes, supporting escape + sequences as described in chapter + "Character Set and Escape + Sequences (Character Set and Escape Sequences)") and <instr-id> is the numeric + instrument ID as returned by the + "LIST FILE INSTRUMENTS" (Retrieving all instruments of a file) command. +

+

The sampler will try to ask all sampler engines, + whether they support the given file and ask the first + engine with a positive answer for informations about the + specific instrument in the given file. +

+

Possible Answers: +

+

+

+
+

LinuxSampler will answer by sending a <CRLF> separated list. + Each answer line begins with the settings category name + followed by a colon and then a space character <SP> and finally + the info character string to that setting category. At the + moment the following categories are defined: +

+

+

+
+

NAME - +

+
+

name of the instrument as + stored in the instrument file +

+
+ + +

FORMAT_FAMILY - +

+
+

name of the sampler format + of the given instrument +

+
+ + +

FORMAT_VERSION - +

+
+

version of the sampler format + the instrumen is stored as +

+
+ + +

PRODUCT - +

+
+

official product name of the + instrument as stored in the file + +

+
+ + +

ARTISTS - +

+
+

artists / sample library + vendor of the instrument +

+
+ + +
+ + +

+ +

+

The mentioned fields above don't have to be in particular order. +

+

Example: +

+

+

+
+

C: "GET FILE INSTRUMENT INFO 'D:/Sounds/Foo.gig' 0" +

+

S: "NAME: Lunatic Loops" +

+

   "FORMAT_FAMILY: GIG" +

+

   "FORMAT_VERSION: 3" +

+

   "PRODUCT: The Backbone Bongo Beats" +

+

   "ARTISTS: Jimmy the Fish" +

+

   "." +

+

+ +



-
 TOC 
-

7. Command Syntax

+
 TOC 
+

7.  +Command Syntax

-

The grammar of the control protocol as descibed in Section 6Description for control commands - is defined below using Backus-Naur Form (BNF as described in [RFC2234]Crocker, D. and P. Overell, Augmented BNF for Syntax Specifications, 1997.) +

The grammar of the control protocol as descibed in Section 6 (Description for control commands) + is defined below using Backus-Naur Form (BNF as described in [RFC2234] (Crocker, D. and P. Overell, “Augmented BNF for Syntax Specifications,” 1997.)) where applicable.

@@ -4255,8 +9472,9 @@

/ line CR LF

- +

+

line =

@@ -4272,8 +9490,9 @@

/ error

-
+

+

comment =

@@ -4292,12 +9511,19 @@

/ comment string

-
+

+

command =

-

ADD SP CHANNEL +

ADD SP add_instruction + +

+

/ MAP SP map_instruction + +

+

/ UNMAP SP unmap_instruction

/ GET SP get_instruction @@ -4315,7 +9541,7 @@

/ LOAD SP load_instruction

-

/ REMOVE SP CHANNEL SP sampler_channel +

/ REMOVE SP remove_instruction

/ SET SP set_instruction @@ -4327,10 +9553,25 @@

/ UNSUBSCRIBE SP unsubscribe_event

-

/ SELECT SP text +

/ RESET SP reset_instruction

-

/ RESET SP CHANNEL SP sampler_channel +

/ CLEAR SP clear_instruction + +

+

/ FIND SP find_instruction + +

+

/ MOVE SP move_instruction + +

+

/ COPY SP copy_instruction + +

+

/ EDIT SP edit_instruction + +

+

/ FORMAT SP format_instruction

/ RESET @@ -4339,12 +9580,61 @@

/ QUIT

-
+

+ +

+

add_instruction = +

+
+

CHANNEL + +

+

/ DB_INSTRUMENT_DIRECTORY SP db_path + +

+

/ DB_INSTRUMENTS SP NON_MODAL SP scan_mode SP db_path SP filename + +

+

/ DB_INSTRUMENTS SP scan_mode SP db_path SP filename + +

+

/ DB_INSTRUMENTS SP NON_MODAL SP db_path SP filename + +

+

/ DB_INSTRUMENTS SP NON_MODAL SP db_path SP filename SP instrument_index + +

+

/ DB_INSTRUMENTS SP db_path SP filename + +

+

/ DB_INSTRUMENTS SP db_path SP filename SP instrument_index + +

+

/ MIDI_INSTRUMENT_MAP + +

+

/ MIDI_INSTRUMENT_MAP SP map_name + +

+

+

subscribe_event =

-

CHANNEL_COUNT +

AUDIO_OUTPUT_DEVICE_COUNT + +

+

/ AUDIO_OUTPUT_DEVICE_INFO + +

+

/ MIDI_INPUT_DEVICE_COUNT + +

+

/ MIDI_INPUT_DEVICE_INFO + +

+

/ CHANNEL_COUNT

/ VOICE_COUNT @@ -4359,15 +9649,70 @@

/ CHANNEL_INFO

+

/ FX_SEND_COUNT + +

+

/ FX_SEND_INFO + +

+

/ MIDI_INSTRUMENT_MAP_COUNT + +

+

/ MIDI_INSTRUMENT_MAP_INFO + +

+

/ MIDI_INSTRUMENT_COUNT + +

+

/ MIDI_INSTRUMENT_INFO + +

+

/ DB_INSTRUMENT_DIRECTORY_COUNT + +

+

/ DB_INSTRUMENT_DIRECTORY_INFO + +

+

/ DB_INSTRUMENT_COUNT + +

+

/ DB_INSTRUMENT_INFO + +

+

/ DB_INSTRUMENTS_JOB_INFO + +

/ MISCELLANEOUS

-
+

/ TOTAL_STREAM_COUNT + +

+

/ TOTAL_VOICE_COUNT + +

+

/ GLOBAL_INFO + +

+

+

unsubscribe_event =

-

CHANNEL_COUNT +

AUDIO_OUTPUT_DEVICE_COUNT + +

+

/ AUDIO_OUTPUT_DEVICE_INFO + +

+

/ MIDI_INPUT_DEVICE_COUNT + +

+

/ MIDI_INPUT_DEVICE_INFO + +

+

/ CHANNEL_COUNT

/ VOICE_COUNT @@ -4382,11 +9727,105 @@

/ CHANNEL_INFO

+

/ FX_SEND_COUNT + +

+

/ FX_SEND_INFO + +

+

/ MIDI_INSTRUMENT_MAP_COUNT + +

+

/ MIDI_INSTRUMENT_MAP_INFO + +

+

/ MIDI_INSTRUMENT_COUNT + +

+

/ MIDI_INSTRUMENT_INFO + +

+

/ DB_INSTRUMENT_DIRECTORY_COUNT + +

+

/ DB_INSTRUMENT_DIRECTORY_INFO + +

+

/ DB_INSTRUMENT_COUNT + +

+

/ DB_INSTRUMENT_INFO + +

+

/ DB_INSTRUMENTS_JOB_INFO + +

/ MISCELLANEOUS

-
+

/ TOTAL_STREAM_COUNT + +

+

/ TOTAL_VOICE_COUNT + +

+

/ GLOBAL_INFO + +

+

+ +

+

map_instruction = +

+
+

MIDI_INSTRUMENT SP modal_arg midi_map SP midi_bank SP midi_prog SP engine_name SP filename SP instrument_index SP volume_value + +

+

/ MIDI_INSTRUMENT SP modal_arg midi_map SP midi_bank SP midi_prog SP engine_name SP filename SP instrument_index SP volume_value SP instr_load_mode + +

+

/ MIDI_INSTRUMENT SP modal_arg midi_map SP midi_bank SP midi_prog SP engine_name SP filename SP instrument_index SP volume_value SP entry_name + +

+

/ MIDI_INSTRUMENT SP modal_arg midi_map SP midi_bank SP midi_prog SP engine_name SP filename SP instrument_index SP volume_value SP instr_load_mode SP entry_name + +

+

+ +

+

unmap_instruction = +

+
+

MIDI_INSTRUMENT SP midi_map SP midi_bank SP midi_prog + +

+

+ +

+

remove_instruction = +

+
+

CHANNEL SP sampler_channel + +

+

/ MIDI_INSTRUMENT_MAP SP midi_map + +

+

/ MIDI_INSTRUMENT_MAP SP ALL + +

+

/ DB_INSTRUMENT_DIRECTORY SP FORCE SP db_path + +

+

/ DB_INSTRUMENT_DIRECTORY SP db_path + +

+

/ DB_INSTRUMENT SP db_path + +

+

+

get_instruction =

@@ -4462,8 +9901,69 @@

/ SERVER SP INFO

-
+

/ TOTAL_STREAM_COUNT + +

+

/ TOTAL_VOICE_COUNT + +

+

/ TOTAL_VOICE_COUNT_MAX + +

+

/ MIDI_INSTRUMENTS SP midi_map + +

+

/ MIDI_INSTRUMENTS SP ALL + +

+

/ MIDI_INSTRUMENT SP INFO SP midi_map SP midi_bank SP midi_prog + +

+

/ MIDI_INSTRUMENT_MAPS + +

+

/ MIDI_INSTRUMENT_MAP SP INFO SP midi_map + +

+

/ FX_SENDS SP sampler_channel + +

+

/ FX_SEND SP INFO SP sampler_channel SP fx_send_id + +

+

/ DB_INSTRUMENT_DIRECTORIES SP RECURSIVE SP db_path + +

+

/ DB_INSTRUMENT_DIRECTORIES SP db_path + +

+

/ DB_INSTRUMENT_DIRECTORY SP INFO SP db_path + +

+

/ DB_INSTRUMENTS SP RECURSIVE SP db_path + +

+

/ DB_INSTRUMENTS SP db_path + +

+

/ DB_INSTRUMENT SP INFO SP db_path + +

+

/ DB_INSTRUMENTS_JOB SP INFO SP number + +

+

/ VOLUME + +

+

/ FILE SP INSTRUMENTS SP filename + +

+

/ FILE SP INSTRUMENT SP INFO SP filename SP instrument_index + +

+

+

set_instruction =

@@ -4476,17 +9976,51 @@

/ MIDI_INPUT_DEVICE_PARAMETER SP number SP string '=' param_val_list

+

/ MIDI_INPUT_PORT_PARAMETER SP number SP number SP string '=' NONE + +

/ MIDI_INPUT_PORT_PARAMETER SP number SP number SP string '=' param_val_list

/ CHANNEL SP set_chan_instruction

+

/ MIDI_INSTRUMENT_MAP SP NAME SP midi_map SP map_name + +

+

/ FX_SEND SP NAME SP sampler_channel SP fx_send_id SP fx_send_name + +

+

/ FX_SEND SP AUDIO_OUTPUT_CHANNEL SP sampler_channel SP fx_send_id SP audio_channel_index SP audio_channel_index + +

+

/ FX_SEND SP MIDI_CONTROLLER SP sampler_channel SP fx_send_id SP midi_ctrl + +

+

/ FX_SEND SP LEVEL SP sampler_channel SP fx_send_id SP volume_value + +

+

/ DB_INSTRUMENT_DIRECTORY SP NAME SP db_path SP stringval_escaped + +

+

/ DB_INSTRUMENT_DIRECTORY SP DESCRIPTION SP db_path SP stringval_escaped + +

+

/ DB_INSTRUMENT SP NAME SP db_path SP stringval_escaped + +

+

/ DB_INSTRUMENT SP DESCRIPTION SP db_path SP stringval_escaped + +

/ ECHO SP boolean

-
+

/ VOLUME SP volume_value + +

+

+

create_instruction =

@@ -4502,8 +10036,78 @@

/ MIDI_INPUT_DEVICE SP string

-
+

/ FX_SEND SP sampler_channel SP midi_ctrl + +

+

/ FX_SEND SP sampler_channel SP midi_ctrl SP fx_send_name + +

+

+ +

+

reset_instruction = +

+
+

CHANNEL SP sampler_channel + +

+

+ +

+

clear_instruction = +

+
+

MIDI_INSTRUMENTS SP midi_map + +

+

/ MIDI_INSTRUMENTS SP ALL + +

+

+

+

find_instruction = +

+
+

DB_INSTRUMENTS SP NON_RECURSIVE SP db_path SP query_val_list + +

+

/ DB_INSTRUMENTS SP db_path SP query_val_list + +

+

/ DB_INSTRUMENT_DIRECTORIES SP NON_RECURSIVE SP db_path SP query_val_list + +

+

/ DB_INSTRUMENT_DIRECTORIES SP db_path SP query_val_list + +

+

+ +

+

move_instruction = +

+
+

DB_INSTRUMENT_DIRECTORY SP db_path SP db_path + +

+

/ DB_INSTRUMENT SP db_path SP db_path + +

+

+ +

+

copy_instruction = +

+
+

DB_INSTRUMENT_DIRECTORY SP db_path SP db_path + +

+

/ DB_INSTRUMENT SP db_path SP db_path + +

+

+ +

destroy_instruction =

@@ -4513,8 +10117,12 @@

/ MIDI_INPUT_DEVICE SP number

-
+

/ FX_SEND SP sampler_channel SP fx_send_id + +

+

+

load_instruction =

@@ -4524,8 +10132,9 @@

/ ENGINE SP load_engine_args

-
+

+

set_chan_instruction =

@@ -4556,8 +10165,54 @@

/ VOLUME SP sampler_channel SP volume_value

-
+

/ MUTE SP sampler_channel SP boolean + +

+

/ SOLO SP sampler_channel SP boolean + +

+

/ MIDI_INSTRUMENT_MAP SP sampler_channel SP midi_map + +

+

/ MIDI_INSTRUMENT_MAP SP sampler_channel SP NONE + +

+

/ MIDI_INSTRUMENT_MAP SP sampler_channel SP DEFAULT + +

+

+ +

+

edit_instruction = +

+
+

CHANNEL SP INSTRUMENT SP sampler_channel + +

+

+

+

format_instruction = +

+
+

INSTRUMENTS_DB + +

+

+ +

+

modal_arg = +

+
+

/* epsilon (empty argument) */ + +

+

/ NON_MODAL SP + +

+

+ +

key_val_list =

@@ -4567,8 +10222,9 @@

/ key_val_list SP string '=' param_val_list

-
+

+

buffer_size_type =

@@ -4578,8 +10234,9 @@

/ PERCENTAGE

-
+

+

list_instruction =

@@ -4601,8 +10258,36 @@

/ AVAILABLE_AUDIO_OUTPUT_DRIVERS

-
+

/ MIDI_INSTRUMENTS SP midi_map + +

+

/ MIDI_INSTRUMENTS SP ALL + +

+

/ MIDI_INSTRUMENT_MAPS + +

+

/ FX_SENDS SP sampler_channel + +

+

/ DB_INSTRUMENT_DIRECTORIES SP RECURSIVE SP db_path + +

+

/ DB_INSTRUMENT_DIRECTORIES SP db_path + +

+

/ DB_INSTRUMENTS SP RECURSIVE SP db_path + +

+

/ DB_INSTRUMENTS SP db_path + +

+

/ FILE SP INSTRUMENTS SP filename + +

+

+

load_instr_args =

@@ -4612,48 +10297,69 @@

/ NON_MODAL SP filename SP instrument_index SP sampler_channel

-
+

+

load_engine_args =

engine_name SP sampler_channel

-
+

+

+

instr_load_mode = +

+
+

ON_DEMAND + +

+

/ ON_DEMAND_HOLD + +

+

/ PERSISTENT + +

+

+ +

device_index =

number

-
+

+

audio_channel_index =

number

-
+

+

audio_output_type_name =

string

-
+

+

midi_input_port_index =

number

-
+

+

midi_input_channel_index =

@@ -4663,16 +10369,54 @@

/ ALL

-
+

+

midi_input_type_name =

string

-
+

+ +

+

midi_map = +

+
+

number + +

+

+

+

midi_bank = +

+
+

number + +

+

+ +

+

midi_prog = +

+
+

number + +

+

+ +

+

midi_ctrl = +

+
+

number + +

+

+ +

volume_value =

@@ -4682,40 +10426,90 @@

/ number

-
+

+

sampler_channel =

number

-
+

+

instrument_index =

number

-
+

+

+

fx_send_id = +

+
+

number + +

+

+ +

engine_name =

string

-
+

+

filename =

-

stringval +

path

-
+

+ +

+

db_path = +

+
+

path + +

+

+ +

+

map_name = +

+
+

stringval_escaped + +

+

+ +

+

entry_name = +

+
+

stringval_escaped + +

+

+ +

+

fx_send_name = +

+
+

stringval_escaped + +

+

+

param_val_list =

@@ -4725,18 +10519,16 @@

/ param_val_list','param_val

-
+

+

param_val =

string

-

/ '\'' string '\'' - -

-

/ '\"' string '\"' +

/ stringval

/ number @@ -4745,125 +10537,520 @@

/ dotnum

-
+

+

+

query_val_list = +

+
+

string '=' query_val + +

+

/ query_val_list SP string '=' query_val + +

+

+ +

+

query_val = +

+
+

text_escaped + +

+

/ stringval_escaped + +

+

+ +

+

scan_mode = +

+
+

RECURSIVE + +

+

/ NON_RECURSIVE + +

+

/ FLAT + +

+

+ +

+

+
 TOC 
+

7.1.  +Character Set and Escape Sequences

+ +

Older versions of this protocol up to and including v1.1 only + supported the standard ASCII character set (ASCII code 0 - 127) + [RFC20] (UCLA, “ASCII format for Network Interchange,” 1969.), all younger versions of this protocol + however support the Extended ASCII character set (ASCII code + 0 - 255). The same group of younger protocols also support + escape sequences, but only for certain, explicitly declared + parts of the protocol. The supported escape sequences are + defined as follows: +

++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ASCII Character SequenceTranslated into (Name)
\nnew line
\rcarriage return
\fform feed
\thorizontal tab
\vvertical tab
\'apostrophe
\"quotation mark
\\backslash
\OOOthree digit octal ASCII code of the character
\xHHtwo digit hex ASCII code of the character
+ +

Notice: due to the transition of certain parts of the + protocol which now support escape sequences, a slight backward + incompatibility to protocols version v1.1 and younger has been + introduced. The only difference is that in parts of the protocol + where escape characters are now supported, a backslash characters + MUST be escaped as well (that is as double backslash), whereas + in the old versions a single backslash was sufficient. +

+

The following LSCP commands support escape sequences as part + of their filename / path based arguments and / or may contain + a filename / path with escape sequences in their response: +

+
+

"LOAD INSTRUMENT" (Loading an instrument) +

+

"GET CHANNEL INFO" (Getting sampler channel information) +

+

"MAP MIDI_INSTRUMENT" (Create or replace a MIDI instrument map entry) +

+

"GET MIDI_INSTRUMENT INFO" (Get current settings of MIDI instrument map entry) +

+

"ADD DB_INSTRUMENT_DIRECTORY" (Creating a new instrument directory) +

+

"ADD DB_INSTRUMENTS" (Adding instruments to the instruments database) +

+

"REMOVE DB_INSTRUMENT_DIRECTORY" (Deleting an instrument directory) +

+

"REMOVE DB_INSTRUMENT" (Removing an instrument) +

+

"GET DB_INSTRUMENT_DIRECTORIES" (Getting amount of instrument directories) +

+

"LIST DB_INSTRUMENT_DIRECTORIES" (Listing all directories in specific directory) +

+

"GET DB_INSTRUMENT_DIRECTORY INFO" (Getting instrument directory information) +

+

"GET DB_INSTRUMENTS" (Getting amount of instruments) +

+

"LIST DB_INSTRUMENTS" (Listing all instruments in specific directory) +

+

"GET DB_INSTRUMENT INFO" (Getting instrument information) +

+

"SET DB_INSTRUMENT_DIRECTORY NAME" (Renaming an instrument directory) +

+

"SET DB_INSTRUMENT_DIRECTORY DESCRIPTION" (Changing the description of directory) +

+

"SET DB_INSTRUMENT NAME" (Renaming an instrument) +

+

"SET DB_INSTRUMENT DESCRIPTION" (Changing the description of instrument) +

+

"FIND DB_INSTRUMENTS" (Finding instruments) +

+

"FIND DB_INSTRUMENT_DIRECTORIES" (Finding directories) +

+

"MOVE DB_INSTRUMENT" (Moving an instrument) +

+

"MOVE DB_INSTRUMENT_DIRECTORY" (Moving an instrument directory) +

+

"COPY DB_INSTRUMENT" (Copying instruments) +

+

"COPY DB_INSTRUMENT_DIRECTORY" (Copying instrument directories) +

+

"GET FILE INSTRUMENTS" (Retrieving amount of instruments of a file) +

+

"LIST FILE INSTRUMENTS" (Retrieving all instruments of a file) +

+

"GET FILE INSTRUMENT INFO" (Retrieving informations about one instrument in a file) +

+

+ Note that the forward slash character ('/') has a special meaning in + filename / path based arguments: it acts as separator of the nodes in + the path, thus if a directory- or filename includes a forward slash + (not intended as path node separator), you MUST escape that slash + either with the respective hex escape sequence ("\x2f") or with the + respective octal escape sequence ("\057"). + +

+

+ Note for Windows: file path arguments in LSCP are expected + to use forward slashes as directory node separator similar + to Unix based operating systems. In contrast to Unix however + a Windows typical drive character is expected to be + prefixed to the path. That is an original Windows file path + like "D:\Sounds\My.gig" would become in LSCP: + "D:/Sounds/My.gig". + +

+

+ The following LSCP commands even support escape sequences as + part of at least one of their text-based arguments (i.e. entity name, + description) and / or may contain escape sequences in at least one of + their text-based fields in their response: +

+
+

"GET SERVER INFO" (General sampler informations) +

+

"GET ENGINE INFO" (Getting information about an engine) +

+

"GET CHANNEL INFO" (Getting sampler channel information) +

+

"CREATE FX_SEND" (Adding an effect send to a sampler channel) +

+

"GET FX_SEND INFO" (Getting effect send information) +

+

"SET FX_SEND NAME" (Changing effect send's name) +

+

"GET MIDI_INSTRUMENT INFO" (Get current settings of MIDI instrument map entry) +

+

"GET MIDI_INSTRUMENT_MAP INFO" (Getting MIDI instrument map information) +

+

"ADD MIDI_INSTRUMENT_MAP" (Create a new MIDI instrument map) +

+

"MAP MIDI_INSTRUMENT" (Create or replace a MIDI instrument map entry) +

+

"SET MIDI_INSTRUMENT_MAP NAME" (Renaming a MIDI instrument map) +

+

"GET DB_INSTRUMENT_DIRECTORY INFO" (Getting instrument directory information) +

+

"SET DB_INSTRUMENT_DIRECTORY NAME" (Renaming an instrument directory) +

+

"SET DB_INSTRUMENT_DIRECTORY DESCRIPTION" (Changing the description of directory) +

+

"FIND DB_INSTRUMENT_DIRECTORIES" (Finding directories) +

+

"GET DB_INSTRUMENT INFO" (Getting instrument information) +

+

"SET DB_INSTRUMENT NAME" (Renaming an instrument) +

+

"SET DB_INSTRUMENT DESCRIPTION" (Changing the description of instrument) +

+

"FIND DB_INSTRUMENTS" (Finding instruments) +

+

+ Please note that these lists are manually maintained. If you + find a command that also supports escape sequences we forgot to + mention here, please report it! + +



-
 TOC 
-

8. Events

+
 TOC 
+

8.  +Events

This chapter will describe all currently defined events supported by LinuxSampler.

-

8.1 Number of sampler channels changed

+

+
 TOC 
+

8.1.  +Number of audio output devices changed

+ +

Client may want to be notified when the total number of audio output devices on the + back-end changes by issuing the following command: +

+

+

+
+

SUBSCRIBE AUDIO_OUTPUT_DEVICE_COUNT +

+

+ +

+

Server will start sending the following notification messages: +

+

+

+
+

"NOTIFY:AUDIO_OUTPUT_DEVICE_COUNT:<devices>" +

+

+ +

+

where <devices> will be replaced by the new number + of audio output devices. +

+

+
 TOC 
+

8.2.  +Audio output device's settings changed

+ +

Client may want to be notified when changes were made to audio output devices on the + back-end by issuing the following command: +

+

+

+
+

SUBSCRIBE AUDIO_OUTPUT_DEVICE_INFO +

+

+ +

+

Server will start sending the following notification messages: +

+

+

+
+

"NOTIFY:AUDIO_OUTPUT_DEVICE_INFO:<device-id>" +

+

+ +

+

where <device-id> will be replaced by the numerical ID of the audio output device, + which settings has been changed. The front-end will have to send + the respective command to actually get the audio output device info. Because these messages + will be triggered by LSCP commands issued by other clients rather than real + time events happening on the server, it is believed that an empty notification + message is sufficient here. +

+

+
 TOC 
+

8.3.  +Number of MIDI input devices changed

+ +

Client may want to be notified when the total number of MIDI input devices on the + back-end changes by issuing the following command: +

+

+

+
+

SUBSCRIBE MIDI_INPUT_DEVICE_COUNT +

+

+ +

+

Server will start sending the following notification messages: +

+

+

+
+

"NOTIFY:MIDI_INPUT_DEVICE_COUNT:<devices>" +

+

+ +

+

where <devices> will be replaced by the new number + of MIDI input devices. +

+

+
 TOC 
+

8.4.  +MIDI input device's settings changed

+ +

Client may want to be notified when changes were made to MIDI input devices on the + back-end by issuing the following command: +

+

+

+
+

SUBSCRIBE MIDI_INPUT_DEVICE_INFO +

+

+ +

+

Server will start sending the following notification messages: +

+

+

+
+

"NOTIFY:MIDI_INPUT_DEVICE_INFO:<device-id>" +

+

+ +

+

where <device-id> will be replaced by the numerical ID of the MIDI input device, + which settings has been changed. The front-end will have to send + the respective command to actually get the MIDI input device info. Because these messages + will be triggered by LSCP commands issued by other clients rather than real + time events happening on the server, it is believed that an empty notification + message is sufficient here. +

+

+
 TOC 
+

8.5.  +Number of sampler channels changed

Client may want to be notified when the total number of channels on the back-end changes by issuing the following command:

-

+

+

SUBSCRIBE CHANNEL_COUNT

-
- +

+ +

Server will start sending the following notification messages:

-

+

+

"NOTIFY:CHANNEL_COUNT:<channels>"

-
- +

+ +

where <channels> will be replaced by the new number of sampler channels.

-

8.2 Number of active voices changed

+

+
 TOC 
+

8.6.  +Number of active voices changed

Client may want to be notified when the number of voices on the back-end changes by issuing the following command:

-

+

+

SUBSCRIBE VOICE_COUNT

-
- +

+ +

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 active voices on that channel.

-

8.3 Number of active disk streams changed

+

+
 TOC 
+

8.7.  +Number of active disk streams changed

Client may want to be notified when the number of streams on the back-end changes by issuing the following command: SUBSCRIBE STREAM_COUNT

-

+

+

SUBSCRIBE STREAM_COUNT

-
- +

+ +

Server will start sending the following notification messages:

-

+

+

"NOTIFY:STREAM_COUNT:<sampler-channel> <streams>"

-
- +

+ +

where <sampler-channel> will be replaced by the sampler channel the stream count change occurred and <streams> by the new number of active disk streams on that channel.

-

8.4 Disk stream buffer fill state changed

+

+
 TOC 
+

8.8.  +Disk stream buffer fill state changed

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

-
- +

+ +

Server will start sending the following notification messages:

-

+

+

"NOTIFY:BUFFER_FILL:<sampler-channel> <fill-data>"

-
- +

+ +

where <sampler-channel> will be replaced by the sampler channel the buffer fill state change occurred on and <fill-data> will be replaced by the - buffer fill data for this channel as described in Section 6.4.13Current fill state of disk stream buffers - as if the "GET CHANNEL BUFFER_FILL PERCENTAGE"Current fill state of disk stream buffers command was issued on this channel. + buffer fill data for this channel as described in Section 6.4.13 (Current fill state of disk stream buffers) + as if the "GET CHANNEL BUFFER_FILL PERCENTAGE" (Current fill state of disk stream buffers) command was issued on this channel.

-

8.5 Channel information changed

+

+
 TOC 
+

8.9.  +Channel information changed

Client may want to be notified when changes were made to sampler channels on the back-end by issuing the following command:

-

+

+

SUBSCRIBE CHANNEL_INFO

-
- +

+ +

Server will start sending the following notification messages:

-

+

+

"NOTIFY:CHANNEL_INFO:<sampler-channel>"

-
- +

+ +

where <sampler-channel> will be replaced by the sampler channel the channel info change occurred. The front-end will have to send the respective command to actually get the channel info. Because these messages @@ -4871,32 +11058,504 @@ time events happening on the server, it is believed that an empty notification message is sufficient here.

-

8.6 Miscellaneous and debugging events

+

+
 TOC 
+

8.10.  +Number of effect sends changed

+ +

Client may want to be notified when the number of effect sends on + a particular sampler channel is changed by issuing the following command: +

+

+

+
+

SUBSCRIBE FX_SEND_COUNT +

+

+ +

+

Server will start sending the following notification messages: +

+

+

+
+

"NOTIFY:FX_SEND_COUNT:<channel-id> <fx-sends>" +

+

+ +

+

where <channel-id> will be replaced by the numerical ID of the sampler + channel, on which the effect sends number is changed and <fx-sends> will + be replaced by the new number of effect sends on that channel. +

+

+
 TOC 
+

8.11.  +Effect send information changed

+ +

Client may want to be notified when changes were made to effect sends on a + a particular sampler channel by issuing the following command: +

+

+

+
+

SUBSCRIBE FX_SEND_INFO +

+

+ +

+

Server will start sending the following notification messages: +

+

+

+
+

"NOTIFY:FX_SEND_INFO:<channel-id> <fx-send-id>" +

+

+ +

+

where <channel-id> will be replaced by the numerical ID of the sampler + channel, on which an effect send entity is changed and <fx-send-id> will + be replaced by the numerical ID of the changed effect send. +

+

+
 TOC 
+

8.12.  +Total number of active voices changed

+ +

Client may want to be notified when the total number of voices on the + back-end changes by issuing the following command: +

+

+

+
+

SUBSCRIBE TOTAL_VOICE_COUNT +

+

+ +

+

Server will start sending the following notification messages: +

+

+

+
+

"NOTIFY:TOTAL_VOICE_COUNT:<voices>" +

+

+ +

+

where <voices> will be replaced by the new number of + all currently active voices. +

+

+
 TOC 
+

8.13.  +Total number of active disk streams changed

+ +

Client may want to be notified when the total number of disk streams on the + back-end changes by issuing the following command: +

+

+

+
+

SUBSCRIBE TOTAL_STREAM_COUNT +

+

+ +

+

Server will start sending the following notification messages: +

+

+

+
+

"NOTIFY:TOTAL_STREAM_COUNT:<streams>" +

+

+ +

+

where <streams> will be replaced by the new number of + all currently active disk streams. +

+

+
 TOC 
+

8.14.  +Number of MIDI instrument maps changed

+ +

Client may want to be notified when the number of MIDI instrument maps on the + back-end changes by issuing the following command: +

+

+

+
+

SUBSCRIBE MIDI_INSTRUMENT_MAP_COUNT +

+

+ +

+

Server will start sending the following notification messages: +

+

+

+
+

"NOTIFY:MIDI_INSTRUMENT_MAP_COUNT:<maps>" +

+

+ +

+

where <maps> will be replaced by the new number + of MIDI instrument maps. +

+

+
 TOC 
+

8.15.  +MIDI instrument map information changed

+ +

Client may want to be notified when changes were made to MIDI instrument maps on the + back-end by issuing the following command: +

+

+

+
+

SUBSCRIBE MIDI_INSTRUMENT_MAP_INFO +

+

+ +

+

Server will start sending the following notification messages: +

+

+

+
+

"NOTIFY:MIDI_INSTRUMENT_MAP_INFO:<map-id>" +

+

+ +

+

where <map-id> will be replaced by the numerical ID of the MIDI instrument map, + for which information changes occurred. The front-end will have to send + the respective command to actually get the MIDI instrument map info. Because these messages + will be triggered by LSCP commands issued by other clients rather than real + time events happening on the server, it is believed that an empty notification + message is sufficient here. +

+

+
 TOC 
+

8.16.  +Number of MIDI instruments changed

+ +

Client may want to be notified when the number of MIDI instrument maps on the + back-end changes by issuing the following command: +

+

+

+
+

SUBSCRIBE MIDI_INSTRUMENT_COUNT +

+

+ +

+

Server will start sending the following notification messages: +

+

+

+
+

"NOTIFY:MIDI_INSTRUMENT_COUNT:<map-id> <instruments>" +

+

+ +

+

where <map-id> is the numerical ID of the MIDI instrument map, in which + the nuber of instruments has changed and <instruments> will be replaced by + the new number of MIDI instruments in the specified map. +

+

+
 TOC 
+

8.17.  +MIDI instrument information changed

+ +

Client may want to be notified when changes were made to MIDI instruments on the + back-end by issuing the following command: +

+

+

+
+

SUBSCRIBE MIDI_INSTRUMENT_INFO +

+

+ +

+

Server will start sending the following notification messages: +

+

+

+
+

"NOTIFY:MIDI_INSTRUMENT_INFO:<map-id> <bank> <program>" +

+

+ +

+

where <map-id> will be replaced by the numerical ID of the MIDI instrument map, + in which a MIDI instrument is changed. <bank> and <program> specifies + the location of the changed MIDI instrument in the map. The front-end will have to send + the respective command to actually get the MIDI instrument info. Because these messages + will be triggered by LSCP commands issued by other clients rather than real + time events happening on the server, it is believed that an empty notification + message is sufficient here. +

+

+
 TOC 
+

8.18.  +Global settings changed

+ +

Client may want to be notified when changes to the global settings + of the sampler were made by issuing the following command: +

+

+

+
+

SUBSCRIBE GLOBAL_INFO +

+

+ +

+

Server will start sending the following types of notification messages: +

+

+

+
+

"NOTIFY:GLOBAL_INFO:VOLUME <volume>" - Notifies that the + golbal volume of the sampler is changed, where <volume> will be + replaced by the optional dotted floating point value, reflecting the + new global volume parameter. +

+

+ +

+

+
 TOC 
+

8.19.  +Number of database instrument directories changed

+ +

Client may want to be notified when the number of instrument + directories in a particular directory in the instruments database + is changed by issuing the following command: +

+

+

+
+

SUBSCRIBE DB_INSTRUMENT_DIRECTORY_COUNT +

+

+ +

+

Server will start sending the following notification messages: +

+

+

+
+

"NOTIFY:DB_INSTRUMENT_DIRECTORY_COUNT:<dir-path>" +

+

+ +

+

where <dir-path> will be replaced by the absolute path + name of the directory in the instruments database, + in which the number of directories is changed. +

+

Note that when a non-empty directory is removed, this event + is not sent for the subdirectories in that directory. +

+

+
 TOC 
+

8.20.  +Database instrument directory information changed

+ +

Client may want to be notified when changes were made to directories + in the instruments database by issuing the following command: +

+

+

+
+

SUBSCRIBE DB_INSTRUMENT_DIRECTORY_INFO +

+

+ +

+

Server will start sending the following notification messages: +

+

+

+
+

"NOTIFY:DB_INSTRUMENT_DIRECTORY_INFO:<dir-path>" +

+

+ +

+

where <dir-path> will be replaced by the absolute path name + of the directory, for which information changes occurred. The front-end will have to send + the respective command to actually get the updated directory info. Because these messages + will be triggered by LSCP commands issued by other clients rather than real + time events happening on the server, it is believed that an empty notification + message is sufficient here. +

+

+

+
+

"NOTIFY:DB_INSTRUMENT_DIRECTORY_INFO:NAME <old-dir-path> <new-name>" +

+

+ +

+

where <old-dir-path> is the old absolute path name of the directory + (encapsulated into apostrophes), which name is changes and <new-name> is + the new name of the directory, encapsulated into apostrophes. +

+

+
 TOC 
+

8.21.  +Number of database instruments changed

+ +

Client may want to be notified when the number of instruments + in a particular directory in the instruments database + is changed by issuing the following command: +

+

+

+
+

SUBSCRIBE DB_INSTRUMENT_COUNT +

+

+ +

+

Server will start sending the following notification messages: +

+

+

+
+

"NOTIFY:DB_INSTRUMENT_COUNT:<dir-path>" +

+

+ +

+

where <dir-path> will be replaced by the absolute path + name of the directory in the instruments database, + in which the number of instruments is changed. +

+

Note that when a non-empty directory is removed, this event + is not sent for the instruments in that directory. +

+

+
 TOC 
+

8.22.  +Database instrument information changed

+ +

Client may want to be notified when changes were made to instruments + in the instruments database by issuing the following command: +

+

+

+
+

SUBSCRIBE DB_INSTRUMENT_INFO +

+

+ +

+

Server will start sending the following notification messages: +

+

+

+
+

"NOTIFY:DB_INSTRUMENT_INFO:<instr-path>" +

+

+ +

+

where <instr-path> will be replaced by the absolute path name + of the instrument, which settings are changed. The front-end will have to send + the respective command to actually get the updated directory info. Because these messages + will be triggered by LSCP commands issued by other clients rather than real + time events happening on the server, it is believed that an empty notification + message is sufficient here. +

+

+

+
+

"NOTIFY:DB_INSTRUMENT_INFO:NAME <old-instr-path> <new-name>" +

+

+ +

+

where <old-instr-path> is the old absolute path name of the instrument + (encapsulated into apostrophes), which name is changes and <new-name> is + the new name of the instrument, encapsulated into apostrophes. +

+

+
 TOC 
+

8.23.  +Database job status information changed

+ +

Client may want to be notified when the status of particular database + instruments job is changed by issuing the following command: +

+

+

+
+

SUBSCRIBE DB_INSTRUMENTS_JOB_INFO +

+

+ +

+

Server will start sending the following notification messages: +

+

+

+
+

"NOTIFY:DB_INSTRUMENTS_JOB_INFO:<job-id>" +

+

+ +

+

where <job-id> will be replaced by the numerical ID of the job, + which status is changed. The front-end will have to send the respective + command to actually get the status info. Because these messages + will be triggered by LSCP commands issued by other clients rather than real + time events happening on the server, it is believed that an empty notification + message is sufficient here. +

+

+
 TOC 
+

8.24.  +Miscellaneous and debugging events

Client may want to be notified of miscellaneous and debugging events occurring at the server by issuing the following command:

-

+

+

SUBSCRIBE MISCELLANEOUS

-
- +

+ +

Server will start sending the following notification messages:

-

+

+

"NOTIFY:MISCELLANEOUS:<string>"

-
- +

+ +

where <string> will be replaced by whatever data server wants to send to the client. Client MAY display this data to the user AS IS to facilitate debugging.



-
 TOC 
-

9. Security Considerations

+
 TOC 
+

9.  +Security Considerations

As there is so far no method of authentication and authorization defined and so not required for a client applications to succeed to @@ -4904,14 +11563,16 @@ system the LinuxSampler instance is running on.



-
 TOC 
-

10. Acknowledgments

+
 TOC 
+

10.  +Acknowledgments

This document has benefited greatly from the comments of the following people, discussed on the LinuxSampler developer's mailing list:

-

+

+

Rui Nuno Capela

@@ -4921,22 +11582,25 @@

Grigor Iliev

-
- +

+ +



-
 TOC 
-

11 References

+
 TOC 
+

11. References

+ + - + - + - +
[RFC20]UCLA, “ASCII format for Network Interchange,” RFC 20, 1969.
[RFC2119]Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", RFC 2119, 1997.
Bradner, S., “Key words for use in RFCs to Indicate Requirement Levels,” RFC 2119, 1997.
[RFC2234]Crocker, D. and P. Overell, "Augmented BNF for Syntax Specifications", RFC 2234, 1997.
Crocker, D. and P. Overell, “Augmented BNF for Syntax Specifications,” RFC 2234, 1997.
[RFC793]Defense Advanced Research Projects Agency, "TRANSMISSION CONTROL PROTOCOL", RFC 793, 1981.
Defense Advanced Research Projects Agency, “TRANSMISSION CONTROL PROTOCOL,” RFC 793, 1981.


-
 TOC 
+
 TOC 

Author's Address

@@ -4950,62 +11614,58 @@ - +
 74081 Heilbronn
  Germany
EMail: 
Email:  schoenebeck at software minus engineering dot org


-
 TOC 
-

Intellectual Property Statement

+
 TOC 
+

Full Copyright Statement

+Copyright © The IETF Trust (2007).

-

Full Copyright Statement

+This document is subject to the rights, +licenses and restrictions contained in BCP 78, +and except as set forth therein, +the authors retain all their rights.

+This document and the information contained herein are provided +on an “AS IS” basis and THE CONTRIBUTOR, +THE ORGANIZATION HE/SHE REPRESENTS +OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST +AND THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT +THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY +IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR +PURPOSE.

+

Intellectual Property

+The IETF takes no position regarding the validity or scope of any +Intellectual Property Rights or other rights that might be claimed +to pertain to the implementation or use of the technology +described in this document or the extent to which any license +under such rights might or might not be available; nor does it +represent that it has made any independent effort to identify any +such rights. +Information on the procedures with respect to +rights in RFC documents can be found in BCP 78 and BCP 79.

+Copies of IPR disclosures made to the IETF Secretariat and any +assurances of licenses to be made available, +or the result of an attempt made to obtain a general license or +permission for the use of such proprietary rights by implementers or +users of this specification can be obtained from the IETF on-line IPR +repository at http://www.ietf.org/ipr.

+The IETF invites any interested party to bring to its attention +any copyrights, +patents or patent applications, +or other +proprietary rights that may cover technology that may be required +to implement this standard. +Please address the information to the IETF at ietf-ipr@ietf.org.

Acknowledgment

+Funding for the RFC Editor function is provided by +the IETF Administrative Support Activity (IASA).

+