Using Sound; The Sound Command; Channel Status; Tone Period - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

Part 9: Using Sound ....
Sound is generated by a loudspeaker within the computer itself. If you are using an
MP2 ModulatorlPower supply and a domestic television, set the TV's volume control
to a minimum.
The level of sound can be adjusted by use of the VOLUME control at the rear of the
computer. The sound can also be fed to the auxiliary input socket of your stereo
system, using the socket on the computer marked STEREO. This will enable you to
listen to the sound generated by the computer in stereo, through your hi-fi
loudspeakers or headphones. Instructions on connecting to the computer's STEREO
socket will be found in part 2 of this Foundation course.
The SOUND Command
The SOU N D command has 7 parts ('parameters'). The first two of these must be used;
the rest are optional. The command is typed in as:
SOU N D <channel status> , <tone period> , <duration> , <volume> , <volume envelope> ,
<tone envelope> , <noise period,
It looks pretty complicated, but if we analyse each parameter, we can soon get to grips
with it. Let's look at the parameters one by one ....
Channel Status
To keep things simple at the moment, regard the <channel status, as the reference
number for the sound channel. There are 3 sound channels, and for now we will use
the <channel status, number 1 .
Tone Period
<Tone period, is a technical way of defining the pitch of the sound, or in other words,
'what note it is' (i.e. do re mi fa so, etc). Each note has a set number, and this number is
the <tone period,. Refer to the chapter entitled 'For your reference .... ', and you will see
that the note middle c (do), has a tone period of 2 3 9 .
Chapter 1 Page 68
Foundation Course

Advertisement

Table of Contents
loading

Table of Contents