Inverted meter~

bkshepard's icon

Does a downward-reading version of meter~ exist? I'm creating a compressor and I'd like to have a meter that shows gain reduction in the standard format where the LEDs push down from the top rather than climb up from the bottom. Thanks.

Steven Miller's icon

The standard way to do this is to have your signal drive the meter, not have a special type of meter. The meter should always just reflect the actual state of the incoming signal. Therefor, a signal which reflects the level below threshold (i.e. sits at full scale when no gain reduction is occuring) rather than a meter which does this for you is more useful, I think. Of course, your mileage may vary.

Depending on how your patcher works, you could for example compare the current output signal against the current input signal (assuming the output is lower) and then subtract this difference from a full-scale signal, and viola! you have the gain reduction signal.

Have a look inside the help and tutorial patches for the OMX limiter/compressor objects for how they use standard meters to show gain reduction, as well.

Hope this helps!

bkshepard's icon

Yeah, I had seen that as well. I've seen a number of hardware and software compressors and expanders that exhibit the behavior I describe and was hoping to replicate that behavior.

Steven Miller's icon

Unless I misunderstand your post, my suggestion will also give you the behavior you desire, no?

bkshepard's icon

What I'm trying to do is have the first LED that illuminates be at the top of the vertical meter~ object, then each successive LED is further down the meter until it gets all the way to the bottom. So, instead of it being a bottom-up meter~, it would be a top-down meter~. I hope that makes sense.

Steven Miller's icon

Ahh, ok, I see what you mean. My suggestion would effectively turn segments off from the top down rather than turn them on. Same info, different aesthetic. Let me know what you find.

Salvator's icon

Try this patch, which use LCD and a pict to achieve the GR meter.
you may just have to scale your signal for the input.

Are you doing a feedforward or feedback compressor ?
If you need any further advice or sharing , I may be able to help as myself I'm doing a lot with compressors too.

Salvator

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

bkshepard's icon

I love it! Thanks! I'm doing both a sidechain compressor and a downward expander, and this meter will be perfect!