Explanation
SOUND Statement
Generates a sound through your computer's speaker.Worth knowing
Useful and cross-version information about the programming environments of QBasic, QuickBasic and Visual Basic for DOS.
Useful and cross-version information about the programming environments of QBasic, QuickBasic and Visual Basic for DOS.
SOUND frequency, duration |
frequency | The frequency of the sound in hertz; a value in the range 37 through 32,767. |
duration | The number of system clock ticks the sound lasts; a value in the range 0 through 65,535. There are 18.2 clock ticks per second. |
FOR i% = 440 TO 1000 STEP 5
SOUND i%, i% / 1000
NEXT i%
See also: | PLAY (Music) |