1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:37:36 +00:00

Piano: Add mouse support for playing notes

Fixes #332
This commit is contained in:
Conrad Pankoff 2019-08-02 20:51:06 +10:00 committed by Andreas Kling
parent c02868f000
commit 45c5a91afc
3 changed files with 116 additions and 55 deletions

View file

@ -12,6 +12,7 @@ struct Sample {
enum WaveType { Sine, Saw, Square, InvalidWave };
enum PianoKey {
K_None,
K_C1, K_Db1, K_D1, K_Eb1, K_E1, K_F1, K_Gb1, K_G1, K_Ab1, K_A1, K_Bb1, K_B1,
K_C2, K_Db2, K_D2, K_Eb2, K_E2, K_F2, K_Gb2, K_G2,
};