Text of this page, read by machine (may contain mistakes)
COLECOVISION SOUND USERS' MANUAL page 7
NOTES
® Terminology
Each note in & song has an associated 10 Bit frequency (except for noise notes)
ang @ Bit attenuation which is cutput to the sound chip every time PLAY_SONCS
is called. The initial frequency and attenustion values (stored in 2 bytes)
are part of a block of 4 to & bytes that describe a single note within a song's
ROM note list. The remaining bytes are used to indicate sound channel, note
type, duration, and various timers and walues associated with ewept notes.
The following are explanations of names and symbols used throughout this manual
to refer to bytes, or segments of bytes, within both a note’s ROM note list and
a RAM song data area (see Figure 1):
t: { ds a symbol used to graphically separate bits or nibbles within « byte
Br: means bit z of 2 byte, bit 7 being the post significant bit
byte x: refers to the offset of a byte within « d¢sta block, byte 0 being the
first byte in the biock
MSN, LSN: MSN seans the most significant nibble of a byte, LSN is the least
Significant nibble
CH®. the sound channel upon which a note is to be played; 0 = noise generator,
1 to 3 =» the 2 tone generators
SONGNO: the song nember of the song playing in a song data area; 1 to 61;
SONCNO 62 means @ special sound effect is using the cata ares
NEXT_NOTE_PTR: 2 byte address of the ROM location of the data block for the
next note to be played in a song
FO = FY: the 10 Bit frequency data to be sent to 2 sound chip tone generator;
FO is the most significant bit, see data sheets, TI 76489
ATN. 4 bit attenuation data to be sent to any of the four sound generators
CTRL: 3 bit control data for sound chip noise genrator; FB NFO NF1 (called
SHIFT in this manual), see Gata sheets for details
NLEN: 1 byte that directly or indirectly determines the duration of a note
FPS: 4 bit frequency prescaler, used with NLEN to determine the length of 3
frequency sweep
TPSV. 4 bit temporary storage location for FPS; this variable gets secremented
every VOP interrupt, and is reloaded from FPS
FSTEP. the size of a step in a frequency sweep, an 8 bit two's complement
Signed value that is added to the current 10 bit frequency at a rate determined
by NLEN and FPS, 1 to 128, -L to -128
LEN: 4 Bit number of steps in an attenuation sweep