Interface SceneBank
- All Superinterfaces:
Bank<Scene>,ClipLauncherSlotOrSceneBank<Scene>,HardwareBindable,ObjectProxy,RelativeHardwarControlBindable,Scrollable,Subscribable
A scene bank provides access to a range of scenes in Bitwig Studio. Instances of scene bank are configured
with a fixed number of scenes and represent an excerpt of a larger list of scenes. Various methods are
provided for scrolling to different sections of the scene list. It basically acts like a window moving over
the list of underlying scenes.
To receive an instance of scene bank call
ControllerHost.createSceneBank(int).- Since:
- API version 1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.voidDeprecated.UseScrollable.canScrollBackwards()instead.voidDeprecated.UseBank.itemCount()instead.voidaddScrollPositionObserver(IntegerValueChangedCallback callback, int valueWhenUnassigned) Deprecated.UseScrollable.scrollPosition()insteadgetScene(int indexInBank) Returns the scene at the given index within the bank.voidlaunchScene(int indexInWindow) Launches the scene with the given bank index.voidDeprecated.UseScrollable.scrollForwards()instead.voidDeprecated.UseScrollable.scrollPageForwards()instead.voidDeprecated.UseScrollable.scrollPageBackwards()instead.voidscrollTo(int position) Deprecated.UseScrollable.scrollIntoView(int)instead.voidscrollUp()Deprecated.UseScrollable.scrollBackwards()instead.voidsetIndication(boolean shouldIndicate) Specifies if the Bitwig Studio clip launcher should indicate which scenes are part of the window.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.ClipLauncherSlotOrSceneBank
addNameObserver, launch, launchAlt, returnToArrangement, stop, stopAction, stopAlt, stopAltActionMethods 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
-
getScene
Returns the scene at the given index within the bank.- Parameters:
indexInBank- the scene index within this bank, not the index within the list of all Bitwig Studio scenes. Must be in the range [0..sizeOfBank-1].- Returns:
- the requested scene object
- Since:
- API version 1
-
scrollPageUp
Deprecated.UseScrollable.scrollPageBackwards()instead.Scrolls the scenes one page up.- Since:
- API version 1
-
scrollPageDown
Deprecated.UseScrollable.scrollPageForwards()instead.Scrolls the scenes one page down.- Since:
- API version 1
-
scrollUp
Deprecated.UseScrollable.scrollBackwards()instead.Scrolls the scenes one scene up.- Since:
- API version 1
-
scrollDown
Deprecated.UseScrollable.scrollForwards()instead.Scrolls the scenes one scene down.- Since:
- API version 1
-
scrollTo
Deprecated.UseScrollable.scrollIntoView(int)instead.Makes the scene with the given position visible in the track bank.- Parameters:
position- the position of the scene within the underlying full list of scenes- Since:
- API version 1
-
addScrollPositionObserver
@Deprecated void addScrollPositionObserver(IntegerValueChangedCallback callback, int valueWhenUnassigned) Deprecated.UseScrollable.scrollPosition()insteadRegisters an observer that reports the current scene scroll position.- Parameters:
callback- a callback function that takes a single integer parametervalueWhenUnassigned- the default value that gets reports when the track bank 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 scene 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 scene window can be scrolled further down.- Parameters:
callback- a callback function that takes a single boolean parameter- Since:
- API version 1
-
addSceneCountObserver
Deprecated.UseBank.itemCount()instead.Registers an observer that reports the underlying total scene count (not the number of scenes available in the bank window).- Parameters:
callback- a callback function that receives a single integer parameter- Since:
- API version 1
-
launchScene
void launchScene(int indexInWindow) Launches the scene with the given bank index.- Parameters:
indexInWindow- the scene index within the bank, not the position of the scene withing the underlying full list of scenes.- Since:
- API version 1
-
setIndication
void setIndication(boolean shouldIndicate) Specifies if the Bitwig Studio clip launcher should indicate which scenes are part of the window. By default indications are disabled.- Parameters:
shouldIndicate- `true` if visual indications should be enabled, `false` otherwise- Since:
- API version 10
-
Scrollable.canScrollForwards()instead.