Suggested modification/extension of beep
Harald Becker
ralda at gmx.de
Thu Feb 18 09:28:07 UTC 2010
Hi!
I want to suggest an alternate and extended command syntax of the beep
applet. The new syntax is very close to old one. That is most old script
should work without a fix or only little modifications. Additionally a
new syntax style allows to play sequences of tones more easily.
Example:
old: beep -f 200 -l100 -d50 -n -f400 -l200 -n -f800 -l50
new: beep -d50 200:100 400:200 800:50
Additionally the new beep allows to play phaser style effects. That is
increasing or decreasing tone frequencies over the tone duration (in
contrast to constant frequencies).
Example:
beep 1000..4000:200
beep 4000..1000:200
There is also an new option, which allows for delays after the last
played tone.
Example:
beep 1000:100 -w2000
(plays a single tone of 1000Hz over a duration of 100ms and than waits
for 2000ms before exiting)
The configuration menu allows selection of the old or new style command
syntax (old or new code of beep applet). Additionally the phaser effects
can be enabled or disabled (excluded from code).
Patch to current snapshot included.
Comments?
Tschau
Harald
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: beep-patch
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20100218/6670f805/attachment.diff>
More information about the busybox
mailing list