|
Control Surface API
2.2.2
|
Public Member Functions | |
| IntegerValue | noteLaneId () |
| void | addNoteValueObserver (IntegerValueChangedCallback callback) |
| StringValue | name () |
| void | addNameObserver (int numChars, String textWhenUnassigned, StringValueChangedCallback callback) |
| SettableColorValue | color () |
| void | addColorObserver (ColorValueChangedCallback callback) |
| void | play (double velocity) |
Instances of this interface are used to access the notes for a specific note key.
Definition at line 12 of file NoteLane.java.
| void addColorObserver | ( | ColorValueChangedCallback | 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.
| callback | a 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 |
| void addNameObserver | ( | int | numChars, |
| String | textWhenUnassigned, | ||
| StringValueChangedCallback | 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".
| numChars | the maximum number of characters used for the reported name |
| textWhenUnassigned | the default name that gets reported when the lane is not yet associated with a note lane in Bitwig Studio |
| callback | a callback function that receives a single string argument |
| void addNoteValueObserver | ( | IntegerValueChangedCallback | 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).
| SettableColorValue color | ( | ) |
Value 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
| StringValue name | ( | ) |
Value 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".
| IntegerValue noteLaneId | ( | ) |
Value which represents the id of this lane. is either the note pitch represented by this lane, or in case of audio a lane index (currently always 0 in that case).
| void play | ( | double | velocity | ) |
Plays a note with the key of the note lane and the provided velocity parameter.
| velocity | the velocity the note should be played with |