spkr-beep / beep

beep is a command line tool for linux that beeps the PC speaker

Home Page:https://github.com/spkr-beep/beep

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support linearly and exponentially chirped beeps

KOLANICH opened this issue · comments

-C (l|e) <first freq> <last freq>

How would you like that to work? We can only change the frequency of a square wave here.

I am not even sure whether changing the frequency starts a new square right now or only when the next wave period starts.

This needs some experiments with hardware. At the very least.

Absolutely. Currently I just use a sequence of beeps changing their freq, but I don't think the result is optimal. So, it is proposed to do the following:

  1. implement dumb "chirps" just sounding somehow like chirps, using just a sequence of beeps. Just a command line sugar.
  2. try to find a way to implement real chirps without using snd_pcsp (BTW, I tried to output to it from Audacity with zero success)

Looks to me like using (a variant of) sox' play -n synth 0.25 sine 100-5000 gain -10 would better do what you are describing.

Does it use PC Speaker?

No. sox uses normal PCM sound via sound card.

So, it is not a complete replacement to beep.

Certainly not. But that does produce a proper chirp, at least AFAICT without analyzing the signal using a digital storage oscilloscope.