[yoshimi] Re: Part's leakage

  • From: Kristian Amlie <kristian@xxxxxxxxxx>
  • To: yoshimi@xxxxxxxxxxxxx, redu <reino.urala@xxxxxxxxx>, Will Godfrey <willgodfrey@xxxxxxxxxxxxxxx>
  • Date: Wed, 17 Apr 2019 11:08:44 +0200

On 12.04.2019 17:02, redu wrote:


On 12.4.2019 12.26, Will Godfrey wrote:
Correction! AddSynth global and voice min *are* -60dB

Are you sure about that? I checked the code, and the relevant expression
is this one:

powf(0.1f, 3.0f * (1.0f - adpars->VoicePar[nvoice].PVolume / 127.0f))

PVolume is a value between 0 and 127. The lowest value that this
produces, when PVolume is 0, is 0.001, which is -30dB, not -60dB [1].

It's important that we agree on this, because one of the patches I have
lined up will change the tooltip to say -30dB, which I believe is the
correct value.

...

Thank you for this information. Unfortunately -40 is not low enough in
part's. Perhaps -60 would do, but switching off at -30 is a better idea.

Regardless of which is correct, we should turn off when PVolume is 0. So
the lowest audible volume will be -29.99dB or -59.99dB, depending on the
outcome of the discussion above.

I'm working on the zero-value special case now.

[1] https://en.wikipedia.org/wiki/Decibel

-- 
Kristian
Yoshimi source code is available from either: 
https://sourceforge.net/projects/yoshimi
Or: https://github.com/Yoshimi/yoshimi
Our list archive is at: https://www.freelists.org/archive/yoshimi
To post, email to yoshimi@xxxxxxxxxxxxx

Other related posts: