Hacker News new | ask | show | jobs
by yedava 859 days ago
Do you have any recordings of how a digital piano sounds to the other side - like if a teacher wants to demonstrate how to play dynamics?
1 comments

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.
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.