Hi all

I recently got my Bela kit and am very excited to start working with it.

I hooked up a piezo trigger as the tutorial describes and ran the program on my board. It triggers successfully, but when there is no trigger happening, there is a lot of high pitched noise. Triggering the piezo effectively gates the noise, but I can't figure out the source of the noise.

I don't have experience with C++ but the code seems straight forward enough. Any tips for troubleshooting this?

When I run a PD patch with the same piezo triggering a simple sine wave LFO, it works fine and there is no extra noise in the signal.

Hi James, great to hear you're giving Bela a spin. From what you've said it that sounds like the sample might be re-triggering continually and giving you that high pitch squeal. Are you getting a warning message in the console window saying

Too many messages have been printed to the console too quickly. Reduce your printing frequency

Try increasing the thresholdToTrigger and see if this helps. This example also has the scope displaying the input signal, part of the triggering routine and output signal. It might be worth open ing the scope and having a look there to see if you can see this re-triggering if it persists.

Hi Robert,

Yes, I was seeing that error. Raising the threshold up to around .5 did the trick. Thanks for the help!

15 days later