Your Commodore - Commodore Is Awesome
Your Commodore - Commodore Is Awesome
Your Commodore - Commodore Is Awesome
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
A<br />
swhich<br />
enables you to store any sound<br />
oin<br />
memory. Once stored in memory<br />
uthe<br />
sound can be manipulated in<br />
n<br />
various ways. Possibilities include,<br />
d<br />
speed variation, reversing the sound,<br />
altering the pitch of the sound etc. You<br />
s<br />
could sequence the sound like a drum<br />
amachine<br />
or Paul Hardcastle's<br />
m<br />
N N N Nineteen, or just use the com-<br />
pputer<br />
keyboard as an organ, each key<br />
lplaying<br />
the sound at a different pitch.<br />
e This program, written for the CI6<br />
r and Plus/4, allows a sample of up to<br />
itwo<br />
seconds to be stored in memory.<br />
s This takes up a staggering 10K of the<br />
a computer's memory, so you can<br />
pimagine<br />
the problems getting all of the<br />
r<br />
o<br />
g<br />
r<br />
a<br />
m<br />
C16 & PLUS/4 UTILITY',<br />
C16 Sound<br />
Sampler<br />
lifilui isselli I<br />
8-LOO<br />
P<br />
T O<br />
S<br />
T<br />
A R<br />
T<br />
6<br />
1<br />
Now your C/a can really<br />
sound like a trombone with<br />
this excellent program.<br />
By Gary Fry<br />
program into the C16.<br />
Two seconds? I hear you say.<br />
This is actually quite a lot when<br />
you think about it. Just count it to<br />
yourself. Not many sounds take longer<br />
than this, And don't forget once you<br />
have sounds in memory you can<br />
sample them to create much longer<br />
sounds.<br />
Sampling is quite easy to do since<br />
the <strong>Commodore</strong> Datassette does quite<br />
a lot of the work for you - it converts<br />
the analogue voltages which make up<br />
the sound on a cassette into digital<br />
ones and zeros. These one's and zero's<br />
are then transferred to the computer's<br />
memory, just like a program when<br />
loading.<br />
YOUR COMMODORE november 1986:25<br />
How It Works<br />
In order to fill the computer's memory<br />
with the necessary ones and zeros the<br />
cassette port is read (memory location<br />
0). A process called °Ring is then used<br />
with each byte read in to read just one<br />
bit from the number read in. By rotating<br />
the number read and repeating<br />
the process eight times, eight ones or<br />
zeros are loaded in. This gives one byte<br />
of sample. This is repeated until the<br />
10K of memory is filled. You could<br />
look at it like a cog wheel with eight<br />
teeth 'feeling' 10 holes in a long strip of<br />
paper. Each full turn of the wheel corresponding<br />
to one byte being loaded.<br />
Playing the SampleBack<br />
This is much the same process as read-<br />
ing from the cassette port, but this time<br />
it is applied to the computer memory<br />
where the sample has been stored.<br />
When a one is read an audible sound is<br />
emitted from the speaker; when a one<br />
is read, an inaudible sound (too high is<br />
made). This process produces a click.<br />
Do this a thousand times in a frction of<br />
a second, and your sound is built up.<br />
In order to get the speed necessary<br />
for this program the screen has to be<br />
turned off during playback. This<br />
makes the computer work at almost<br />
twice normal speed.<br />
Playing with a Sound<br />
The organ/piano facility is probably<br />
the best facility, this reproduces the