Clip modulator at 0db for self-modulation mode

This commit is contained in:
root
2019-08-30 12:00:45 -06:00
parent 6b09fce36d
commit 4556151c03

View File

@@ -194,8 +194,8 @@ bool DisintegratorEffect::processAudioBuffer(sampleFrame* buf, const fpp_t frame
}
case 3:// Self-Modulation
{
newInBufLoc[0] = (s[0] + 1) * 0.5f;
newInBufLoc[1] = (s[1] + 1) * 0.5f;
newInBufLoc[0] = (qBound(-1.f, s[0], 1.f) + 1) * 0.5f;
newInBufLoc[1] = (qBound(-1.f, s[1], 1.f) + 1) * 0.5f;
newInBufLoc[0] = m_hp.update( newInBufLoc[0], 0 );
newInBufLoc[0] = m_lp.update( newInBufLoc[0], 0 );