beep icon indicating copy to clipboard operation
beep copied to clipboard

Incorporate sine for output

Open ghost opened this issue 7 years ago • 1 comments

Currently it seems beep uses square waves for acoustics however, sines are softer and it would be nice to have beep output whatever it does already but as sines so for an ordinary command for example:

$ beep -f 1000 -n -f 2000 -n -f 1500

but for sines we add -t and for sine output $beep -t sine -f 1000 -n -f 2000 -n -f 1500

it would be a refreshing change to have.

ghost avatar Mar 22 '18 02:03 ghost

beep interfaces to the PC speaker, and the circuitry controlling the PC speaker only does square waves.

If you want to hear more sophisticated sounds, use a proper sound card and a software like e.g. sox to synthesize sounds:

$ beep -f 440 -l 500
$ play -n synth 0.5 square 440
$ play -n synth 0.5 sine 440

ndim avatar Dec 29 '18 04:12 ndim