1. BELL

------=_NextPart_000_0017_01BF6D6B.681B2180
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I'm a newby here, can anyone tell me how to 'beep' the computer?? On the =
basic I have been using it was 'crt$("bell")'.

..thanks... george

------=_NextPart_000_0017_01BF6D6B.681B2180
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>I'm a newby here, can anyone tell me how to 'beep' =
the=20
computer?? On the basic I have been using it was=20
'crt$(&quot;bell&quot;)'.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>

------=_NextPart_000_0017_01BF6D6B.681B2180--

new topic     » topic index » view message » categorize

2. Re: BELL

The command that you want is sound().
sending a beep character to the console out isn't a very effective
method.  sound(freq).. You will need to apply a delay.
sound(0) will turn it off.
you might try something like this.

global procedure beep()
  atom t

  sound(600)
  t = (time() + 0.05)
  while (t > time()) do
  end while
  sound(0)
  t = (time() + 0.05)
  while (t > time()) do
  end while
end procedure

for A = 1 to 3 do
  beep()
end for

        Lucius L. Hilley III
        lhilley at cdc.net
+----------+--------------+--------------+
| Hollow   | ICQ: 9638898 | AIM: LLHIII  |
|  Horse   +--------------+--------------+
| Software | http://www.cdc.net/~lhilley |
+----------+-----------------------------+
----- Original Message -----
From: George Walters <gwalters at SC.RR.COM>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Wednesday, February 02, 2000 10:51 AM
Subject: BELL


> ---------------------- Information from the mail
header -----------------------
> Sender:       Euphoria Programming for MS-DOS
<EUPHORIA at LISTSERV.MUOHIO.EDU>
> Poster:       George Walters <gwalters at SC.RR.COM>
> Subject:      BELL
> --------------------------------------------------------------------------
-----
>
>
> ------=_NextPart_000_0017_01BF6D6B.681B2180
>         charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> I'm a newby here, can anyone tell me how to 'beep' the computer?? On the =
> basic I have been using it was 'crt$("bell")'.
>
> ..thanks... george
>
> ------=_NextPart_000_0017_01BF6D6B.681B2180
>         charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
> <HTML>
> <HEAD>
>
> <META content=3Dtext/html;charset=3Diso-8859-1 =
> http-equiv=3DContent-Type>
> <META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
> </HEAD>
> <BODY bgColor=3D#ffffff>
> <DIV><FONT size=3D2>I'm a newby here, can anyone tell me how to 'beep' =
> the=20
> computer?? On the basic I have been using it was=20
> 'crt$(&quot;bell&quot;)'.</FONT></DIV>
> <DIV><FONT size=3D2></FONT>&nbsp;</DIV>
>
> ------=_NextPart_000_0017_01BF6D6B.681B2180--
>

new topic     » goto parent     » topic index » view message » categorize

3. Re: BELL

Thanks... I'll give it a whirl

.... george


-----Original Message-----
From: Lucius L. Hilley III <lhilley at CDC.NET>
To: EUPHORIA at LISTSERV.MUOHIO.EDU <EUPHORIA at LISTSERV.MUOHIO.EDU>
Date: Wednesday, February 02, 2000 2:18 PM
Subject: Re: BELL


>    The command that you want is sound().
>sending a beep character to the console out isn't a very effective
>method.  sound(freq).. You will need to apply a delay.
>sound(0) will turn it off.
>you might try something like this.
>
>global procedure beep()
>  atom t
>
>  sound(600)
>  t = (time() + 0.05)
>  while (t > time()) do
>  end while
>  sound(0)
>  t = (time() + 0.05)
>  while (t > time()) do
>  end while
>end procedure
>
>for A = 1 to 3 do
>  beep()
>end for
>
>        Lucius L. Hilley III
>        lhilley at cdc.net
>+----------+--------------+--------------+
>| Hollow   | ICQ: 9638898 | AIM: LLHIII  |
>|  Horse   +--------------+--------------+
>| Software | http://www.cdc.net/~lhilley |
>+----------+-----------------------------+
>----- Original Message -----
>From: George Walters <gwalters at SC.RR.COM>
>To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
>Sent: Wednesday, February 02, 2000 10:51 AM
>Subject: BELL
>
>
>> ---------------------- Information from the mail
>header -----------------------
>> Sender:       Euphoria Programming for MS-DOS
><EUPHORIA at LISTSERV.MUOHIO.EDU>
>> Poster:       George Walters <gwalters at SC.RR.COM>
>> Subject:      BELL
>> -------------------------------------------------------------------------
-
>-----
>>
>>
>> ------=_NextPart_000_0017_01BF6D6B.681B2180
>>         charset="iso-8859-1"
>> Content-Transfer-Encoding: quoted-printable
>>
>> I'm a newby here, can anyone tell me how to 'beep' the computer?? On the
=
>> basic I have been using it was 'crt$("bell")'.
>>
>> ..thanks... george
>>
>> ------=_NextPart_000_0017_01BF6D6B.681B2180
>>         charset="iso-8859-1"
>> Content-Transfer-Encoding: quoted-printable
>>
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
>> <HTML>
>> <HEAD>
>>
>> <META content=3Dtext/html;charset=3Diso-8859-1 =
>> http-equiv=3DContent-Type>
>> <META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
>> </HEAD>
>> <BODY bgColor=3D#ffffff>
>> <DIV><FONT size=3D2>I'm a newby here, can anyone tell me how to 'beep' =
>> the=20
>> computer?? On the basic I have been using it was=20
>> 'crt$(&quot;bell&quot;)'.</FONT></DIV>
>> <DIV><FONT size=3D2></FONT>&nbsp;</DIV>
>>
>> ------=_NextPart_000_0017_01BF6D6B.681B2180--
>>

new topic     » goto parent     » topic index » view message » categorize

4. Re: BELL

------=_NextPart_000_0072_01BF6E20.5DA0EEA0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Your dos programmes can make sound by using sound(pitch) to turn it on, =
and sound(0) to turn it off. As for win32 and linux, I dont know

Nick
  ----- Original Message -----=20
  From: George Walters=20
  To: EUPHORIA at LISTSERV.MUOHIO.EDU=20
  Sent: Thursday, February 03, 2000 4:51 AM
  Subject: BELL


  I'm a newby here, can anyone tell me how to 'beep' the computer?? On =
the basic I have been using it was 'crt$("bell")'.
  =20
  ..thanks... george

------=_NextPart_000_0072_01BF6E20.5DA0EEA0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2014.210" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Your dos programmes can make sound by =
using=20
sound(pitch) to turn it on, and sound(0) to turn it off. As for =
win32&nbsp;and=20
linux, I dont know</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Nick</FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A href=3D"mailto:gwalters at SC.RR.COM" =
title=3Dgwalters at SC.RR.COM>George=20
  Walters</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
  href=3D"mailto:EUPHORIA at LISTSERV.MUOHIO.EDU"=20
  title=3DEUPHORIA at LISTSERV.MUOHIO.EDU>EUPHORIA at LISTSERV.MUOHIO.EDU</A> =
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, February 03, =
2000 4:51=20
  AM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> BELL</DIV>
  <DIV><BR></DIV>
  <DIV><FONT size=3D2>I'm a newby here, can anyone tell me how to 'beep' =
the=20
  computer?? On the basic I have been using it was =
'crt$("bell")'.</FONT></DIV>
  <DIV><FONT size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT size=3D2>..thanks... =

------=_NextPart_000_0072_01BF6E20.5DA0EEA0--

new topic     » goto parent     » topic index » view message » categorize

5. Re: BELL

Waaa! That was my answer, and just as I send it, one arrives from you!

Nick
----- Original Message -----
From: Lucius L. Hilley III <lhilley at CDC.NET>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Thursday, February 03, 2000 8:18 AM
Subject: Re: BELL


