I try to watch object output values through a numbered object in the pd patch window, but the numbered object is displaying zero instead of the correct values. Why it's not working?
Cheers, Klemenz;
Can't watch numbered object in pd patch window
That is because when working with Bela, you are using Pd merely as an editor for the patch, you then transfer the patch to the board, where it runs on its own and does not send any notifications to the Pd that is running on the host. If you want to visualise changing messages/num boxes you should therefore use the [print]
object, as its outputs will be displayed on the Bela console. If you want to visualise audio-rate signals, then use the Bela scope by sending signals to [dac~ 27 28 29 30]
.
thanks for the fast reply! the problem is that i already get buffer underruns when i start printing to the console. I thought I could avoid them when pd is handling it regardless of the audio processing..
- Edited
No that is not possible. You could throttle the printing, and only print every 50ms or something like that, as you wouldn't probably be able to read the printed value more often than that anyhow. Or you can add a bit of hysteresis after the [change]
object, so that it only prints if it changes by a significant amount. Or you can convert the message to a signal and send it to the scope:
[change]
|
[sig~]
|
[dac~ 27]
If underruns are still a problem after that, in order to reduce them you can increase the block size in the project settings and see if that helps.