10#ifndef DSY_CROSSFADE_H
11#define DSY_CROSSFADE_H
51 inline void Init(
int curve)
54 curve_ = curve < CROSSFADE_LAST ? curve : CROSSFADE_LIN;
62 float Process(
float &in1,
float &in2);
68 inline void SetPos(
float pos) { pos_ = pos; }
72 inline void SetCurve(uint8_t curve) { curve_ = curve; }
75 inline float GetPos(
float pos) {
return pos_; }
78 inline uint8_t
GetCurve(uint8_t curve) {
return curve_; }
Definition crossfade.h:42
void SetCurve(uint8_t curve)
Definition crossfade.h:72
float GetPos(float pos)
Definition crossfade.h:75
void Init(int curve)
Definition crossfade.h:51
float Process(float &in1, float &in2)
Definition crossfade.cpp:12
void SetPos(float pos)
Definition crossfade.h:68
void Init()
Definition crossfade.h:59
uint8_t GetCurve(uint8_t curve)
Definition crossfade.h:78
FIR Filter implementation, generic and ARM CMSIS DSP based.
Definition adenv.h:16