CSL
6.0
|
Go to the source code of this file.
Macros | |
#define | USE_TEST_MAIN |
#define | BASE_FREQ 440.0 |
FM using 2 oscs and 2 ADSRs. More... | |
Functions | |
void | testGliss () |
Apply a glissando to a sine with a LineSegment. More... | |
void | testSwell () |
test an amplitude swell More... | |
void | testARSin () |
AM and FM using the dynamic scale and frequency inputs. More... | |
void | testARSin2 () |
Do the same using the Envelope as an effect. More... | |
void | testFrequencyEnv () |
Test an envelope applied to frequency. More... | |
void | testAMFMEnvs () |
Test an envelope applied to frequency & scale. More... | |
void | testADSR2 () |
Demonstrate an ADSR. More... | |
void | testADSR_FM () |
void | testRandFreqEnv () |
test the rand env as the freq of a SOS More... | |
UnitGenerator * | createRandFreqEnvPatch (float dur) |
Function to create and answer a RandFreqEnv UGen patch. More... | |
void | test50RandFreqEnv () |
set up 50 RandFreqEnv patches More... | |
void | testEnvScale () |
test the use of scaling More... | |
void | testFancy_FM () |
FM with vibrato (with AR-envelope), attack chiff (filtered noise with AR-envelope), and random freq. drift and ampl. swell envelopes. More... | |
void | testComplexEnvelope () |
Make an envelope from scratch by adding breakpoints. More... | |
UnitGenerator * | sosNote (float dur, float frq, float amp) |
void | testManyRandSOS () |
void | runTests () |
#define USE_TEST_MAIN |
Definition at line 10 of file Test_Envelopes.cpp.
#define BASE_FREQ 440.0 |
FM using 2 oscs and 2 ADSRs.
Definition at line 139 of file Test_Envelopes.cpp.
Referenced by testADSR_FM(), and testFancy_FM().
void testGliss | ( | ) |
Apply a glissando to a sine with a LineSegment.
Definition at line 21 of file Test_Envelopes.cpp.
References csl::LineSegment::dump(), kExpon, kLine, csl::logMsg(), Osc, and runTest().
void testSwell | ( | ) |
test an amplitude swell
Definition at line 41 of file Test_Envelopes.cpp.
References csl::logMsg(), Osc, and runTest().
void testARSin | ( | ) |
AM and FM using the dynamic scale and frequency inputs.
Definition at line 53 of file Test_Envelopes.cpp.
References csl::logMsg(), Osc, runTest(), and csl::Envelope::trigger().
void testARSin2 | ( | ) |
Do the same using the Envelope as an effect.
Definition at line 67 of file Test_Envelopes.cpp.
References csl::logMsg(), Osc, runTest(), csl::Scalable::setScale(), and csl::Envelope::trigger().
void testFrequencyEnv | ( | ) |
Test an envelope applied to frequency.
Definition at line 79 of file Test_Envelopes.cpp.
References csl::Envelope::dump(), csl::logMsg(), Osc, runTest(), and csl::Envelope::trigger().
void testAMFMEnvs | ( | ) |
Test an envelope applied to frequency & scale.
Definition at line 96 of file Test_Envelopes.cpp.
References csl::logMsg(), Osc, runTest(), and csl::Envelope::trigger().
void testADSR2 | ( | ) |
Demonstrate an ADSR.
Definition at line 115 of file Test_Envelopes.cpp.
References csl::logMsg(), Osc, runTest(), and csl::Envelope::trigger().
void testADSR_FM | ( | ) |
Definition at line 142 of file Test_Envelopes.cpp.
References BASE_FREQ, csl::logMsg(), Osc, runTest(), csl::Scalable::setScale(), and csl::Envelope::trigger().
void testRandFreqEnv | ( | ) |
test the rand env as the freq of a SOS
Definition at line 166 of file Test_Envelopes.cpp.
References csl::CompOrCacheOscillator::createCache(), kFrequency, csl::logMsg(), runTest(), csl::Phased::setFrequency(), csl::Scalable::setScale(), and csl::Envelope::trigger().
UnitGenerator* createRandFreqEnvPatch | ( | float | dur | ) |
Function to create and answer a RandFreqEnv UGen patch.
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 test50RandFreqEnv | ( | ) |
set up 50 RandFreqEnv patches
Definition at line 197 of file Test_Envelopes.cpp.
References csl::Mixer::addInput(), createRandFreqEnvPatch(), csl::Mixer::deleteInputs(), csl::logMsg(), and runTest().
void testEnvScale | ( | ) |
test the use of scaling
Definition at line 215 of file Test_Envelopes.cpp.
References csl::logMsg(), Osc, runTest(), csl::Scalable::setScale(), and csl::Envelope::trigger().
void testFancy_FM | ( | ) |
FM with vibrato (with AR-envelope), attack chiff (filtered noise with AR-envelope), and random freq. drift and ampl. swell envelopes.
Definition at line 230 of file Test_Envelopes.cpp.
References BASE_FREQ, BW_BAND_PASS, kExpon, csl::logMsg(), Osc, runTest(), csl::Freeverb::setRoomSize(), csl::Scalable::setScale(), and csl::Envelope::trigger().
Referenced by runTests().
void testComplexEnvelope | ( | ) |
Make an envelope from scratch by adding breakpoints.
Definition at line 273 of file Test_Envelopes.cpp.
References csl::Envelope::addBreakpoint(), csl::CompOrCacheOscillator::createCache(), csl::Envelope::dump(), csl::fRand1(), csl::fRandM(), csl::fRandZ(), kFrequency, csl::logMsg(), runTest(), csl::Scalable::setScale(), and csl::Envelope::trigger().
UnitGenerator* sosNote | ( | float | dur, |
float | frq, | ||
float | amp | ||
) |
Definition at line 295 of file Test_Envelopes.cpp.
References csl::Envelope::addBreakpoint(), csl::SumOfSines::addPartial(), csl::CompOrCacheOscillator::createCache(), CSL_TWOPI, csl::fRand1(), csl::fRandM(), csl::fRandZ(), csl::Scalable::setScale(), and csl::Envelope::trigger().
Referenced by testManyRandSOS().
void testManyRandSOS | ( | ) |
Definition at line 314 of file Test_Envelopes.cpp.
References csl::Mixer::addInput(), csl::Mixer::deleteInputs(), csl::fRandM(), csl::logMsg(), runTest(), and sosNote().
void runTests | ( | ) |
Definition at line 332 of file Test_Envelopes.cpp.
References testFancy_FM().