CSL  6.0
Test_Effects.cpp File Reference
#include "Test_Support.cpp"
#include "RingBuffer.h"
#include "Clipper.h"
#include "FIR.h"
#include "InOut.h"
#include <unistd.h>

Go to the source code of this file.

Classes

class  SAFliter
 

Macros

#define USE_TEST_MAIN
 

Functions

void testClipper ()
 Clip some sound. More...
 
void testFIR ()
 Test the FIR filter - LPF @ 300 Hz on pink noise. More...
 
void testFilters ()
 Filter tests. More...
 
void testBiquads ()
 
void testDynamicFilters ()
 Test dynamic BP filter. More...
 
void testDynamicVoice ()
 Test dynamic BP filter on a sound file. More...
 
void testNDynamicFilters ()
 Pan and mix many sines. More...
 
void testReverb ()
 Play noise bursts into reverb. More...
 
void testStereoverb ()
 Play noise bursts into reverb. More...
 
void testMultiTap ()
 Play noise bursts into multi-tap delay line. More...
 
void testBlockUpsizer ()
 Test a block resizer by running a random gliss with a small block size. More...
 
void testBlockDownsizer ()
 Test a block resizer by running a random gliss with a huge block size. More...
 
void testSplitJoin1 ()
 Test a Split/Join with a cross-over filter pair LPF to left, HPF to the right. More...
 
void testSplitJoin2 ()
 Test a Split/Join with a cross-over filter pair LPF to left, HPF to the right mixer added in just for show. More...
 
void testFanMix1 ()
 Test a fan-out + mixer using UnitGenerator's built-in fan-out. More...
 
void testFanMix2 ()
 Test a real fan-out + mixer. More...
 
UnitGeneratorcreateRandFreqEnvPatch (float dur)
 Function to create and answer a RandFreqEnv UGen patch this is in test envelopes. More...
 
void testDynamicMixer ()
 Mix a few sources, adding/dropping graphs. More...
 
void testSAFilter ()
 
void runTests ()
 

Macro Definition Documentation

#define USE_TEST_MAIN

Definition at line 14 of file Test_Effects.cpp.

Function Documentation

void testClipper ( )

Clip some sound.

Definition at line 32 of file Test_Effects.cpp.

References csl::logMsg(), Osc, and runTest().

void testFIR ( )

Test the FIR filter - LPF @ 300 Hz on pink noise.

Definition at line 44 of file Test_Effects.cpp.

References csl::logMsg(), csl::FIR::print_taps(), and runTest().

void testFilters ( )

Filter tests.

Definition at line 81 of file Test_Effects.cpp.

References BW_BAND_PASS, BW_BAND_STOP, BW_HIGH_PASS, BW_LOW_PASS, csl::logMsg(), and runTest().

void testBiquads ( )
void testDynamicFilters ( )

Test dynamic BP filter.

Definition at line 228 of file Test_Effects.cpp.

References BW_BAND_PASS, csl::logMsg(), and runTest().

void testDynamicVoice ( )

Test dynamic BP filter on a sound file.

Definition at line 244 of file Test_Effects.cpp.

References BW_BAND_PASS, csl::CGestalt::dataFolder(), csl::logMsg(), and runTest().

void testNDynamicFilters ( )

Pan and mix many sines.

Definition at line 258 of file Test_Effects.cpp.

References csl::Mixer::addInput(), BW_BAND_PASS, CSL_PI, csl::Mixer::deleteInputs(), csl::fRandM(), csl::logMsg(), Osc, and runTest().

void testBlockUpsizer ( )

Test a block resizer by running a random gliss with a small block size.

Definition at line 375 of file Test_Effects.cpp.

References csl::logMsg(), Osc, runTest(), and csl::Envelope::trigger().

void testBlockDownsizer ( )

Test a block resizer by running a random gliss with a huge block size.

Definition at line 391 of file Test_Effects.cpp.

References csl::logMsg(), Osc, runTest(), and csl::Envelope::trigger().

void testSplitJoin1 ( )

Test a Split/Join with a cross-over filter pair LPF to left, HPF to the right.

Definition at line 407 of file Test_Effects.cpp.

References BW_HIGH_PASS, BW_LOW_PASS, csl::CompOrCacheOscillator::createCache(), csl::logMsg(), runTest(), csl::Phased::setFrequency(), csl::Scalable::setScale(), and csl::Envelope::trigger().

void testSplitJoin2 ( )

Test a Split/Join with a cross-over filter pair LPF to left, HPF to the right mixer added in just for show.

Definition at line 431 of file Test_Effects.cpp.

References csl::Mixer::addInput(), BW_HIGH_PASS, BW_LOW_PASS, csl::CompOrCacheOscillator::createCache(), csl::logMsg(), runTest(), csl::Phased::setFrequency(), csl::Scalable::setScale(), and csl::Envelope::trigger().

void testFanMix1 ( )

Test a fan-out + mixer using UnitGenerator's built-in fan-out.

Definition at line 458 of file Test_Effects.cpp.

References csl::Mixer::addInput(), csl::fRand1(), csl::logMsg(), Osc, runTest(), csl::Scalable::setScale(), and csl::Envelope::trigger().

void testFanMix2 ( )

Test a real fan-out + mixer.

Definition at line 480 of file Test_Effects.cpp.

References csl::Mixer::addInput(), csl::fRand1(), csl::logMsg(), Osc, runTest(), csl::Scalable::setScale(), and csl::Envelope::trigger().

UnitGenerator* createRandFreqEnvPatch ( float  dur)

Function to create and answer a RandFreqEnv UGen patch this is in test envelopes.

Function to create and answer a RandFreqEnv UGen patch this is in test envelopes.

Definition at line 183 of file Test_Envelopes.cpp.

References CSL_PI, csl::fRandM(), Osc, and csl::Scalable::setScale().

Referenced by test50RandFreqEnv(), and testDynamicMixer().

void testSAFilter ( )

Definition at line 596 of file Test_Effects.cpp.

References csl::CGestalt::dataFolder(), csl::logMsg(), and runTest().

void runTests ( )

Definition at line 609 of file Test_Effects.cpp.

References testStereoverb().