EMMA 02

BASIC

  • Home
  • Download
  • Change Log
  • Help
  • Compilation
    • Windows
    • OS X
    • Ubuntu
    • Fedora
    • openSUSE
  • Forums
  • Tape Conversion
  • Machine Code
    • SYSTEM00
    • CDP1801
    • CDP1802
    • CDP1804
    • CDP1805
    • Differences
  • Pseudo Code
    • AMVBAS
    • AM4KBAS
    • CARDTRAN
    • Chip-8, 8X, ETI-660 & Elf
    • FEL-1
    • FPA-1
    • FPL-2
    • FPL-4
    • GPL-2
    • GPL-3
    • GPL-4
    • GPL-A (2K RAM)
    • GPL-A (2K ROM)
    • ST2
    • ST4
    • STK
    • Test-Word
    • Super-chip
  • XML Code
    • Main Elements
    • I/O
    • System
    • A/D Convertor
    • BASIC
    • Batch wav
    • Bootstrap
    • Cassette
    • CD4536B
    • CDP1851
    • CDP1852
    • CDP1854
    • CDP1855
    • CDP1877
    • CDP1878
    • CDP1879
    • Debugger
    • COMX Diagnostic
    • Dip switch
    • Disk
    • EF Buttons
    • Flip Flop
    • Front Panel
    • GUI
    • HEX Modem
    • I/O Group
    • Keyboard
    • Keyfile
    • Locations
    • Memory
    • MM57109
    • Printer
    • RTC
    • Sound
    • Splash
    • USB
    • Video
    • Videodump
    • vt
    • X Modem
  • BASIC
    • General Information
    • COMX BASIC V1.00
    • Floating Point BASIC 2.2
    • Pecom 32 BASIC
    • Pecom 64 BASIC 1.0 & 4.0
    • Quest Super BASIC 1.4
    • Quest Super BASIC 3.0
    • Quest Super BASIC 5.0
    • Quest Super BASIC 6.0
    • RCA BASIC3 V1.1
    • Telmac SBASIC v24.3
    • Error Messages
  • Computer List

 

 

 

 

 

 

 

 

 

 

 

 

TONE

Format: TONE (X, Y, Z)

Supported by: COMX BASIC V1.00

Similar commands:
COMX BASIC V1.00: MUSIC
Floating Point BASIC 2.2: TONE / FREQ
Pecom 32 BASIC, Pecom 64 BASIC 1.0 and 4.0: TONE
Telmac SBASIC v 24.3: BEEP

The TONE command sends out a continuous tone. It is in the form, TONE (X, Y, Z), where X determines the frequency, and can vary from 1, 2, ... to 128.

Y determines the octave, and can vary from 1, 2, ... to 8.

Z determines the amplitude and can vary from 0, 1,... to 15.

The actual generated tone frequency is calculated as follows:

                                Input frequency
Tone frequency =                               Hz

                                           X

Where the Input frequency is calculated based on the octave, specified by Y. See table 1 below.

Y Input frequency (Hz)
CPU: 2.813
Input frequency (Hz)
CPU: 2.835
1 5494.1406 5537.1094
2 10988.281 11074.219
3 21976.563 22148.438
4 43953.125 44296.875
5 87906.250 88593.750
6 175812.50 177187.50
7 351625.00 354375.00
8 703250.00 708750.00
Table 1: Input frequency range selection