Home Information Classes Download Usage Mail List Requirements Links Tutorial

# Delay.h

    00001 /***************************************************/
    00019 /***************************************************/
    00020
    00021 #if !defined(__DELAY_H)
    00022 #define __DELAY_H
    00023
    00024 #include "Filter.h"
    00025
    00026 class Delay : protected Filter
    00027 {
    00028 public:
    00029
    00031   Delay();
    00032
    00034   Delay(long theDelay, long maxDelay);
    00035
    00037   virtual ~Delay();
    00038
    00040   void clear();
    00041
    00043
    00046   void setDelay(long theDelay);
    00047
    00049   long getDelay(void) const;
    00050
    00052   MY_FLOAT energy(void) const;
    00053
    00055
    00060   MY_FLOAT contentsAt(unsigned long tapDelay) const;
    00061
    00063   MY_FLOAT lastOut(void) const;
    00064
    00066
    00069   virtual MY_FLOAT nextOut(void) const;
    00070
    00072   virtual MY_FLOAT tick(MY_FLOAT sample);
    00073
    00075   virtual MY_FLOAT *tick(MY_FLOAT *vector, unsigned int vectorSize);
    00076
    00077 protected:
    00078   long inPoint;
    00079   long outPoint;
    00080   long length;
    00081   MY_FLOAT delay;
    00082 };
    00083
    00084 #endif
    00085

The Synthesis ToolKit in C++ (STK)
©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.