Control Surface API  1.1.11
NoteLane Interface Reference

Public Member Functions

void addNoteValueObserver (Callable callback)
void addNameObserver (int numChars, String textWhenUnassigned, Callable callback)
void addColorObserver (Callable callback)
void play (double velocity)

Detailed Description

Instances of this interface are used to access the notes for a specific note key.

Since:
Bitwig Studio 1.0

Definition at line 10 of file NoteLane.java.


Member Function Documentation

void addColorObserver ( Callable  callback)

Registers an observer that reports the color of the note lane. By default the reported color will be the track color, or in case an associated drum pad has a custom color it will be the color of that pad (currently not implemented).

Parameters:
callbacka callback function that receives three arguments which from an RGB color: 1. the red dimension of the color value, 2. the green dimension of the color value, and 3. the blue dimension of the color value
Since:
Bitwig Studio 1.0
void addNameObserver ( int  numChars,
String  textWhenUnassigned,
Callable  callback 
)

Registers an observer that reports the name of the note lane. Typically the name of a note lane is either equal to the title of an associated drum pad, or reflects the pitch of the note, e.g. "C#3".

Parameters:
numCharsthe maximum number of characters used for the reported name
textWhenUnassignedthe default name that gets reported when the lane is not yet associated with a note lane in Bitwig Studio
callbacka callback function that receives a single string argument
Since:
Bitwig Studio 1.0
void addNoteValueObserver ( Callable  callback)

Registers an observer for the note value, which is either the note pitch represented by this lane, or in case of audio a lane index (currently always 0 in that case).

Since:
Bitwig Studio 1.0
void play ( double  velocity)

Plays a note with the key of the note lane and the provided velocity parameter.

Parameters:
velocitythe velocity the note should be played with
Since:
Bitwig Studio 1.0

List of all members.


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