Last active
August 8, 2017 20:30
-
-
Save alexeybondarenko/bf9d0b5047bcf9d8e5701390d5e03c6b to your computer and use it in GitHub Desktop.
Tutorial. How to create MIDI synthesizer with MIDI API and Node JS https://medium.com/nebo-15/tutorial-how-to-create-midi-synthesizer-with-midi-api-and-node-js-48d41c162009
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stream.on('data', (data) => { | |
console.log(data); | |
const tone = data.readInt8(1); | |
Object.keys(socket.clients).map( | |
i => playTone(tone, socket.clients[i].createStream()) | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment