Skip to content

Commit acff0c0

Browse files
committed
tweaked event horizon gain mapping
1 parent 4e83442 commit acff0c0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Source/SpecialFX.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,6 @@ void EventHorizon::setParameters(const ReverbProcessorParameters& params)
276276
mParameters = params;
277277
mParameters.roomSize = scale(mParameters.roomSize, 0.0f, 1.0f, 0.25f, 2.5f);
278278
mParameters.decayTime = std::clamp(mParameters.decayTime, 0.1f, 1.0f);
279-
mOutputScalar = scale(std::clamp(pow(mParameters.decayTime, 5.5f), 0.0f, pow(0.8f, 5.5f)), 0.0f, pow(0.8f, 5.5f), 0.0005f, 0.45f);
280-
281-
// float outputScalarInput = std::clamp(mParameters.decayTime, 0.1f, 0.8f);
282-
// mOutputScalar = -0.002574331 + 0.1086542 * outputScalarInput - 1.417617 * pow(outputScalarInput, 2.0f) + 7.297175 * pow(outputScalarInput, 3.0f - 15.24476 * pow(outputScalarInput, 4.0f)) + 11.53878 * pow(outputScalarInput, 5.0f);
279+
mOutputScalar = scale(std::clamp(pow(mParameters.decayTime, 5.0f), 0.0f, pow(0.8f, 5.0f)), 0.0f, pow(0.8f, 5.0f), 0.0005f, 0.45f) - 0.0001f;
283280
}
284281
}

0 commit comments

Comments
 (0)