Commodore 128 Programmer's Reference Manual page 348

Hide thumbs Also See for 128:
Table of Contents

Advertisement

338
COMMODORE 128
EXAMPLES:
FILTER 1024,0,1,0,2
Set the cutoff frequency at 1024, select the band pass
filter and a resonance level of 2.
FILTER 2000,1,0,1,10
Set the cutoff frequency at 2000, select both the low pass
and high pass filters (to form a notch reject) and set
the resonance level at 10.
PLAY
Defines and plays musical notes and elements
PLAY "Vn,On,Tn,Un,Xn,elements"
u
Vn Voice (n = 1-3)
On Octave (n = 0-6)
TN Tune Envelope Defaults (n
0 = piano
1 = accordion
2 = calliope
3 = drum
4 = flute
5 = guitar
6 = harpsichord
7 = organ
8 = trumpet
9 = xylophone
Un Volume (n = 0-15)
Xn Filter on (n = 1), off (n =
Notes:
A
Elements: s
,B,C,D
#
$
W
H
Q
I
S
,
R
M
= 0-9)
0)
FFG
Sharp
Flat
Whole note
Half note
Quarter note
Eighth note
Sixteenth note
Dotted
Rest
Wait for all voices currently playing to
end current measure
0
0
u
u
The PLAY statement gives you the power to select voice, octave and tune
envelope (including ten predefined musical instrument envelopes), the volume and the
- ■
notes you want to PLAY. All these controls are enclosed in quotes.
I
All elements except R and M precede the musical notes in a PLAY string.
'-'
u

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents