Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

coding-cpp/piano

Repository files navigation

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

About

Virtual piano in C++ made using SFML

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

AltStyle によって変換されたページ (->オリジナル) /