lokki , hola , small world 🙂
ok, so i tested both this patch , and also the one you sent me on the axoloti forum, with my soundplane on macOS 10.12.5 against PD 0.46.7 , and i had no issues with it crashing.
I set the soundplane to send midi messages (notes, pb, cc74) at 500 msgs/sec , and worked 'fine'.
I say fine, as I'm not quite sure what your patch is attempting to do... if i set the glide time to something, then it glides between notes... regardless of midi channel, which is what it appears to be coded to do, just not what id expect of a guitar mode patch.
id expected you to have an oscillator per channel/string and to then have PB per strings, and then your 'legato' functionality to work, where notes are sent on the same channel, as this is the norm for midi guitar mode.
... anyway, no matter, it certainly doesn't crash.
sorry, its a bit of a hassle for me to set this up with bela, though if you do full guitar mode, i might be tempted to try 🙂
EDIT: ok, i hacked a guitar mode, by having 4 copies of your patch, which i added bendin to, and made each version listen on a different channel, and this worked fine for me. (again on macOS). I'm sure this is not he best way to do it, but it showed that all midi messages were being processed correctly (at 500msgs/sec).
perhaps the issues is your usb midi interface? ... id suspect that your midi messages are some how being corrupted at some stage.
fyi, with the Soundplane, I'm receiving all the touch data over a proprietary usb protocol, then the soundplane application is interpreting this, and converting into midi messages (at prescribed throttle rate) and sending via CoreMidi via a virtual midi output.
(not that Ive had an issue sending using CoreMidi to physical midi outputs, i do this all the time sending the soundplane/eigenharp MPE data to Axoloti 😉)