Is there a way to read these keys in Cabbage. As the “KEY_PRESSED” channel doesn’t return those, I tried the FLTK opcode FLkeyIn which is supposed to read these keys as well as normal ascii. But it seems maybe like the FLTK is conflicting with Cabbage? It crashed a few times and when it’s running it has to have the separate FLTK pannel up + it still doesn’t return anything.
Is there another way to read special keys?
This is what I tried:
FLpanel "FLkeyIn", 400, 300, -1, -1, 5, 1, 1 FLpanelEnd FLrun instr 1 kGain chnget "gain" kascii FLkeyIn ktrig changed kascii if (kascii > 0) then printf "Key Down: %i\n", ktrig, kascii else printf "Key Up: %i\n", ktrig, -kascii endif a1 inch 1 a2 inch 2 outs a1*kGain, a2*kGain endin </CsInstruments> <CsScore> ;causes Csound to run for about 7000 years... f0 z ;starts instrument 1 and runs it for a week i1 0 [60*60*24*7] </CsScore> </CsoundSynthesizer>