P: Commodore 64 Sound Control Settings - Commodore 64 User Manual

Hide thumbs Also See for 64:
Table of Contents

Advertisement

APPENDIX P
w
COMMODORE 64 SOUND CONTROL
SETTINGS
This handy table gives you the key numbers you need to use in your
sound programs, according to which of the Commodore 64's 3 voices
you want to use. To set or adjust a sound control in your BASIC pro-
gram, just POKE the number from the second column, followed by a
comma (,) and a number from the chart . . . like this: POKE 54276,17
(Selects a Triangle Waveform for VOICE 1).
Remember that you must set the VOLUME before you can generate
sound. POKE54296 followed by a number from 0 to 15 sets the volume
for all 3 voices.
It takes 2 separate POKEs to generate each musical note . . for
example POKE54273,34:POKE54272,75 designates low C in the sample
scale below.
Also . . . you aren't limited to the numbers shown in the tables. If 34
doesn't sound "right" for a low C, try 35. To provide a higher SUSTAIN
or ATTACK rate than those shown, add two or more SUSTAIN numbers
together. (Examples: POKE54277,96 combines two attack rates (32 and
64) for a combined higher attack rate . . . but . . . POKE54277,20
provides a low attack rate (16) and a medium decay rate (4).
0
162

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents