Hi
I am having problems when I use OSClisten in Cabbage. It works well when running the code after having opened Cabbage fresh, but the second time I try to run/save it, it is silent. Also, it often complaints when it is starting that the listener can’t be started on the chosen port. It looks like Cabbage isn’t closing off the OSC processes when it is not in running mode. Thus, I have to close Cabbage each time I want to run my code, which is naturally slowing the workflow considerably.
Below is some very basic code that should demonstrate the problem, that is, if it can be reproduced. I’m on OSX 10.14.6 with Cabbage 2.8.0 (but was the same on 2.8.10).
Best, Andreas
form caption("Untitled") size(400, 300), guiMode("queue") pluginId("def1") rslider bounds(296, 162, 100, 100), channel("gain"), range(0, 1, 0, 1, .01), text("Gain"), trackerColour("lime"), outlineColour(0, 0, 0, 50), textColour("black") -n -d -+rtmidi=NULL -M0 -m0d ; Initialize the global variables. ksmps = 32 nchnls = 2 0dbfs = 1giPhys OSCinit 9010
instr 1
kGain cabbageGetValue “gain”
kans, kdata[] OSClisten giPhys, “/test”, “fff”
a1 oscil .1, 220
outs a1kGain, a1kGain
endin