adsr~ and filtergraph~

monohusche's icon

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

jko's icon

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.

Max Patch
Copy patch and select New From Clipboard in Max.

Best, J

jml's icon

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

jml's icon

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

jko's icon

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...