[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
TONE()

    TONE() sounds a speaker tone for a specified frequency and duration.

Syntax

    TONE(<expN1>,<expN2>)

Arguments

    <expN1> is the frequency of the tone to sound.

<expN2> is the duration of the tone measured in increments of 1/18 of
a second.  One second, therefore, is 18.

Returns

    There is no return value.

Usage

    TONE() sounds the speaker at the specified frequency for the specified
duration.  The duration is measured in increments of 1/18 of a second.
The frequency is measured in hertz (cycles per second).  Frequencies
less than 20 are inaudible.  The following are the frequencies of
standard musical notes:

Pitch    Frequency             Pitch    Frequency
  C       130.80               mid C      261.70
  C#      138.60                 C#       277.20
  D       146.80                 D        293.70
  D#      155.60                 D#       311.10
  E       164.80                 E        329.60
  F       174.60                 F        349.20
  F#      185.00                 F#       370.00
  G       196.00                 G        392.00
  G#      207.70                 G#       415.30
  A       220.00                 A        440.00
  A#      233.10                 A#       466.20
  B       246.90                 B        493.90

This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson