Tying Your Music Program Together - Commodore 128 System Manual

Hide thumbs Also See for 128:
Table of Contents

Advertisement

The new line 45 turns off the low-pass filter and enables the
band-pass filter. Press RUN/STOP and RESTORE and RUN your
sound program again. Notice the difference between the low-
pass and band-pass filters. Change line 45 again to:
45 FILTER 1200, 0,0,1,10
Reset the sound chip and RUN your example program again.
Notice the difference between the high-pass filter and the low-
pass and band-pass filters. Experiment with different cutoff
frequencies, resonance levels and filters to perfect the music and
sound in your own programs.

Tying Your Music Program Together

Your first musical program is complete. Now you can program
your favorite songs. Let's tie all the components together. Here's
the program listing. Don't be alarmed, this is the same program
you built in this section except the print statements are added so
you know which program lines are being played.
10 E N V E L O P E
15 VO L
8
20 T E M P O
10
25
P R I N T
" L I NE
30 P L A Y
" C D E F G A B "
35 F I L T E R
1200, 0, 0,1 ,10
40
P R I N T
" L I N E
45
P L A Y
"V2 0 5 T7 U5 X0 C D E F G A B "
50 P R I N T
" S AM E AS L I N E
55 P L A Y
"V2 05 T7 U5 XI C D E F G A B "
60 P R I N T
" L I N E
65 P L A Y
"V3 06 U7 T6 X0 C D E F G A B "
70 P R I N T
" S AM E AS L I N E
75
P L A Y
"V3 06 U7 T6 XI C D E F G A B "
80
P R I N T
" L I N E
85
P L A Y
"V2 06 T0 U7 X0 H C D Q E F
90 P R I N T
" S AM E AS
95 P L A Y
"V2 06 T0 U7 XI HC D Q E F
100
P R I N T
" L I N E
105
P L A Y
"VI 04 T4 U 8 X0 H .C D Q # E F
110
P R I N T " S A M E
115
P L A Y
"VI 04 T4 U 8 XI H .C D Q # E F
0,5 ,9 ,2, 2 , 2 , 1 7 0 0
II
30
45
F I L T E R O FF "
-
65
F I L T E R O FF "
-
85
F I L T E R O FF "
-
L I N E
105 - F I L T E R O F F "
LI N E
AS
45 - F I L T E R ON"
65 - F I L T E R ON"
IGA SB"
85 - F I L T E R ON"
IGA SB"
105 - F I L T E R ON"
I $GA S .B"
I $GA S .B"
7-23

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

128d

Table of Contents