Find out bank change message of a webmidi sounfont synth.

Home Forums General General MIDI discussion Find out bank change message of a webmidi sounfont synth.

This topic contains 0 replies, has 1 voice, and was last updated by  JT64 3 weeks ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #115398

    JT64
    Participant
    • Topics: 8
    • Replies: 19
    • Total: 27

    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 3 weeks ago by  JT64.
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

There is currently 0 users and 24 guests online
No users are currently active
Forum Statistics
Threads: 2,233, Posts: 15,724, Members: 55,728
Most users ever online was 12 on January 22, 2019 3:47 pm
Do NOT follow this link or you will be banned from the site!