MiniDexed icon indicating copy to clipboard operation
MiniDexed copied to clipboard

Reverb time depends on the sample rate

Open Banana71 opened this issue 2 years ago • 5 comments
trafficstars

I wanted to improve the latency of the miniDexed and experimented with the SampleRate and ChunkSize in the miniDexed.ini. I noticed that the ReverbTime behaves anti-proportionally to the SampleRate.

Is it possible to change the programming so that the reverb time is independent of the sample rate or should we just document the behavior?

Why all this: I noticed an audible latency between the miniDexed and the Roland RD-300 for sounds with a short attack time. With the following values, the latency can no longer be determined and even a Raspberry Pi 2 runs stable: SampleRate=48000 (default) ChunkSize=128 (default 256)

With a sample rate of 96000, the latency is measurably better but the reverb time is halved.

Banana71 avatar Nov 19 '23 09:11 Banana71

Good observation! In other words, you are saying that we need to adjust the reverb time like this?

AdjustedReverbTime = DesiredReverbTime * correctionFactor

correctionFactor = SampleRate / DefaultSampleRate

where:

  • AdjustedReverbTime is the reverb time value adjusted for the new sample rate
  • DesiredReverbTime is the desired reverb time
  • SampleRate is the sample rate defined by the user
  • DefaultSampleRate is the default sample rate (48000)

probonopd avatar Nov 19 '23 10:11 probonopd

@Banana71 can you confirm the above? Then we could go about implementing it.

probonopd avatar Dec 09 '23 16:12 probonopd

AdjustedReverbTime = DesiredReverbTime * correctionFactor

correctionFactor = SampleRate / DefaultSampleRate

The formula describes the correct solution approach.

But the code for the reverb effect already works with a sample rate. Is the code in the effect incorrect? Are the variables not assigned correctly? What sample rate is mentioned in the code for the effect?

search for Samplerate: Samplerate

Banana71 avatar Dec 09 '23 17:12 Banana71

Thanks alot @probonopd. 🥇

Banana71 avatar Apr 20 '25 05:04 Banana71

I was getting too excited.

I've now reloaded the version MiniDexed_2025-04-18-b15ffad. At sample rates < 48000, the reverb time gets shorter. Now the behavior is exactly the opposite.

At a sample rate of 96000, miniDexed crashes.

When I first tested it, I was probably just listening to see if the reverb time increased at 44,100 Hz. The difference between 44,100 and 48,000 is small. I hadn't noticed that then.

Banana71 avatar Apr 20 '25 06:04 Banana71