mIRC Homepage
Posted By: Raccoon Overhaul to /BEEP - 15/04/04 11:57 AM
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! laugh

_ 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
Posted By: Soul_Eater Re: Overhaul to /BEEP - 15/04/04 07:19 PM
This could be done with a dll, and I dont like this idea personally. What if someone does a

/beep -p -f 2000 -d 100000000000000000000


very painful.
Posted By: greeny Re: Overhaul to /BEEP - 15/04/04 07:52 PM
Then do a /beep stop, just like /splay stop.
I like the idea, and it shouldn't be hard to implement or break any scripts.
Posted By: visionz Re: Overhaul to /BEEP - 15/04/04 09:34 PM
I like it!
Posted By: PastMaster Re: Overhaul to /BEEP - 16/04/04 06:57 AM
Yeah! terminal feel! 8-bit games!
* PastMstr sets mode -retro

*cough*

I'm in favour. wink

PM
Posted By: Epsilon Re: Overhaul to /BEEP - 16/04/04 07:19 AM
Yeah that would be really nice for picwin games and demos :]
© mIRC Discussion Forums