Choose A Note - Commodore VIC-20 User Manual

Hide thumbs Also See for VIC-20:
Table of Contents

Advertisement

CHOOSE A NOTE
For this INPUT example we will tinker a little with VIC sound.
Type:
NEW
10 INPUT-HOW HIGH A NOTE";
20 IFH=0THEN90
30 INPUT"HOW LONG A NOTE";L
40 POKE 36878,15
50 POKE 36875.H
60 FORT = 1 TO LNEXT
70 POKE 36878,0
80 GOTO 10
This letter is a
number variable and is
used to define or input
a number
If a note keeps playing,'
hit
90 END
After you press
the screen should look like this:
Type a number
from 128to 254
Press the mjhB
key and listen to the pitch and dura
tion of the note. After each note you can create another and
gain an appreciation for how these "mysterious" POKES
translate into sound.
c
c
c
c
c
c
c
c

Advertisement

Table of Contents
loading

Table of Contents