How do you send your sidechain to meter? (Compressor gain reduction)

DSP, Plugin and Host development discussion.
RELATED
PRODUCTS

Post

Title tells everything...

I have issue with my gain reduction meter.Can you give me some tips?

Thanks.
Last edited by tunca on Thu Sep 14, 2017 7:07 pm, edited 1 time in total.
http://analogobsession.com/ VST, AU, AAX for WIN & MAC

Post

Add 0 before wikipedia and you'll see some top secret document that otherwise isn't available where you live :dog:

https://en.wikipedia.org/wiki/Dynamic_range_compression
~stratum~

Post

stratum wrote:Add 0 before wikipedia and you'll see some top secret document that otherwise isn't available where you live :dog:

https://en.wikipedia.org/wiki/Dynamic_range_compression
Thanks.

I already checked that but it's different.

I know how compressors work.I can design my hardwares.I built and sold lots of compressors.

But in DSP,it's really different.My side chain working perfectly but when i call it for metering,seeing strange responses.

For example it shows values without any compression.
http://analogobsession.com/ VST, AU, AAX for WIN & MAC

Post

But in DSP,it's really different.My side chain working perfectly but when i call it for metering,seeing strange responses.
It's not different, look carefully there is a bug somewhere. It's not possible to get this thing wrong, it's very simple.
~stratum~

Post

stratum wrote:
But in DSP,it's really different.My side chain working perfectly but when i call it for metering,seeing strange responses.
It's not different, look carefully there is a bug somewhere. It's not possible to get this thing wrong, it's very simple.
I believe both have same idea...But i can't figure it out.

I will throw away my Mac!
http://analogobsession.com/ VST, AU, AAX for WIN & MAC

Post

Do you know Chunkware Simple Compressor?

My starting point is this.

I'm writing spice codes and hardly modifiying it.Envelope,rectifier,signal amp...All components.

If i know how i can add GR meter to Simple Compressor,i can implement to my projects...
http://analogobsession.com/ VST, AU, AAX for WIN & MAC

Post

Why Spice? Start with a basic digital compressor, which is maybe 10 lines of code (or even less). Once you figured that out, adding a meter to a more complex VA emulation should be easy :)

Richard
Synapse Audio Software - www.synapse-audio.com

Post

So what are you doing with both spice and chuckware simple compressor?

and why spice indeed, that was a good question.
~stratum~

Post

Why Spice? Start with a basic digital compressor, which is maybe 10 lines of code (or even less). Once you figured that out, adding a meter to a more complex VA emulation should be easy :)
So what are you doing with both spice and chuckware simple compressor?

and why spice indeed, that was a good question.
First of all,why spice?

Cause i'm making analog emulations.Converting spice to DSP.It's easy to me.

I have same issue with simple digital compressor,too.I can't handle GR meter.I'm just trying to call my gain reduction section to meter after rectification but no luck.I can't get normal responses from my side chain.But compressor working with no issue.I'm missing something?

Also i'm trying input - output.It's another simple solution but if input signal goes under -3dB,meter not show correct values.
http://analogobsession.com/ VST, AU, AAX for WIN & MAC

Post

So you are converting spice to DSP and can't handle the GR meter? I can't understand that.
What do you mean by converting spice to DSP?
~stratum~

Post

OK, I have understood what you were doing.
So you take measurements from a spice simulator, and plug values to the chunkware simple compressor, and call it a model.
You can't handle the GR model, because you don't understand the code.
OK. I'll help you to fix that.
The value you want is here https://github.com/music-dsp-collection ... rocess.inl in this line:

Code: Select all

double gr = overdB * ( ratio_ - 1.0 );	// gain reduction (dB)
save it to some other variable, and low pass filter it before displaying. (The GR meter needle has some weight).

I'd say, you are pretty brave to found a company using this kind of "modelling" approach. Yes it can work, but it will work without having you in the driver seat. A bit risky if you ask me :)
~stratum~

Post

stratum wrote:So you are converting spice to DSP and can't handle the GR meter? I can't understand that.
What do you mean by converting spice to DSP?
Yes...What a shame :dog:

I'm not good with C++ and DSP.But i have knowledge about designing analog hardwares,simulating in spice...As i said i had company.I was building handmade gears for studios.

Spice is code based.I'm converting spice codes and netlists to C++.

For example when i want to use transistor,i'm using spice transistors.But some special transistors are not included to basic spice libraries.So components' datasheets are my best friends...(Also this method usabable for all components.Tubes,resistors,capacitors,transformers etc...)

But i can't handle GR meter...I'm sending GR(which is i'm applying input in sidechain),but can't get correct responses.

I really need help.
http://analogobsession.com/ VST, AU, AAX for WIN & MAC

Post

stratum wrote:OK, I have understood what you were doing.
So you take measurements from a spice simulator, and plug values to the chunkware simple compressor, and call it a model.
You can't handle the GR model, because you don't understand the code.
OK. I'll help you to fix that.
The value you want is here https://github.com/music-dsp-collection ... rocess.inl in this line:

Code: Select all

double gr = overdB * ( ratio_ - 1.0 );	// gain reduction (dB)
save it to some other variable, and low pass filter it before displaying. (The GR meter needle has some weight).

I'd say, you are pretty brave to found a company using this kind of "modelling" approach. Yes it can work, but it will work without having you in the driver seat. A bit risky if you ask me :)
Yes,i know that "gr" is what i need but it's not working.Can't implement it to my meter.
http://analogobsession.com/ VST, AU, AAX for WIN & MAC

Post

Yes,i know that "gr" is what i need but it's not working.Can'tlement it to my meter.
Obviously, that's the risk I was talking about:)
~stratum~

Post

stratum wrote:
Yes,i know that "gr" is what i need but it's not working.Can'tlement it to my meter.
Obviously, that's the risk I was talking about:)
I see. :dog:

What if i try subtracting output from input?

It shows correct values but not under -3dB.
http://analogobsession.com/ VST, AU, AAX for WIN & MAC

Locked

Return to “DSP and Plugin Development”