Control Surface API  1.1.11
RangedValue Interface Reference
Inheritance diagram for RangedValue:

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

void addRawValueObserver ( Callable  callback)

Add an observer which receives the internal raw of the parameter as floating point.

Parameters:
callbacka callback function that receives a single numeric parameter with double precision.
Since:
Bitwig Studio 1.1

Implemented in BeatTime.

void addValueObserver ( int  range,
Callable  callback 
)

Adds an observer which receives the normalized value of the parameter as an integer number within the range [0..range-1].

Parameters:
rangethe range used to scale the value when reported to the callback
callbacka 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:
incrementthe amount that the current value is increased by
resolutionthe resolution used for scaling
Since:
Bitwig Studio 1.0
void incRaw ( double  delta)

Increments / decrements the internal (raw) value.

Parameters:
deltathe 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:
valueinteger number in the range [0 .. range-1]
resolutionthe resolution used for scaling
Exceptions:
ControlSurfaceExceptionif passed-in parameters are null
Since:
Bitwig Studio 1.0
void setRaw ( double  value)

Set the internal (raw) value.

Parameters:
valuethe 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:
 All Classes Functions Variables