interesting question.....
I was going to say, yeah, this is how i do it in MEC/Orac:
https://github.com/TheTechnobear/MEC/blob/master/mec-kontrol/pd/kontrolrack/KontrolRack.cpp
void KontrolRack_dspState(bool onoff) {
#ifndef __COBALT__
t_pd *pdSendObj = gensym("pd")->s_thing;;
if (!pdSendObj) {
post("KontrolRack_dspState: unable to find pd to change dsp state to %d", onoff);
} else {
t_atom args[2];
SETSYMBOL(&args[0], gensym("dsp"));
SETFLOAT(&args[1], onoff);
pd_forwardmess(pdSendObj, 2, args);
}
#endif
}
but as you can see, Ive explicitly disabled this for Bela...
unfortunately, I can't remember doing this... my assumption is it must have crashed, so I disabled it.
note:
I send lots of pd messages around like this on bela and its fine, its just this one that is disabled.
also it works fine on other platforms - its also possible libPD might be the culprit here.