Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorporate sine for output #10

Open
ghost opened this issue Mar 22, 2018 · 1 comment
Open

Incorporate sine for output #10

ghost opened this issue Mar 22, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 22, 2018

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.

@ndim
Copy link

ndim commented Dec 29, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant