- From: Chris Wilson <cwilso@google.com>
- Date: Thu, 6 Sep 2012 05:50:07 -0700
- To: Florian Bomers <Florian.Bomers@bome.com>
- Cc: Audio Working Group <public-audio@w3.org>
- Message-ID: <CAJK2wqUEyO3qUy32cWeyHx_Z96w=u8Gh31R9tqwj42exQU4-nQ@mail.gmail.com>
It is possible to simply overload send() in this way. On Wed, Sep 5, 2012 at 12:45 PM, Florian Bomers <Florian.Bomers@bome.com>wrote: > 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 12:50:45 UTC