>     The command that you want is sound().
> sending a beep character to the console out isn't a very effective
> method.  sound(freq).. You will need to apply a delay.
> sound(0) will turn it off.
> you might try something like this.
>
> global procedure beep()
>   atom t
>
>   sound(600)
>   t = (time() + 0.05)
>   while (t > time()) do
>   end while
>   sound(0)
>   t = (time() + 0.05)
>   while (t > time()) do
>   end while
> end procedure
>
> for A = 1 to 3 do
>   beep()
> end for
>
>         Lucius L. Hilley III
>         lhilley at cdc.net
> +----------+--------------+--------------+
> | Hollow   | ICQ: 9638898 | AIM: LLHIII  |
> |  Horse   +--------------+--------------+
> | Software | http://www.cdc.net/~lhilley |
> +----------+-----------------------------+
> ----- Original Message -----
> From: George Walters <gwalters at SC.RR.COM>
> To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
> Sent: Wednesday, February 02, 2000 10:51 AM
> Subject: BELL
>
>
> > ---------------------- Information from the mail
> header -----------------------
> > Sender:       Euphoria Programming for MS-DOS
> <EUPHORIA at LISTSERV.MUOHIO.EDU>
> > Poster:       George Walters <gwalters at SC.RR.COM>
> > Subject:      BELL
>
> --------------------------------------------------------------------------
> -----
> >
> >
> > ------=_NextPart_000_0017_01BF6D6B.681B2180
> >         charset="iso-8859-1"
> > Content-Transfer-Encoding: quoted-printable
> >
> > I'm a newby here, can anyone tell me how to 'beep' the computer?? On the
=
> > basic I have been using it was 'crt$("bell")'.
> >
> > ..thanks... george
> >
> > ------=_NextPart_000_0017_01BF6D6B.681B2180
> >         charset="iso-8859-1"
> > Content-Transfer-Encoding: quoted-printable
> >
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
> > <HTML>
> > <HEAD>
> >
> > <META content=3Dtext/html;charset=3Diso-8859-1 =
> > http-equiv=3DContent-Type>
> > <META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
> > </HEAD>
> > <BODY bgColor=3D#ffffff>
> > <DIV><FONT size=3D2>I'm a newby here, can anyone tell me how to 'beep' =
> > the=20
> > computer?? On the basic I have been using it was=20
> > 'crt$(&quot;bell&quot;)'.</FONT></DIV>
> > <DIV><FONT size=3D2></FONT>&nbsp;</DIV>
> >
> > ------=_NextPart_000_0017_01BF6D6B.681B2180--
> >
>
>

new topic     » goto parent     » topic index » view message » categorize

6. Re: BELL

On Wed, 02 Feb 2000, you wrote:
> >%_Your dos programmes can make sound by using sound(pitch) to turn it on, and
> >sound(0) to turn it off. As for win32 and linux, I dont know

if platform() = WIN32 then
                  -- call system Beep routine
                  err = c_func(Beep, {0,0}) -- from library.doc

Not on Linux - the sound, like the SVGA and all other hardware, is off-limits
to a normal program(er) for security reasons.

Irv

new topic     » goto parent     » topic index » view message » categorize

7. Re: BELL

If you are in an xterm or any vt100-compatible terminal you should
be able to beep by writing ascii 7 (unless VisualBell is on - you can
set it with ctrl-middle mouse button)
I may be wrong... it works on solaris.

Riwal Raude
rauder at thmulti.com

> -----Original Message-----
> From: Irv Mullins [SMTP:irv at ELLIJAY.COM]
> Sent: Wednesday, February 02, 2000 9:05 PM
> To:   EUPHORIA at LISTSERV.MUOHIO.EDU
> Subject:      Re: BELL
>
> On Wed, 02 Feb 2000, you wrote:
> > >%_Your dos programmes can make sound by using sound(pitch) to turn it
> on, and sound(0) to turn it off. As for win32 and linux, I dont know
>
> if platform() = WIN32 then
>                   -- call system Beep routine
>                   err = c_func(Beep, {0,0}) -- from library.doc
>
> Not on Linux - the sound, like the SVGA and all other hardware, is
> off-limits
> to a normal program(er) for security reasons.
>
> Irv

new topic     » goto parent     » topic index » view message » categorize

8. Re: BELL

On Thu, 03 Feb 2000, Riwal Raude wrote:
> If you are in an xterm or any vt100-compatible terminal you should
> be able to beep by writing ascii 7 (unless VisualBell is on - you can
> set it with ctrl-middle mouse button)
> I may be wrong... it works on solaris.

Sadly, in Linux (SuSE, at least) it only prints ^G, either from an xterm or
from the console.

Irv

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu