/* ECHO: DELAY - Length of echo (ms) VOLUME - Initial volume of echo (0-100) DECAY - Rate of decay or ratio of echo (0-100) */ #define ECHO(DELAY,VOLUME,DECAY) \ expand { \ add DECAY/10*DELAY \ } \ echo { \ leftlength DELAY \ rightlength DELAY \ leftdecay DECAY/100 \ rightdecay DECAY/100 \ leftvolume VOLUME/100 \ rightvolume VOLUME/100 \ } /* REVERB: LENGTH - total length of reverberation (ms) ATTACK - time it takes for the reverb to gain full strength (ms) ECHOES - max amount of impulses in reverb (0-100) MIX - ratio of dry and wet signal (0-100) */ #define REVERB(LENGTH,ATTACK,ECHOES,MIX) \ expand { \ add LENGTH\ }\ reverb { \ length LENGTH \ attack ATTACK \ echoes ECHOES \ amount MIX/100 \ original 100-MIX/100 \ } /* DISTORTION: AMOUNT - amount of distortion (0-99) */ #define DISTORTION(AMOUNT) \ normalize {}\ overdrive { \ threshold 100-AMOUNT/100 \ level 100-AMOUNT/100 \ } /* FILTER: CUTOFF - cutoff frequency (Hz) RESONANCE - filter resonance (0-100) TYPE - filter type (low, high, band, or notch) */ #define FILTER(CUTOFF,RESONANCE,TYPE) \ filter { \ cutoff CUTOFF\ resonance 100-RESONANCE/100*1.3+.1\ TYPE \ } /* PHASER: CUTOFF - cutoff frequency (Hz) RESONANCE - filter resonance (0-100) DEPTH - depth of phaser (0-100) SPEED - length of one cycle (ms) */ #define PHASER(CUTOFF,RESONANCE,DEPTH,SPEED) \ phaser { \ cutoff CUTOFF\ resonance 100-RESONANCE/100*1.3+.1\ low \ depth DEPTH/100*3+1 \ speed SPEED \ } /* LOAD: FILENAME - name of wavefile to load */ #define LOAD(FILENAME) loadwave{ name FILENAME }