Forums > MaxMSP

adsr~ and filtergraph~

December 22, 2008 | 12:59 pm

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
December 22, 2008 | 2:37 pm

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



jml
December 22, 2008 | 2:43 pm

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
December 22, 2008 | 2:45 pm

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
December 22, 2008 | 2:58 pm

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…


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