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

MIDIOutput.send

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>
Hi,

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.

Thanks,
Florian


-- 
Florian Bomers
Bome Software

everything sounds.
http://www.bome.com

After the Beep!  -- iPhone voice networking
www.afterthebeep.com
__________________________________________________________________
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 6 September 2012 07:35:40 GMT