Nsound
0.9.4
|
Go to the source code of this file.
Macros | |
#define | TEST_HEADER |
#define | TEST_ERROR_HEADER |
#define | SUCCESS " SUCCESS!" |
Functions | |
void | Buffer_UnitTest () |
void | BufferResample_UnitTest () |
void | DelayLine_UnitTest () |
void | FFTransform_UnitTest () |
void | FilterBandPassFIR_UnitTest () |
void | FilterBandPassIIR_UnitTest () |
void | FilterBandRejectFIR_UnitTest () |
void | FilterBandRejectIIR_UnitTest () |
void | FilterCombLowPassFeedback_UnitTest () |
void | FilterDelay_UnitTest () |
void | FilterHighPassFIR_UnitTest () |
void | FilterHighPassIIR_UnitTest () |
void | FilterLeastSquaresFIR_UnitTest () |
void | FilterLowPassFIR_UnitTest () |
void | FilterLowPassIIR_UnitTest () |
void | FilterParametricEqualizer_UnitTest () |
void | Generator_UnitTest () |
void | Sine_UnitTest () |
void | Triangle_UnitTest () |
void | Wavefile_UnitTest () |
#define TEST_HEADER |
Definition at line 34 of file UnitTest.h.
#define TEST_ERROR_HEADER |
Definition at line 38 of file UnitTest.h.
#define SUCCESS " SUCCESS!" |
Definition at line 42 of file UnitTest.h.
Referenced by Buffer_UnitTest(), BufferResample_UnitTest(), DelayLine_UnitTest(), FFTransform_UnitTest(), FilterCombLowPassFeedback_UnitTest(), FilterDelay_UnitTest(), FilterLeastSquaresFIR_UnitTest(), FilterParametricEqualizer_UnitTest(), Generator_UnitTest(), Sine_UnitTest(), Triangle_UnitTest(), and Wavefile_UnitTest().
void Buffer_UnitTest | ( | ) |
Definition at line 48 of file Buffer_UnitTest.cc.
References Nsound::Buffer::abs(), Nsound::Generator::drawLine(), GAMMA, Nsound::Generator::generate(), Nsound::Buffer::getAbs(), Nsound::Buffer::getLength(), Nsound::Buffer::getMax(), Nsound::Buffer::getMin(), Nsound::Buffer::ones(), Nsound::Buffer::plot(), Nsound::circular_iterator::reset(), Nsound::Buffer::reverse(), Nsound::Wavefile::setDefaultSampleSize(), Nsound::Plotter::show(), Nsound::Buffer::smooth(), Nsound::Buffer::subbuffer(), SUCCESS, TEST_ERROR_HEADER, TEST_HEADER, testBufferAdd(), and THIS_FILE.
Referenced by main().
void BufferResample_UnitTest | ( | ) |
Definition at line 52 of file BufferResample_UnitTest.cc.
References GAMMA, Nsound::Generator::generate(), Nsound::Buffer::getAbs(), Nsound::Buffer::getLength(), Nsound::Buffer::getMax(), Nsound::Buffer::getResample(), Nsound::Buffer::plot(), Nsound::Wavefile::setDefaultSampleSize(), Nsound::Wavefile::setIEEEFloat(), Nsound::Plotter::show(), SUCCESS, TEST_ERROR_HEADER, TEST_HEADER, and THIS_FILE.
Referenced by main().
void DelayLine_UnitTest | ( | ) |
Definition at line 55 of file DelayLine_UnitTest.cc.
References Nsound::Buffer::abs(), Nsound::Generator::drawLine(), GAMMA, Nsound::Generator::generate(), Nsound::Buffer::getMax(), Nsound::Buffer::plot(), Nsound::DelayLine::read(), Nsound::Wavefile::setDefaultSampleSize(), Nsound::Wavefile::setIEEEFloat(), Nsound::Plotter::show(), SUCCESS, TEST_ERROR_HEADER, TEST_HEADER, THIS_FILE, and Nsound::DelayLine::write().
Referenced by main().
void FFTransform_UnitTest | ( | ) |
Definition at line 53 of file FFTransform_UnitTest.cc.
References Nsound::Buffer::abs(), Nsound::Generator::buzz(), Nsound::FFTransform::fft(), GAMMA, Nsound::Buffer::getAbs(), Nsound::FFTChunk::getImaginary(), Nsound::Buffer::getLength(), Nsound::Buffer::getMax(), Nsound::FFTChunk::getReal(), Nsound::FFTransform::ifft(), M_PI, Nsound::Buffer::plot(), Nsound::FFTChunk::setCartesian(), Nsound::Wavefile::setDefaultSampleSize(), Nsound::Wavefile::setIEEEFloat(), Nsound::FFTChunk::setPolar(), Nsound::Plotter::show(), SUCCESS, TEST_ERROR_HEADER, TEST_HEADER, and THIS_FILE.
Referenced by main().
void FilterBandPassFIR_UnitTest | ( | ) |
void FilterBandPassIIR_UnitTest | ( | ) |
void FilterBandRejectFIR_UnitTest | ( | ) |
void FilterBandRejectIIR_UnitTest | ( | ) |
void FilterCombLowPassFeedback_UnitTest | ( | ) |
Definition at line 55 of file FilterCombLowPassFeedback_UnitTest.cc.
References Nsound::Buffer::abs(), Nsound::Generator::drawLine(), Nsound::FilterCombLowPassFeedback::filter(), GAMMA, Nsound::Buffer::getMax(), Nsound::Buffer::normalize(), Nsound::Buffer::plot(), Nsound::Wavefile::setDefaultSampleSize(), Nsound::Plotter::show(), SUCCESS, TEST_ERROR_HEADER, TEST_HEADER, and THIS_FILE.
Referenced by main().
void FilterDelay_UnitTest | ( | ) |
Definition at line 52 of file FilterDelay_UnitTest.cc.
References Nsound::FilterDelay::filter(), GAMMA, Nsound::Generator::generate(), Nsound::AudioStream::getAbs(), Nsound::AudioStream::getMax(), Nsound::AudioStream::plot(), Nsound::Wavefile::setDefaultSampleSize(), Nsound::Plotter::show(), Nsound::Generator::silence(), SUCCESS, TEST_ERROR_HEADER, TEST_HEADER, and THIS_FILE.
Referenced by main().
void FilterHighPassFIR_UnitTest | ( | ) |
void FilterHighPassIIR_UnitTest | ( | ) |
void FilterLeastSquaresFIR_UnitTest | ( | ) |
Definition at line 54 of file FilterLeastSquaresFIR_UnitTest.cc.
References Nsound::Buffer::abs(), Nsound::FilterLeastSquaresFIR::filter(), GAMMA, Nsound::Buffer::getAbs(), Nsound::Buffer::getdB(), Nsound::Filter::getFrequencyResponse(), Nsound::Buffer::getMax(), Nsound::FilterLeastSquaresFIR::makeKernel(), Nsound::Buffer::plot(), Nsound::RECTANGULAR, Nsound::Wavefile::setDefaultSampleSize(), Nsound::Wavefile::setIEEEFloat(), Nsound::FilterLeastSquaresFIR::setWindow(), Nsound::Plotter::show(), sr, SUCCESS, TEST_ERROR_HEADER, TEST_HEADER, and THIS_FILE.
Referenced by main().
void FilterLowPassFIR_UnitTest | ( | ) |
void FilterLowPassIIR_UnitTest | ( | ) |
void FilterParametricEqualizer_UnitTest | ( | ) |
Definition at line 52 of file FilterParametricEqualizer_UnitTest.cc.
References Nsound::Buffer::abs(), Nsound::Generator::drawLine(), Nsound::FilterParametricEqualizer::filter(), GAMMA, Nsound::Buffer::getMax(), Nsound::FilterParametricEqualizer::HIGH_SHELF, Nsound::FilterParametricEqualizer::LOW_SHELF, Nsound::FilterParametricEqualizer::PEAKING, Nsound::Buffer::plot(), Nsound::Wavefile::setDefaultSampleSize(), Nsound::Wavefile::setIEEEFloat(), Nsound::Plotter::show(), SUCCESS, TEST_ERROR_HEADER, TEST_HEADER, and THIS_FILE.
Referenced by main().
void Generator_UnitTest | ( | ) |
Definition at line 52 of file Generator_UnitTest.cc.
References Nsound::Buffer::abs(), Nsound::Generator::buzz(), Nsound::Generator::drawLine(), Nsound::Generator::drawSine(), Nsound::Generator::drawSine2(), GAMMA, Nsound::Generator::generate(), Nsound::Buffer::getMax(), Nsound::Plotter::grid(), Nsound::Plotter::legend(), Nsound::Plotter::plot(), Nsound::Buffer::plot(), Nsound::Generator::setChorus(), Nsound::Wavefile::setDefaultSampleSize(), Nsound::Wavefile::setIEEEFloat(), Nsound::Generator::setSeed(), Nsound::Plotter::show(), SUCCESS, TEST_ERROR_HEADER, TEST_HEADER, and THIS_FILE.
Referenced by main().
void Sine_UnitTest | ( | ) |
Definition at line 51 of file Sine_UnitTest.cc.
References Nsound::Buffer::abs(), Nsound::Generator::drawLine(), GAMMA, Nsound::Generator::generate(), Nsound::Generator::generate2(), Nsound::Buffer::getMax(), Nsound::Buffer::plot(), Nsound::Generator::setChorus(), Nsound::Wavefile::setDefaultSampleSize(), Nsound::Wavefile::setIEEEFloat(), Nsound::Generator::setSeed(), Nsound::Plotter::show(), SUCCESS, TEST_ERROR_HEADER, TEST_HEADER, and THIS_FILE.
Referenced by main().
void Triangle_UnitTest | ( | ) |
Definition at line 51 of file Triangle_UnitTest.cc.
References Nsound::Buffer::abs(), Nsound::Generator::drawLine(), GAMMA, Nsound::Generator::generate(), Nsound::Buffer::getMax(), Nsound::Buffer::plot(), Nsound::Wavefile::setDefaultSampleSize(), Nsound::Wavefile::setIEEEFloat(), Nsound::Plotter::show(), SUCCESS, TEST_ERROR_HEADER, TEST_HEADER, and THIS_FILE.
Referenced by main().
void Wavefile_UnitTest | ( | ) |
Definition at line 54 of file Wavefile_UnitTest.cc.
References Nsound::AudioStream::abs(), GAMMA, Nsound::Generator::generate(), Nsound::AudioStream::plot(), Nsound::Wavefile::setDefaultSampleSize(), Nsound::Plotter::show(), SUCCESS, TEST_ERROR_HEADER, TEST_HEADER, and THIS_FILE.
Referenced by main().