LMMS
Loading...
Searching...
No Matches
dsp::linear_ramp Class Reference

Algorithm for a constant time linear ramp. More...

#include <inertia.h>

Public Member Functions

 linear_ramp (int _ramp_len)
 Construct for given ramp length.
void set_length (int _ramp_len)
 Change ramp length.
int length ()
void start_ramp (float start, float end)
float ramp (float value)
 Return value after single step.
float ramp_many (float value, int count)
 Return value after many steps.

Public Attributes

int ramp_len
float mul
float delta

Detailed Description

Algorithm for a constant time linear ramp.

Constructor & Destructor Documentation

◆ linear_ramp()

dsp::linear_ramp::linear_ramp ( int _ramp_len)
inline

Construct for given ramp length.

Member Function Documentation

◆ length()

int dsp::linear_ramp::length ( )
inline

◆ ramp()

float dsp::linear_ramp::ramp ( float value)
inline

Return value after single step.

◆ ramp_many()

float dsp::linear_ramp::ramp_many ( float value,
int count )
inline

Return value after many steps.

◆ set_length()

void dsp::linear_ramp::set_length ( int _ramp_len)
inline

Change ramp length.

◆ start_ramp()

void dsp::linear_ramp::start_ramp ( float start,
float end )
inline

Member Data Documentation

◆ delta

float dsp::linear_ramp::delta

◆ mul

float dsp::linear_ramp::mul

◆ ramp_len

int dsp::linear_ramp::ramp_len

The documentation for this class was generated from the following file: