Control a 1440ehx looper through MIDI messages

Hey Giedrius, thank you for answering.
I solved it but in a very cheesy way.

My SC code was wrong, SC MIDI messages in Linux have another syntax:

m = MIDIOut(0); // use virtual source port “out0”
m.connect(1); // connect to MIDIClient.destinations[1]

Instead of

m = MIDIOut.new(1); //connect to pisound MIDI

See (MIDIOut | SuperCollider 3.11.2 Help) for a detailed explanation.
But anyway, Idk why I still can’t send messages through the MIDI OUT port of the Pisound. I had to implement an USB interface and it looks ugly. Any suggestion or trial?

BTW: Whenever I try the ouroboros you mentioned :

amidi -p hw:1,0 -d

I get this error:

ALSA lib rawmidi_hw.c:235:(snd_rawmidi_hw_open) open /dev/snd/midiC1D0 failed: No such file or directory
cannot open port “hw:1,0”: No such file or directory

I have almost no experience with linux shell, so that could be it.