Interface DeviceBank
- All Superinterfaces:
Bank<Device>,HardwareBindable,ObjectProxy,RelativeHardwarControlBindable,Scrollable,Subscribable
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
DeviceChain.createDeviceBank(int).- Since:
- API version 1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.voidDeprecated.UseScrollable.canScrollBackwards()instead.voidDeprecated.UseBank.itemCount().addValueObserver(callback)voidaddScrollPositionObserver(IntegerValueChangedCallback callback, int valueWhenUnassigned) Deprecated.UseScrollable.scrollPosition()instead.voidbrowseToInsertDevice(int index) Browses for content to insert a device at the given index inside this bank.getDevice(int indexInBank) Returns the device at the given index within the bank.Returns the object that was used to instantiate this device bank.voidScrolls the device window one device down.voidScrolls the device window one page down.voidScrolls the device window one page up.voidscrollTo(int position) Deprecated.UseScrollable.scrollIntoView(int)insteadvoidscrollUp()Scrolls the device window one device up.voidsetDeviceMatcher(DeviceMatcher matcher) Sets aDeviceMatcherthat can be used to filter devices in this bank to show only those matching the supplied matcher.Methods inherited from interface com.bitwig.extension.controller.api.Bank
cursorIndex, getCapacityOfBank, getItemAt, getSizeOfBank, itemCount, setSizeOfBank, setSkipDisabledItemsMethods inherited from interface com.bitwig.extension.controller.api.ObjectProxy
createEqualsValue, existsMethods inherited from interface com.bitwig.extension.controller.api.RelativeHardwarControlBindable
addBinding, addBindingWithSensitivityMethods inherited from interface com.bitwig.extension.controller.api.Scrollable
canScrollBackwards, canScrollForwards, scrollBackwards, scrollBackwardsAction, scrollBy, scrollByPages, scrollForwards, scrollForwardsAction, scrollIntoView, scrollPageBackwards, scrollPageBackwardsAction, scrollPageForwards, scrollPageForwardsAction, scrollPositionMethods inherited from interface com.bitwig.extension.controller.api.Subscribable
isSubscribed, setIsSubscribed, subscribe, unsubscribe
-
Method Details
-
getDeviceChain
DeviceChain getDeviceChain()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:
- API version 1
-
getDevice
Returns the device at the given index within the bank.- Parameters:
indexInBank- the 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:
- API version 1
-
scrollPageUp
void scrollPageUp()Scrolls the device window one page up.- Since:
- API version 1
-
scrollPageDown
void scrollPageDown()Scrolls the device window one page down.- Since:
- API version 1
-
scrollUp
void scrollUp()Scrolls the device window one device up.- Since:
- API version 1
-
scrollDown
void scrollDown()Scrolls the device window one device down.- Since:
- API version 1
-
scrollTo
Deprecated.UseScrollable.scrollIntoView(int)insteadMakes the device with the given position visible in the track bank.- Parameters:
position- the position of the device within the device chain- Since:
- API version 1
-
addScrollPositionObserver
@Deprecated void addScrollPositionObserver(IntegerValueChangedCallback callback, int valueWhenUnassigned) Deprecated.UseScrollable.scrollPosition()instead.Registers an observer that reports the current device scroll position.- Parameters:
callback- a callback function that takes a single integer parametervalueWhenUnassigned- the default value that gets reports when the device chain is not yet connected to a Bitwig Studio document- Since:
- API version 1
-
addCanScrollUpObserver
Deprecated.UseScrollable.canScrollBackwards()instead.Registers an observer that reports if the device window can be scrolled further up.- Parameters:
callback- a callback function that takes a single boolean parameter- Since:
- API version 1
-
addCanScrollDownObserver
Deprecated.UseScrollable.canScrollForwards()instead.Registers an observer that reports if the device window can be scrolled further down.- Parameters:
callback- a callback function that takes a single boolean parameter- Since:
- API version 1
-
addDeviceCountObserver
Deprecated.UseBank.itemCount().addValueObserver(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:
callback- a callback function that receives a single integer parameter- Since:
- API version 1
-
browseToInsertDevice
void browseToInsertDevice(int index) Browses for content to insert a device at the given index inside this bank.- Parameters:
index- the index to insert the device at. Must be >= 0 and <=Bank.getSizeOfBank().- Since:
- API version 2
-
setDeviceMatcher
Sets aDeviceMatcherthat can be used to filter devices in this bank to show only those matching the supplied matcher.- Parameters:
matcher- The matcher that should filter the devices or null if all devices should be matched- Since:
- API version 12
-
Scrollable.canScrollForwards()instead.