COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
Old 04-20-2017, 02:41 PM   #1
Tunca
Human being with feelings
 
Join Date: Apr 2016
Posts: 264
Default Gain Reduction Meter Help

I'm tring to use vu meter as gain reduction meter.Used vu meter from MultiTarget example.

As vu meter,it's working good.But not as gr meter.

My gr meter working like this; "in - out".Just simple idea.It's working but if input signal is low level,meter doesn't work properly.

For example when input level around 0 dB with -6 dB reduction,meter shows reduction properly.But when input level around -6 dB with -6 dB reduction,meter shows 2 dB or less reduction.So when input signal low,gr meter not showing correctly...

What is your method?Are you using simple meter example or another one?

I really need help about that.

Thanks.
Tunca is offline   Reply With Quote
Old 04-28-2017, 09:15 AM   #2
ConnorLRSS
Human being with feelings
 
ConnorLRSS's Avatar
 
Join Date: Mar 2017
Location: Halifax, NS, Canada
Posts: 11
Default

For my GR meter, I input GR values from each frame into an envelope follower to get the correct rise and fall motion. Then I normalize the value of the envelope and use it to position the needle.

I'm not quite sure what you're trying here. It would really help if you could post some code.
ConnorLRSS is offline   Reply With Quote
Old 04-29-2017, 02:50 PM   #3
Tunca
Human being with feelings
 
Join Date: Apr 2016
Posts: 264
Default

My meter code like this;

const double METER_ATTACK = 0.6, METER_DECAY = 0.05;
double xL = (peakL < prevL ? METER_DECAY : METER_ATTACK);
double xR = (peakR < prevR ? METER_DECAY : METER_ATTACK);


peakL = peakL * xL + prevL * (1 - xL);
peakR = peakR * xR + prevR * (1 - xR);


prevL = peakL;
prevR = peakR;

peakL = std::max(peakL , *in1 ); (unprocessed)
peakR = std::max(peakR , input ); (processed)

But when input level is low,GR meter show half value.
Tunca is offline   Reply With Quote
Old 05-02-2017, 09:56 AM   #4
Tunca
Human being with feelings
 
Join Date: Apr 2016
Posts: 264
Default

Any advice?
Tunca is offline   Reply With Quote
Old 05-02-2017, 11:33 AM   #5
random_id
Human being with feelings
 
random_id's Avatar
 
Join Date: May 2012
Location: PA, USA
Posts: 356
Default

You are using absolute values for the input, right?
__________________
Website: LVC-Audio
random_id is offline   Reply With Quote
Old 05-02-2017, 12:10 PM   #6
Tunca
Human being with feelings
 
Join Date: Apr 2016
Posts: 264
Default

Quote:
Originally Posted by random_id View Post
You are using absolute values for the input, right?
Absolute value?

I'm not doing anything with input signal.
Tunca is offline   Reply With Quote
Old 05-02-2017, 03:25 PM   #7
random_id
Human being with feelings
 
random_id's Avatar
 
Join Date: May 2012
Location: PA, USA
Posts: 356
Default

I mean like this;
peakL = std::max(peakL , std::abs(*in1));
__________________
Website: LVC-Audio
random_id is offline   Reply With Quote
Old 05-02-2017, 03:30 PM   #8
Tunca
Human being with feelings
 
Join Date: Apr 2016
Posts: 264
Default

Quote:
Originally Posted by random_id View Post
I mean like this;
peakL = std::max(peakL , std::abs(*in1));
Oh.Now tried that but still same.
Tunca is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:16 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.