Commodore 16 User Manual
Download Operation & user’s manual of Commodore 16 Desktop for Free or View it Online on All-Guides.com.
\
THE GREAT
COMMODORE 16
MUSIC MACHINE
The (asl
program is
a
little
longer. Tnis is
the
"GREAT
COMMODORE
16 MUSIC MACHINE". When
you
press
a key from 1 through
9,
the
note is played, and
a
note appears on
the
start
on
the
correct line.
5
GOSUB 1000
6F0RX
=
1T0 9: READ
N(X}: NEXT X
8 CHAR 1. 8, 1,"*THE GREAT
MUSIC MACHINE*"
10 VOL
7
20 DO
(
1
30 GET A$: IF AS=
,[
"
THEN
30
'no
space
35 A = ASC(A$) : IF A < 49 OR A > 57 THEN 50
36 N= A
-
48
40SOUNDi,N(N),
4
45 GSHAPE N$, 150, 8 <6+(9-N)), 4
46
FOR Z=l TO 50: NEXT Z
47 GSHAPE N$,
ISO, 8
'
(6+(9-N)). 4
50 LOOP UNTIL
A
=
32
55 VOL 0: GRAPHIC 0: SCNCLR
60 END
100 DATA
345, 383. 4S3, 516, 571, 596, 643.
68S, 704
1000
GRAPHIC 1,1
1010 FOR Y=60
TO 124 STEP 16
1020 DRAW 1, 100, Y TO
200, Y
1030 NEXT Y
1040
AS="FEDCBAGFE"
1050 FOR
X
=
l TO
9:
C- 13
1060 IF INTCX/2)
-
X/2
THEN C
=
14
1070 CHAR 1, C, X + 6, MIDS
<A$, X,
1),
1075 CHAR 1, C-f 10, X+6, RIGHTS <STR$
(10-X},
1)
1080
NEXT X
1090 FOR X= 1 TO
8: FOR Y* 11 TO 16: DRAW 1, X,
Y: NEXT Y, X
1100 Y-l: X-8: DRAW
1, 8, 16 TO X, Y
1110SSHAPENS,
1,1,8,
16
1120
GSHAPE N$, 1
(
1,4
1130 RETURN
90
1
r
1 i
1
r
1
1
r
1
1
(
1
1
1
(
(
i
1
f
1
(
1
1
(
1
i
1
(
1
[
1
(
i
(
1
(
r
As you
can
see,
music
and sound
can
be used lo
enhance programs
or
be the focus of the
program itself. The examples in this chapter
just
give
you a taste
of the music capabilities
of
your Commodore 1 6 Don't
be afraid
to
try new sounds and noises
and create
your own
masterpiece.
By now, you've
begun
to get a
handle on some ot the
things
you can
do
with your Commodore
1
6. The aim of this
manual
has been to
give
you a
taste ot
computing,
to have you
try new things and
see
wnat
happens,
to
learn
about
your computer and lo have fun In the process
But there's still
so
much more
, ,
programming, for
example. This
manual has touched on how lo begin lo use BASIC, but
is
nol a
tutorial
or
BASIC lexlbook by
any means.
The BASIC
Encyclopedia
(Immediately lollowlng this chapter) gives
a
complete
listing of
ALL
the
BASIC commands on your Commodore
1
6.
with explanations
and
examples. In many of the
programs in the last couple of chapters, you
may
not have
understood exactly what
steps
were doing what. To
learn more aooul programming with the BASIC language, you should
read books lhal were written to leach BASIC A list of
these
books
appears
in the
appendix. It
you
are
really
interested in programming,
you
might want
to gel
the
Series
264 Programmers
Reference
Guide,
whicn focuses on the hows and whys of
programming, revealing the
secret
and not-so-secret tricks
of
the
programming trade Now thai
you've
finished reading this manual,
you
mighl think that you're on
your
own, bul
not entirely. You can read any
o'
the many computer
magazines, some of which are entirely devoted to Commodore
computers, peripherals and software You can also become part of a
group of people
near
you who share your
interest in Commodore
computers; a Commodore User's Group.
For moie
Information on
these
groups, contact the CBM
Information Centre.