My code doesn’t give syntax errors, it just hangs Cabbage. Is there something wrong with my loop?
<CsInstruments>
sr=44100 ;set sample rate of entire vst
ksmps = 32 ;k cycle
nchnls = 1 ;mono output
0dbfs = 1
;instrumentMidiReader will be triggered by keyboard widget
instr 1, instrumentMidiReader
; kMidiEventType, kMidiEvent2 ,k3,k4 = midiin() ;put midi data into variables TODO
; kEnv madsr .1, .2, .6, .4
; aOut vco2 p5, p4
; outs aOut*kEnv, aOut*kEnv
endin
opcode assignMidiChannelsToTheReaderInstrument, 0, 0
iCount init 0
while iCount < 128 do
massign iCount, 1 ;assign instrumentMidiReader to midi channel iCount
iCount += 1
od
endop
assignMidiChannelsToTheReaderInstrument()