cwilso / WebMIDIAPIShim

Polyfill using the Jazz NPAPI MIDI plugin to implement the Web MIDI API on Mac and Windows.
380 stars 53 forks source link

Errors in README #12

Closed a-shestakov closed 11 years ago

a-shestakov commented 11 years ago

The line in README

o.sendMessage( [ 0x90, 0x45, 0xff ] );

should be

o.send( [ 0x90, 0x45, 0x7f ] );

Because, according to specs (http://www.w3.org/TR/webmidi/#sending-midi-messages-to-an-output-device):

  1. MIDIOutput's method to send messages is simply .send()
  2. maximum velocity of a note is 127, not 255.
cwilso commented 11 years ago

Fixed. Thanks!