1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

QuickBASIC Sound

Discussion in 'Software Development' started by Moegopher, Jul 13, 2006.

Thread Status:
Not open for further replies.
Advertisement
  1. Moegopher

    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?
     
  2. Chicon

    Chicon

    Joined:
    Jul 29, 2004
    Messages:
    6,650
    Here's a picture describing the PLAY command :

    [​IMG]

    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)

    ;)
     
  3. Moegopher

    Moegopher Thread Starter

    Joined:
    Jul 13, 2006
    Messages:
    46
    Woah! Thanks a bunch! That really helps.
     
  4. Chicon

    Chicon

    Joined:
    Jul 29, 2004
    Messages:
    6,650
    You're welcome ! :)
     
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 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/483066

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice