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

 

 

 

 

 

 

 

 

 

 

 

 

WNOISE

Format: var = WNOISE (Y, Z)

Supported by: Telmac SBASIC v 24.3

Similar commands:
COMX BASIC V1.00: NOISE

The WNOISE command is in the form, WNOISE (Y,Z).

Y determines the frequency range of the Gaussian white noise, and can vary from 0, 1, 2,... to 7.

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

Try

PRINT WNOISE (1, 1)

followed by pressing CR, and note the noise effect.

Try

PRINT WNOISE (1,2)

and note the increase in loudness (or amplitude).

Try

PRINT WNOISE (2,2)

and note the increase in pitch (or frequency).

To turn-off the noise operator, type

PRINT WNOISE (0,0)

Again, always remember to terminate a command by pressing CR.

Note that the value returned from the WNOISE command represents the value of bit 8 to 15 (shifted 8 bits to the right) from OUT 5 as in the following table.

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

Off

Range

Noise volume

Video bits...

Gaussian white noise, is noise that can be heard between stations when turning an "FM" radio. This type of noise, which contains many different frequencies is very useful in producing sound effects.