volume limiter in
i have a program which i want to limit by using a volume limiter for the input.
Basically i use a guitar as input and want the dry signal to go through when i strum harder on the guitar. So basically the quieter I strum the dryer the sound and the harder I strum the wetter the signal.
If someone could help me to set this up it'd be great
What you need to do is get the amplitude envelope of the sound.
There's several ways to do this:
average~ numOfSamplesToAverage rms
will take a running average over N samples and extract the RMS power
envelope. Note that because it's a running average, there will be a
latency factor. Look at it on a scope~ and see if it's what you want.
If you want faster attacks, the slide~ and rampsmooth~ objects are
really great. The nice thing about these objects is that they have
different transition times for attacks and decays. I've found that
short attacks and long decays work well if you want to use this
envelope to multiply the output of a lowpass-filtered pink~ to give an
auto-snare, for instance.
I've found that something like:
abs~
|
slide~ 20 4000
|
*~ 2.5
|
clip~ 0. 1.
will give me a nice smooth envelope with crisp attacks. Alternatively,
you can set it to slowly attack as well as slowly decay, so that it
takes a while to transition from state to state.
Sometimes you may have to use a combination of both average~ and
slide~, etc. The best approach is to look at the behavior that you're
getting from these on a scope~, and then you can see if things need to
be further smoothed, etc.
Peter McCulloch
www.petermcculloch.com
I am not at all sure what you wanted, but this is what I understood. When you play the guitar, the backing track gets turned down. The louder you play, the quieter the backing becomes.
Let us know if this is not what you wanted. If it was, then this patch should give you some ideas:
Peter
(I presume you know you just have to copy all the text below and then paste it into an empty max patcher)
i meant that i have a patch which distorts the guitar sound and i want to have a volume limiter which acts as a gate to only let through the guitar which i strum loudly, into the patch. Therefore the softer i strum the less goes through the patch.
So the louder the guitar sound is then the more 'wet' sound comes through and the softer i strum the 'dryer' or 'cleaner' the sound is - so normal unchanged guitar signal is let through with less vigorous strumming.
if that makes any sense :)