1.0.1 • Published 1 year ago

@ondas/tiny-piano v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

TinyPiano

A self-container mono-sample piano

npm version npm version

The main characteristic of this instrument is that it doesn't need any asset loading in order to work. The single sample it uses is self-contained withing the code.

Doesn't sound good, but is a fast and cheap way to get something playing:

import TinyPiano from "@ondas/tiny-piano";

const piano = TinyPiano(new AudioContext());
piano.start(60);

Install

npm i @ondas/tiny-piano