Bitwig Studio Control Surface API
5.0.11
|
Public Member Functions | |
void | addRawValueObserver (DoubleValueChangedCallback callback) |
String | getFormatted (BeatTimeFormatter formatter) |
String | getFormatted () |
void | addTimeObserver (String separator, int barsLen, int beatsLen, int subdivisionLen, int ticksLen, StringValueChangedCallback callback) |
![]() | |
double | get () |
default double | getAsDouble () |
![]() | |
void | markInterested () |
void | addValueObserver (ObserverType callback) |
Instances of this interface represent beat time values.
Beat time values are double-precision number representing the number of quarter notes, regardless of time-signature.
void addRawValueObserver | ( | DoubleValueChangedCallback | callback | ) |
Add an observer which receives the internal raw of the parameter as floating point.
callback | a callback function that receives a single numeric parameter with double precision. |
void addTimeObserver | ( | String | separator, |
int | barsLen, | ||
int | beatsLen, | ||
int | subdivisionLen, | ||
int | ticksLen, | ||
StringValueChangedCallback | callback | ||
) |
Registers an observer that reports the internal beat time value as formatted text, for example "012:03:00:01".
separator | the character used to separate the segments of the formatted beat time, typically ":", "." or "-" |
barsLen | the number of digits reserved for bars |
beatsLen | the number of digits reserved for beats |
subdivisionLen | the number of digits reserved for beat subdivisions |
ticksLen | the number of digits reserved for ticks |
callback | a callback function that receives a single string parameter |
String getFormatted | ( | ) |
Gets the current beat time formatted according to the default beat time formatter.
String getFormatted | ( | BeatTimeFormatter | formatter | ) |
Gets the current beat time formatted according to the supplied formatter.