johnath / beep

beep is a command line tool for linux that beeps the PC speaker
http://www.johnath.com/beep/
GNU General Public License v2.0
186 stars 49 forks source link

Thank you #9

Open ghost opened 7 years ago

ghost commented 7 years ago

Thank you for making this command take a duration and a frequency as argument, I had fun making Albinoni's Adagio in a shell script, and a piano in awk (dvorak by default, with qwerty ready to switch in source) thanks to this.

Multiple calls to beep really cut it, no real need for -n indeed.

You can close this right away, there is no issues (only linux kernel limitations).

rhonda commented 7 years ago

<3 Thanks for sharing! I'll leave it open for a bit for a purpose. :)

federico-razzoli commented 7 years ago

Can I ask which kernel limitations affect beep?

ghost commented 7 years ago

@rhonda Alright :)

@santec I was referring those you talked about in the README, in particular, concerning the availability of beep outside of the TTY (in a terminal emulator in X11).

There are also frequencies mismatches when they are high: beep -f 1500 and beep -f 1350 produce the same sound. I assumed this was also a known limitation.

And not being possible to compose two beep sound at the same time, but implementing a sound library inside the beep command would be an overkill right ? ;)

federico-razzoli commented 7 years ago

I didn't write the README, I am just a curious reader :) Thanks for answering. I'm also curious about the "2 beeps" thing. Is the bell hardware able to emit more than 1 sound at a time?

ndim commented 7 years ago

For the record: On my system, beep -f 1500 and beep -f 1350 do produce differently pitched sounds. This behaviour differs from the one @josuah describes above. (My system is running Fedora 24, and I maintain the beep package on Fedora, but not the kernel drivers.)

hyh19962008 commented 6 years ago

I think you can have multiple speakers installed if you want to have more sound at the same time!

ndim commented 6 years ago

The circuits for the PC beep exists only once per PC chipset. So to have more than one tone at the same time you need more than one PC.