js-svg-piano
Very small module for drawing a piano using js and svg
The point in using svg is that it is easy to scale multiple octaves to fit exact in a single div container
Install
npm install --save js-svg-piano
Usage
var p = ;var elemID = 'piano-container'; var p = elemID octaves: 2 octaveBegin: 3; p;
You can see index.html which includes the bundle built from test.js
You can see the example here:
https://diversen.github.io/js-svg-piano/
Related
Build and watch example
./watch
License
MIT © Dennis Iversen