I fixed it now. Can you udpate your Bela core code following the procedure here https://learn.bela.io/using-bela/bela-techniques/updating-bela/ ?
vivian do i define the digital inputs in a seperate synth def to the existing synth engine def im working on?
Either should work.
vivian is there an existing example of digital in with send reply i could study?
not yet. I think it should be something like this to send on positive transitions (DigitalIn
value going from 0 to 1):
~ctrl = {
var a = DigitalIn.kr(0);
SendReply.kr(a, '/ctrl', [a]);
}.play;
and maybe the following to trigger for both 0 -> 1 and 1 -> 0?
~ctrl = {
var a = DigitalIn.kr(0);
SendReply.kr(a, '/ctrl', [a]);
SendReply.kr((1 - a) , '/ctrl', [a]);
}.play;
there are surely more classy way of doing it (e.g.: with a one-sample delay that could implement a one-zero filter?), but I don't know supercollider!