SRL Archive - SRL Development and Help

Beep


TomTop

2014-10-29 15:32:10

Hey,

How can I make my program play a beep after X seconds?

I know I could use the PlaySound() function, and just download a beep sound, but is there any other way?

I downloaded a plugin from a little while back, but it doesn't work (for me).

Thanks.

Brandon

2014-10-29 16:06:56

From: TomTop
How can I make my program play a beep..



writeln(#7);

KeepBotting

2014-10-29 18:39:58

From: Brandon

writeln(#7);


Writeln plays sounds? Even I didn't know that. Jeebus.

Brandon

2014-10-29 19:13:46

From: KeepBotting
Writeln plays sounds? Even I didn't know that. Jeebus.


This is language agnostic – as far as I am aware. http://www.asciitable.com/

Character 0x07.

Incurable

2014-10-29 19:27:15

From: Brandon

writeln(#7);


That's awesome. :o

Are there other sounds that can be made?

Brandon

2014-10-30 18:49:08

From: Incurable
That's awesome. :o

Are there other sounds that can be made?



Yes. You can change the pitch and hz of the output sound. I don't remember how though. The above one is called System Bell. There's a few others that happen when you print Unicode Characters. There is a function for the rest though. Not sure if Pascal has it or not.

Noob King

2014-11-02 10:36:57

From: Brandon
This is language agnostic – as far as I am aware. http://www.asciitable.com/

Character 0x07.


Is there a way I could get a hard copy of your brain?

TomTop

2014-11-09 04:40:11

From: Brandon

writeln(#7);


Wow, thanks.
Is there any other code that'll make it run longer?

cosmasjdz

2014-11-09 07:26:37

From: TomTop
Wow, thanks.
Is there any other code that'll make it run longer?


for i:0 to 100 do
begin
writeln(#7)
end;

for the worst occasion?