Author Topic: BEEP  (Read 3351 times)

0 Members and 1 Guest are viewing this topic.

Offline TerryRitchie

  • Seasoned Forum Regular
  • Posts: 495
  • Semper Fidelis
    • View Profile
BEEP
« on: April 27, 2020, 01:33:58 pm »
Just curious, when did QB64 lose the ability to produce a beep tone by using this?

PRINT CHR$(7) ' ASCII BEL character

While redoing my tutorials I came across this. I'm working on the sound tutorial now and loading some of the old programs didn't beep when they were supposed to.

ASCII values of 7 were used when terminals needed to send an audible alert to users.

In order to understand recursion, one must first understand recursion.

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: BEEP
« Reply #1 on: April 27, 2020, 02:22:02 pm »
Just curious, when did QB64 lose the ability to produce a beep tone by using this?

PRINT CHR$(7) ' ASCII BEL character

While redoing my tutorials I came across this. I'm working on the sound tutorial now and loading some of the old programs didn't beep when they were supposed to.

ASCII values of 7 were used when terminals needed to send an audible alert to users.

SDL versions BEEP.  GL versions...  are all screwed up with the keyboard input behavior!!
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: BEEP
« Reply #2 on: April 27, 2020, 04:51:29 pm »
Hi
Thanks I have never used it for BEEP but it is a good information that let me know also the BEEP statement of QB64

http://qb64.org/wiki/BEEP

Quote
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.

It is always true, I'll never end to learn!

PS I have thought that _CONTROLCHR could affect this, but it is not true
« Last Edit: April 27, 2020, 04:53:12 pm by TempodiBasic »
Programming isn't difficult, only it's  consuming time and coffee

Offline TerryRitchie

  • Seasoned Forum Regular
  • Posts: 495
  • Semper Fidelis
    • View Profile
Re: BEEP
« Reply #3 on: April 27, 2020, 05:46:55 pm »
As Tempo pointed out it's in the Wiki. I should have looked first before I asked.

@TempodiBasic - Yeah, that's how we old schoolers used to get sound in our text adventure games :-)

Sword fight! beep..beep

Fire breathing dragon! beep..beep..beep

You're dead! beep
« Last Edit: April 27, 2020, 05:59:19 pm by TerryRitchie »
In order to understand recursion, one must first understand recursion.

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Re: BEEP
« Reply #4 on: April 27, 2020, 09:07:50 pm »
Pete's posts: Beep, beep, beep, beep
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/