MIDIOutput.send

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 UTC