Test_Oscillators.cpp File Reference

#include "Test_Support.cpp"
#include "SoundFileL.h"
#include "SimpleSines.h"
#include <SHARC.h>

Defines

#define USE_TEST_MAIN
#define TABLE_SIZE   128

Functions

void testSweep ()
 Apply a glissando and swell to a sine oscillator with LineSegments.
void testSimpleSines ()
 Simplest sine wave tests using the tutorial example classes.
void testBasicWaves ()
 Test/demonstrate the basic waveform oscillators.
void testScaledSin ()
 Scaled sine wave -- 3 methods: with a MulOp and using the Sine's scale input.
void testWavetableInterpolation ()
void testAMFMSin ()
 AM and FM using the dynamic scale and frequency inputs.
void dumpAMFMSin ()
 use the dumpTest call to dump the whole graph
void testSumOfSinesCached ()
 Play a sum of sines waveform -- cached harmonic overtone series.
void testSumOfSines1F ()
 Play a sum of sines waveform -- 1/f + noise.
void testSumOfSinesSteps ()
void testSumOfSinesNonCached ()
void testWaveTableFromFile ()
 Load an oscillator's wave table from a file -- a single cycle of the vowel "oo" from the word "moon".
void test_SHARC ()
 Test loading the SHARC samples.
void test_SHARC2 ()
 test vector SHARC - load 3 spectra into SOS oscillators and cross-fade
void runTests ()


Define Documentation

#define USE_TEST_MAIN
 

#define TABLE_SIZE   128
 

Test truncating and interpolating wavetable osc with a small wavetable (these should sound different because of the truncation error in the first tone)


Function Documentation

void testSweep  ) 
 

Apply a glissando and swell to a sine oscillator with LineSegments.

void testSimpleSines  ) 
 

Simplest sine wave tests using the tutorial example classes.

void testBasicWaves  ) 
 

Test/demonstrate the basic waveform oscillators.

void testScaledSin  ) 
 

Scaled sine wave -- 3 methods: with a MulOp and using the Sine's scale input.

void testWavetableInterpolation  ) 
 

void testAMFMSin  ) 
 

AM and FM using the dynamic scale and frequency inputs.

void dumpAMFMSin  ) 
 

use the dumpTest call to dump the whole graph

void testSumOfSinesCached  ) 
 

Play a sum of sines waveform -- cached harmonic overtone series.

void testSumOfSines1F  ) 
 

Play a sum of sines waveform -- 1/f + noise.

void testSumOfSinesSteps  ) 
 

void testSumOfSinesNonCached  ) 
 

Now test an uncached inharmonic series constructor format 3 = list of (freq/amp/phase) for (not-necessarily-harmonic) overtones Since it's a non-harmonic overtone series in this example, we can't cache a wavetable

void testWaveTableFromFile  ) 
 

Load an oscillator's wave table from a file -- a single cycle of the vowel "oo" from the word "moon".

void test_SHARC  ) 
 

Test loading the SHARC samples.

void test_SHARC2  ) 
 

test vector SHARC - load 3 spectra into SOS oscillators and cross-fade

void runTests  ) 
 


Generated on Sat Oct 17 14:12:34 2009 for CSL by  doxygen 1.4.5-20051010