Skip to content
This repository

playcanvas(canvasElement)

The main API of playcanvas: this takes an HTML5 Canvas element and returns a player instance.

var title = document.getElementById('title');
var title_player = playcanvas(title);

player.play()

Starts the canvas player.

player.pause()

Stops the player temporarily. player.play() will start where it left off.

player.stop()

Stops the player and rewinds it to 0.

player.n_notes()

Returns the number of notes available in the current style.

Something went wrong with that request. Please try again.