-odac ;activates real time sound output
;Example by Iain McCurdy
sr = 44100
ksmps = 32
nchnls = 1
0dbfs = 1
giSine ftgen 0, 0, 2^12, 10, 1; a sine wave
instr 1
aEnv line 0.5, p3, 0; single segment envelope. time value defined by note duration
aSig poscil aEnv, 500, giSine; an audio oscillator
out aSig; audio sent to output
endin
; p1 p2 p3
i 1 0 1
i 1 2 0.2
i 1 3 4
e