Permalink
Browse files

Step 6. Add logs

  • Loading branch information...
alexeybondarenko committed Aug 6, 2017
1 parent 41e3798 commit 703003e1e5beefcb98490d35941ee577e2a7484a
Showing with 2 additions and 0 deletions.
  1. +2 −0 client/app.js
@@ -14,6 +14,7 @@
source.buffer = audioBuffer;
source.connect(context.destination);
source.start(0);
console.timeEnd('send');
}
// WEBSOCKETS
@@ -58,6 +59,7 @@
function handleMidiMessage(e) {
if (!MIDIStream || e.data[0] !== 0x90) return;
console.log(e);
console.time('send');
MIDIStream.write(e.data);
}

0 comments on commit 703003e

Please sign in to comment.