[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

How to make beep sounds?

Nuralanur

2/2/2006 3:57:00 PM

Dear all,

is there an easy way to output a beep sound (maybe with length/frequency
parameters?) in Ruby?

Thanks,

Axel
2 Answers

Tanner Burson

2/2/2006 4:03:00 PM

0

On 2/2/06, Nuralanur@aol.com <Nuralanur@aol.com> wrote:
>
> Dear all,
>
> is there an easy way to output a beep sound (maybe with length/frequency
> parameters?) in Ruby?
>
> Thanks,
>
> Axel
>
>
puts 7.chr

It's just a normal annoying system beep. I'm sure there are other ways, but
for just a simple "get your attention" beep, it works fine.

--
===Tanner Burson===
tanner.burson@gmail.com
http://tanner... <---Might even work one day...

William James

2/2/2006 5:31:00 PM

0


Tanner Burson wrote:
> On 2/2/06, Nuralanur@aol.com <Nuralanur@aol.com> wrote:
> >
> > Dear all,
> >
> > is there an easy way to output a beep sound (maybe with length/frequency
> > parameters?) in Ruby?
> >
> > Thanks,
> >
> > Axel
> >
> >
> puts 7.chr
>
> It's just a normal annoying system beep. I'm sure there are other ways, but
> for just a simple "get your attention" beep, it works fine.

puts "\aThe pot is boiling over!"