Skip to content

dy/piano-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Piano Game.

Guess notes from stave.

npm install piano-game

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

Releases

No releases published

Packages

No packages published