Control Surface API  1.1.11
Host Interface Reference

Public Member Functions

void defineController (String vendor, String name, String version, String uuid, String author) throws ControlSurfaceException
void defineMidiPorts (int numInports, int numOutports)
MidiIn getMidiInPort (int index) throws ControlSurfaceException
MidiOut getMidiOutPort (int index) throws ControlSurfaceException
void addDeviceNameBasedDiscoveryPair (String[] inputs, String[] outputs)
void defineSysexIdentityReply (String reply)
Preferences getPreferences () throws ControlSurfaceException
DocumentState getDocumentState () throws ControlSurfaceException
NotificationSettings getNotificationSettings () throws ControlSurfaceException
Project getProject () throws ControlSurfaceException
Transport createTransport () throws ControlSurfaceException
Groove createGroove () throws ControlSurfaceException
Application createApplication () throws ControlSurfaceException
Arranger createArranger () throws ControlSurfaceException
Arranger createArranger (final int window) throws ControlSurfaceException
Mixer createMixer () throws ControlSurfaceException
Mixer createMixer (final String panelLayout) throws ControlSurfaceException
Mixer createMixer (final int window) throws ControlSurfaceException
Mixer createMixer (final String panelLayout, final int window) throws ControlSurfaceException
TrackBank createTrackBank (final int numTracks, final int numSends, final int numScenes) throws ControlSurfaceException
TrackBank createMainTrackBank (final int numTracks, final int numSends, final int numScenes) throws ControlSurfaceException
TrackBank createEffectTrackBank (final int numTracks, final int numScenes) throws ControlSurfaceException
Track createMasterTrack (final int numScenes) throws ControlSurfaceException
CursorTrack createArrangerCursorTrack (final int numSends, final int numScenes) throws ControlSurfaceException
CursorTrack createCursorTrack (final String name, final int numSends, final int numScenes) throws ControlSurfaceException
SceneBank createSceneBank (final int numScenes) throws ControlSurfaceException
CursorDevice createEditorCursorDevice () throws ControlSurfaceException
CursorDevice createEditorCursorDevice (int numSends) throws ControlSurfaceException
Clip createCursorClip (final int gridWidth, final int gridHeight) throws ControlSurfaceException
UserControlBank createUserControls (final int numControllers) throws ControlSurfaceException
void scheduleTask (Callable callback, Object[] args, long delay) throws ControlSurfaceException
int getHostApiVersion ()
String getHostVendor ()
String getHostProduct ()
String getHostVersion ()
boolean platformIsWindows ()
boolean platformIsMac ()
boolean platformIsLinux ()
void println (String s)
void errorln (String s)
void showPopupNotification (String text)
RemoteSocket createRemoteConnection (String name, int defaultPort) throws ControlSurfaceException
void connectToRemoteHost (String host, int port, Callable callback) throws ControlSurfaceException
void sendDatagramPacket (String host, int port, byte[] data) throws ControlSurfaceException
boolean addDatagramPacketObserver (String name, int port, Callable callback) throws ControlSurfaceException
void defineController (String vendor, String name, String version, String uuid) throws ControlSurfaceException
Transport createTransportSection () throws ControlSurfaceException
CursorTrack createCursorTrack (final int numSends, final int numScenes) throws ControlSurfaceException
Groove createGrooveSection () throws ControlSurfaceException
Application createApplicationSection () throws ControlSurfaceException
Arranger createArrangerSection (final int screenIndex) throws ControlSurfaceException
Mixer createMixerSection (final String perspective, final int screenIndex) throws ControlSurfaceException
TrackBank createTrackBankSection (final int numTracks, final int numSends, final int numScenes) throws ControlSurfaceException
TrackBank createMainTrackBankSection (final int numTracks, final int numSends, final int numScenes) throws ControlSurfaceException
TrackBank createEffectTrackBankSection (final int numTracks, final int numScenes) throws ControlSurfaceException
CursorTrack createCursorTrackSection (final int numSends, final int numScenes) throws ControlSurfaceException
Track createMasterTrackSection (final int numScenes) throws ControlSurfaceException
Clip createCursorClipSection (final int gridWidth, final int gridHeight) throws ControlSurfaceException
CursorDevice createCursorDeviceSection (final int numControllers) throws ControlSurfaceException
CursorDevice createCursorDevice () throws ControlSurfaceException
UserControlBank createUserControlsSection (final int numControllers) throws ControlSurfaceException
void defineSysexDiscovery (String request, String reply)

