33 const StkFloat TARGET_THRESHOLD = 0.000001;
58 void setTau( StkFloat tau );
64 void setT60( StkFloat t60 );
76 StkFloat
lastOut(
void )
const {
return lastFrame_[0]; };
79 StkFloat
tick(
void );
93 void sampleRateChanged( StkFloat newRate, StkFloat oldRate );
106 value_ = factor_ * value_ + constant_;
109 if ( target_ > value_ ) {
110 if ( target_ - value_ <= TARGET_THRESHOLD ) {
116 if ( value_ - target_ <= TARGET_THRESHOLD ) {
121 lastFrame_[0] = value_;
129 #if defined(_STK_DEBUG_)
130 if ( channel >= frames.
channels() ) {
131 oStream_ <<
"Asymp::tick(): channel and StkFrames arguments are incompatible!";
136 StkFloat *samples = &frames[channel];
137 unsigned int hop = frames.
channels();
138 for (
unsigned int i=0; i<frames.
frames(); i++, samples += hop )