Control Surface API  1.1.11
Application Interface Reference

Public Member Functions

void createAudioTrack (int position)
void createInstrumentTrack (int position)
void createEffectTrack (int position)
Action[] getActions () throws ControlSurfaceException
Action getAction (String id) throws ControlSurfaceException
ActionCategory[] getActionCategories () throws ControlSurfaceException
ActionCategory getActionCategory (String id) throws ControlSurfaceException
void activateEngine ()
void deactivateEngine ()
void addHasActiveEngineObserver (Callable callable)
void addProjectNameObserver (Callable callback, int maxChars)
void nextProject ()
void previousProject ()
void undo ()
void redo ()
void setPanelLayout (String panelLayout)
void nextPanelLayout ()
void previousPanelLayout ()
void addPanelLayoutObserver (Callable callable, int maxChars)
void addDisplayProfileObserver (Callable callable, int maxChars)
void toggleInspector ()
void toggleDevices ()
void toggleMixer ()
void toggleNoteEditor ()
void toggleAutomationEditor ()
void toggleBrowserVisibility ()
void arrowKeyLeft ()
void arrowKeyRight ()
void arrowKeyUp ()
void arrowKeyDown ()
void enter ()
void escape ()
void selectAll ()
void selectNone ()
void cut ()
void copy ()
void paste ()
void duplicate ()
void remove ()
void rename ()
void zoomIn ()
void zoomOut ()
void zoomToSelection ()
void zoomToFit ()
void focusPanelToLeft ()
void focusPanelToRight ()
void focusPanelAbove ()
void focusPanelBelow ()
void toggleFullScreen ()
void setPerspective (String perspective)
void nextPerspective ()
void previousPerspective ()
void addSelectedModeObserver (Callable callable, int maxChars, String fallbackText)

Static Public Attributes

static String PANEL_LAYOUT_ARRANGE = "ARRANGE"
static String PANEL_LAYOUT_MIX = "MIX"
static String PANEL_LAYOUT_EDIT = "EDIT"

Detailed Description

An interface that provides methods for accessing the most common global application commands.

In addition, functions are provided for accessing any application action in a generic and categorized way, pretty much as displayed in the Bitwig Studio commander dialog (see getActions(), getAction(String), getActionCategories()), getActionCategory(String)).

To receive an instance of the application interface call Host#createApplication().

Since:
Bitwig Studio 1.0

Definition at line 17 of file Application.java.


Member Function Documentation

void activateEngine ( )

Activates the audio engine in Bitwig Studio.

Since:
Bitwig Studio 1.0
void addDisplayProfileObserver ( Callable  callable,
int  maxChars 
)

Registers an observer that reports the name of the active display profile.

Parameters:
callablea callback function object that accepts a single string parameter
maxCharsthe maximum length of the display profile name
Since:
Bitwig Studio 1.1
void addHasActiveEngineObserver ( Callable  callable)

Registers an observer that gets called when the audio engine becomes active or inactive.

Parameters:
callablea callback function that accepts a single boolean parameter. The callback parameter indicates whether the audio engine became active (true) or inactive (false).
Since:
Bitwig Studio 1.0
void addPanelLayoutObserver ( Callable  callable,
int  maxChars 
)

Registers an observer that reports the name of the active panel layout.

Parameters:
callablea callback function object that accepts a single string parameter
maxCharsthe maximum length of the panel layout name
Since:
Bitwig Studio 1.1
void addProjectNameObserver ( Callable  callback,
int  maxChars 
)

Registers an observer that reports the name of the current project.

Parameters:
callbacka callback function that accepts a single string parameter.
maxCharsthe maximum length of the reported name. Longer names will get truncated.
Since:
Bitwig Studio 1.1
void addSelectedModeObserver ( Callable  callable,
int  maxChars,
String  fallbackText 
)
void arrowKeyDown ( )

Equivalent to an Arrow-Down key stroke on the computer keyboard. The concrete functionality depends on the current keyboard focus in Bitwig Studio.

Since:
Bitwig Studio 1.0
void arrowKeyLeft ( )

Equivalent to an Arrow-Left key stroke on the computer keyboard. The concrete functionality depends on the current keyboard focus in Bitwig Studio.

