Control Surface API  1.1.11
Device Interface Reference
Inheritance diagram for Device:

Public Member Functions

DeviceChain getDeviceChain ()
void addPositionObserver (Callable callback)
BooleanValue isWindowOpen ()
BooleanValue isExpanded ()
BooleanValue isMacroSectionVisible ()
BooleanValue isParameterPageSectionVisible ()
AutomatableRangedValue getParameter (int indexInPage) throws ControlSurfaceException
AutomatableRangedValue getEnvelopeParameter (int index) throws ControlSurfaceException
AutomatableRangedValue getCommonParameter (int index) throws ControlSurfaceException
ModulationSource getModulationSource (int index) throws ControlSurfaceException
Macro getMacro (int index) throws ControlSurfaceException
void addHasSelectedDeviceObserver (Callable callback)
void previousParameterPage ()
void nextParameterPage ()
void addPreviousParameterPageEnabledObserver (Callable callback)
void addNextParameterPageEnabledObserver (Callable callback)
void setParameterPage (int page)
void switchToPreviousPreset ()
void switchToNextPreset ()
void switchToPreviousPresetCategory ()
void switchToNextPresetCategory ()
void switchToPreviousPresetCreator ()
void switchToNextPresetCreator ()
void addNameObserver (int len, String textWhenUnassigned, Callable callback)
void addPresetNameObserver (int len, String textWhenUnassigned, Callable callback)
void addPresetCategoryObserver (int len, String textWhenUnassigned, Callable callback)
void addPresetCreatorObserver (int len, String textWhenUnassigned, Callable callback)
void addSelectedPageObserver (int valueWhenUnassigned, Callable callback)
void addActiveModulationSourceObserver (int len, String textWhenUnassigned, Callable callback)
void addPageNamesObserver (Callable callback)
void addPresetNamesObserver (Callable callback)
void loadPreset (int index)
void addPresetCategoriesObserver (Callable callback)
void setPresetCategory (int index)
void addPresetCreatorsObserver (Callable callback)
void setPresetCreator (int index)
void toggleEnabledState ()
void addIsEnabledObserver (Callable callback)
Value hasSlots ()
void addSlotsObserver (Callable callback)
DeviceSlot getCursorSlot ()
BooleanValue isNested ()
BooleanValue hasLayers ()
BooleanValue hasDrumPads ()
DeviceLayerBank createLayerBank (final int numChannels) throws ControlSurfaceException
DrumPadBank createDrumPadBank (final int numPads) throws ControlSurfaceException
CursorDeviceLayer createCursorLayer () throws ControlSurfaceException
void addDirectParameterIdObserver (Callable callback)
void addDirectParameterNameObserver (int maxChars, Callable callback)
DirectParameterValueDisplayObserver addDirectParameterValueDisplayObserver (int maxChars, Callable callback)
void addDirectParameterNormalizedValueObserver (Callable callback)
void setDirectParameterValueNormalized (String id, Number value, Number resolution)
void incDirectParameterValueNormalized (String id, Number increment, Number resolution)
void addSampleNameObserver (int maxChars, String textWhenUnassigned, Callable callback)
DeviceBank createSiblingsDeviceBank (int numDevices) throws ControlSurfaceException

Detailed Description

This interface represents a device in Bitwig Studio, both internal devices and plugins.

Since:
Bitwig Studio 1.0

Definition at line 11 of file Device.java.


Member Function Documentation

void addActiveModulationSourceObserver ( int  len,
String  textWhenUnassigned,
Callable  callback 
)

Registers an observer that reports the name of the active modulation source.

Parameters:
lenthe maximum length of the name. Longer names will get truncated.
textWhenUnassignedthe default name that gets reported when the device is not associated with a Bitwig Studio device yet.
callbacka callback function that receives a single name parameter (string)
Since:
Bitwig Studio 1.0
void addDirectParameterIdObserver ( Callable  callback)

Adds an observer on a list of all parameters for the device.

The callback always updates with an array containing all the IDs for the device.

Parameters:
callbackfunction with the signature (String[])
Since:
Bitwig Studio 1.1
void addDirectParameterNameObserver ( int  maxChars,
Callable  callback 
)

