This commit is contained in:
max
2026-05-07 23:55:02 +02:00
parent b3230844b7
commit b7a40217db
5 changed files with 123 additions and 144 deletions

View File

@@ -16,11 +16,11 @@ namespace FluidSim.Core
private readonly OrthonormalMixer mixerL, mixerR;
private readonly LowPassFilter[] filterL, filterR;
public float DryMix { get; set; } = 1.0f;
public float EarlyMix { get; set; } = 0.5f;
public float TailMix { get; set; } = 0.9f;
public float Feedback { get; set; } = 0.55f; // safe range 0.70.9
public float DampingFreq { get; set; } = 6000f; // Hz
public float DryMix { get; set; } = 1.0f; // direct sound unchanged
public float EarlyMix { get; set; } = 0.12f; // very little early reflection (ground bounce)
public float TailMix { get; set; } = 0.18f; // subtle diffuse tail
public float Feedback { get; set; } = 0.35f; // lower feedback outdoor doesn't ring
public float DampingFreq { get; set; } = 2500f; // air absorption high frequencies die quickly
public OutdoorExhaustReverb(int sampleRate)
{
@@ -118,7 +118,7 @@ namespace FluidSim.Core
public float Process(float drySample)
{
var (l, r) = ProcessStereo(drySample);
return (l + r) * 0.5f;
return MathF.Tanh((l + r) * 0.5f);
}
// ========== Helper classes ==========