Since:
Bitwig Studio 1.0
void arrowKeyRight ( )

Equivalent to an Arrow-Right key stroke on the computer keyboard. The concrete functionality depends on the current keyboard focus in Bitwig Studio.

Since:
Bitwig Studio 1.0
void arrowKeyUp ( )

Equivalent to an Arrow-Up key stroke on the computer keyboard. The concrete functionality depends on the current keyboard focus in Bitwig Studio.

Since:
Bitwig Studio 1.0
void copy ( )

Copies the selected items in Bitwig Studio to the clipboard if applicable.

Since:
Bitwig Studio 1.0
void createAudioTrack ( int  position)

Creates a new audio track at the given position.

Parameters:
positionthe index within the list of main tracks where the new track should be inserted, or `-1` in case the track should be inserted at the end of the list. Values outside the valid range will get pinned to the valid range, so the actual position might be different from the provided parameter value.
Since:
Bitwig Studio 1.1
void createEffectTrack ( int  position)

Creates a new effect track at the given position.

Parameters:
positionthe index within the list of effect tracks where the new track should be inserted, or `-1` in case the track should be inserted at the end of the list. Values outside the valid range will get pinned to the valid range, so the actual position might be different from the provided parameter value.
Since:
Bitwig Studio 1.1
void createInstrumentTrack ( int  position)

Creates a new instrument track at the given position.

Parameters:
positionthe index within the list of main tracks where the new track should be inserted, or `-1` in case the track should be inserted at the end of the list. Values outside the valid range will get pinned to the valid range, so the actual position might be different from the provided parameter value.
Since:
Bitwig Studio 1.1
void cut ( )

Cuts the selected items in Bitwig Studio if applicable.

Since:
Bitwig Studio 1.0
void deactivateEngine ( )

Deactivates the audio engine in Bitwig Studio.

Since:
Bitwig Studio 1.0
void duplicate ( )

Duplicates the active selection in Bitwig Studio if applicable.

Since:
Bitwig Studio 1.0
void enter ( )

Equivalent to an Enter key stroke on the computer keyboard. The concrete functionality depends on the current keyboard focus in Bitwig Studio.

Since:
Bitwig Studio 1.0
void escape ( )

Equivalent to an Escape key stroke on the computer keyboard. The concrete functionality depends on the current keyboard focus in Bitwig Studio.

Since:
Bitwig Studio 1.0
void focusPanelAbove ( )

Moves the panel focus to the panel above the currently focused panel.

Since:
Bitwig Studio 1.0
void focusPanelBelow ( )

Moves the panel focus to the panel below the currently focused panel.

Since:
Bitwig Studio 1.0
void focusPanelToLeft ( )

Moves the panel focus to the panel on the left of the currently focused panel.

Since:
Bitwig Studio 1.0

Moves the panel focus to the panel right to the currently focused panel.

Since:
Bitwig Studio 1.0
Action getAction ( String  id) throws ControlSurfaceException

Returns the action for the given action identifier. For a list of available actions, see getActions().

Parameters:
idthe action identifier string, must not be `null`
Returns:
the action associated with the given id, or null in case there is no action with the given identifier.
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.1
ActionCategory [] getActionCategories ( ) throws ControlSurfaceException

Returns a list of action categories that is used by Bitwig Studio to group actions into categories.

Returns:
the list of action categories
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.1
ActionCategory getActionCategory ( String  id) throws ControlSurfaceException

Returns the action category associated with the given identifier. For a list of available action categories, see getActionCategories().

Parameters:
idthe category identifier string, must not be `null`
Returns:
the action associated with the given id, or null in case there is no category with the given identifier
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.1
Action [] getActions ( ) throws ControlSurfaceException

Returns a list of actions that the application supports. Actions are commands in Bitwig Studio that are typically accessible through menus or keyboard shortcuts.

Please note that many of the commands encapsulated by the reported actions are also accessible through other (probably more convenient) interfaces methods of the API. In contrast to that, this method provides a more generic way to find available application functionality.

Returns:
the list of actions
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.1
void nextPanelLayout ( )

Switches to the next panel layout of the active display profile in Bitwig Studio.

