Tone Piano is a little Javascript piano built with a React front end, a Ruby on Rails backend, and Tone.js. (Blog post here.)
Tone Piano was built on Ruby 2.6.1 and uses npm to install node modules. You'll probably need a similar set-up to get it to run correctly.
- First, clone or download this repo.
cd
into thetone-piano/client
directory and runnpm install
to install all the required module.cd ..
once they're installed to get back into thetone-piano
directory.- Enter
rake db:migrate
to run the database migrations. - Enter
rake db:seed
to install a few sample songs. - Start the application by entering
rake start
. Your browser should open on its own, but if not, navigate tolocalhost:3000
to see it running.
- On the homepage, choose 'Browse songs' or 'Play piano'.
- Browse songs: Click on a song to get to its view, and click the Play Song button to hear it.
- Play piano: Click on the keyboard keys (sadly, no sharps or flats yet) to compose a tune. Add a title, your name, and save or clear the notes as you like.