I'm trying to write bash script that plays a tone while a key is held down.
Here's what I have so far:
https://github.com/thelazymastermind/pcspkr_keyboard/blob/master/keyboard.sh
It works, but the note can't be played continously while a key is held down.
If this can't be done in bash, how can it be done with C or Python?