HISE Docs

sdouble

A double precision smoothed floating point value.

Class methods

reset

void reset()

Stops the ramping and sets the value to the target.

set

void set(double newTargetValue)

Sets a new target value and resets the ramp position to the beginning.

isActive

bool isActive() const

Returns true if the value is being smoothed at the moment.

advance

double advance()

Returns the currently smoothed value and calculates the next ramp value.

get

double get() const

Returns the current value.

prepare

void prepare(double samplerate, double timeInMilliseconds)

Setup the processing. The ramp time will be calculated based on the samplerate.