Detailed Description

An interface representing the host application to the script. A singleton instance of this interface is available in the global scope of each script. The methods provided by this interface can be divided in different categories:

1. functions for registering the script in Bitwig Studio, so that it can be listed, detected and configured in the controller preferences. The methods that belong to this group are defineController, defineMidiPorts, defineSysexIdentityReply and addDeviceNameBasedDiscoveryPair. 2. functions for creating objects that provide access to the various areas of Bitwig Studio to the script. The name of those methods typically start with `create...` 3. functions for printing to the Control Surface Console, which can be opened from the `View` menu of Bitwig Studio. 4. functions for determining the name of the host application, API version, the host operating system and such.

The first group of methods should be called on the global scope of the script. The function in the second and third group are typically called from the init method of the script or other handler functions. The last group is probably only required in rare cases and can be called any time.

Since:
Bitwig Studio 1.0

Definition at line 43 of file Host.java.


Member Function Documentation

boolean addDatagramPacketObserver ( String  name,
int  port,
Callable  callback 
) throws ControlSurfaceException

Adds an observer for incoming UDP (User Datagram Protocol) packets on the selected port.

Parameters:
namea meaningful name that describes the purpose of this observer.
portthe port that should be used
callbackthe callback function that gets called when data arrives. The function receives a single parameter that contains the data byte array.
Returns:
{} if was possible to bind the port, false otherwise
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.0.11
void addDeviceNameBasedDiscoveryPair ( String[]  inputs,
String[]  outputs 
)

Registers patterns which are used to automatically detect hardware devices that can be used with the script.

When the user clicks on the `detect` button in the Bitwig Studio controller preferences dialog, Bitwig Studio searches for connected controller hardware by comparing the parameters passed into this function are compared with the port names of the available MIDI drivers. Found controller scripts are automatically added with their input/output ports configured.

Calling this function is optional, but can also be called multiple times in the global script scope in order to support alternative driver names.

Parameters:
inputsthe array of strings used to detect MIDI input ports, must not be `null`.
outputsthe array of strings used to detect MIDI output ports, must not be `null`.
Since:
Bitwig Studio 1.0
void connectToRemoteHost ( String  host,
int  port,
Callable  callback 
) throws ControlSurfaceException

Connects to a remote TCP (Transmission Control Protocol) socket.

Parameters:
hostthe host name or IP address to connect to.
portthe port to connect to
callbackthe callback function that gets called when the connection gets established. A single RemoteConnection parameter is passed into the callback function.
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.0
Application createApplication ( ) throws ControlSurfaceException

Returns an object that provides access to general application functionality, including global view settings, the list of open projects, and other global settings that are not related to a certain document.

Returns:
an application object.
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.0
Application createApplicationSection ( ) throws ControlSurfaceException
Deprecated:
Use createApplication() instead.
Since:
Bitwig Studio 1.0
Arranger createArranger ( ) throws ControlSurfaceException

Returns an object which provides access to the `Arranger` panel of Bitwig Studio. Calling this function is equal to `createArranger(-1)`.

Returns:
an arranger object
Exceptions:
ControlSurfaceException
See also:
#createArranger(int)
Since:
Bitwig Studio 1.1
Arranger createArranger ( final int  window) throws ControlSurfaceException

Returns an object which provides access to the `Arranger` panel inside the specified window.

Parameters:
windowthe index of the window where the arranger panel is shown, or -1 in case the first arranger panel found on any window should be taken
Returns:
an arranger object
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.0
CursorTrack createArrangerCursorTrack ( final int  numSends,
final int  numScenes 
) throws ControlSurfaceException

Returns an object that represents the cursor item of the arranger track selection.

Parameters:
numSendsthe number of sends for bank-wise navigation of the sends that are associated with the track selection
numScenesthe number of scenes for bank-wise navigation of the clip launcher slots that are associated with the track selection
Returns:
an object representing the currently selected arranger track (in the future also multiple tracks)
Since:
Bitwig Studio 1.1
Arranger createArrangerSection ( final int  screenIndex) throws ControlSurfaceException
Deprecated:
Use createArranger(int) instead.
Since:
Bitwig Studio 1.0
Clip createCursorClip ( final int  gridWidth,
final int  gridHeight 
) throws ControlSurfaceException

Returns a clip object that represents the cursor of the launcher clip selection. The gridWidth and gridHeight parameters specify the grid dimensions used to access the note content of the clip.

