Control Surface API  1.1.11
DeviceBank Interface Reference

Public Member Functions

DeviceChain getDeviceChain ()
Device getDevice (int indexInBank)
void scrollPageUp ()
void scrollPageDown ()
void scrollUp ()
void scrollDown ()
void scrollTo (int position)
void addScrollPositionObserver (Callable callback, int valueWhenUnassigned)
void addCanScrollUpObserver (Callable callback)
void addCanScrollDownObserver (Callable callback)
void addDeviceCountObserver (Callable callback)

Detailed Description

This interface is used for navigation of device chains in Bitwig Studio. Instances are configured with a fixed number of devices and provide access to a excerpt of the devices inside a device chain. Various methods are provided for scrolling to different sections of the device chain. It basically acts like a window moving over the devices.

To receive an instance of DeviceBank call Track#createDeviceBank.

See also:
Track#createDeviceBank
Since:
Bitwig Studio 1.1

Definition at line 16 of file DeviceBank.java.


Member Function Documentation

void addCanScrollDownObserver ( Callable  callback)

Registers an observer that reports if the device window can be scrolled further down.

Parameters:
callbacka callback function that takes a single boolean parameter
Since:
Bitwig Studio 1.1
void addCanScrollUpObserver ( Callable  callback)

Registers an observer that reports if the device window can be scrolled further up.

Parameters:
callbacka callback function that takes a single boolean parameter
Since:
Bitwig Studio 1.1
void addDeviceCountObserver ( Callable  callback)

Registers an observer that reports the total device count of the device chain (not the number of devices accessible through the bank window).

Parameters:
callbacka callback function that receives a single integer parameter
Since:
Bitwig Studio 1.1
void addScrollPositionObserver ( Callable  callback,
int  valueWhenUnassigned 
)

Registers an observer that reports the current device scroll position.

Parameters:
callbacka callback function that takes a single integer parameter
valueWhenUnassignedthe default value that gets reports when the device chain is not yet connected to a Bitwig Studio document
Since:
Bitwig Studio 1.1
Device getDevice ( int  indexInBank)

Returns the device at the given index within the bank.

Parameters:
indexInBankthe device index within this bank, not the position within the device chain. Must be in the range [0..sizeOfBank-1].
Returns:
the requested device object
Since:
Bitwig Studio 1.1

Returns the object that was used to instantiate this device bank. Possible device chain instances are tracks, device layers, drums pads, or FX slots.

Returns:
the requested device chain object
Since:
Bitwig Studio 1.1
void scrollDown ( )

Scrolls the device window one device down.

Since:
Bitwig Studio 1.1
void scrollPageDown ( )

Scrolls the device window one page down.

Since:
Bitwig Studio 1.1
void scrollPageUp ( )

Scrolls the device window one page up.

Since:
Bitwig Studio 1.1
void scrollTo ( int  position)

Makes the device with the given position visible in the track bank.

Parameters:
positionthe position of the device within the device chain
Since:
Bitwig Studio 1.1
void scrollUp ( )

Scrolls the device window one device up.

Since:
Bitwig Studio 1.1

List of all members.


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