Skip to content

Commit

Permalink
Merge pull request WebAudio#221 from marcoscaceres/patch-1
Browse files Browse the repository at this point in the history
Editorial: fix event.timeStamp typo
  • Loading branch information
cwilso authored Oct 21, 2021
2 parents 2a86fd5 + 59cff75 commit f3373f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1394,7 +1394,7 @@ <h3>
input port to the console log.
</p>
<pre class="example">function onMIDIMessage( event ) {
var str = "MIDI message received at timestamp " + event.timestamp + "[" + event.data.length + " bytes]: ";
var str = "MIDI message received at timestamp " + event.timeStamp + "[" + event.data.length + " bytes]: ";
for (var i=0; i&lt;event.data.length; i++) {
str += "0x" + event.data[i].toString(16) + " ";
}
Expand Down Expand Up @@ -1436,7 +1436,7 @@ <h3>

function echoMIDIMessage( event ) {
if (output) {
output.send( event.data, event.timestamp );
output.send( event.data, event.timeStamp );
}
}

Expand Down

0 comments on commit f3373f4

Please sign in to comment.