Control Surface API  1.1.11
SceneBank Interface Reference

Public Member Functions

Scene getScene (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 addSceneCountObserver (Callable callback)
void launchScene (int indexInWindow)

Detailed Description

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 com.bitwig.base.control_surface.iface.Host#createSceneBank.

See also:
com.bitwig.base.control_surface.iface.Host#createSceneBank
Since:
Bitwig Studio 1.1

Definition at line 16 of file SceneBank.java.


Member Function Documentation

void addCanScrollDownObserver ( Callable  callback)

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

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

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

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

Registers an observer that reports the underlying total scene count (not the number of scenes available in the bank window).

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

Registers an observer that reports the current scene scroll position.

Parameters:
callbacka callback function that takes a single integer parameter
valueWhenUnassignedthe default value that gets reports when the track bank is not yet connected to a Bitwig Studio document
Since:
Bitwig Studio 1.0
Scene getScene ( int  indexInBank)

Returns the scene at the given index within the bank.

Parameters:
indexInBankthe 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:
Bitwig Studio 1.1
void launchScene ( int  indexInWindow)

Launches the scene with the given bank index.

Parameters:
indexInWindowthe scene index within the bank, not the position of the scene withing the underlying full list of scenes.
Since:
Bitwig Studio 1.0
void scrollDown ( )

Scrolls the scenes one scene down.

Since:
Bitwig Studio 1.0
void scrollPageDown ( )

Scrolls the scenes one page down.

Since:
Bitwig Studio 1.0
void scrollPageUp ( )

Scrolls the scenes one page up.

Since:
Bitwig Studio 1.0
void scrollTo ( int  position)

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

Parameters:
positionthe position of the scene within the underlying full list of scenes
Since:
Bitwig Studio 1.0
void scrollUp ( )

Scrolls the scenes one scene up.

Since:
Bitwig Studio 1.0

List of all members.


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