Adds an observer for the parameter names (initial and changes) of all parameters for the device.

Parameters:
maxCharsmaximum length of the string sent to the observer.
callbackfunction with the signature (String ID, String name)
Since:
Bitwig Studio 1.1
void addDirectParameterNormalizedValueObserver ( Callable  callback)

Adds an observer for the parameter display value (initial and changes) of all parameters for the device.

Parameters:
callbacka callback function with the signature (String ID, float normalizedValue). If the value is not accessible 'Number.NaN' (not-a-number) is reported, can be checked with 'isNaN(value)'.
Since:
Bitwig Studio 1.1

Returns an observer that reports changes of parameter display values, i.e. parameter values formatted as a string to be read by the user, for example "-6.02 dB". The returned observer object can be used to configure which parameters should be observed. By default no parameters are observed. It should be avoided to observe all parameters at the same time for performance reasons.

Returns:
an observer object that can be used to enable or disable actual observing for certain parameters.
Parameters:
maxCharsmaximum length of the string sent to the observer.
callbackfunction with the signature (String ID, String valueDisplay)
Since:
Bitwig Studio 1.1
void addHasSelectedDeviceObserver ( Callable  callback)

Registers an observer that reports if the device is selected.

Parameters:
callbacka callback function that receives a single boolean parameter.
Since:
Bitwig Studio 1.0
void addIsEnabledObserver ( Callable  callback)

Registers an observer that reports if the device is enabled.

Parameters:
callbacka callback function that receives a single boolean parameter
Since:
Bitwig Studio 1.0
void addNameObserver ( int  len,
String  textWhenUnassigned,
Callable  callback 
)

Registers an observer that reports the name of the device.

Parameters:
lenthe maximum length of the name. Longer names will get truncated.
textWhenUnassignedthe default name that gets reported when the device is not associated with a Bitwig Studio device yet.
callbacka callback function that receives a single name (string) parameter
Since:
Bitwig Studio 1.0
void addNextParameterPageEnabledObserver ( Callable  callback)

Registers an observer that reports if there is a next parameter page.

Parameters:
callbacka callback function that receives a single boolean parameter
Since:
Bitwig Studio 1.0
void addPageNamesObserver ( Callable  callback)

Registers an observer that reports the names of the devices parameter pages.

Parameters:
callbacka callback function that receives a single string array parameter containing the names of the parameter pages
Since:
Bitwig Studio 1.0
void addPositionObserver ( Callable  callback)

Registers an observer that reports the position of the device within the parent device chain.

Parameters:
callbacka callback function that receives a single integer parameter
Since:
Bitwig Studio 1.1
void addPresetCategoriesObserver ( Callable  callback)

Registers an observer that reports the names of the available preset categories for the device.

Parameters:
callbacka callback function that receives a single string array parameter containing the names of the preset categories
Since:
Bitwig Studio 1.0
void addPresetCategoryObserver ( int  len,
String  textWhenUnassigned,
Callable  callback 
)

Registers an observer that reports the current preset category name.

Parameters:
lenthe maximum length of the name. Longer names will get truncated.
textWhenUnassignedthe default name that gets reported when the device is not associated with a Bitwig Studio device yet.
callbacka callback function that receives a single name (string) parameter
Since:
Bitwig Studio 1.0
void addPresetCreatorObserver ( int  len,
String  textWhenUnassigned,
Callable  callback 
)

Registers an observer that reports the current preset creator name.

Parameters:
lenthe maximum length of the name. Longer names will get truncated.
textWhenUnassignedthe default name that gets reported when the device is not associated with a Bitwig Studio device yet.
callbacka callback function that receives a single name (string) parameter
Since:
Bitwig Studio 1.0
void addPresetCreatorsObserver ( Callable  callback)

Registers an observer that reports the names of the available preset creators for the device.

Parameters:
callbacka callback function that receives a single string array parameter containing the names of the preset creators
Since:
Bitwig Studio 1.0
void addPresetNameObserver ( int  len,
String  textWhenUnassigned,
Callable  callback 
)

Registers an observer that reports the last loaded preset name.

