Home » Archimedes archive » Acorn Computing » 1995 02.adf » 9502 » BodyBuild/Keyboard3
BodyBuild/Keyboard3
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Archimedes archive » Acorn Computing » 1995 02.adf » 9502 |
Filename: | BodyBuild/Keyboard3 |
Read OK: | ✔ |
File size: | 048E bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10REM>Keyboard3 20REM BODY BUILD KEYBOARD 30PRINT"Body Build Keyboard" 40PRINT"Polyphonic Software" 50PRINT"by Mike Cook" 60DIM Note%(50),P%(10),L%(10) 70REM VOICE NUMBER TO USE 80VN%=1 90Voices = 4 100PROC_INT 110SOUND ON 120VOICES Voices 130REM BEATS 16 140REM TEMPO &1000 150REPEAT 160PRINTTAB(0,12); 170FOR A%=0 TO 48 180B%=FNKin(A%) 190IF (B% AND &80)=0 THEN 200NN%=TRUE 210FOR N%=1 TO 8 220IF P%(N%)=B% THEN NN%=FALSE 230NEXT 240IF NN% THEN 250 N%=1 260 WHILE P%(N%)<>99 270 N%+=1 280 ENDWHILE 290 P%(N%)=B% 300 SOUND N%,-15,Note%(P%(N%)),20 310 PRINTTAB(0,12+N%);B%;"(";N%;")";SPC(3); 320 ENDIF 330ENDIF 340NEXT 350 360PRINTSPC(30) 370REM SEE IF ANY NOTES HAVE BEEN RELEASED 380FOR A%=1 TO 8 390IF P%(A%)<>99 THEN 400 B%=FNKin(P%(A%)) 410 IF (B% AND &80)<>0 THEN P%(A%)=99:PRINTTAB(0,A%+12);SPC(7) 420ENDIF 430NEXT 440UNTIL FALSE 450 460DEF FNKin(N%) 470SYS"OS_Byte",151,&60,N% 480SYS"OS_Byte",150,&60 TO ,,N% 490=N% AND &BF 500 510DEF PROC_INT 520SYS"OS_Byte",151,&62,&3F 530FOR A%=0 TO 10 540P%(A%)=99 550L%(A%)=99 560NEXT 570FOR A%=1 TO Voices 580OSCLI("CHANNELVOICE "+STR$(A%)+" "+STR$(VN%)) 590NEXT 600 610FOR A%=0 TO 48 620READ Note%(A%) 630NEXT 640DATA 5,9,13,17,21,25,29,33,37,41,45,49 650DATA 53,57,61,65,69,73,77,81,85,89,93,97 660DATA 101,105,109,113,117,121,125,129,133,137,141,145 670DATA 149,153,157,161,165,169,173,177,181,185,189,193 680DATA 197 690ENDPROC
�>Keyboard3 � BODY BUILD KEYBOARD �"Body Build Keyboard" (�"Polyphonic Software" 2�"by Mike Cook" <� Note%(50),P%(10),L%(10) F� VOICE NUMBER TO USE P VN%=1 ZVoices = 4 d �_INT n� � x Ƞ Voices �� BEATS 16 �� TEMPO &1000 �� ��0,12); �� A%=0 � 48 �B%=�Kin(A%) �� (B% � &80)=0 � � NN%=� �� N%=1 � 8 �� P%(N%)=B% � NN%=� �� �� NN% � � N%=1 ȕ P%(N%)<>99 N%+=1 � " P%(N%)=B% , � N%,-15,Note%(P%(N%)),20 6# �0,12+N%);B%;"(";N%;")";�(3); @ � J� T� ^ h �(30) r)� SEE IF ANY NOTES HAVE BEEN RELEASED |� A%=1 � 8 �� P%(A%)<>99 � � B%=�Kin(P%(A%)) �0 � (B% � &80)<>0 � P%(A%)=99:�0,A%+12);�(7) �� �� �� � � �� �Kin(N%) �ș"OS_Byte",151,&60,N% �ș"OS_Byte",150,&60 � ,,N% � =N% � &BF � �� �_INT ș"OS_Byte",151,&62,&3F � A%=0 � 10 P%(A%)=99 & L%(A%)=99 0� :� A%=1 � Voices D'�("CHANNELVOICE "+�(A%)+" "+�(VN%)) N� X b� A%=0 � 48 l� Note%(A%) v� �'� 5,9,13,17,21,25,29,33,37,41,45,49 �)� 53,57,61,65,69,73,77,81,85,89,93,97 �5� 101,105,109,113,117,121,125,129,133,137,141,145 �5� 149,153,157,161,165,169,173,177,181,185,189,193 � � 197 �� �
00000000 0d 00 0a 0f f4 3e 4b 65 79 62 6f 61 72 64 33 0d |.....>Keyboard3.| 00000010 00 14 19 f4 20 42 4f 44 59 20 42 55 49 4c 44 20 |.... BODY BUILD | 00000020 4b 45 59 42 4f 41 52 44 0d 00 1e 1a f1 22 42 6f |KEYBOARD....."Bo| 00000030 64 79 20 42 75 69 6c 64 20 4b 65 79 62 6f 61 72 |dy Build Keyboar| 00000040 64 22 0d 00 28 1a f1 22 50 6f 6c 79 70 68 6f 6e |d"..(.."Polyphon| 00000050 69 63 20 53 6f 66 74 77 61 72 65 22 0d 00 32 13 |ic Software"..2.| 00000060 f1 22 62 79 20 4d 69 6b 65 20 43 6f 6f 6b 22 0d |."by Mike Cook".| 00000070 00 3c 1d de 20 4e 6f 74 65 25 28 35 30 29 2c 50 |.<.. Note%(50),P| 00000080 25 28 31 30 29 2c 4c 25 28 31 30 29 0d 00 46 19 |%(10),L%(10)..F.| 00000090 f4 20 56 4f 49 43 45 20 4e 55 4d 42 45 52 20 54 |. VOICE NUMBER T| 000000a0 4f 20 55 53 45 0d 00 50 09 56 4e 25 3d 31 0d 00 |O USE..P.VN%=1..| 000000b0 5a 0e 56 6f 69 63 65 73 20 3d 20 34 0d 00 64 09 |Z.Voices = 4..d.| 000000c0 f2 5f 49 4e 54 0d 00 6e 07 d4 20 ee 0d 00 78 0d |._INT..n.. ...x.| 000000d0 c8 a0 20 56 6f 69 63 65 73 0d 00 82 0e f4 20 42 |.. Voices..... B| 000000e0 45 41 54 53 20 31 36 0d 00 8c 11 f4 20 54 45 4d |EATS 16..... TEM| 000000f0 50 4f 20 26 31 30 30 30 0d 00 96 05 f5 0d 00 a0 |PO &1000........| 00000100 0c f1 8a 30 2c 31 32 29 3b 0d 00 aa 0f e3 20 41 |...0,12);..... A| 00000110 25 3d 30 20 b8 20 34 38 0d 00 b4 0f 42 25 3d a4 |%=0 . 48....B%=.| 00000120 4b 69 6e 28 41 25 29 0d 00 be 14 e7 20 28 42 25 |Kin(A%)..... (B%| 00000130 20 80 20 26 38 30 29 3d 30 20 8c 0d 00 c8 09 4e | . &80)=0 .....N| 00000140 4e 25 3d b9 0d 00 d2 0e e3 20 4e 25 3d 31 20 b8 |N%=...... N%=1 .| 00000150 20 38 0d 00 dc 17 e7 20 50 25 28 4e 25 29 3d 42 | 8..... P%(N%)=B| 00000160 25 20 8c 20 4e 4e 25 3d a3 0d 00 e6 05 ed 0d 00 |% . NN%=........| 00000170 f0 0b e7 20 4e 4e 25 20 8c 0d 00 fa 09 20 4e 25 |... NN% ..... N%| 00000180 3d 31 0d 01 04 12 20 c8 95 20 50 25 28 4e 25 29 |=1.... .. P%(N%)| 00000190 3c 3e 39 39 0d 01 0e 0a 20 4e 25 2b 3d 31 0d 01 |<>99.... N%+=1..| 000001a0 18 06 20 ce 0d 01 22 0e 20 50 25 28 4e 25 29 3d |.. ...". P%(N%)=| 000001b0 42 25 0d 01 2c 1e 20 d4 20 4e 25 2c 2d 31 35 2c |B%..,. . N%,-15,| 000001c0 4e 6f 74 65 25 28 50 25 28 4e 25 29 29 2c 32 30 |Note%(P%(N%)),20| 000001d0 0d 01 36 23 20 f1 8a 30 2c 31 32 2b 4e 25 29 3b |..6# ..0,12+N%);| 000001e0 42 25 3b 22 28 22 3b 4e 25 3b 22 29 22 3b 89 28 |B%;"(";N%;")";.(| 000001f0 33 29 3b 0d 01 40 06 20 cd 0d 01 4a 05 cd 0d 01 |3);..@. ...J....| 00000200 54 05 ed 0d 01 5e 04 0d 01 68 0a f1 89 28 33 30 |T....^...h...(30| 00000210 29 0d 01 72 29 f4 20 53 45 45 20 49 46 20 41 4e |)..r). SEE IF AN| 00000220 59 20 4e 4f 54 45 53 20 48 41 56 45 20 42 45 45 |Y NOTES HAVE BEE| 00000230 4e 20 52 45 4c 45 41 53 45 44 0d 01 7c 0e e3 20 |N RELEASED..|.. | 00000240 41 25 3d 31 20 b8 20 38 0d 01 86 12 e7 20 50 25 |A%=1 . 8..... P%| 00000250 28 41 25 29 3c 3e 39 39 20 8c 0d 01 90 14 20 42 |(A%)<>99 ..... B| 00000260 25 3d a4 4b 69 6e 28 50 25 28 41 25 29 29 0d 01 |%=.Kin(P%(A%))..| 00000270 9a 30 20 e7 20 28 42 25 20 80 20 26 38 30 29 3c |.0 . (B% . &80)<| 00000280 3e 30 20 8c 20 50 25 28 41 25 29 3d 39 39 3a f1 |>0 . P%(A%)=99:.| 00000290 8a 30 2c 41 25 2b 31 32 29 3b 89 28 37 29 0d 01 |.0,A%+12);.(7)..| 000002a0 a4 05 cd 0d 01 ae 05 ed 0d 01 b8 07 fd 20 a3 0d |............. ..| 000002b0 01 c2 04 0d 01 cc 0e dd 20 a4 4b 69 6e 28 4e 25 |........ .Kin(N%| 000002c0 29 0d 01 d6 1a c8 99 22 4f 53 5f 42 79 74 65 22 |)......"OS_Byte"| 000002d0 2c 31 35 31 2c 26 36 30 2c 4e 25 0d 01 e0 1e c8 |,151,&60,N%.....| 000002e0 99 22 4f 53 5f 42 79 74 65 22 2c 31 35 30 2c 26 |."OS_Byte",150,&| 000002f0 36 30 20 b8 20 2c 2c 4e 25 0d 01 ea 0d 3d 4e 25 |60 . ,,N%....=N%| 00000300 20 80 20 26 42 46 0d 01 f4 04 0d 01 fe 0b dd 20 | . &BF......... | 00000310 f2 5f 49 4e 54 0d 02 08 1b c8 99 22 4f 53 5f 42 |._INT......"OS_B| 00000320 79 74 65 22 2c 31 35 31 2c 26 36 32 2c 26 33 46 |yte",151,&62,&3F| 00000330 0d 02 12 0f e3 20 41 25 3d 30 20 b8 20 31 30 0d |..... A%=0 . 10.| 00000340 02 1c 0d 50 25 28 41 25 29 3d 39 39 0d 02 26 0d |...P%(A%)=99..&.| 00000350 4c 25 28 41 25 29 3d 39 39 0d 02 30 05 ed 0d 02 |L%(A%)=99..0....| 00000360 3a 13 e3 20 41 25 3d 31 20 b8 20 56 6f 69 63 65 |:.. A%=1 . Voice| 00000370 73 0d 02 44 27 ff 28 22 43 48 41 4e 4e 45 4c 56 |s..D'.("CHANNELV| 00000380 4f 49 43 45 20 22 2b c3 28 41 25 29 2b 22 20 22 |OICE "+.(A%)+" "| 00000390 2b c3 28 56 4e 25 29 29 0d 02 4e 05 ed 0d 02 58 |+.(VN%))..N....X| 000003a0 04 0d 02 62 0f e3 20 41 25 3d 30 20 b8 20 34 38 |...b.. A%=0 . 48| 000003b0 0d 02 6c 0f f3 20 4e 6f 74 65 25 28 41 25 29 0d |..l.. Note%(A%).| 000003c0 02 76 05 ed 0d 02 80 27 dc 20 35 2c 39 2c 31 33 |.v.....'. 5,9,13| 000003d0 2c 31 37 2c 32 31 2c 32 35 2c 32 39 2c 33 33 2c |,17,21,25,29,33,| 000003e0 33 37 2c 34 31 2c 34 35 2c 34 39 0d 02 8a 29 dc |37,41,45,49...).| 000003f0 20 35 33 2c 35 37 2c 36 31 2c 36 35 2c 36 39 2c | 53,57,61,65,69,| 00000400 37 33 2c 37 37 2c 38 31 2c 38 35 2c 38 39 2c 39 |73,77,81,85,89,9| 00000410 33 2c 39 37 0d 02 94 35 dc 20 31 30 31 2c 31 30 |3,97...5. 101,10| 00000420 35 2c 31 30 39 2c 31 31 33 2c 31 31 37 2c 31 32 |5,109,113,117,12| 00000430 31 2c 31 32 35 2c 31 32 39 2c 31 33 33 2c 31 33 |1,125,129,133,13| 00000440 37 2c 31 34 31 2c 31 34 35 0d 02 9e 35 dc 20 31 |7,141,145...5. 1| 00000450 34 39 2c 31 35 33 2c 31 35 37 2c 31 36 31 2c 31 |49,153,157,161,1| 00000460 36 35 2c 31 36 39 2c 31 37 33 2c 31 37 37 2c 31 |65,169,173,177,1| 00000470 38 31 2c 31 38 35 2c 31 38 39 2c 31 39 33 0d 02 |81,185,189,193..| 00000480 a8 09 dc 20 31 39 37 0d 02 b2 05 e1 0d ff |... 197.......| 0000048e