js-css-piano
v1.0.7
Published
A simple piano keyboard built with js and css
Downloads
2
Readme
js-css-piano
Very small module for drawing a piano using js and css
Install:
npm install --save js-css-piano
Usage
var p = require('js-css-piano');
var elemID = 'piano-container';
var p = new piano(elemID, {
octaves: 2,
octaveBegin: 3
});
p.createPiano();
Remember to include the css/piano.css
You can also see index.html which includes the bundle built from test.js
You can see this example here:
https://diversen.github.io/js-css-piano/
Build and watch example
./watch
Inspiration
https://codepen.io/zastrow/details/oDBki
License
MIT © Dennis Iversen