



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;
}
Most Users Ever Online: 85
Currently Online:
4 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Skyler: 48
Derek: 46
Frodson: 45
TheSmile: 43
Peter: 41
clau_ste: 39
JimmyM: 33
Gwen: 32
EZB: 24
lppier: 23
Member Stats:
Guest Posters: 1
Members: 578
Moderators: 1
Admins: 4
Forum Stats:
Groups: 12
Forums: 36
Topics: 594
Posts: 2374
Newest Members:
tomr, Noah, Dave, acv, Vasil992, Vasil92, dowsed, Simple, Chris_1, manyuModerators: W Pirkle: 361
Administrators: Tom: 73, JD Young: 80, Will Pirkle: 0, W Pirkle: 361