Skip to content

Catalog

Everything collectors track, in one database: games, hardware, ADAM software, the Library and memorabilia.

Your browser is older than this site is made for, so some colors and layouts may look wrong. Everything still works; for the best view, update it (Safari 16.4, Chrome or Edge 111, Firefox 121 or newer).
Books & Magazines Library

ColecoVision Programmer's Manual

A scan, 451 pages. Download the PDF

Opening the page… If it does not appear, open the PDF instead (the page reader needs JavaScript and a recent browser).

Text of this page, read by machine (may contain mistakes)
COLECOVISION SOUND USERS' MANUAL page 9 FPSV - @ bit temporary storage location for FPS; this variable gets Secremented every VDP interrupt, and is reloaded from FPS 0 “te 18 (0 =) 16 LEN - @ bit note duration for a fixed frequency note: 0 to 255 (0 =) 256) & Sit nember cf steps for a swept frequency note: 2 to 255 C(O =)256) Mote ¢urations: Fined frequency - NLEN * 16.?as8 Gwept frequency - CCCNLEN <1) ® FPS) ¢ initial FPSV] * 16.7ms Guration ist step «= initial FPSV * 16.7ms uration ell cthars «= FPS * 16.7ms 2 Attenuation sweeps Volume attacks and decays can be thought of as attenuation sweeps: & sweep from lew ts higher volume is an attack, a sweep in the other direction is # decay Attenuction sweeps cre created in a similiar fashion to the frequency sweeps Gescribed ebowe, the primary difference being that attenuation swees parameters Gon't take on 8 bit calves. The full volume range for the attenuation registers on the 76489 chip is 0 (ON) to 15 (OFF), so step sizes and number of svresp steps greater than 4 bits aren't generally useful. Just as in the case of a frequency swept note, attenuation sweeps have four parameters that describe the sweep 1) the starting attenuation, 2) ASTEP. «@ signed step sire, i.e, & delta attenuation that is periodic ally acded to the current sttenuation, 3) the prescaler value (APS) which determines the length cf time at any one attenuation step, end © ALEN, the number of steps in the sweep. The prescaler parameters, APS and APSV, are the sane site (4 bits) and mean exectly the same thing as their frequency counterparts. ALEN, the number of steps in the sweep, is only 4 bits (compared to an FLEN of 8 bits), but 15 steps of even the smallest step sire (¢/-1) can sweep a generator from full on to full off. ASTEIP, in order to squeete it into a nibble, has been limited to a2 4 bit signad number (3 bits data, 1 bit sign). This gives a range of step walues from 1 to 7, <1 to -8. This shouldn't be too limiting, since most attenuation sweeps are implemented with the smallest step site. NOTE. Recall thet, as far as SND_MANACER ie concerned. the lencth of a note is determined, directly or indirectly, only by NLEN, @ timer/counter that is decremented during FREO_SWEEP; i.e., the duration of a note is independent of what is happening to its attenuation. ‘Therefore, the programmer should take cere to see that an attenuation sweep isn't inadvertently created that ramps the wolume down to off before SND_MANAGEIR, through NLEN, has decided that the note is ower. However, since ATN_SWEIP simply leaves the attenuation alone once it's finished a sweep, the independence of attenuation sweep length and note length may be put to good use: e.g., a sforrando can be accomplished by making an attenuation sweep (to a still audible volume) end before the rest of the note. LEN, like NLEN for a frequency sweep, is the number of steps in an attenuation sweep and con take on values from 0 to 15. However, since a “step” consists of a tone (which may be frequency swept) played at a fixed attenuation leve:, « Sweep of 1 step doesn't make sense. ALEN values, then, should range from 2 to 1S. Am ALEN value ef 0 causes a sweep of sixteen steps (NOTE ATN_SWEEP “wraps arouné” at 0 and iS, f.e., subtracting 1 from 0 results in 15, anc adding 1 to 15 results in 0).

Menu