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

 

 

 

 

 

 

 

 

 

 

 

 

MUSIC

Format: MUSIC (X, Y, Z)

Supported by: COMX BASIC V1.00

Similar commands:
COMX BASIC V1.00: TONE
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 MUSIC command is in the form, MUSIC (X, Y, Z), where X, Y and Z are numeric expressions. X determines the music note and can vary from 1,2 ... to 7. Thus

  1. DO
  2. RAY
  3. MI
  4. FA
  5. SO
  6. LA
  7. TI

Y determines the Octave and can vary from 1, 2, ... to 8 with 8 being the octave with the highest upper frequency.

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

Now, try

MUSIC (1, 1, 1)

followed by pressing CR to get a weak "DO" over the lowest octave.

Try

MUSIC (1, 1,2)

and note the increase in volume.

Try

MUSIC (2, 1,2)

and note the change to a "RAY".

Try

MUSIC (2,2,2)

and note the change to a higher octave.

Notice that once a music command is issued, the note will continue until it is replaced by another music command. To turn-off the music note, type

MUSIC (0,0,0)

Of course, always remember to terminate a command by pressing CR.