[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.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
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.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