Since:
Bitwig Studio 1.1
void nextPerspective ( )
Deprecated:
Use nextPanelLayout() instead.
Since:
Bitwig Studio 1.0
void nextProject ( )

Switches to the next project tab in Bitwig Studio.

Since:
Bitwig Studio 1.0
void paste ( )

Pastes the clipboard contents into the current selection focus in Bitwig Studio if applicable.

Since:
Bitwig Studio 1.0

Switches to the previous panel layout of the active display profile in Bitwig Studio.

Since:
Bitwig Studio 1.1
Deprecated:
Use previousPanelLayout() instead.
Since:
Bitwig Studio 1.0
void previousProject ( )

Switches to the previous project tab in Bitwig Studio.

Since:
Bitwig Studio 1.0
void redo ( )

Sends a redo command to Bitwig Studio.

Since:
Bitwig Studio 1.0
void remove ( )

Deletes the selected items in Bitwig Studio if applicable. Originally this function was called `delete` (Bitwig Studio 1.0). But as `delete` is reserved in JavaScript this function got renamed to `remove` in Bitwig Studio 1.0.9.

Since:
Bitwig Studio 1.0.9
void rename ( )

Opens a text input field in Bitwig Studio for renaming the selected item.

Since:
Bitwig Studio 1.0
void selectAll ( )

Selects all items according the current selection focus in Bitwig Studio.

Since:
Bitwig Studio 1.0
void selectNone ( )

Deselects any items according the current selection focus in Bitwig Studio.

Since:
Bitwig Studio 1.0
void setPanelLayout ( String  panelLayout)

Switches the Bitwig Studio user interface to the panel layout with the given name. The list of available panel layouts depends on the active display profile.

Parameters:
panelLayoutthe name of the new panel layout
Since:
Bitwig Studio 1.1
void setPerspective ( String  perspective)
Deprecated:
Use setPanelLayout(java.lang.String) instead.
Since:
Bitwig Studio 1.0

Toggles the visibility of the automation editor panel.

Since:
Bitwig Studio 1.0

Toggles the visibility of the browser panel.

Since:
Bitwig Studio 1.0
void toggleDevices ( )

Toggles the visibility of the device chain panel.

Since:
Bitwig Studio 1.0
void toggleFullScreen ( )

Toggles between full screen and windowed user interface.

Since:
Bitwig Studio 1.0
void toggleInspector ( )

Toggles the visibility of the inspector panel.

Since:
Bitwig Studio 1.1
void toggleMixer ( )

Toggles the visibility of the mixer panel.

Since:
Bitwig Studio 1.0
void toggleNoteEditor ( )

Toggles the visibility of the note editor panel.

Since:
Bitwig Studio 1.0
void undo ( )

Sends an undo command to Bitwig Studio.

Since:
Bitwig Studio 1.0
void zoomIn ( )

Zooms in one step into the currently focused editor of the Bitwig Studio user interface.

Since:
Bitwig Studio 1.0
void zoomOut ( )

Zooms out one step in the currently focused editor of the Bitwig Studio user interface.

Since:
Bitwig Studio 1.0
void zoomToFit ( )

Adjusts the zoom level of the currently focused editor so that all content becomes visible.

Since:
Bitwig Studio 1.0
void zoomToSelection ( )

Adjusts the zoom level of the currently focused editor so that it matches the active selection.

Since:
Bitwig Studio 1.0

Member Data Documentation

String PANEL_LAYOUT_ARRANGE = "ARRANGE" [static]

This identifier can be used as parameter for setPanelLayout(String) in order to switch to the `ARRANGE` panel layout that is available in various display profiles.

Definition at line 23 of file Application.java.

String PANEL_LAYOUT_EDIT = "EDIT" [static]

This identifier can be used as parameter for setPanelLayout(String) in order to switch to the `MIX` panel layout that is available in various display profiles.

Definition at line 35 of file Application.java.

String PANEL_LAYOUT_MIX = "MIX" [static]

This identifier can be used as parameter for setPanelLayout(String) in order to switch to the `EDIT` panel layout that is available in various display profiles.

Definition at line 29 of file Application.java.

List of all members.


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