|
Control Surface API
1.1.11
|

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 |
This interface represents a device in Bitwig Studio, both internal devices and plugins.
Definition at line 11 of file Device.java.
| void addActiveModulationSourceObserver | ( | int | len, |
| String | textWhenUnassigned, | ||
| Callable | callback | ||
| ) |
Registers an observer that reports the name of the active modulation source.
| len | the maximum length of the name. Longer names will get truncated. |
| textWhenUnassigned | the default name that gets reported when the device is not associated with a Bitwig Studio device yet. |
| callback | a callback function that receives a single name parameter (string) |
| 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.
| callback | function with the signature (String[]) |
| void addDirectParameterNameObserver | ( | int | maxChars, |
| Callable | callback | ||
| ) |
Adds an observer for the parameter names (initial and changes) of all parameters for the device.
| maxChars | maximum length of the string sent to the observer. |
| callback | function with the signature (String ID, String name) |
| void addDirectParameterNormalizedValueObserver | ( | Callable | callback | ) |
Adds an observer for the parameter display value (initial and changes) of all parameters for the device.
| callback | a 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)'. |
| DirectParameterValueDisplayObserver addDirectParameterValueDisplayObserver | ( | int | maxChars, |
| Callable | callback | ||
| ) |
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.
| maxChars | maximum length of the string sent to the observer. |
| callback | function with the signature (String ID, String valueDisplay) |
| void addHasSelectedDeviceObserver | ( | Callable | callback | ) |
Registers an observer that reports if the device is selected.
| callback | a callback function that receives a single boolean parameter. |
| void addIsEnabledObserver | ( | Callable | callback | ) |
Registers an observer that reports if the device is enabled.
| callback | a callback function that receives a single boolean parameter |
| void addNameObserver | ( | int | len, |
| String | textWhenUnassigned, | ||
| Callable | callback | ||
| ) |
Registers an observer that reports the name of the device.
| len | the maximum length of the name. Longer names will get truncated. |
| textWhenUnassigned | the default name that gets reported when the device is not associated with a Bitwig Studio device yet. |
| callback | a callback function that receives a single name (string) parameter |
| void addNextParameterPageEnabledObserver | ( | Callable | callback | ) |
Registers an observer that reports if there is a next parameter page.
| callback | a callback function that receives a single boolean parameter |
| void addPageNamesObserver | ( | Callable | callback | ) |
Registers an observer that reports the names of the devices parameter pages.
| callback | a callback function that receives a single string array parameter containing the names of the parameter pages |
| void addPositionObserver | ( | Callable | callback | ) |
Registers an observer that reports the position of the device within the parent device chain.
| callback | a callback function that receives a single integer parameter |
| void addPresetCategoriesObserver | ( | Callable | callback | ) |
Registers an observer that reports the names of the available preset categories for the device.
| callback | a callback function that receives a single string array parameter containing the names of the preset categories |
| void addPresetCategoryObserver | ( | int | len, |
| String | textWhenUnassigned, | ||
| Callable | callback | ||
| ) |
Registers an observer that reports the current preset category name.
| len | the maximum length of the name. Longer names will get truncated. |
| textWhenUnassigned | the default name that gets reported when the device is not associated with a Bitwig Studio device yet. |
| callback | a callback function that receives a single name (string) parameter |
| void addPresetCreatorObserver | ( | int | len, |
| String | textWhenUnassigned, | ||
| Callable | callback | ||
| ) |
Registers an observer that reports the current preset creator name.
| len | the maximum length of the name. Longer names will get truncated. |
| textWhenUnassigned | the default name that gets reported when the device is not associated with a Bitwig Studio device yet. |
| callback | a callback function that receives a single name (string) parameter |
| void addPresetCreatorsObserver | ( | Callable | callback | ) |
Registers an observer that reports the names of the available preset creators for the device.
| callback | a callback function that receives a single string array parameter containing the names of the preset creators |
| void addPresetNameObserver | ( | int | len, |
| String | textWhenUnassigned, | ||
| Callable | callback | ||
| ) |
Registers an observer that reports the last loaded preset name.
| len | the maximum length of the name. Longer names will get truncated. |
| textWhenUnassigned | the default name that gets reported when the device is not associated with a Bitwig Studio device yet. |
| callback | a callback function that receives a single name (string) parameter |
| 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.
| callback | a callback function that receives a single string array parameter containing the names of the presets for the current category and creator filter. |
| void addPreviousParameterPageEnabledObserver | ( | Callable | callback | ) |
Registers an observer that reports if there is a previous parameter page.
| callback | a callback function that receives a single boolean parameter |
| 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.
| maxChars | maximum length of the string sent to the observer. |
| textWhenUnassigned | the default name that gets reported when the device is not associated with a Bitwig Studio device yet. |
| callback | a callback function that receives a single string parameter. |
| void addSelectedPageObserver | ( | int | valueWhenUnassigned, |
| Callable | callback | ||
| ) |
Registers an observer that reports the currently selected parameter page.
| valueWhenUnassigned | the default page index that gets reported when the device is not associated with a device instance in Bitwig Studio yet. |
| callback | a callback function that receives a single page index parameter (integer) |
| void addSlotsObserver | ( | Callable | callback | ) |
Registers an observer that gets notified when the list of available FX slots changes.
| callback | a callback function which takes a single string array argument that contains the names of the slots. |
| 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.
| DrumPadBank createDrumPadBank | ( | final int | numPads | ) | throws ControlSurfaceException |
Create a bank for navigating the nested layers of the device using a fixed-size window.
| numPads | the number of channels that the drum pad bank should be configured with |
| DeviceLayerBank createLayerBank | ( | final int | numChannels | ) | throws ControlSurfaceException |
Create a bank for navigating the nested layers of the device using a fixed-size window.
| numChannels | the number of channels that the device layer bank should be configured with |
| 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).
| numDevices | the number of devices that are simultaneously accessible |
| ControlSurfaceException |
| AutomatableRangedValue getCommonParameter | ( | int | index | ) | throws ControlSurfaceException |
Returns the parameter with the given index in the common parameter page.
| index | the index of the parameter within the common parameter page. |
| ControlSurfaceException |
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 a representation of the device chain that contains this device. Possible device chain instances are tracks, device layers, drums pads, or FX slots.
| AutomatableRangedValue getEnvelopeParameter | ( | int | index | ) | throws ControlSurfaceException |
Returns the parameter with the given index in the envelope parameter page.
| index | the index of the parameter within the envelope parameter page. |
| ControlSurfaceException |
Returns the macro control at the given index.
| index | the index of the macro control, must be in the range [0..7] |
| ControlSurfaceException |
| ModulationSource getModulationSource | ( | int | index | ) | throws ControlSurfaceException |
Returns the modulation source at the given index.
| index | the index of the modulation source |
| ControlSurfaceException |
| AutomatableRangedValue getParameter | ( | int | indexInPage | ) | throws ControlSurfaceException |
Returns the parameter with the given index in the current parameter page.
| indexInPage | the index of the parameter within the current parameter page. |
| ControlSurfaceException |
Indicates if the device has individual device chains for each note value.
Indicates if the device supports nested layers.
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.
| 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.
| id | the parameter identifier string |
| increment | the amount that the parameter value should be increased by, normalized to the range [0..resolution-1] |
| resolution | the resolution of the new value |
Returns an object that provides access to the expanded state of the device.
Returns an object that provides access to the visibility of the device macros section.
| BooleanValue isNested | ( | ) |
Indicates if the device is contained by another device.
Returns an object that provides access to the visibility of the parameter page mapping editor.
Returns an object that provides access to the open state of plugin windows.
| void loadPreset | ( | int | index | ) |
Loads the preset with the index from the list provided by addPresetNamesObserver.
| void nextParameterPage | ( | ) |
Switches to the next parameter page.
| void previousParameterPage | ( | ) |
Switches to the previous parameter page.
| void setDirectParameterValueNormalized | ( | String | id, |
| Number | value, | ||
| Number | resolution | ||
| ) |
Sets the parameter with the specified `id` to the given `value` according to the given `resolution`.
| id | the parameter identifier string |
| value | the new value normalized to the range [0..resolution-1] |
| resolution | the resolution of the new value |
| void setParameterPage | ( | int | page | ) |
Switches to the parameter page at the given page index.
| page | the index of the desired parameter page |
| void setPresetCategory | ( | int | index | ) |
Sets the preset category filter with the index from the array provided by addPresetCategoriesObserver.
| void setPresetCreator | ( | int | index | ) |
Sets the preset creator filter with the index from the list provided by addPresetCreatorsObserver.
| void switchToNextPreset | ( | ) |
Loads the next preset.
| void switchToNextPresetCategory | ( | ) |
Switches to the next preset category.
| void switchToNextPresetCreator | ( | ) |
Switches to the next preset creator.
| void switchToPreviousPreset | ( | ) |
Loads the previous preset.
| void switchToPreviousPresetCategory | ( | ) |
Switches to the previous preset category.
| void switchToPreviousPresetCreator | ( | ) |
Switches to the previous preset creator.
| void toggleEnabledState | ( | ) |
Toggles the enabled state of the device.