piano-game
Version:
Become a better pianist
25 lines (17 loc) • 727 B
Markdown
[The Piano Game](https://dfcreative.github.io/piano-game).
Become a better pianist.
[](https://nodei.co/npm/piano-game/)
```js
var PianoGame = require('piano-game');
var audioContext = require('audio-context');
var game = new PianoGame({
element: document.querySelector('.piano-game'),
context: audioContext,
range: ['c2', 'c#3'], //range of keys to ask
maxNotes: 4, //maximum number of notes in a question
requireOctave: false //require exact octave for a note
});
```
# Similar
* [musictheory.net](http://www.musictheory.net/exercises/keyboard-reverse)
* [piano-trainer](https://github.com/philippotto/Piano-Trainer)