[PD-dev] querying number of overlaps
IOhannes m zmölnig
zmoelnig at iem.at
Mon Sep 10 23:39:17 CEST 2018
On 9/10/18 11:01 PM, Alexandre Torres Porres wrote:
> Hello, I wanna be able to know the number of overlaps the [block~] object
> is set to...
> any ideas how I should get that magical number in an external code? Is that
> information accessible anywhere?
it's encoded into the s_sr member of the t_signal you get in the "dsp"
s_sr = overlap * samplerate = overlap * resamplefactor * sys_samplerate.
there's no way to distinguish between a signal that was upsampled by 2
and a signal that has an overlap-factor of 2.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: OpenPGP digital signature
More information about the Pd-dev