spessasus / SpessaSynth

MIDI SoundFont/DLS synthesizer library written in JavaScript.
https://spessasus.github.io/SpessaSynth/
Other
96 stars 12 forks source link

[QUESTION] Is there any way to get the volume or loudness of each channel fast or before play start? #76

Open daxiangpanda opened 2 weeks ago

daxiangpanda commented 2 weeks ago

[QUESTION] Is there any to get the volume or loudness of each channel fast or before play start? I want to play midi using SpessaSynth,but sometimes the volume of each channel will be too big or too small,so that I can only change the volume myself. Is there any way or idea I can get the loudness before playing?

spessasus commented 2 weeks ago

Hi,

Volume can be influenced by many things, such as the velocity of the note, volume controllers and system exclusives.

But you can try using the eventHandler and listen to the controllerchange event for volume and expression controllers.