43 using namespace Nsound;
50 static const char *
THIS_FILE =
"DelayLine_UnitTest.cc";
70 cout <<
TEST_HEADER <<
"Testing DelayLine::write() & read() ...";
74 for(
uint32 i = 0; i < 100; ++i)
83 gold =
Buffer(
"gold/DelayLine_out1.wav");
91 <<
"Output did not match gold file!"
94 diff.
plot(
"data - gold");
static const float64 GAMMA
static void show()
Acutally draw the plots to the screen.
static const char * THIS_FILE
void DelayLine_UnitTest()
void plot(const std::string &title="Buffer") const
Requires matplotlib. Creates a plot of this Buffer.
#define TEST_ERROR_HEADER
virtual float64 generate(const float64 &frequency)
This is a real-time method for the wavetable oscillator.
static void setIEEEFloat(boolean flag)
void abs()
Modifies the Buffer by making any negative value positive.
A Buffer for storing audio samples.
static void setDefaultSampleSize(uint32 size)
Buffer drawLine(const float64 &duration, const float64 &litude_start, const float64 &litude_finish) const
This method draws a linear line beteween 2 points.
float64 getMax() const
Returns the maximum sample value in the Buffer.