[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"
routine.
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.

dsamr
IOhannes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20180910/04c0d1c1/attachment.sig>


More information about the Pd-dev mailing list