Parameters:
gridWidththe number of steps spanned by one page of the note content grid.
gridHeightthe number of keys spanned by one page of the note content grid.
Returns:
an object representing the currently selected cursor clip
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.0
Clip createCursorClipSection ( final int  gridWidth,
final int  gridHeight 
) throws ControlSurfaceException
Deprecated:
Use createCursorClip(int, int) instead.
Since:
Bitwig Studio 1.0
CursorDevice createCursorDevice ( ) throws ControlSurfaceException
Deprecated:
Use createEditorCursorDevice() instead.
Since:
Bitwig Studio 1.0
CursorDevice createCursorDeviceSection ( final int  numControllers) throws ControlSurfaceException
Deprecated:
Use createEditorCursorDevice() instead.
Since:
Bitwig Studio 1.0
CursorTrack createCursorTrack ( final String  name,
final int  numSends,
final int  numScenes 
) throws ControlSurfaceException

Returns an object that represents a named cursor track, that is independent from the arranger or mixer track selection in the user interface of Bitwig Studio.

Parameters:
namethe name of the track cursor
numSendsthe number of sends for bank-wise navigation of the sends that are associated with the track selection
numScenesthe number of scenes for bank-wise navigation of the clip launcher slots that are associated with the track selection
Returns:
an object representing the currently selected arranger track (in the future also multiple tracks).
Since:
Bitwig Studio 1.1
CursorTrack createCursorTrack ( final int  numSends,
final int  numScenes 
) throws ControlSurfaceException
Deprecated:
Use createArrangerCursorTrack instead.
Since:
Bitwig Studio 1.0
CursorTrack createCursorTrackSection ( final int  numSends,
final int  numScenes 
) throws ControlSurfaceException
Deprecated:
Use createArrangerCursorTrack instead.
Since:
Bitwig Studio 1.0
CursorDevice createEditorCursorDevice ( ) throws ControlSurfaceException

Returns an object that represents the cursor device in devices selections made by the user in Bitwig Studio. Calling this method is equal to the following code:

 var cursorTrack = createArrangerCursorTrack(numSends, numScenes);
 var cursorDevice = cursorTrack.createCursorDevice();

To create a custom device selection that is not connected to the main device selection in the user interface, call cursorTrack.createCursorDevice(String name).

Returns:
an object representing the currently selected device.
See also:
Track::createCursorDevice()
Track::createCursorDevice(String)
createEditorCursorDevice(int numSends)
Since:
Bitwig Studio 1.1
CursorDevice createEditorCursorDevice ( int  numSends) throws ControlSurfaceException

Returns an object that represents the cursor device in devices selections made by the user in Bitwig Studio. Calling this method is equal to the following code:

 var cursorTrack = createArrangerCursorTrack(numSends, numScenes);
 var cursorDevice = cursorTrack.createCursorDevice();

To create a custom device selection that is not connected to the main device selection in the user interface, call cursorTrack.createCursorDevice(String name).

Parameters:
numSendsthe number of sends that are simultaneously accessible in nested channels.
Returns:
an object representing the currently selected device.
See also:
Track::createCursorDevice()
Track::createCursorDevice(String)
Since:
Bitwig Studio 1.1.6
TrackBank createEffectTrackBank ( final int  numTracks,
final int  numScenes 
) throws ControlSurfaceException

Returns a track bank with the given number of effect tracks and scenes. Only effect tracks are considered. For more information about track banks and the `bank pattern` in general, see the documentation for createTrackBank.

Parameters:
numTracksthe number of tracks spanned by the track bank
numScenesthe number of scenes spanned by the track bank
Returns:
an object for bank-wise navigation of tracks, sends and scenes
See also:
createTrackBank
createMainTrackBank
Since:
Bitwig Studio 1.0
TrackBank createEffectTrackBankSection ( final int  numTracks,
final int  numScenes 
) throws ControlSurfaceException
Deprecated:
Use createEffectTrackBank(int, int) instead.
Since:
Bitwig Studio 1.0
Groove createGroove ( ) throws ControlSurfaceException

Returns an object for controlling and monitoring the `Groove` section in Bitwig Studio. This function should be called once during initialization of the script if groove control is desired.

Returns:
an object that represents the `Groove` section in Bitwig Studio.
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.0
Groove createGrooveSection ( ) throws ControlSurfaceException
Deprecated:
Use createGroove() instead.
Since:
Bitwig Studio 1.0
TrackBank createMainTrackBank ( final int  numTracks,
final int  numSends,
final int  numScenes 
) throws ControlSurfaceException