Parameters:
lenthe maximum length of the name. Longer names will get truncated.
textWhenUnassignedthe default name that gets reported when the device is not associated with a Bitwig Studio device yet.
callbacka callback function that receives a single name (string) parameter
Since:
Bitwig Studio 1.0
void addPresetNamesObserver ( Callable  callback)

Registers an observer that reports the names of the available presets for the device according to the current configuration of preset category and creator filtering.

Parameters:
callbacka callback function that receives a single string array parameter containing the names of the presets for the current category and creator filter.
See also:
addPresetCategoryObserver
addPresetCreatorObserver
setPresetCategory
setPresetCreator
Since:
Bitwig Studio 1.1
void addPreviousParameterPageEnabledObserver ( Callable  callback)

Registers an observer that reports if there is a previous parameter page.

Parameters:
callbacka callback function that receives a single boolean parameter
Since:
Bitwig Studio 1.0
void addSampleNameObserver ( int  maxChars,
String  textWhenUnassigned,
Callable  callback 
)

Registers an observer that reports the file name of the currently loaded sample, in case the device is a sample container device.

Parameters:
maxCharsmaximum length of the string sent to the observer.
textWhenUnassignedthe default name that gets reported when the device is not associated with a Bitwig Studio device yet.
callbacka callback function that receives a single string parameter.
void addSelectedPageObserver ( int  valueWhenUnassigned,
Callable  callback 
)

Registers an observer that reports the currently selected parameter page.

Parameters:
valueWhenUnassignedthe default page index that gets reported when the device is not associated with a device instance in Bitwig Studio yet.
callbacka callback function that receives a single page index parameter (integer)
Since:
Bitwig Studio 1.0
void addSlotsObserver ( Callable  callback)

Registers an observer that gets notified when the list of available FX slots changes.

Parameters:
callbacka callback function which takes a single string array argument that contains the names of the slots.
Since:
Bitwig Studio 1.1
CursorDeviceLayer createCursorLayer ( ) throws ControlSurfaceException

Returns a device layer instance that can be used to navigate the layers or drum pads of the device, in case it has any.

Returns:
a cursor device layer instance
Since:
Bitwig Studio 1.1
DrumPadBank createDrumPadBank ( final int  numPads) throws ControlSurfaceException

Create a bank for navigating the nested layers of the device using a fixed-size window.

Parameters:
numPadsthe number of channels that the drum pad bank should be configured with
Returns:
a drum pad bank object configured with the desired number of pads
Since:
Bitwig Studio 1.1
DeviceLayerBank createLayerBank ( final int  numChannels) throws ControlSurfaceException

Create a bank for navigating the nested layers of the device using a fixed-size window.

Parameters:
numChannelsthe number of channels that the device layer bank should be configured with
Returns:
a device layer bank object configured with the desired number of channels
Since:
Bitwig Studio 1.1
DeviceBank createSiblingsDeviceBank ( int  numDevices) throws ControlSurfaceException

Returns an object that provides bank-wise navigation of sibling devices of the same device chain (including the device instance used to create the siblings bank).

Parameters:
numDevicesthe number of devices that are simultaneously accessible
Returns:
the requested device bank object
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.1.6
AutomatableRangedValue getCommonParameter ( int  index) throws ControlSurfaceException

Returns the parameter with the given index in the common parameter page.

Parameters:
indexthe index of the parameter within the common parameter page.
Returns:
an object that provides access to the requested parameter
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.0

Returns an object that represents the selected device slot as shown in the user interface, and that provides access to the contents of slot's device chain.

Returns:
the requested slot cursor object
Since:
Bitwig Studio 1.1.6

Returns a representation of the device chain that contains this device. Possible device chain instances are tracks, device layers, drums pads, or FX slots.

Returns:
the requested device chain object
Since:
Bitwig Studio 1.1.6
AutomatableRangedValue getEnvelopeParameter ( int  index) throws ControlSurfaceException

Returns the parameter with the given index in the envelope parameter page.

Parameters:
indexthe index of the parameter within the envelope parameter page.
Returns:
an object that provides access to the requested parameter
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.0
Macro getMacro ( int  index) throws ControlSurfaceException

Returns the macro control at the given index.

