[PD] counting how many times an audio file is looped

Claude Heiland-Allen claude at mathr.co.uk
Sat Oct 6 10:37:56 CEST 2012


On 06/10/12 06:24, IOhannes m zmölnig wrote:
> On 10/05/2012 11:25 PM, Rick T wrote:
>>
>> Is there another way I should be doing this
>>
>
> trust Pd's timing.

that's the foundation.

> count the bangs that [tabplay~] will output via it's 2nd inlet.

For long files, yes.

(Is [tabplay] clock-aware? it perhaps could be?)


For microloops, I'd prefer [wrap~]:

[6(
  |
[0, $1 123(   plays $1 times in 123ms total
   |
[vline~]
   |
[wrap~]    desired length in samples
   |       /
[*~       ]
   |        desired offset into array in samples
   |       /
[+~       ]
   |
[tabread4~ array]


Claude
-- 
http://mathr.co.uk



More information about the Pd-list mailing list