MeteorTony / piano

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Piano

A piano keyboard with recorder available (please check remarks at the bottom).

Have a try here!

Preview

How to play

2 ways to play the piano: click or press computer keys

Here is the correspondance of computer keys to piano keys:

computer keys to piano keys

It is recommended to play by pressing keys, as the piano pedal can only work under this scenario.

Installation

To run this page on your local machine, the required dependencies should be installed using following commands.

First command:

npm i express ejs mongoose

Second command:

npm i --save-dev nodemon

Make sure this is added to package.json (inside "scripts"):

"devStart": "nodemon server.js"

Then use this to run the web server:

npm run devStart

Remarks

  1. The recorded song currently cannot be downloaded.

  2. Note that only static pages are supported by GitHub pages, so the recorder feature is not available online , please try it locally.

About


Languages

Language:JavaScript 56.0%Language:EJS 29.4%Language:CSS 14.6%