DEL1


DEL1 is a simple, non-regenerating delay instrument which takes an input soundfile and mixes it with a delayed copy of itself with an optional difference in amplitude. The resulting sound is placed left and right in a stereo field.

Syntax:


makegen(1, 24, 1000, t0, a0, t1, a1) /* amplitude envelope in time/amplitude pairs */

DEL1(outskip, inskip, duration, amplitude, delaytime, delayamp, inchan)

in comment form:

/* DEL1: single delay instrument
*       into stereo output
*
*  p0 = output start time
*  p1 = input start time
*  p2 = duration
*  p3 = amplitude multiplier
*  p4 = delay time
*  p5 = delay amplitude multiplier
*  p6 = input channel number 
*  assumes function slot 1 is the amplitude envelope
*/

An example score:

rtsetparams(44100, 2)
load("DEL1")
rtinput("/sndh/bob.dole.mono.snd")
makegen(1, 24, 1000, 0,0, 0.5,1, 3.5,1, 7,0)
DEL1(0, 0, 7, 1, .14)

makegen(1, 24, 1000, 0,0, 0.1,1, 1.5,0.21, 3.5,1, 7,0)


Another score, using real-tine audio input:

set_option("full_duplex_on")
rtsetparams(44100, 2, 512)
load("DEL1")
rtinput("AUDIO", "MIC")
makegen(1, 24, 1000, 0,0, 1,1, 16,1, 17,0)
DEL1(0, 0, 17, 1, 4.3, 1)