[Bug 18762] MIDIOutput.sendMessage doesn't need a timestamp

https://www.w3.org/Bugs/Public/show_bug.cgi?id=18762

Jussi Kalliokoski <jussi.kalliokoski@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jussi.kalliokoski@gmail.com

--- Comment #1 from Jussi Kalliokoski <jussi.kalliokoski@gmail.com> 2012-09-05 09:58:02 UTC ---
Fair enough. Actually what I want to do right now with this and Bug 18764 is to
shrink the MIDIMessage interface to just contain the timestamp and the data,
status and channel being the first byte. Thoughts? I'm also thinking of a way
to make the MIDIMessage interface a dictionary instead.

In that case we'd have

sendMessage(firstByte, secondByte, thirdByte, ...)

and the longer version for more complicated messages:

sendMIDIMessage({
  timestamp: performance.now() + 1234.0,
  data: new Uint8Array([firstByte, secondByte, thirdByte, ...])
})

How's that sound?

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 5 September 2012 09:58:03 UTC