Text of this page, read by machine (may contain mistakes)
COLECOVISION SOUND USERS ' MANUAL page 10
The curation of an attenugtion sweep can be calculated as follows
éuretion entire sweep » [((ALEN -1) * APS) + initial APSV) « 14.7m5
Suretion ist step . tmitial APSV * 16.7ms
Suretion all ethers « APS * 16.7ms
Attenuation eweep paremeter renges:
ALEN: 4 5it number of steps in en aettencvation sweep; can take walvues from 2 to
TS @ =) 84 steps).
QSTEP: ASTEP is the € Sit signed (two's complement) sire of a step in en
attenuction sweep; cen take values from 1 to 7, -1 to -8.
APS. € bit attenuation prescaler, used with ALEN to determine the length of a
trequency sweep: 0 to 15 =) £6).
APSYV: 4 bit temporary storage jocation for APS; this variable gets decremented
every VOP interrupt, end is reloaded from APS: 0 te 15 (0 =) 16)
Decssiptions of each of the siz note types follow:
* Rests
See Figure 4.
byte 0 BS set indicates 2 reat, to de played on CH@ in B7 - Bé
guration = (84 - BO) * 16.?ms, can take values 1 to 31
® Type 0: Fired frequency, fired attenuation
See Figure 4.
byte 0: header, CH in B7 - Bé, note type = 0 in Bl - BO
byte t: least significant § bits of the 10 bit frequency data (constant)
byte 2: MSN «= 4 bit ATN Gata (constant throughout the note)
LSN = © 0 FO Fi, the top 2 bits cf the frequency data (constant)
byte 3: NLEN, duration of the note s NLEN ® 1é6.?ms
© Type i: Swept frequency, fixed attenuation
See Figure S$.
byte Oo: header, CH® in B7 - Bé, note type = 1 in Bi - BO
byte i: least significant & bits of the initia! 10 bit frequency cata
byte 2: MSN = 4 bit ATN data (constant throughout the note)
LSN = OO FO F!, the tep 2 bite of the initial frequency data
brte 3: NLEN, number of steps in the frequency sweep, 1 to 255 (0 =) 256)
byte 4: FPS : FPSV, prescaler reload value and initial FPSV
byte 5S: FSTEP, sweep step size, 1 to 127, <1 to -128
© Type 2: Fired frequency, swept attenvation
See Figure é.
byte 0: header, CH@ in B7 - Bé, note type = 2 in BI - BO
byte ti: least significant & bits of the 10 Bit frequency data (constant)