Text of this page, read by machine (may contain mistakes)
COLECOVISION SOUND USERS’ MANUAL page
ASTEPS: ASTIPS is the signe. 4 bit size of a step in an attenuation sweep;
can take values 1 to 7, -1 to -8 (ISB = 1 means negative)
APS: 4 bit attenuation prescaler, used with ALEN to determine the length of a
frequency weep
APSV: 4 bit tesporary storage location for APS; this variable gets decremented
@very VDP interrupt, and is reloaded from APS
® Frequency sweeps and note duration
“The time duration of a note = the number of passes by PLAY_SONCS through the
mote times 16.725 (the VDP interrupt period). (note that the time the note is
HEARD could be shorter: see “Attenuation sweeps" discussion) The number of
PLAY_SONCS passes is always Gelersined directly or indirectly by NLEN. WNLEN,
however, has two meanings, depending upon whether or not a note's frequency is
swept:
Timed frequency notes - In this case, NLEN is decremented every VDP interrupt
end therefore directly determines the length of a note:
duration = NLEN ® 16.78
NLEN should have values in the range 0 to 255 (0 =) 256), giving a marin
duration of ~ 4.25 seconds.
Swept frequency notes - Here, the prescaler variable, FPSV, is decremented
until sero before NLEN is decremented. Once FPSV goes to sero, it's reloaded
from FPS; however, an initial walue for FPSV, which enters into the calculation
of the the length of the first step in the sweep, is stored in ROM along with
the rest of the note's initial data, end it may be different from the reload
value, FPS. For a frequency swept note:
note duration = (((NLEN -1) ® FPS) « initial FPSV] ® 16.?ms
So, NLEN again determines note duration, but in an indirect fashion (in concert
with FPS and the initial FPSV).
In the case of 2 frequency swept note, NLIN can be thought of as one of four
parameters that describe the sweep: 1) the starting frequency, 2) FSTEP, @
signed step size, i.e., & delta frequency that is periodically added te the
current frequency, 3) the prescaler value (FPS) which determines the length of
time at any one frequency step, and @ NLEN, the number of steps in the sweep.
The duration of each step in the sweep is given by the following:
Curation ist step = initial FPSV ® 16.78
duration all others «= FPS * 16.?ms
Frequency sweep parzmeter ranges:
TSTEP - signed 8 bit two's complement number: i to 127, -1 te -128; an FSTEP of
© tells FREG_SWEIEP that the note is not frequency swept, and the note’s
duration is determined by directly decrementing NLEN (prescaler is disregarded)
FPS - 4 bit frequency prescaler, used with NLEN to cetermine the length of 2
frequency sweep 0 to 15 (0 =) 16)