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


From: Florian Bomers <Florian.Bomers@bome.com>
Date: Wed, 05 Sep 2012 21:45:25 +0200
Message-ID: <5047ABD5.30102@bome.com>
To: Audio Working Group <public-audio@w3.org>

hello to all, I've just reviewed the MIDI API and commented on a few bugs.

Regarding MIDIOutput.sendMessage() and MIDIOutput.sendMIDIMessage(): I
find the method names unnecessarily verbose. We might not even send a
"message", but only e.g. a part of a message. I don't know JavaScript
well, but can't you use overloading to make it simpler:

  boolean send(MIDIMessage message);

  boolean send(DOMHighResTimeStamp timestamp,
               short status, short... data);

and possibly even add another convenience send() method:

  boolean send(short status, short... data);

Of course this is mostly a cosmetic issue, but it will make my
programmer's life easier, and quite possibly others', too.


Florian Bomers
Bome Software

everything sounds.

After the Beep!  -- iPhone voice networking
Bome Software GmbH & Co KG        Gesellschafterin:
Dachauer Str.187                  Bome Komplementär GmbH
80637 München, Germany            Geschäftsführung: Florian Bömers
Amtsgericht München HRA95502      Amtsgericht München HRB185574
Received on Thursday, 6 September 2012 07:35:40 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:50:02 UTC