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

#include <bypass.h>

Public Member Functions

 bypass (int _ramp_len=1024)
bool update (bool new_state, uint32_t nsamples)
void crossfade (float *inputs[], float *outputs[], uint32_t nbuffers, uint32_t offset, uint32_t nsamples)
 Apply ramp to prevent clicking.

Private Attributes

inertia< linear_rampramp
float first_value
float next_value

Constructor & Destructor Documentation

◆ bypass()

dsp::bypass::bypass ( int _ramp_len = 1024)
inline

Member Function Documentation

◆ crossfade()

void dsp::bypass::crossfade ( float * inputs[],
float * outputs[],
uint32_t nbuffers,
uint32_t offset,
uint32_t nsamples )
inline

Apply ramp to prevent clicking.

◆ update()

bool dsp::bypass::update ( bool new_state,
uint32_t nsamples )
inline

Pass the new state of the bypass button, and return the ramp-aware bypass state

Member Data Documentation

◆ first_value

float dsp::bypass::first_value
private

◆ next_value

float dsp::bypass::next_value
private

◆ ramp

inertia<linear_ramp> dsp::bypass::ramp
private

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