code: function MIDIInterface(on_ready, on_error) {
          if (!navigator.requestMIDIAccess) {
              this.error = "not suppoorted";
              if (on_error) {
                  on_error("Not supported");
              } else {
                  console.error("MIDI NOT SUPPORTED, enable by chrome://flags");
              }
              return;
          }
  
          this.on_ready = on_ready;
  
          this.state = {
              note: [],
              cc: []
          };
  
          navigator
              .requestMIDIAccess()
              .then(this.onMIDISuccess.bind(this), this.onMIDIFailure.bind(this));
      }
docs: MIDI wrapper