Hi, Daniele.
Perhaps something like this?
import("stdfaust.lib");
btn = button("trigger");
down_samples = ba.sAndH(btn, fi.pole(btn, btn));
process = down_samples;
Ciao,
Dario
On Mon, 21 Dec 2020 at 14:56, Daniele Pagliero <[email protected]>
wrote:
> Hello,
>
> I need help understanding how to get the elapsed time or samples between
> 2 clicks on a button.
>
> Let's say I have a button like:
>
> btn = button("trigger");
>
> I need to know for how long the button was pressed.
> Then use the value to control a rwtable to create a variable length looper.
>
> I've searched in the docs but I didn't find any clue...
>
> Thanks,
> Daniele
>
>
>
>
>
> _______________________________________________
> Faudiostream-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/faudiostream-users
>
--
Dr Dario Sanfilippo
http://dariosanfilippo.com
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users