Hello Giulio thanks I managed to compile your custom render file however I had to add the following line (after comparing the custom render file of the example inside the Bela):
extern "C" {
#include <libpd/s_stuff.h>
};
Then running the patch I can see the serial data coming in properly. However when I modify the _main.pd to include my part of the patch it sounds awful like any data received results in a crack in the sound. I also get this in the console:
Building project ...
Build finished
Running project ...
Running Pd 0.51-4
Audio channels in use: 2
Analog channels in use: 8
Digital channels in use: 16
No MIDI device enabled
pd 0.51.4
bonk version 1.5
fiddle version 1.1 TEST4
pique 0.1 for PD version 23
sigmund~ version 0.07
main.pd 194 0 235 1 (hsl->canvas) connection failed
main.pd 195 0 235 2 (hsl->canvas) connection failed
main.pd 196 0 236 1 (hsl->canvas) connection failed
main.pd 197 0 236 2 (hsl->canvas) connection failed
warning: del: multiply defined
warning: del: multiply defined
warning: del: multiply defined
warning: del: multiply defined
floats: 4 3 0 0 0 0
floats: 4 5 0 0 0 0
floats: 4 4 0 0 0 0
floats: 6 4 0 0 0 0
floats: 5 4 0 0 0 0
floats: 4 7 0 0 0 0
floats: 1 8 0 0 0 0
floats: 4 4 0 0 0 0
floats: 2 5 0 0 0 0
Underrun detected: 1 blocks dropped
Underrun detected: 1 blocks dropped
Underrun detected: 1 blocks dropped
Underrun detected: 1 blocks dropped
Underrun detected: 1 blocks dropped
Underrun detected: 1 blocks dropped
Underrun detected: 1 blocks dropped
Underrun detected: 1 blocks dropped
Underrun detected: 1 blocks dropped
floats: 1 6 0 0 0 0
floats: 6 5 0 0 0 0
floats: 4 4 0 0 0 0
floats: 4 5 0 0 0 0
floats: 5 5 0 0 0 0
floats: 4 4 0 0 0 0
floats: 8 4 0 0 0 0
Underrun detected: 1 blocks dropped
Underrun detected: 1 blocks dropped
Underrun detected: 1 blocks dropped
I uploaded my patch and all necessary files here:
https://drive.google.com/drive/folders/1u6SsbkyR_uqD1gupZ5jPeoxg4ppOVp3q?usp=sharing
Any chance you could have a look and let me know if you find smth?
Thanks again for your help, much appreciated