For my toy javascript application i use a websynth by “logue” it use webmidi link interface. I can’t see that the interface specify bankchange.
https://www.g200kg.com/en/docs/webmidilink/spec.html
Here is the synth
https://logue.github.io/smfplayer.js/wml2.html
Anyone have an idea how i could figure out howto change banks of this websynth, using webmidilink interface?
This is the minimal code to interface the synth i currently use to interface synth from my functions.
function Synth() {
this.sy = null;
this.Load = function(url) {
this.sy = window.open(url, “extSynth”, “width=700,height=700,scrollbars=yes,resizable=yes”);
}
this.NoteOn = function(SFM,note, velo) {
this.SendMessage(this.sy, “midi,”+SFM.toString(16)+”,” + note.toString(16) + “,” + velo.toString(16));
}
this.NoteOff = function(SFM,note) {
this.SendMessage(this.sy, “midi,”+SFM.toString(16)+”,”+ note.toString(16) + “,0”);
}
this.PGMchange = function(SFchan,SFprg) {
//console.log(SFchan.toString(16));
this.SendMessage(this.sy, “midi,”+SFchan.toString(16)+”,”+SFprg.toString(16));
}
this.AllSoundOff = function() {
this.SendMessage(this.sy, “midi,b0,78,0”);
}
this.SendMessage = function(sy, s) {
if(this.sy)
this.sy.postMessage(s, “*”);
}
}
var synth = new Synth();
-
This topic was modified 4 years, 9 months ago by JT64.