Sound Generation Command Sequence; Parameter Descriptions - AMSTRAD CPC464 User Manual

Cpc464 colour personal computer 64k
Hide thumbs Also See for CPC464:
Table of Contents

Advertisement

6.10 Sound generation command sequence

Form of the command: SOUND G,H,I,J,K,L,M
Where....
G: Channel Status
H: Tone Period
I: Duration
J: Volume
K: Volume Envelope
L: Tone Envelope
M: Noise Period
SOUND is a command where the parameters G to M are all integers and only the first two are
mandatory. The remaining parameters are optional, but have default values that will be discussed
under the parameter descriptions.

6.10.1 Parameter descriptions:

G: Channel Status
Value range 1.....255
default if omitted: none <mandatory entry>
In the CPC464 it is possible to play up to three different SOUNDs at once. This is achieved by
having three SOUND channels (or queues), referred to as A, B and C. The input integer range is
given in decimal form, but when converted to an 8 bit value (thus yielding a bit significant result),
the active bits specify the following commands:
DECIMAL
1
2
4
8
16
32
64
128
MSB
(LSB and
integer entry examples:
2
=
send the following SOUND to output channel B
5
=
send the following SOUND to output channels A and C
98
=
64 + 32 + 2
=
send the following SOUND to output channel B, rendezvous with channel
C and hold.
It is important to remember that if a rendezvous is to be arranged between two (or more) channels,
then it is necessary to flag on the channel status) of each channel at the appropriate time.
The hold on any combination of channels, stops the processing of that command and freezes the
queue behind it, until it is freed by a RELEASE command (or ' flushed by a later SOUND command).
BIT
COMMAND
0 LSB
send SOUND to channel A
1
send SOUND to channel B
2
send SOUND to channel C
3
rendezvous with channel A
4
rendezvous with channel B
5
rendezvous with channel C
6
hold
7 MSB
flush
signify Least Significant Bit, and Most Significant Bit in the table above.)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents