Add piano

This is exactly what the title says, a piano.
This commit is contained in:
iAmInAction 2023-07-08 15:09:35 +00:00 committed by GitHub
parent c25e0922f9
commit 6ca9d00418
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

65
piano.sh Normal file
View File

@ -0,0 +1,65 @@
#!/bin/bash
length=100
while true
do
read -n1 key
case $key in
a)
beep -l $length -f 261
;;
w)
beep -l $length -f 277
;;
s)
beep -l $length -f 293
;;
e)
beep -l $length -f 311
;;
d)
beep -l $length -f 329
;;
f)
beep -l $length -f 349
;;
t)
beep -l $length -f 369
;;
g)
beep -l $length -f 392
;;
z)
beep -l $length -f 415
;;
y)
beep -l $length -f 415
;;
h)
beep -l $length -f 440
;;
u)
beep -l $length -f 466
;;
j)
beep -l $length -f 493
;;
k)
beep -l $length -f 523
;;
o)
beep -l $length -f 554
;;
l)
beep -l $length -f 587
;;
p)
beep -l $length -f 622
;;
*)
sleep 0.$length
;;
esac
done