in reply to Tk Morse Code Ear tutor
> Any comments or improvements welcome..
Why did you used aplay instead of using a more portable way to play sounds, as you already demonstrated to us in Tk Game Sound demo using SDL?
Did you considered to put this software on github? Well you have gigas of tk perl code to post there, if you want..
L*
UPDATE
ok, effectively SDL seems unable to produce sounds, but investigating I found an old module named Audio::Beep that seems fun to use: zentara can you hear me?
#linux quoting perl -MAudio::Beep -e 'for("--.. . -. - .- .-. .-"=~/./g){ /\./ ? beep +(1000,100) : /\-/ ? beep(1000,200) : sleep 1}' #double quoting perl -MAudio::Beep -e "for('--.. . -. - .- .-. .-'=~/./g){ /\./ ? beep +(1000,100) : /\-/ ? beep(1000,200) : sleep 1}"
if you install the module dont miss the oneliner that comes along docs: perl -MAudio::Beep -e 'beep(21 + rand 1000, rand 300) while 1'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Tk Morse Code Ear tutor
by zentara (Cardinal) on Aug 27, 2018 at 11:39 UTC | |
|
Re^2: Tk Morse Code Ear tutor (updated)
by zentara (Cardinal) on Aug 28, 2018 at 17:32 UTC |