Many thanks @giuliomoro :
giuliomoro libpd's "logic" block size on Bela is decided at compile time and it is always going to be 16 (just like it is 64 on regular Pd). The blocksize you change at runtime (using -p, or the IDE) is the "hardware" blocksize (similar to the effect of the "blocksize" parameter in Pd).
Ah, so there are two of these! Good to know, thanks for mentioning this...
giuliomoro That is outdated, I just fixed it: the minimum block size is 16, as you found out from DEFDACBLKSIZE
Thanks for that - however, I just want to make sure - the doc says Actual block size can be adjusted at runtime using the -C command line parameter, however, if I run a PD executable from the command line, I get:
--period [-p] period: Set the hardware period (buffer) size in audio samples
--analog-channels [-C] val: Set the number of ADC/DAC channels (default: 8)
So, shouldn't the doc state Actual block size can be adjusted at runtime using the -p command line parameter?
giuliomoro If you want a "logical" block size of 64 in your libpd patch on Bela, you need to have a [block~ 64] in a subpatch. You normally want to also change the hardware blocksize to 64, or you will end up having dropouts with low CPU usage
Thanks for this too - one of the difficulties I find with the PD documentation, is that when I make a [block~]
, and I right-click for help, the help patch mostly talks about [switch~]
, not about [block~]
- and it is never mentioned explicitly that [block~]
takes an integer argument. Nor that it should be placed in a subpatch, which I still don't understand why (probably as a consequence of "You may have at most one block~/switch~ object in any window.", and "block~/switch~ and dac~/adc~ are incompatible", from the help file).
In any case, I did some experiments with this, and it seems the -p
setting takes precedence over whatever number [block~ N]
might be set to - I'll post about that in https://forum.bela.io/d/716-help-with-underruns-using-sdt-for-puredata-on-bela ...