Returns a track bank with the given number of tracks, sends and scenes. Only audio tracks, instrument tracks and hybrid tracks are considered. For more information about track banks and the `bank pattern` in general, see the documentation for createTrackBank.

Parameters:
numTracksthe number of tracks spanned by the track bank
numSendsthe number of sends spanned by the track bank
numScenesthe number of scenes spanned by the track bank
Returns:
an object for bank-wise navigation of tracks, sends and scenes
See also:
createTrackBank
createEffectTrackBank
Since:
Bitwig Studio 1.0
TrackBank createMainTrackBankSection ( final int  numTracks,
final int  numSends,
final int  numScenes 
) throws ControlSurfaceException
Deprecated:
Use createMainTrackBank(int, int, int) instead.
Since:
Bitwig Studio 1.0
Track createMasterTrack ( final int  numScenes) throws ControlSurfaceException

Returns an object that represents the master track of the document.

Parameters:
numScenesthe number of scenes for bank-wise navigation of the master tracks clip launcher slots.
Returns:
an object representing the master track.
Since:
Bitwig Studio 1.0
Track createMasterTrackSection ( final int  numScenes) throws ControlSurfaceException
Deprecated:
Use createMasterTrack(int) instead.
Since:
Bitwig Studio 1.0
Mixer createMixer ( ) throws ControlSurfaceException

Returns an object which provides access to the `Mixer` panel of Bitwig Studio. Calling this function is equal to `createMixer(-1, null)`.

Returns:
a `Mixer` object
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.0
Mixer createMixer ( final String  panelLayout) throws ControlSurfaceException

Returns an object which provides access to the `Mixer` panel that belongs to the specified panel layout. Calling this function is equal to `createMixer(-1, panelLayout)`.

Parameters:
panelLayoutthe name of the panel layout that contains the mixer panel, or `null` in case the selected panel layout in Bitwig Studio should be followed. Empty strings or invalid names are treated the same way as `null`. To receive the list of available panel layouts see Application#addPanelLayoutObserver.
Returns:
a `Mixer` object
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.0
Mixer createMixer ( final int  window) throws ControlSurfaceException

Returns an object which provides access to the `Mixer` panel inside the specified window. Calling this function is equal to `createMixer(window, null)`.

Parameters:
windowthe index of the window where the mixer panel is shown, or -1 in case the first mixer panel found on any window should be taken
Returns:
a `Mixer` object
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.0
Mixer createMixer ( final String  panelLayout,
final int  window 
) throws ControlSurfaceException

Returns an object which provides access to the `Mixer` panel that matches the specified parameters.

Parameters:
panelLayoutthe name of the panel layout that contains the mixer panel, or `null` in case the selected panel layout in Bitwig Studio should be followed. Empty strings or invalid names are treated the same way as `null`. To receive the list of available panel layouts see Application#addPanelLayoutObserver.
windowthe index of the window where the mixer panel is shown, or -1 in case the first mixer panel found on any window should be taken
Returns:
a `Mixer` object
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.0
Mixer createMixerSection ( final String  perspective,
final int  screenIndex 
) throws ControlSurfaceException
Deprecated:
Use createMixer(String, int) instead.
Since:
Bitwig Studio 1.0
RemoteSocket createRemoteConnection ( String  name,
int  defaultPort 
) throws ControlSurfaceException

Opens a TCP (Transmission Control Protocol) host socket for allowing network connections from other hardware and software.

Parameters:
namea meaningful name that describes the purpose of this connection.
defaultPortthe port that should be used for the connection. If the port is already in use, then another port will be used. Check RemoteSocket#getPort() on the returned object to be sure.
Returns:
the object that represents the socket
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.0
SceneBank createSceneBank ( final int  numScenes) throws ControlSurfaceException

Returns a scene bank with the given number of scenes.

A scene bank can be seen as a fixed-size window onto the list of scenes in the current document, that can be scrolled in order to access different parts of the scene list. For example a scene bank configured for 8 scenes can show scene 1-8, 2-9, 3-10 and so on.

The idea behind the `bank pattern` is that hardware typically is equipped with a fixed amount of channel strips or controls, for example consider a mixing console with 8 channels, but Bitwig Studio documents contain a dynamic list of scenes, most likely more scenes than the hardware can control simultaneously. The scene bank returned by this function provides a convenient interface for controlling which scenes are currently shown on the hardware.

