25 Effect(
void ) { lastFrame_.resize( 1, 1, 0.0 ); };
28 unsigned int channelsOut(
void )
const {
return lastFrame_.channels(); };
42 bool isPrime(
unsigned int number );
49inline void Effect :: setEffectMix( StkFloat mix )
52 oStream_ <<
"Effect::setEffectMix: mix parameter is less than zero ... setting to zero!";
56 else if ( mix > 1.0 ) {
57 oStream_ <<
"Effect::setEffectMix: mix parameter is greater than 1.0 ... setting to one!";
65inline bool Effect :: isPrime(
unsigned int number )
67 if ( number == 2 )
return true;
69 for (
int i=3; i<(int)sqrt((
double)number)+1; i+=2 )
70 if ( (number % i) == 0 )
return false;
virtual void clear()=0
Reset and clear all internal state.
const StkFrames & lastFrame(void) const
Return an StkFrames reference to the last output sample frame.
Definition Effect.h:31
virtual void setEffectMix(StkFloat mix)
Set the mixture of input and "effected" levels in the output (0.0 = input only, 1....
Definition Effect.h:49
Effect(void)
Class constructor.
Definition Effect.h:25
unsigned int channelsOut(void) const
Return the number of output channels for the class.
Definition Effect.h:28
An STK class to handle vectorized audio data.
Definition Stk.h:279
static void handleError(const char *message, StkError::Type type)
Static function for error reporting and handling using c-strings.
Stk(void)
Default constructor.
The STK namespace.
Definition ADSR.h:6