adsr~ and filtergraph~

Dec 22, 2008 at 12:59pm

adsr~ and filtergraph~

Hi there,

probably an easy for one for you guys.

I am trying to apply filtering (filtergraph~ and biquad~) to some audio where the cutoff frequency is controlled by an adsr~ object.

Now, the output of adsr~ is a signal, when feeding this into the filter cutoff frequency inlet of filtergraph nothing seems to happen.

I reckon, this is quite a standard scenario and I am wondering what I am doing wrong. The filtergraph help mentions int/float inlets rather than feeding signals.

cheers, nick

#41434
Dec 22, 2008 at 2:37pm

Use snapshot~ between the envelope output of adsr~ and the desired input of filtergraph.

Or use a paralell line taht you feed with what your ramp times should be.

– Pasted Max Patch, click to expand. –

Best, J

#147523
Dec 22, 2008 at 2:43pm

the problem is that you are feeding a signal into an inlet that accepts max-messages (control data).
you’ll have to find another way of doing what you’re attempting.

i would recommend looking int the filtercoeff~ obj.

jml

#147524
Dec 22, 2008 at 2:45pm

note that although jko’s example is demonstrative (and a good exercise of sampling audio at control rate), it is computationally inefficient. you’ll want to keep as much in the signal domain as possible in the long run.

jml

#147525
Dec 22, 2008 at 2:58pm

Quote: jml wrote on Mon, 22 December 2008 15:45
—————————————————-
> note that although jko’s example is demonstrative (and a good exercise of sampling audio at control rate), it is computationally inefficient. you’ll want to keep as much in the signal domain as possible in the long run.
>
> jml
—————————————————-

Yeah, that’s reasonable I guess. I would use snapshot~ only for UI visualization purposes…

#147526

You must be logged in to reply to this topic.