|
Control Surface API
1.1.11
|

Public Member Functions | |
| void | addTimeObserver (String separator, int barsLen, int beatsLen, int subdivisionLen, int ticksLen, Callable callback) |
| void | addRawValueObserver (Callable callback) |
| void | setRaw (double value) |
| void | incRaw (double delta) |
Instances of this interface represent beat time values.
Definition at line 10 of file BeatTime.java.
| void addRawValueObserver | ( | Callable | callback | ) |
Adds an observer which receives the internal raw value of the parameter as floating point value.
| callback | a callback function that receives a single floating point parameter with double precision. |
Implements RangedValue.
| void addTimeObserver | ( | String | separator, |
| int | barsLen, | ||
| int | beatsLen, | ||
| int | subdivisionLen, | ||
| int | ticksLen, | ||
| Callable | 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 |
| void incRaw | ( | double | delta | ) |
Increments / decrements the internal (raw) value by the given delta.
| delta | the amount that gets added to the internal value. |
Implements RangedValue.
| void setRaw | ( | double | value | ) |
Sets the internal (raw) value.
| value | a numeric value with double-precision. Range is undefined. |
Implements RangedValue.