Cabbage Logo
Back to Cabbage Site

Using '--port=' from Cabbage

I’m using your ‘simple synth’ example, and it works.

I change the to read:
-n -d -+rtmidi=NULL -M0 --midi-key-cps=4 --midi-velocity-amp=5 --port=9000

and it still works, with the keyboard.

If I set up a udp listener on a terminal:
nc -l 8888

and with the other machine put in
cat | nc 10.42.0.1 8888
the cabbage-running machine will echo lines of text.

If I’m running the cabbage example
and on the other machine do:
cat | nc 10.42.0.1 9000
and
i1 0 10 60 60
I’m expecting to get a note; but I’m not.
How should this be done?

should have been cat | nc 10.42.0.1 9000 -u
but that doesn’t work either.

I may need to work on this further, but I’ve just received the most likely csound explanation:

"
–port expects orchestra code rather than score code.
So, for that scoreline, you could send:

schedule 1, 1, 3, 440, 0.5
"

Okay, that worked.
Now, to do the same with 2nd computer handling most midi events, sequencing, stuff that doesn’t need fast audio-rate processing!

Glad you have it sorted. I’ve never used the port flag before.