wah


wah is an instrument that runs a soundfile through a sweeping filter that can be defined by a tracking function.

Syntax:


makegen(1, 24, t0, a0, t1, a1...) /* tracking function for the filter between its low and high boundary frequencies */

wah(outskip, inskip, duration, freq_lo, freq_hi, bandwidth)

in comment form:

/* wah - a sweeping wah filter
*
* p0 = outskip
* p1 = inskip
* p2 = duration
* p3 = lo wah freq
* p4 = hi wah freq (hz)
* p5 = bandwidth
* 
* function 1 will be the 'tracking' function for the filter
*
*/

An example score:

load("wah")
input("/sndh/bob.dole.snd")
output("/sndh/bob.dole.wah.snd")
makegen(1, 7, 1000, 0, 100, 1, 100, 0, 100, 1, 100, 0, 100, 1, 100, 0, 400, 1)
wah(0, 0, 15, 100, 1000, 20)