adsr~ and filtergraph~
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.
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.
----------begin_max5_patcher---------- 958.3oc2X1tiahCEF92IWEVHsRcknQ9CLFVo9i85XUUkC3j3sfIBb5LcqZu1 WaCz.LDFxLYXFMRIXiwXd8iOGer8OVuxaaw8hJOveA9GvpU+X8pUthrErp49 Ud476Sx3Utp4s8jVWn77qej5TtTkIztmgNWXwI8vRqKR+8ih5Om2VtZuG3yM O9HWmbPp1+kRQhttFTJdCzGfYPWxuu962Ql5jTw1+8iHnmsretds8h+L6L6j YZQ49R9wC+ZztTTSg7S5BSGna+4PxoxuIRJxJJqkKxpOi7hBwLZ2bnNRNmW9 UQYm2BtgBiifA9ilq6q1GqrlR2dmLUenWCFX9rANEDXRQ1Lg1Frey8fwiLYk 1y2.krB9ikostRkdxgPBhYoBAG3RfTaBhf6nic66IdFMLJj32ImiqnwG1iPs Ca6JT5J4+45LQahiihgsiToE4bop8CXMhvPZW6nCi.wHLghis5.aZo3PWNDh ENX.cae4GiHLri8s4df7U0Vc8bNpD55RaZGya3auV+CEtIrskHMVYPS2qsib t.SMc2YpMlZ+lOAmhbQUEeunErZw8tASOm2GDBPlKluA.gson1hF0+AecSIb 1VxNbp34tG382kRdl2ksxBXQNHypYcTSxElofMlICBsgFSQQrm.vTh6LM7C3 UlTIFEJjQgB4hPwu4+yBNXnyzHHbpYQGGMFu0aGUpT7iUGJz+xZzbKrYpmS5 owFDgViCmST7jQXn2P1Xzro2cEAQwS268GFM8pn.wYSPYahYAATlI6jf.Geq cft3LNuhyoffwCnBJZpoUHQKEUPuhTI5JgxM2TIoHOWXVzwPnTJxD7JA3C4U +4U3WAeJP.G3VWJxjPoDTL1GvHS5w.WJLTcpRaVqC3C63I5hRPwN.O+XlTeJ U.9HPJbKFD7IPH7Od44D1s3Ojw5HNDYLVvjomXAsTXJUjv+9xXqfbVFwzMDF DCMKnLbxHvX7slAush0fpCx102Y5nMjf24.gE12I4QvA8cNNBwC7WdDdD9Nm GAt.rlc1vXQrYXerT6tgmVUN9YlPGkRAWhRUx8JKB5l6YrcGDwcTCnP2JUlN tbvhEvgq07jutHQbPwrAVLSGwIfLWH3da21ZGbhgNU31taOxTUbpLocXtYKT fyZHUTokJtVVn5TG6I5.nmOZFYZpP0EF4xziERktQCW3HNlqjXu8jDZNZpec dokjcKeOpjrdSKnlrKLXdZJX4zDctZhrbZJbtZBubZhMWMgVLMMv7cbMQWVS 72htcQuzZxbyOW++Oe7DnA -----------end_max5_patcher-----------
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.
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.
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.
Yeah, that’s reasonable I guess. I would use snapshot~ only for UI visualization purposes…