Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.31 KB

README.md

File metadata and controls

46 lines (34 loc) · 1.31 KB

Piano

General Info

  • I like playing the Piano, and often indulge in it
  • The frequemcy of the different notes was obtained from here
  • This is just an arrow I shot in the dark to see what all I might be able to do, so some features are yet to be implemented, and I'll be working on them soon..
  • Any changes / updates you'd like to see, open up an Issue :)

Setup

My setup was on Ubuntu 20.04. To download SFML, run:

sudo apt update
sudo apt install libsfml-dev

Now, in order to run the application, navigate into this directory and edit the file ./include/config.h on line #11 to the sound path:

const std::string soundFilePath = "<insert sound file path here>";

And finally, run the following commands:

chmod +x ./run.sh
./run.sh

If all goes according to plan, your terminal should look something like this:

Terminal

Instructions

  • Hit SPACE to stop playing everything
  • Playing the piano is simple, refer the images below:
OCTAVE KEYS
Lower Lower Octave
Middle Middle Octave
Higher Higher Octave

Preview

Well, this is how it looks:

Piano