QuickBASIC Sound

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Moegopher

Thread Starter
Joined
Jul 13, 2006
Messages
46
Hello. I recently started programming in QuickBASIC just for fun, and I discovered the PLAY cammand.
I really like being able to make my own tunes with beeps purely by typing a code, but I have one problem:
I can't make it pause inbetween beeps. I would like to be able to play a song on it without it all slurred together.
For example:
--------
PLAY "<c8c8c8"
PLAY "<c6c6c6"
PLAY ">c8c8c8"
--------
But pausing between each line.
Can anyone help me here?
 
Joined
Jul 29, 2004
Messages
6,650
Here's a picture describing the PLAY command :



Also, between two PLAY commands, you may use the SLEEP command.

Example :

SLEEP 15 (the program stops for 15 seconds)

SLEEP or SLEEP 0 (the programs stops and waits for a key being pressed)

;)
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Members online

Top