CSL  6.0
Test_Sources.cpp File Reference
#include "Test_Support.cpp"
#include "KarplusString.h"
#include <BasicFMInstrument.h>
#include <AdditiveInstrument.h>
#include <SndFileInstrument.h>
#include <Granulator.h>

Go to the source code of this file.

Macros

#define USE_TEST_MAIN
 

Functions

void testNoises ()
 Noise tests, WhiteNoise & PinkNoise - using Scalable to protect our ears. More...
 
void testString ()
 Plucked string simulation. More...
 
void testStringChorus ()
 Test a chorus of strings – this demo plays an endless loop of string arpeggii. For each arpeggio, it picks a starting pitch and pitch step, a starting position and position increment, and a duration; the inner loop then creates notes and sleeps. More...
 
void testMonoFilePlayer ()
 Test the sound file player - mono, stereo input files. More...
 
void testStereoFilePlayer ()
 
void testSoundFileTranspose ()
 Test the sound file player with rate shift. More...
 
void testWaveShaper ()
 Test the WaveShaper. More...
 
void testFMInstrument ()
 Test basic FM instrument. More...
 
void testSOSInstrument ()
 Test SOS instrument - play 3 different timbres. More...
 
void testFancyFMInstrument ()
 
void testSndFileInstrument ()
 Test SoundFile instrument. More...
 
void addSndtoBank (const char *nam, UGenVector &snds, UGenVector &pans, Mixer &mix)
 
void testSndFileBank ()
 
void testGrainCloud ()
 
void test_ifft ()
 
void test_vector_ifft ()
 do vector cross-fade the long way More...
 
void runTests ()
 

Macro Definition Documentation

#define USE_TEST_MAIN

Definition at line 11 of file Test_Sources.cpp.

Function Documentation

void testNoises ( )

Noise tests, WhiteNoise & PinkNoise - using Scalable to protect our ears.

Definition at line 21 of file Test_Sources.cpp.

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

void testString ( )

Plucked string simulation.

Definition at line 41 of file Test_Sources.cpp.

References csl::fRandM(), csl::logMsg(), runTest(), csl::Scalable::setScale(), and csl::KarplusString::trigger().

void testStringChorus ( )

Test a chorus of strings – this demo plays an endless loop of string arpeggii. For each arpeggio, it picks a starting pitch and pitch step, a starting position and position increment, and a duration; the inner loop then creates notes and sleeps.

Definition at line 54 of file Test_Sources.cpp.

References csl::Mixer::addInput(), csl::coin(), done, csl::fRandM(), csl::fRandZ(), csl::iRandM(), csl::keyToFreq(), csl::logMsg(), csl::IO::setRoot(), csl::Scalable::setScale(), csl::sleepSec(), and theIO.

void testMonoFilePlayer ( )

Test the sound file player - mono, stereo input files.

Definition at line 120 of file Test_Sources.cpp.

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

void testStereoFilePlayer ( )

Definition at line 139 of file Test_Sources.cpp.

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

void testSoundFileTranspose ( )

Test the sound file player with rate shift.

Definition at line 172 of file Test_Sources.cpp.

References csl::IO::clearRoot(), csl::logMsg(), csl::IO::setRoot(), csl::sleepSec(), and theIO.

void testWaveShaper ( )

Test the WaveShaper.

Definition at line 193 of file Test_Sources.cpp.

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

void testFMInstrument ( )
void testSOSInstrument ( )

Test SOS instrument - play 3 different timbres.

Definition at line 243 of file Test_Sources.cpp.

References csl::logMsg(), csl::AdditiveInstrument::playMIDI(), and runTest().

void testFancyFMInstrument ( )
void testSndFileInstrument ( )

Test SoundFile instrument.

Definition at line 285 of file Test_Sources.cpp.

References csl::logMsg(), csl::SndFileInstrument::play(), and runTest().

void addSndtoBank ( const char *  nam,
UGenVector snds,
UGenVector pans,
Mixer mix 
)

Definition at line 295 of file Test_Sources.cpp.

References csl::Mixer::addInput().

Referenced by testSndFileBank().

void test_ifft ( )

Definition at line 395 of file Test_Sources.cpp.

References csl::logMsg(), runTest(), and csl::IFFT::setBinMagPhase().

Referenced by runTests().

void test_vector_ifft ( )

do vector cross-fade the long way

Definition at line 409 of file Test_Sources.cpp.

References csl::logMsg(), runTest(), and csl::IFFT::setBinMagPhase().

void runTests ( )

Definition at line 434 of file Test_Sources.cpp.

References test_ifft().