This is my dubious attempt to create a simple 8-bit piano in C++/SFML. Key feature of this piano is that it doesn't play prerecorded samples but calculates them during compilation.
- active key highlighting,
- polyphonic,
- sine and square waveforms,
- 88 keys,
- poor coding
First, You need SFML library installed. If you're a Linux user, it can be simply done by entering your terminal via Ctrl+Alt+T and typing
sudo apt-get install libsfml-dev
You'll need the program itself, so don't forget to
git clone https://github.com/Sztakler/sound-synthesizer
Then you can make and execute this program typing
make && ./sound-synthesizer
Otherwise simple
g++ src/*.cpp -lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio && ./a.out
should do the work.
I strongly recommend not playing any other sounds on your computer while using this synthesizer nor recording anything. It may lead to some serious issues with sampling (earrape warning).