Sound FX

16K Cassette or Disk
by John Carmody


Creating sound effects with the Atari computers is fun! Creating just the right effect can, however, be frustrating. Most of the sound manipulation utilities are powerful but complicated. What most of us need is a program that is powerful but simple, one that is most useful for BASIC programming, or just exploring the amazing sound potential of our omnipotent computers.

Sound FX is that program. The screen displays:

   VOICE/PLAY :
   ATTACK     :
   SUSTAIN    :
   DECAY      :
   FREQUENCY  :
   DISTORTION :
   VOLUME     :

for all four voices. A joystick, plugged into port 1, moves the cursor. Pressing the button on most lines increases the appropriate value. Pressing the button on the VOICE/PLAY line plays the sound. Pressing START at any time plays all four voices with the time values of the current voice. When any value reaches its maximum, it is reset to zero. When playing a single voice, the BASIC SOUND command appropriate to the SUSTAIN portion of the note is displayed at the bottom of the screen.

LineFunction
0Skip to initialization
6000Begin single voice play
6006Skip if ATTACK=0
6009Skip if SUSTAIN=0
6019Skip if DECAY=0
6030Turn off voice
6050Return to joystick entry
7000If OPTION then end
7001Begin multiple voice play
7002Skip if ATTACK=0
7009Skip if SUSTAIN=0
7019Skip if DECAY=0
7030Return to joystick entry
8000Initialize
8015Read initial sound values
8020Read screen display
8050Set up screen and colors
8100Read X,Y positions for display
8900Print bottom of screen
9000Print sound matrix on screen
9010Print initial sound values
9020Position cursor for start
10000Main entry loop
10001Check for console key pressed
10007If no entry, loop
10008Get rid of cursor at current location
10010Convert stick to X,Y
10060Decide where to move cursor
10150Put cursor at new location
10200Loop back
15000Button pressed if on VOICE/PLAY then play
15010Increment/reset value
15020Jump back to cursor printing routine
19000Date for hi-lo of values
20000Date for initial values
Listing 1: BASIC Listing

SOUNDFX.LST is available in ATASCII format.

This BASIC listing uses an image to display special characters

Checksum Data
0 DATA 427,672,604,75,331,705,314,567,
900,198,861,854,13,96,834,7451
6020 DATA 17,259,256,914,200,158,49,28
3,216,859,280,873,864,283,190,5701
7029 DATA 45,914,666,232,114,459,287,4
77,406,3,228,652,23,521,226,5253
9020 DATA 289,131,761,782,951,149,593,
451,896,893,733,382,816,822,828,9477
10090 DATA 826,863,862,874,879,995,501
,944,179,758,655,524,633,107,203,9803
19000 DATA 869,872,875,159,885,890,962
,823,1,747,7083

Previous | Contents | Next

Original text copyright 1984 by ANALOG Computing. Reprinted with permission by the Digital ANALOG Archive.