[<<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)
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson