home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Set of Apple II Hard Drive Images
/
eric.hdv
/
ANNMIDI
/
JOYCTRL.BAS
< prev
next >
Wrap
BASIC Source File
|
2020-08-13
|
1KB
|
27 lines
4 PRINT : PRINT CHR$(4)"BRUN MIDIDRVR.OBJ"
5 PRINT : PRINT CHR$(4)"BLOAD JOYTEST.OBJ"
6 FOR I = 1 TO 8: READ X$(I): READ BY(I): READ B1(I): READ B2(I): READ B3(I): NEXT
10 HOME : PRINT "JOYSTICK CONTROLLER": PRINT "===================": PRINT
12 INPUT "CHOOSE MIDI CHANNEL TO CONTROL (1-16):";CH: IF CH <1 OR CH >16 THEN 12
13 POKE 24576 +15,CH -1
15 PRINT : FOR I = 1 TO 8: PRINT I") "X$(I): NEXT
16 PRINT
20 INPUT "CHOOSE CONTROL FOR X AXIS:";X
21 IF X <1 OR X >8 THEN 20
22 INPUT "CHOOSE CONTROL FOR Y AXIS:";Y
23 IF Y <1 OR Y >8 THEN 22
24 PRINT : PRINT "X AXIS: ";X$(X): PRINT "Y AXIS: ";X$(Y): PRINT "BUTTONS: ALL NOTES OFF"
25 PRINT : PRINT "MIDI THRU MODE IS NOW ACTIVE": PRINT "PRESS ANY KEY TO RERUN OR ESC TO EXIT"
30 POKE 24579,BY(X): POKE 24580,B1(X) +CH -1: POKE 24581,B2(X): POKE 24582,B3(X)
40 POKE 24583,BY(Y): POKE 24584,B1(Y) +CH -1: POKE 24585,B2(Y): POKE 24586,B3(Y)
100 CALL 24576
105 IF PEEK(24576 +11) = 155 THEN TEXT : HOME : END
110 GOTO 10
1000 DATA PITCH BEND,2,224,0,0
1010 DATA MODULATION,2,176,1,0
1020 DATA VOLUME,2,176,7,0
1030 DATA PANPOT,2,176,10,0
1040 DATA EXPRESSION,2,176,11,0
1060 DATA REVERB,2,176,91,0
1070 DATA CHORUS,2,176,93,0
1080 DATA AFTERTOUCH,2,160,64,0