Parameters:
numScenesthe number of scenes spanned by the track bank
Returns:
an object for bank-wise navigation of scenes
Since:
Bitwig Studio 1.1
TrackBank createTrackBank ( final int  numTracks,
final int  numSends,
final int  numScenes 
) throws ControlSurfaceException

Returns a track bank with the given number of tracks, sends and scenes.

A track bank can be seen as a fixed-size window onto the list of tracks in the current document including their sends and scenes, that can be scrolled in order to access different parts of the track list. For example a track bank configured for 8 tracks can show track 1-8, 2-9, 3-10 and so on.

The idea behind the `bank pattern` is that hardware typically is equipped with a fixed amount of channel strips or controls, for example consider a mixing console with 8 channels, but Bitwig Studio documents contain a dynamic list of tracks, most likely more tracks than the hardware can control simultaneously. The track bank returned by this function provides a convenient interface for controlling which tracks are currently shown on the hardware.

Creating a track bank using this method will consider all tracks in the document, including effect tracks and the master track. Use createMainTrackBank or createEffectTrackBank in case you are only interested in tracks of a certain kind.

Parameters:
numTracksthe number of tracks spanned by the track bank
numSendsthe number of sends spanned by the track bank
numScenesthe number of scenes spanned by the track bank
Returns:
an object for bank-wise navigation of tracks, sends and scenes
See also:
createMainTrackBank
createEffectTrackBank
Since:
Bitwig Studio 1.0
TrackBank createTrackBankSection ( final int  numTracks,
final int  numSends,
final int  numScenes 
) throws ControlSurfaceException
Deprecated:
Use createTrackBank(int, int, int) instead.
Since:
Bitwig Studio 1.0
Transport createTransport ( ) throws ControlSurfaceException

Returns an object for controlling and monitoring the elements of the `Transport` section in Bitwig Studio. This function should be called once during initialization of the script if transport access is desired.

Returns:
an object that represents the `Transport` section in Bitwig Studio.
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.0
Transport createTransportSection ( ) throws ControlSurfaceException
Deprecated:
Use createTransport instead.
Since:
Bitwig Studio 1.0
UserControlBank createUserControls ( final int  numControllers) throws ControlSurfaceException

Returns an object that is used to define a bank of custom user controls. These controls are available to the user for free controller assignments and are typically used when bank-wise navigation is inconvenient.

Parameters:
numControllersthe number of controls that are available for free assignments
Returns:
An object that represents a set of custom user controls.
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.0
UserControlBank createUserControlsSection ( final int  numControllers) throws ControlSurfaceException
Deprecated:
Use createUserControls(int) instead.
Since:
Bitwig Studio 1.0
void defineController ( String  vendor,
String  name,
String  version,
String  uuid,
String  author 
) throws ControlSurfaceException

Registers a controller script with the given parameters. This function must be called once at the global scope of the script.

Parameters:
vendorthe name of the hardware vendor. Must not be null.
namethe name of the controller script as listed in the user interface of Bitwig Studio. Must not be null.
versionthe version of the controller script. Must not be null.
uuida universal unique identifier (UUID) string that is used to distinguish one script from another, for example `550e8400-e29b-11d4-a716-446655440000`. Must not be null. For generating random UUID strings several free web tools are available.
authorthe name of the script author
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.1
void defineController ( String  vendor,
String  name,
String  version,
String  uuid 
) throws ControlSurfaceException
void defineMidiPorts ( int  numInports,
int  numOutports 
)

Defines the number of MIDI ports for input and output that the device uses. This method should be called once in the global scope if the script is supposed to exchange MIDI messages with the device, or if the script adds entries to the MIDI input/output choosers in Bitwig Studio. After calling this method the individual port objects can be accessed using getMidiInPort(int index) and getMidiInPort(int index).

Parameters:
numInportsthe number of input ports
numOutportsthe number of output ports
Since:
Bitwig Studio 1.0
void defineSysexDiscovery ( String  request,
String  reply 
)
Deprecated:
Use defineSysexIdentityReply(String) instead.
Since:
Bitwig Studio 1.0
void defineSysexIdentityReply ( String  reply)

Registers the `Identity Reply Universal SysEx` message (if any) that the MIDI device sends after receiving the `Identity Request Universal SysEx` message (`F0 7E 7F 06 01 F7`), as defined in the MIDI standard.

