Hello,

I've done this project where i have buttons that allow to change decay and filter (using a potentiometer) in the sounds being played. For visualisation and signalisation, those buttons also turn the corresponding LED.

When testing just the buttons and LED with a simple main.pd it works fine.

But when i had this same code to the main project I'm doing, sometimes the LEDs start glitching and the sounds as well. What I believe its happening is that the buttons enter this loop state and a possible fix ive done in arduino before is using this software interrupts

Also, this is how i do in the main.pd of the big project

It doesn't seam an Hardware problem as the setup is fine and works on the simple code so I believe the fix has to be software. As I'm still new in pd and Bela, I was wondering if you could help me out with this.

Idk if anyone has had this problem before. I think is quite common when using buttons.

do you get any printouts in the IDE console to warn you about underruns?