Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Dynamic Processor , mono input to
Avatar
sam
Member
Members
December 21, 2017 - 2:22 pm
Member Since: November 30, 2017
Forum Posts: 6
sp_UserOfflineSmall Offline

Hi , 

 

Just want to ask you for help!!!, after building (release win32--> Plugin_Name.dll) the dynamics processor i found that if i have a mono  file and my output is  "stereo" (mono dual)  (L+R= ch1 and R+L= ch2), it only process the L channel ,so , i have a "parallel" compression ,because on the  right channel i get the clean signal that is then summed  with the L channel (processed).

But  if my input signal is a stereo  file it works ok

 

here is what i put on the code:

 

// Do LEFT (MONO) Channel; there is always at least one input/one output
// calculate gains
float fInputGain = pow(10.0, m_fInputGain_dB / 20.0);
float fOutputGain = pow(10.0, m_fOutputGain_dB / 20.0);
// detect left channel
//float fLeftDetector = m_LeftDetector.detect(pInputBuffer[0]);
float fLeftDetector = m_LeftDetector.detect(fInputGain*pInputBuffer[0]);

// gain calc
float fGn = 1.0;
// branch
if (m_uProcessorType == COMP)
fGn = calcCompressorGain(fLeftDetector, m_fThreshold, m_fRatio,
m_fKneeWidth, false);
else if (m_uProcessorType == LIMIT)
fGn = calcCompressorGain(fLeftDetector, m_fThreshold, m_fRatio,
m_fKneeWidth, true);

// --- for VST3 plugins only
doVSTSampleAccurateParamUpdates();

// --- smooth parameters (if enabled) DO NOT REMOVE
smoothParameterValues();

// set the meter to track 1-gain value
m_fGRMeterValue_L = 1.0 - fGn;

// form left output and apply make up gain
pOutputBuffer[0] = (fGn*pInputBuffer[0])* fOutputGain;

// Mono-In, Stereo-Out (AUX Effect)
if (uNumInputChannels == 1 && uNumOutputChannels == 2)
pOutputBuffer[1] = pOutputBuffer[0];
// Stereo-In, Stereo-Out (INSERT Effect)
if (uNumInputChannels == 2 && uNumOutputChannels == 2)
{
// detect right channel
//float fRightDetector = m_RightDetector.detect(pInputBuffer[1]);
float fRightDetector = m_RightDetector.detect(fInputGain *pInputBuffer[1]);
// gain calc

float fGn = 1.0;
// branch
if (m_uProcessorType == COMP)
fGn = calcCompressorGain(fRightDetector, m_fThreshold, m_fRatio,
m_fKneeWidth, false);
else if (m_uProcessorType == LIMIT)
fGn = calcCompressorGain(fRightDetector, m_fThreshold, m_fRatio,
m_fKneeWidth, true);

// form Right output and apply make up gain
pOutputBuffer[1] = (fGn*pInputBuffer[1]) * fOutputGain;
//*******//

}
// set the meter to track 1-gain value
m_fGRMeterValue_R = 1.0 - fGn;
// set the meter to track 1-gain value

}

return true;
}

Forum Timezone: America/New_York

Most Users Ever Online: 55

Currently Online:
10 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Skyler: 48

Derek: 46

Frodson: 45

Peter: 41

clau_ste: 39

TheSmile: 37

JimmyM: 33

Gwen: 32

EZB: 24

lppier: 23

Member Stats:

Guest Posters: 1

Members: 565

Moderators: 1

Admins: 4

Forum Stats:

Groups: 12

Forums: 36

Topics: 581

Posts: 2326

Newest Members:

frankthetank, dhodgson, Wanderer, mister1234, Evan Galvanek, Rowan Fraser, patrickbarr1984, Ray C., Jon R., Pat

Moderators: W Pirkle: 344

Administrators: Tom: 69, JD Young: 80, Will Pirkle: 0, W Pirkle: 344