mIRC Home    About    Download    Register    News    Help

Print Thread
#79400 15/04/04 11:57 AM
Joined: Feb 2003
Posts: 2,812
Raccoon Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
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


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#79401 15/04/04 07:19 PM
Joined: Mar 2003
Posts: 187
S
Vogon poet
Offline
Vogon poet
S
Joined: Mar 2003
Posts: 187
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.

#79402 15/04/04 07:52 PM
Joined: Dec 2002
Posts: 230
G
Fjord artisan
Offline
Fjord artisan
G
Joined: Dec 2002
Posts: 230
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.

#79403 15/04/04 09:34 PM
Joined: Aug 2003
Posts: 72
V
Babel fish
Offline
Babel fish
V
Joined: Aug 2003
Posts: 72
I like it!

#79404 16/04/04 06:57 AM
Joined: Jan 2003
Posts: 428
P
Fjord artisan
Offline
Fjord artisan
P
Joined: Jan 2003
Posts: 428
Yeah! terminal feel! 8-bit games!
* PastMstr sets mode -retro

*cough*

I'm in favour. wink

PM


IRCnet & DALnet @#travelersinn
:-: IRC for fun and relaxation :-:
#79405 16/04/04 07:19 AM
Joined: Oct 2003
Posts: 12
E
Pikka bird
Offline
Pikka bird
E
Joined: Oct 2003
Posts: 12
Yeah that would be really nice for picwin games and demos :]



Link Copied to Clipboard