Logarithmic Volume Control?
benem3000 opened this issue ยท 2 comments
Hello,
I am no programmer, but I am a sound engineer and musician. I have not way to confirm this, but I noticed that volume controls don't seem to do much unless taken to extremes. I suspect that perhaps you are using linear volume controls? If so, then I'd highly recommend switching over to a logarithmic control. It should provide a much better experience.
More info available in the following thread:
I did some digging in Chromium and it looks like the gain is applied here.
In short it multiplies the "channel" by the gain.value
. I do not know how this impacts the "loudness".
I'm no sound engineer nor musician, but I am a programmer! I'm not actually sure exactly how it works behind the scenes but we use a GainNode. We multiply the gain by the user's input on the slider (between 0 and 2) to adjust the result volume. I'm not sure how we would implement logarithmic volumes but I'll try reading up on it some more tomorrow.
I took a look at that SE thread and it makes sense however I also very much agree with the second answer: The scale doesn't matter most of the time and the label of that scale almost never matters..