Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Basic - <b>sound sound the speaker</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SOUND                    Sound the Speaker

 SOUND freq,duration

    Sounds the speaker at a specified frequency for a specified length of
    time.

        freq    A numeric expression in the range 37 to 32767; specifies,
                in Hertz, the frequency (pitch) of the tone to be sounded.

    duration    A numeric expression in the range 0.0015 to 65535.
                Specifies the length of time the tone is to be sounded, in
                units of clock ticks. Each clock tick is 1/18.2
                (0.054945054) of a second.

   --------------------------------------------------------------------------

      Notes:    A SOUND statement reinitializes the MTIMER microtimer.

                A SOUND statement does not hold up program execution.
                Program execution continues while the sound is being
                generated.

                If another SOUND statement is encountered while one is in
                progress, Turbo Basic waits until the first has completed
                before executing the second.

See Also: BEEP PLAY (Statement)

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson