size -- number of points in the table. Must be a power of 2 or power-of-2 plus 1 (see f statement).
start, end -- first and last value to be stored; the GEN draws a curve that goes from start to end: exp(start) .... exp(end). The points stored are uniformly spaced between these to the table size
rescale -- if not zero the table is not rescaled
Examples
Here is a simple example of the GENexp routine. It uses the file genexp.csd.
<CsoundSynthesizer><CsOptions>; Select audio/midi flags here according to platform-odac ;;;realtime audio out;-iadc ;;;uncomment -iadc if realtime audio input is needed too; For Non-realtime ouput leave only the line below:; -o genexp.wav -W ;;; for file output any platform</CsOptions><CsInstruments>sr=44100ksmps=32nchnls=20dbfs=1instr1aswplinseg0.01,p3*.5,.49,p3*.5,0.01;index sweep functionaindexposcilaswp,110,1;sound to waveshapeatabletableiaindex,p4,1,.5;waveshape indexaenvlinen0.8,.01,p3,.02;amplitude envelopeasig=(atable*aenv)*p5;impose envelope and scaleasigdcblock2asig;get rid of DCoutsasig,asigendin</CsInstruments><CsScore>f108192101;sine wavef208192"exp"0150f308192"exp"030i10322i1+333e</CsScore></CsoundSynthesizer>
These are the diagrams of the waveforms of the GENexp routines, as used in the example: