bounds(0, 0, 0, 0)
form caption("Untitled") size(400, 300), colour(58, 110, 182), pluginid("def1")
keyboard bounds(8, 158, 381, 95)
-n -d -+rtmidi=NULL -M0 -m0d --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
a1 oscili p5,p4,1
chnmix a1, "instr"
endin
instr 2
a1 oscili p5,p4,2
chnmix a1, "instr"
endin
instr 3
a1 oscili p5,p4,3
chnmix a1, "instr"
endin
instr 4
a1 chnget "instr"
outs a1, a1
chnclear "instr"
endin
;causes Csound to run for about 7000 years...
f0 z
i1 0 z
i2 0 z
i3 0 z
i4 0 z
f 1 0 16384 10 1 ;Sine Wave
f 2 0 512 7 1 512 -1 ;Sawtooth
f 3 0 16384 10 1 0 0.3 0 0.2 0 0.14 0 .111 ;Square