Public Member Functions |
| void | addValueObserver (int range, Callable callback) |
| void | set (Number value, Number resolution) throws ControlSurfaceException |
| void | inc (Number increment, Number resolution) |
| void | addRawValueObserver (Callable callback) |
| void | setRaw (double value) |
| void | incRaw (double delta) |
Detailed Description
Instances of this interface represent numeric values that have an upper and lower limit.
- Since:
- Bitwig Studio 1.0
Definition at line 11 of file RangedValue.java.
Member Function Documentation
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:
- Bitwig Studio 1.1
Implemented in BeatTime.
Adds an observer which receives the normalized value of the parameter as an integer number within the range [0..range-1].
- Parameters:
-
| range | the range used to scale the value when reported to the callback |
| callback | a callback function that receives a single integer parameter |
- Since:
- Bitwig Studio 1.0
| void inc |
( |
Number |
increment, |
|
|
Number |
resolution |
|
) |
| |
Increments or decrements the value according to the given increment and resolution parameters.
Typically the resolution would be specified as the amount of steps the hardware control provides (for example 128) and just pass the integer value as it comes from the MIDI device. The host application will take care of scaling it.
- Parameters:
-
| increment | the amount that the current value is increased by |
| resolution | the resolution used for scaling |
- Since:
- Bitwig Studio 1.0
Increments / decrements the internal (raw) value.
- Parameters:
-
| delta | the amount that the current internal value get increased by. |
- Since:
- Bitwig Studio 1.1
Implemented in BeatTime.
| void set |
( |
Number |
value, |
|
|
Number |
resolution |
|
) |
| throws ControlSurfaceException |
Sets the value in an absolute fashion. The value will be scaled according to the given resolution.
Typically the resolution would be specified as the amount of steps the hardware control provides (for example 128) and just pass the integer value as it comes from the MIDI device. The host application will take care of scaling it.
- Parameters:
-
| value | integer number in the range [0 .. range-1] |
| resolution | the resolution used for scaling |
- Exceptions:
-
| ControlSurfaceException | if passed-in parameters are null |
- Since:
- Bitwig Studio 1.0
Set the internal (raw) value.
- Parameters:
-
| value | the new value with double precision. Range is undefined. |
- Since:
- Bitwig Studio 1.1
Implemented in BeatTime.
List of all members.
The documentation for this interface was generated from the following file: