CSL  6.0
Test_Envelopes.cpp File Reference
#include "Test_Support.cpp"
#include <unistd.h>

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...
 
UnitGeneratorcreateRandFreqEnvPatch (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...
 
UnitGeneratorsosNote (float dur, float frq, float amp)
 
void testManyRandSOS ()
 
void runTests ()
 

Macro Definition Documentation

#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().

Function Documentation

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 ( )
void testRandFreqEnv ( )
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 testManyRandSOS ( )
void runTests ( )

Definition at line 332 of file Test_Envelopes.cpp.

References testFancy_FM().