form caption("Untitled") size(400, 300), guiMode("queue"), pluginId("dnw7")
keyboard bounds(8, 158, 381, 95)
-n -d -+rtmidi=NULL -M0 --midi-key-cps=4 --midi-velocity-amp=5
; Initialize the global variables.
ksmps = 32
nchnls = 2
0dbfs = 1
;instrument will be triggered by keyboard widget
instr 1
kEnv madsr .1, .2, .6, .4
aOut oscili p5, p4, 1
outs aOut*kEnv, aOut*kEnv
endin
;causes Csound to run for about 7000 years...
f 1 0 1024 7 0 512 1 0 -1 512 0
f0 z