spessasynth_lib 3.25.4 → 3.25.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,7 +6,9 @@ import { SYNTHESIZER_GAIN } from "../../main_processor.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export function setMIDIVolume(volume)
|
|
8
8
|
{
|
|
9
|
-
|
|
9
|
+
// GM2 specification, section 4.1: master-volume is squared though,
|
|
10
|
+
// according to my own testing, e seems like a better choice
|
|
11
|
+
this.midiVolume = Math.pow(volume, Math.E);
|
|
10
12
|
this.setMasterPan(this.pan);
|
|
11
13
|
}
|
|
12
14
|
|