Inverted meter~

Dec 26, 2008 at 12:52am

Inverted meter~

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.

#41459
Dec 26, 2008 at 1:54am

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!

#147640
Dec 26, 2008 at 4:23am

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.

#147641
Dec 26, 2008 at 5:29am

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

#147642
Dec 26, 2008 at 5:38am

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.

#147643
Dec 26, 2008 at 6:03am

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.

#147644
Dec 27, 2008 at 9:34am

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

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#N vpatcher 631 122 1692 610;
#P inlet 380 169 15 0;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 267 212 32 196617 * 40;
#P number 379 188 35 9 0 32 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 0;
#P newex 53 79 48 196617 loadbang;
#P button 215 211 15 0;
#P number 284 283 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 247 283 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 209 283 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 171 283 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 139 299 15 0;
#P newex 139 316 191 196617 pack drawpict schmacks 0 0 0 0 0 0 0 0;
#P message 100 179 94 196617 drawpict schmacks;
#P message 130 123 201 196617 readpict schmacks yelobarreversed_short;
#P outlet 139 338 15 0;
#P comment 672 83 100 196617 reverse needed to get the highest GR as peak;
#P connect 10 0 3 0;
#P connect 11 0 3 0;
#P connect 11 0 2 0;
#P connect 9 0 5 0;
#P connect 7 0 5 0;
#P connect 6 0 5 0;
#P connect 8 0 5 0;
#P connect 5 0 4 0;
#P connect 2 0 1 0;
#P connect 3 0 1 0;
#P connect 4 0 1 0;
#P connect 10 0 6 0;
#P connect 13 0 6 0;
#P fasten 6 0 4 6 176 309 264 309;
#P connect 12 0 13 0;
#P fasten 7 0 4 7 214 307 284 307;
#P fasten 8 0 4 8 252 305 304 305;
#P fasten 9 0 4 9 289 303 324 303;
#P connect 14 0 12 0;
#P pop;
#P hidden newobj 276 67 81 196617 p graph GRcomp;
#P user lcd 275 252 20 105 1 1 0 0 0;
#P noclick;
#P hidden connect 1 0 0 0;
#P window clipboard copycount 2;

#147645
Dec 27, 2008 at 6:22pm

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

#147646

You must be logged in to reply to this topic.