Commodore 128 Programmer's Reference Manual page 75

Hide thumbs Also See for 128:
Table of Contents

Advertisement

n
BASIC BUILDING BLOCKS AND BASIC 7.0 ENCYCLOPEDIA
65
n
n
SLOW
Return the Commodore 128 to 1MHz operation
SLOW
j"|
SOUND
Output sound effects and musical notes
H
SOUND v,f,d[,dir][,m][,s][,w][,p]
i
I
where:
v
= voice (1..3)
-]
f
= frequency value (0..65535)
j
d
= duration (0..32767)
dir = step direction (0(up), l(down) or 2(oscillate)) default = 0
m
= minimum frequency (if sweep is used) (0..65535) default = 0
s
= step value for sweep (0..32767) default = 0
w
= waveform (0 = triangle, 1 = sawtooth, 2 = variable, 3 = noise)
default = 2
p
= pulse width (0..4095) default = 2048
n
n
EXAMPLES:
SOUND 1,40960,60
Play a SOUND at frequency 40960 in voice 1
for 1 second.
_
SOUND 2,20000,50,0,2000,100
Output a sound by sweeping through frequen-
I
cies starting at 2000 and incrementing upward
f
in units of 100 up to 20,000. Each frequency is
played for 50 jiffies.
n
1
SOUND3,5000,90,2,3000,500,1
This example outputs a range of sounds start
ing at a minimum frequency of 3000, through
5000, in increments of 500. The direction of
the sweep is back and forth (oscillating). The
selected waveform is sawtooth and the voice
selected is 3.
SPRCOLOR
Set multi-color 1 and/or multi-color 2 colors for all sprites
SPRCOLOR [smcr-l][,smcr-2]
where:
smcr-1
Sets multi-color 1 for all sprites.
smcr-2
Sets multi-color 2 for all sprites.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents