WebMIDISynthHost
WebMIDISynthHost copied to clipboard
ResidentSf2Synth: GrandPiano should decay to zero volume
The Grand Piano (preset 0) stops decaying after reaching a certain dynamic level. The soundFont itself works correctly with VirtualMIDISynth.
The problem is related to the fact that no account is taken of the instrument.volRelease attribute following line 132 in soundFontSynthNote.js. As can be seen in the debugger, the instrument.volRelease values for the following instruments are: Grand Piano:3.0808, Harpsichord:0.95816, French Horn:0.71988)!
The volume envelope (xxxVolEnv) parameters are "generators" 33-38 in §8.1.2 in sfspec24.pdf. The xxxModEnv and other generators may also be relevant.