BEEP: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
m (Removed protection from "BEEP")
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 8: Line 8:
{{PageDescription}}
{{PageDescription}}
* [[BEEP]] can be placed anywhere to alert the user that there is something to do or an error has occurred.
* [[BEEP]] can be placed anywhere to alert the user that there is something to do or an error has occurred.
* '''QB64''' produces the actual "beep" sound through the PC's sound card, to emulate QBasic's beeping through the [https://en.wikipedia.org/wiki/PC_speaker PC speaker].
* '''QB64''' produces the actual "beep" sound through the PC's sound card, to emulate QBasic's beeping through the [[Wikipedia:PC speaker|PC speaker]].


 
=== QBasic/QuickBASIC ===
==QBasic/QuickBASIC==
* Older programs may attempt to produce a BEEP by printing [[CHR$]](7) to the screen. This is no longer supported in QB64 after '''version 1.000'''.
* Older programs may attempt to produce a BEEP by printing [[CHR$]](7) to the screen. This is no longer supported in QB64 after '''version 1.000'''.
** You may have to replace instances of PRINT CHR$(7) in older programs to the [[BEEP]] statement to maintain the legacy functionality.
** You may have to replace instances of PRINT CHR$(7) in older programs to the [[BEEP]] statement to maintain the legacy functionality.
Line 18: Line 17:
{{PageSeeAlso}}
{{PageSeeAlso}}
* [[SOUND]], [[PLAY]]
* [[SOUND]], [[PLAY]]
* [[_SNDPLAY]] {{text|(play sound files)}}
* [[_SNDPLAY]] {{Text|(play sound files)}}
* [[_SNDRAW]] {{text|(play frequency waves)}}
* [[_SNDRAW]] {{Text|(play frequency waves)}}




{{PageNavigation}}
{{PageNavigation}}

Latest revision as of 16:29, 14 June 2024

The BEEP statement produces a beep sound through the sound card.


Syntax

BEEP


Description

  • BEEP can be placed anywhere to alert the user that there is something to do or an error has occurred.
  • QB64 produces the actual "beep" sound through the PC's sound card, to emulate QBasic's beeping through the PC speaker.

QBasic/QuickBASIC

  • Older programs may attempt to produce a BEEP by printing CHR$(7) to the screen. This is no longer supported in QB64 after version 1.000.
    • You may have to replace instances of PRINT CHR$(7) in older programs to the BEEP statement to maintain the legacy functionality.


See also



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link