I would like to see the
/beep command expanded to offer more features, allowing for fun sound events and bringing the nostalgic 'terminal' feel back to IRC. This would also make classic 8bit games possible in mIRC Script!
_ current _
/beep <number> <delay>Beeps a number of times with a delay.
_ new _
/beep [-ps] [-f frequency] [-d duration] [-w wavetype] [reps] [delay]Plays an Event Beep according to your Sound Settings.
You can specify the number of repititions and delay between beeps. The default is 3 reps with a delay of 100 milliseconds.
If you specify the
-p flag, it forces the beep through your PC Speaker.
If you specify the
-s flag, it forces the beep through your Sound Card.
If you specify
-f frequency, it will produce a tone of that frequency.
If you specify
-d duration, it will play the tone for that duration in milliseconds.
If you specify
-w wavetype, it will generate a tone of that wave type.
wavetype can be: square, sine, triangle or sawtooth.
Example: [color:006600]/beep -p -f 800 -d 200 -w square 3 50[/color]
This would sound exactly the same as three CTRL+G's in Win2K or XP's command (DOS) window.
If you're feeling especially productive, Khaled... you could allow for dual overlapping frequencies, aka DTMF. It would be a simple matter of bit merging the two samples, though would only be possible over Sound Card (not PC Speaker).
[color:006600]/beep -f 1209 -d 500 -w square -f 697 -d 500 -w square[/color]
You might even shorten this, by applying the first seen -d and -w values to all previous -f frequencies that omitted -d and -w.
[color:006600]/beep -f 1209 -f 697 -d 500 -w square[/color]
(this is the number 1 on your telephone, for half a second.)
- Raccoon