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
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 5 September 2012 09:58:04 GMT