W3C home > Mailing lists > Public > public-audio@w3.org > July to September 2012

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

From: <bugzilla@jessica.w3.org>
Date: Wed, 05 Sep 2012 09:58:02 +0000
Message-Id: <E1T9CN0-0004xb-Tj@jessica.w3.org>
To: public-audio@w3.org

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:

  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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:11 UTC