Skip to content

joeylouise/pianojs

 
 

Repository files navigation

PianoJS Tutorial

This tutorial was created for a Workshop at the event TECH(K)NOW 2018. Start the tutorial in Step 0.

Step 0: Initial point

Online IDE

https://codesandbox.io/s/yq77xr7nwv

Local IDE

Copy the folder src-step-0 to src, open your favourite text editor and run npm start (After running npm i, of course).

The folder includes:

  • utils folder: Includes what you don't know where to put. In this case a map of notes to frequencies and a piano sprite.
  • index.js: starting point
  • styles.css: Includes all the styles you will need to allow you to focus in the React part.

Step 1: Create Keyboard component

Step 1

Step 2: Create Key component

Step 2

Step 3: Adding WebAudio synth

Step 4: Adding Controls component

Step 4

Step 5: Adding real piano samples

Contributing

Feel free to contribute! It is very much appreciated!

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 55.4%
  • CSS 41.7%
  • HTML 2.9%