I understand this is kind of a question more for supercollider then for the bela, but most of the time people hook up a midi controller to a computer running the client side of supercollider. Bela is just running the server side right?
The normal code I use for connecting a midi keyboard is below and I don't think it will work
(
var notes, on, off;
MIDIClient.init;
MIDIIn.connectAll;
notes = Array.newClear(128); // array has one slot per possible MIDI note
on = MIDIFunc.noteOn({ |veloc, num, chan, src|
notes[num] = Synth(\default, [\freq, num.midicps,
\amp, veloc * 0.00315]);
});
off = MIDIFunc.noteOff({ |veloc, num, chan, src|
notes[num].release;
});
q = { on.free; off.free; };
)