11 #ifndef RAMP_H_INCLUDED
12 #define RAMP_H_INCLUDED
14 #include "../headers/defines.hpp"
22 ramp& set(Flt target, Int time = 0);
23 ramp& setIfNew(Flt target, Int time = 0);
27 AUDIOBUFFER & operator()();
28 AUDIOBUFFER & getSample();
52 lint& set(Flt target, Int time);
53 lint& setIfNew(Flt target, Int time);
60 aFlt targetValue, currentValue, step;
68 void FastFadeIn(
sample& s, UInt length);
69 void FastFadeOut(
sample& s, UInt length);
70 void ChangeGain(
sample& s, Flt currentGain, Flt newGain, UInt length);
78 #endif // RAMP_H_INCLUDED