[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
QbasicFAQ_PlayAndSound
How to use PLAY & SOUND?


Back to QBasic FAQ Main Page.

The PLAY statement is fairly straight forward, and allows the programmer to write PC speaker tunes in a simple way. It allows for note length, pauses, note "attack", and tempo. You can also set the music to play in the background; just remember in order to do so, the PLAY statement must be a "one liner". The "ON PLAY" statement can help create a more lengthy tune, that you can repeat.

SOUND is a little more effect oriented than music oriented. With SOUND, you can dictate what is played by frequency and length, one "note" at a time. Some interesting sound effects can be created with a just little math and for/next loops.

last edited (December 9, 2002) by KDivad Leahcim, Number of views: 2431, Current Rev: 2 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.