Follow

a=(697 770 852 941);b=(1209 1336 1477 1633);c='123A456B789C*0#D';while read -N1 l;do r="${c#*$l}";i=$((${}-${}-1));[ "$l" = "*" ]&&i=12;play -n synth sin ${a[$((i/4))]} sin ${b[$((i%4))]} remix - trim 0 0.2 2>/dev/null;done # Play DTMF tones using your keyboard. Uses sox pkg.

Well, 15,000 people viewed and yet nobody. I guess as they say, the best place to hide something is in plain sight.

Show thread

@climagic I take it for windows systems your code can be pasted in to the CMD or powershell prompt? While Linux the terminal?

@Jamal Sorry but I don't think so. It's a Unix syntax, but there is probably a powershell way to do it.

@Jamal do U have an newer WIN OS? They have a built-in linux subsystem? @climagic

@climagic does DTMF still work (haha), it's been years since I touched a land line.

@climagic does not work on zsh :(

""read: bad option: -N""

Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!