Home
Musical keyboard emoji

Python Piano

A two-octave digital piano, written in Python 3, that contains the following features:

Python Piano

How to Play

To play the piano through keys on the keyboard, Z - M are the first octave white keys, and holding shift while pressing Z - M will play the second octave white keys. In the row of keys A - L, the keys that fall in between the "white" keys where the "black" keys would normally be are the sharp and flat keys. For example, because the key Z is the note C, the key S is the note C#.

Source code in the Github repository.

I also re-wrote some of it in Preact, click here 🎹 to open a new tab and play it.

All of the notes that are used I found on Freesound.

All of the images that you see I created myself in PicMonkey.