mobx-music
v1.1.1
Published
Play music with mobx
Downloads
9
Readme
Mobx Music
Play Music with Mobx
Install
yarn add mobx-music
# Or
npm i mobx-music
Usage
const { instruments, playingNotes } = await getInstruments(["harmonica"]);
const instrument = instruments.get("harmonica");
instrument.play("A3", 500);
playingNotes.get("A3"); // true
setTimeout(() => {
instrument.stop("A3");
}, 250);