Hacker News new | ask | show | jobs
by keycon 858 days ago
I'll get to work on a video demo! The app has a sort of piano VSTI running in the browser, so what you hear will be reliably reproduced on the peer side.
2 comments

Most (if not all) digital keyboards also support receiving MIDI which will be played by the piano's own sound engine!

This will probably require assigning the received MIDI to a different channel than 0 to allow simultaneous play without conflicting note offs and sustains.

Ah, great point--I'm adding that to my to-do as another setup option for users. Thank you!
Did you write your own VSTI, or what did you use?
Wrote it myself. It's a javascript object that loads in all the piano sounds and manages the audiocontext. When the MIDI note/velocity/pedal state updates, a method on the object is called to play the sound.