spessasus / SpessaSynth

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

Control channel pan #31

Closed Fanelia82 closed 3 months ago

Fanelia82 commented 3 months ago

Documentation Confirmation

Please confirm that you have read the documentation and have not found an answer to your question there.

YES

Question's Topic

The problem regard the use of the lib

The Question

Hi, I'm using spessasynth in my project. I m trying to modify pan for every channel (not setMasterPan) but i fail to find the correct way. Please help!

thanks

spessasus commented 3 months ago

Hi Fanelia. Try using the pan controller. (CC 10)

synth.controllerChange(channel, 10, value);

where 0 = left, 64 = center, 127 = right.

Hope this helps!

PS: Here's the list of default controllers and their explanations

Fanelia82 commented 3 months ago

Thanks!

Great work!