geigr / ipytone

Interactive audio in Jupyter

Home Page:https://ipytone.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add keyboard DOM widget

benbovy opened this issue · comments

NexusUI provides a keyboard widget too: http://nexus-js.github.io/ui/api/#Piano

We could also interface with external MIDI devices using the set of Web MIDI APIs, e.g. https://developer.mozilla.org/en-US/docs/Web/API/MIDIInput.

Yes that would be great. Similarly to the Web Audio API -> Tones.js, there's WebMIDI, which has already been used here.

As an alternative to MIDI, we could also look to libraries implementing the OSC protocol (Python and/or JS).

react-piano looks very nice, unless we don't want react as a dependency.