[PD] pause writing to delay line / hybrid of array and delay

Dario Sanfilippo sanfilippo.dario at gmail.com
Fri Feb 26 15:33:51 CET 2021

Hi, Max.

You could have a looper feeding into a variable delay line whose delay is
modulated appropriately.

A looper would be an N-sample feedback loop with some input feeding into
it, where the input gain and the feedback gain are mutually exclusive. That
would prevent new elements from being added and you'd have the same
recirculating material when you freeze it:

y[n] = Rx[n] + (1-R)y[n-N]

with R being 1 to write into it, or 0 to freeze it.

The output of the looper could then feed an N-sample delay line whose delay
is offset consistently to always point to the same buffer position:

delay[n] = (lineN[n] + element[n]) % N


lineN[n] = (1[n-1] + lineN[n-1]) % N

and element[n] is an int between 0 and N - 1 determining the array element
that is being output.

I don't have this in PD but here's the Faust implementation:



On Fri, 26 Feb 2021 at 14:03, Max <abonnements at revolwear.com> wrote:

> Hi list,
> I'm looking for concepts like a queue or arrayDeque in Pd.
> Like a delay line which I can pause adding new elements into and it will
> act like an array until I decide to add more. At audio rate.
> Is there something simple that I have overlooked? What's the best
> strategy to implement this?
> M.
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20210226/b1c81dc1/attachment-0001.htm>

More information about the Pd-list mailing list