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.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #115398
    JT64
    Participant
      • Topics: 11
      • Replies: 23
      • Total: 34

      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.
    Viewing 1 post (of 1 total)
    • The forum ‘General MIDI discussion’ is closed to new topics and replies.
    There is currently 0 users and 47 guests online
    No users are currently active
    Forum Statistics
    Threads: 2,495, Posts: 17,374, Members: 77,605
    Most users ever online was 12 on January 22, 2019 3:47 pm
    Ctrlr