Forums > MaxMSP

[+~] with [delay~] and feedback doesn't work

January 23, 2014 | 4:20 pm

Hello,

I am trying to make an audio rate counter. If I connect [sig~ 1] to a [+~] and the outlet of the [+~] to a [delay~ 1 1] and then back into the right inlet of the [+~], I would expect the output to be 1 higher every time.

But, it doesn’t work. Why not? Is this because of signal vector things?

Thanks in advance!

Boris

– Pasted Max Patch, click to expand. –


ak
January 24, 2014 | 8:06 am

You can’t have a loop in DSP chain. Try with tap{in,out}~, but keep in mind it will (at best) count vectors, not samples. Look up +=~, and of course gen~ is natural environment for this kind of processing.

<code>

– Pasted Max Patch, click to expand. –

</code>


January 24, 2014 | 5:04 pm

it works fine with a send~ and receive~ object. just place the output of the delay to the send~ and the receive~ back into the delay~

like this

– Pasted Max Patch, click to expand. –

January 25, 2014 | 10:42 am

That’s because a send~ receive~ pair automatically introduces a sample’s delay. It will still work obviously but it’s just something to bare in mind if you want sample precision.


January 25, 2014 | 9:44 pm

Ah no kidding? Well that’s useful to know in the future. Thanks!


January 26, 2014 | 5:10 am

Just to clarify, in this case (because there’s a loop), send~/receive~ introduce one "signal vector" of delay.


January 26, 2014 | 11:29 pm

I might be oversimplifying here but if your goal is to have an audio rate counter checking out the [count~] object might be useful.

- Luigi


Viewing 7 posts - 1 through 7 (of 7 total)