Urgent. "volume filter" how??
Hi all! I’m in urgent need of some help with the following, and it needs to be up and running by the end of tomorrow, so any tips are appreciated!
What I need to do in Max: Effectively a volume filter. I have recorded audio fragments with loud sounds (skateboarders grinding, landing, etc.) and background/quiet sound (people talking, skateboards rolling around, etc). De audio output (just the ezdac I suppose) should be on when there is loud sound, and off the rest of the time. It’s ok for background sound to be audible during loud sounds, but I just need to have to audio off while there’s only background sound and nothing else.. I’ve been playing around with the thresh~ object but can’t quite get it to work and not sure if that’s the best way..
Thanks a lot!
What you’re looking for is called a gate or expander. I’m sure there’ll be something in the /Examples folder, but the process is really quite simple; you need to avg~ the incoming signal then use that to open a gate~. You set a threshold at which you want the gate~ to open so that the signal is let through only when the average signal level is above the threshold, i.e. during the loud bits.
Look at >=~ for setting the threshold and opening/closing your gate~ and maybe trapezoid~ or line~ to prevent clicks when your gate is opened/closed.
I could post an example, but it will be much more instructive/fun for you to build it yourself ;-)
I started making a noise gate for you, went something like this:
----------begin_max5_patcher---------- 807.3ocyXssaiBCD8YxWAhGqHUbMoYk1UZ+NpphLfavsfcjsS1zV09su9BlR RcRHcSXyCPfwClyblyL1j2F43kQ1.Ydt+v8dWGm2F43nLIM3zbuiWMXSdEfo byCupNCR870CgJTFIYOMNJwXT3BBWA4pGHrw3iDLGCpgJ++MEAp53NYE23eT i0k.ddIBuXNEly0.LNM31Te2oo2F36JtVbNRb18glGQOK7WVB096gvbOeWuL .dgWqWRfvPup7ILRLIl2GUfNNjNGhAYUpgCjC89nQxS9+y7SzklehlEJ4jqb 9A9GAaXhMNbiB7d23JPZnMZKvJsEchzV3Ans3HorJLPwaIQGm2drh.36mw9F rhXFE30R3GN6hqZzge+UM5n+JQ2.xXeXi1hOKz1ATMgyh6nZhmdbdigVfEun yoroBsFd6B.B2xAqAz1.6qitjBYPLGvQDbmXQkzC9L+mLqSbzkUCNHqtM2kb .t6NsLKQ8yr.Sc2Q4NgnSdzp.qPrN0g1jZFrQnHSf20bdI.igUaEFLvZXwb. mSQYq3vOuh0jIZRERxtZEj7nwrwdWjrBi3L9KZvzPIa4PsHgJGahohYmQQJ7 NdZf0wQhoWpdMoQCWrkSFdz1DvJIT99ULa4qnG0Batp8TIcM+bh53bRcMTtX zNU27RgfsjTU3NdrqHO.xeVdEEVAALnk59yS2xfi1sLUU0GN4tuT1eFppguV .xs0UaxAWJr2wPS4WbftvK0b18gyWeYglYIqlP3keHeQxi.KQTp0HJ972ldh NgEe2+k9z6gj90O+Xea6I4RuqGCwDqW2+phWtwl3O9hyHMqJEpqNT04WKLBn vZCgK9mTzvISO0M43eRjixGwJJ3c+TTEhj12lwXjUzbyaz7QBtehpBHiivsK 1eeaIkaXqOknhBHtamxBDStqgh8uC09BG4tO6EbBFD3jzCzjNXnIrO4pICVt JsGnIdvPi7OInW4pABN8U5DMLRmY8.N6zK3hRO8.N6zK3pnxZXfSeZBFdckr 9t4J8BXfkKWCorloTADwh6OQnpuuyWcKBquUMidT3Zjw+jQxY68Q+E.H0WPr -----------end_max5_patcher-----------
that’s just one way of doin it.
And I too encourage you to try making one yrself first, it’s a fun exercise :) I think you might also be able to do noise gating with omx.comp~ but I can’t figure out how. And surely there are other examples of gating on the forums.
Definitely don’t "turn audio on and off". When it’s off, none of the MSP objects (anything with a ~ at the end) will function :P
Forums > MaxMSP