Skip to content

tiffkwan/Pianooooo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pianooooo

By: Tiffany Kwan

Deployment

Tiffany's Githib Page - Project Link

Statement

A basic, classic piano with white and black keys. This program will be controlled, using/clicking the mouse. It was interesting to see how complex it is to code a seemingly simple object/game. During the process of creating this code, it was fascinating to learn how to use abstraction to make the code easier to read and easier to work with.

Results

This program was written using p5.js and its sound library (p5.sound). Eariler in theprocess, I was recommended to try to use the keyboard functions as the piano keys rather than pressing with the mouse; I was unable to meet this goal, so the piano will be played with the mouse. Lastly, in my original proposal, the piano was supposed to be vertical instead of horizontal. I had gone through many trials trying to reposition parts of the code and had no luck. As a result, the piano is in a horizontal position. Overall, my piano runs fine. Each key has their own individual note and color when they are pressed with a mouse. When testing the piano, I noticed that some keys would need multiple clicks for the note to play. I looked over the code and found no problem; perhaps the local editor I used is a bit glitchy.

Objectives Achieved

  • Working both locally and p5.js
  • Figured out the ps.sound library
  • Keys work/notes play when they are pressed with the mouse
  • Formation of white and black keys
  • Individual color changes when each key is pressed with mouse

Built With

Credits

  • monniqian - creator on p5.js that gave me inspiration for this program
  • kay1997 - creator on p5.js that gave me inspiration for this program

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published