This function may be called at the global scope of the script, but is optional. Please note that this function is only applicable to scripts with one MIDI input and one MIDI output. Also note that not all MIDI hardware supports SysEx identity messages.

Parameters:
replythe `Identity Reply Universal SysEx` message. Must not be null
Since:
Bitwig Studio 1.0
void errorln ( String  s)

Prints the given string in the control surface console window using a text style that highlights the string as error. The console window can be opened in the view menu of Bitwig Studio.

Parameters:
sthe error string to be printed
Since:
Bitwig Studio 1.0
DocumentState getDocumentState ( ) throws ControlSurfaceException

Creates a document state object that can be used to insert settings into the Studio I/O Panel in Bitwig Studio.

Returns:
an object that provides access to custom document settings
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.1

Returns the latest supported API version of the host application.

Returns:
the latest supported API version of the host application
Since:
Bitwig Studio 1.0
String getHostProduct ( )

Returns the product name of the host application.

Returns:
the product name of the host application
Since:
Bitwig Studio 1.0
String getHostVendor ( )

Returns the vendor of the host application.

Returns:
the vendor of the host application
Since:
Bitwig Studio 1.0
String getHostVersion ( )

Returns the version number of the host application.

Returns:
the version number of the host application
Since:
Bitwig Studio 1.0
MidiIn getMidiInPort ( int  index) throws ControlSurfaceException

Returns the MIDI input port with the given index.

Parameters:
indexthe index of the MIDI input port, must be valid.
Returns:
the requested MIDI input port
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.0
MidiOut getMidiOutPort ( int  index) throws ControlSurfaceException

Returns the MIDI output port with the given index.

Parameters:
indexthe index of the MIDI output port, must be valid.
Returns:
the requested MIDI output port
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.0
NotificationSettings getNotificationSettings ( ) throws ControlSurfaceException

Returns an object that is used to configure automatic notifications. Bitwig Studio supports automatic visual feedback from controllers that shows up as popup notifications. For example when the selected track or the current device preset was changed on the controller these notifications are shown, depending on your configuration.

Returns:
a configuration object used to enable/disable the various automatic notifications supported by Bitwig Studio
Since:
Bitwig Studio 1.1
Preferences getPreferences ( ) throws ControlSurfaceException

Creates a preferences object that can be used to insert settings into the Controller Preferences panel in Bitwig Studio.

Returns:
an object that provides access to custom controller preferences
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.1
Project getProject ( ) throws ControlSurfaceException

Returns an object for controlling various aspects of the currently selected project.

Since:
Bitwig Studio 1.1.5
boolean platformIsLinux ( )

Indicates if the host platform is Linux.

Returns:
`true` if the host platform is Linux, `false` otherwise.
Since:
Bitwig Studio 1.0
boolean platformIsMac ( )

Indicates if the host platform is Apple Mac OS X.

Returns:
`true` if the host platform is Mac, `false` otherwise.
Since:
Bitwig Studio 1.0
boolean platformIsWindows ( )

Indicates if the host platform is Windows.

Returns:
`true` if the host platform is Windows, `false` otherwise.
Since:
Bitwig Studio 1.0
void println ( String  s)

Prints the given string in the control surface console window. The console window can be opened in the view menu of Bitwig Studio.

Parameters:
sthe string to be printed
Since:
Bitwig Studio 1.0
void scheduleTask ( Callable  callback,
Object[]  args,
long  delay 
) throws ControlSurfaceException

Schedules the given callback function for execution after the given delay. For timer applications call this method once initially and then from within the callback function.

Parameters:
callbackthe callback function that will be called
argsthat array of arguments that gets passed into the callback function, may be `null`
delaythe duration after which the callback function will be called in milliseconds
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.0
void sendDatagramPacket ( String  host,
int  port,
byte[]  data 
) throws ControlSurfaceException

Sends a UDP (User Datagram Protocol) packet with the given data to the specified host.

Parameters:
hostthe destination host name or IP address
portthe destination port
datathe data to be send. When creating a numeric byte array in JavaScript, the byte values must be signed (in the range -128..127).
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.0.11
void showPopupNotification ( String  text)

Shows a temporary text overlay on top of the application GUI, that will fade-out after a short interval. If the overlay is already shown, it will get updated with the given text.

Parameters:
textthe text to be shown
Since:
Bitwig Studio 1.0

List of all members.


The documentation for this interface was generated from the following file:
 All Classes Functions Variables