Interface BeatTimeValue
- All Superinterfaces:
DoubleSupplier,DoubleValue,Subscribable,Value<DoubleValueChangedCallback>
- All Known Subinterfaces:
SettableBeatTimeValue
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.
- Since:
- API version 1
-
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.This exists for backwards compatibility.voidaddTimeObserver(String separator, int barsLen, int beatsLen, int subdivisionLen, int ticksLen, StringValueChangedCallback callback) Deprecated.UsegetFormatted(BeatTimeFormatter)instead.Gets the current beat time formatted according to the default beat time formatter.getFormatted(BeatTimeFormatter formatter) Gets the current beat time formatted according to the supplied formatter.Methods inherited from interface com.bitwig.extension.controller.api.DoubleValue
get, getAsDoubleMethods inherited from interface com.bitwig.extension.controller.api.Subscribable
isSubscribed, setIsSubscribed, subscribe, unsubscribeMethods inherited from interface com.bitwig.extension.controller.api.Value
addValueObserver, markInterested
-
Method Details
-
addRawValueObserver
Deprecated.This exists for backwards compatibility. UseValue.addValueObserver(ValueChangedCallback)instead.Add an observer which receives the internal raw of the parameter as floating point.- Parameters:
callback- a callback function that receives a single numeric parameter with double precision.- Since:
- API version 1
-
getFormatted
Gets the current beat time formatted according to the supplied formatter.- Since:
- API version 2
-
getFormatted
String getFormatted()Gets the current beat time formatted according to the default beat time formatter.- Since:
- API version 2
- See Also:
-
addTimeObserver
@Deprecated void addTimeObserver(String separator, int barsLen, int beatsLen, int subdivisionLen, int ticksLen, StringValueChangedCallback callback) Deprecated.UsegetFormatted(BeatTimeFormatter)instead.Registers an observer that reports the internal beat time value as formatted text, for example "012:03:00:01".- Parameters:
separator- the character used to separate the segments of the formatted beat time, typically ":", "." or "-"barsLen- the number of digits reserved for barsbeatsLen- the number of digits reserved for beatssubdivisionLen- the number of digits reserved for beat subdivisionsticksLen- the number of digits reserved for tickscallback- a callback function that receives a single string parameter- Since:
- API version 1
-