Notorious Preying Mantis

    js-css-piano

    1.0.7 • Public • Published

    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

    Install

    npm i js-css-piano

    DownloadsWeekly Downloads

    20

    Version

    1.0.7

    License

    MIT

    Last publish

    Collaborators

    • diversen