New issue
Advanced search Search tips

Issue 610116 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: May 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

Trying to send a Tune Request MIDI message yields "Message is incomplete" error

Reported by cote...@gmail.com, May 8 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36

Steps to reproduce the problem:
    if (navigator.requestMIDIAccess) {
      navigator.requestMIDIAccess().then(onSuccess, onFailure);
    } else {
      console.log("Web MIDI API not supported!");
    }

    function onSuccess(midiAccess) {

      var outputs = [];

      var iter = midiAccess.outputs.values();
      for (var i = iter.next(); i && !i.done; i = iter.next()) {
        outputs.push(i.value);
      }

      outputs[0].send([0xF6]); // tuning request

    }

    function onFailure(error) {
      console.log("Could not connect to the MIDI interface");
    }

What is the expected behavior?
Should work.

What went wrong?
The tune request MIDI message (0xF6) does not need any data bytes. Output.send([0xF6]) should work instead of throwing "Message is incomplete" error.

Did this work before? N/A 

Chrome version: 50.0.2661.94  Channel: stable
OS Version: OS X 10.11.4
Flash Version: Shockwave Flash 21.0 r0
 

Comment 1 by ajha@chromium.org, May 9 2016

Cc: ajha@chromium.org
Components: Blink>WebMIDI
Labels: Needs-Feedback
Could you please attach any test file or sample jsfiddle with the above test case to try a repro from our end.


Labels: -OS-Mac OS-All
Owner: toyoshim@chromium.org
Status: Assigned (was: Unconfirmed)
Confirmed. This is a bug that I overlooked for a long time.
Thank you for reporting this.
Status: Started (was: Assigned)
Labels: M-52
Status: Fixed (was: Started)
Now the issue should be fixed in trunk.
This will appear in Canary in a few days, and be fixed in Chrome 52.

Comment 6 by cote...@gmail.com, May 18 2016

Cool, thanks!

Sign in to add a comment