Parameters:
indexthe index of the macro control, must be in the range [0..7]
Returns:
An object that represents the requested macro control
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.0
ModulationSource getModulationSource ( int  index) throws ControlSurfaceException

Returns the modulation source at the given index.

Parameters:
indexthe index of the modulation source
Returns:
An object that represents the requested modulation source
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.0
AutomatableRangedValue getParameter ( int  indexInPage) throws ControlSurfaceException

Returns the parameter with the given index in the current parameter page.

Parameters:
indexInPagethe index of the parameter within the current parameter page.
Returns:
an object that provides access to the requested parameter
Exceptions:
ControlSurfaceException
Since:
Bitwig Studio 1.0

Indicates if the device has individual device chains for each note value.

Returns:
a value object that indicates if the device has individual device chains for each note value.
Since:
Bitwig Studio 1.1

Indicates if the device supports nested layers.

Returns:
a value object that indicates if the device supports nested layers.
Since:
Bitwig Studio 1.1

Indicates if the device has nested device chains in FX slots. Use addSlotsObserver(Callable) to get a list of available slot names, and navigate to devices in those slots using the CursorDevice interface.

Returns:
a value object that indicates if the device has nested device chains in FX slots.
Since:
Bitwig Studio 1.1
void incDirectParameterValueNormalized ( String  id,
Number  increment,
Number  resolution 
)

Increases the parameter with the specified `id` by the given `increment` according to the given `resolution`. To decrease the parameter value pass in a negative increment.

Parameters:
idthe parameter identifier string
incrementthe amount that the parameter value should be increased by, normalized to the range [0..resolution-1]
resolutionthe resolution of the new value
Since:
Bitwig Studio 1.1

Returns an object that provides access to the expanded state of the device.

Returns:
a boolean value object that represents the expanded state of the device.
Since:
Bitwig Studio 1.1

Returns an object that provides access to the visibility of the device macros section.

Returns:
a boolean value object that represents the macro section visibility.
Since:
Bitwig Studio 1.1

Indicates if the device is contained by another device.

Returns:
a value object that indicates if the device is nested
Since:
Bitwig Studio 1.1.2

Returns an object that provides access to the visibility of the parameter page mapping editor.

Returns:
a boolean value object that represents visibility of the parameter page mapping editor.
Since:
Bitwig Studio 1.1

Returns an object that provides access to the open state of plugin windows.

Returns:
a boolean value object that represents the open state of the editor window, in case the device features a custom editor window (such as plugins).
Since:
Bitwig Studio 1.1
void loadPreset ( int  index)

Loads the preset with the index from the list provided by addPresetNamesObserver.

Since:
Bitwig Studio 1.1

Switches to the next parameter page.

Since:
Bitwig Studio 1.0

Switches to the previous parameter page.

Since:
Bitwig Studio 1.0
void setDirectParameterValueNormalized ( String  id,
Number  value,
Number  resolution 
)

Sets the parameter with the specified `id` to the given `value` according to the given `resolution`.

Parameters:
idthe parameter identifier string
valuethe new value normalized to the range [0..resolution-1]
resolutionthe resolution of the new value
Since:
Bitwig Studio 1.1
void setParameterPage ( int  page)

Switches to the parameter page at the given page index.

Parameters:
pagethe index of the desired parameter page
Since:
Bitwig Studio 1.0
void setPresetCategory ( int  index)

Sets the preset category filter with the index from the array provided by addPresetCategoriesObserver.

Since:
Bitwig Studio 1.0
void setPresetCreator ( int  index)

Sets the preset creator filter with the index from the list provided by addPresetCreatorsObserver.

Since:
Bitwig Studio 1.0

Loads the next preset.

Since:
Bitwig Studio 1.0

Switches to the next preset category.

Since:
Bitwig Studio 1.0

Switches to the next preset creator.

Since:
Bitwig Studio 1.0

Loads the previous preset.

Since:
Bitwig Studio 1.0

Switches to the previous preset category.

Since:
Bitwig Studio 1.0

Switches to the previous preset creator.

Since:
Bitwig Studio 1.0

Toggles the enabled state of the device.

Since:
Bitwig Studio 1.0

List of all members.


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