An open API service indexing awesome lists of open source software.

https://github.com/diversen/js-css-piano

A simple piano keyboard built with js and css
https://github.com/diversen/js-css-piano

css-piano piano

Last synced: 3 months ago
JSON representation

A simple piano keyboard built with js and css

Awesome Lists containing this project

README

          

# js-css-piano

Very small module for drawing a piano using js and css

## Install:

npm install --save js-css-piano

## Usage

~~~js
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](css/piano.css)

You can also see [index.html](index.html) which includes the bundle built from [test.js](test.js)

You can see this example here:

[https://diversen.github.io/js-css-piano/](https://diversen.github.io/js-css-piano/)

## Build and watch example

./watch

## Inspiration

[https://codepen.io/zastrow/details/oDBki](https://codepen.io/zastrow/details/oDBki)

## License

MIT © [Dennis Iversen](https://github.com/diversen)