Home » Personal collection » Acorn DFS disks » dfs_box03_disk02b_format_some_games.scp » W.MUSIC
W.MUSIC
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 » Personal collection » Acorn DFS disks » dfs_box03_disk02b_format_some_games.scp |
Filename: | W.MUSIC |
Read OK: | ✔ |
File size: | 04F3 bytes |
Load address: | 1900 |
Exec address: | 801F |
Duplicates
There are 3 duplicate copies of this file in the archive:
- Personal collection » Acorn DFS disks » dfs_box03_disk01_utilities_disk.scp » W.MUSIC
- Personal collection » Acorn DFS disks » dfs_box03_disk02_format_some_games.scp » W.MUSIC
- Personal collection » Acorn DFS disks » dfs_box03_disk01b_utilities_disk.scp » W.MUSIC
- Personal collection » Acorn DFS disks » dfs_box03_disk02b_format_some_games.scp » W.MUSIC
File contents
10REM Music Program 20 ON ERROR GOTO30 30 MODE7 40ON ERROR GOTO 320 50 VDU12,23;8202;0;0;0;:FORI%=11TO12:PRINTTAB(16,I%)CHR$&8D"Music":NEXT:N%=INKEY(500) 60DIM K1%22,K2%22,O%7,Z%30,INFO%(22) 70PROCASS 80$K1%="QAWSEDFTGYHJIKOLP;:[]_" 90$K2%="qawsedftgyhjikolp+*{}`" 100FORI%=1TO22:INFO%(I%)=&4F65/(2^((I%-1)/12))/32:NEXT 110O%!4=&07030005:!O%=&04020106 120MODE5:VDU5:P%=0:PROCPAL 130X%=0 140*FX 11 4 150*FX 12 4 160REPEAT 170N$=INKEY$(4) 180N%=INSTR($K1%,N$)+INSTR($K2%,N$) 190IFN%>0IFN$<>""GCOL0,1+N%MOD3:MOVEX%,44*N%-16:PLOT1,0,40:PROCNOTE(N%) ELSE PROCNOTE(0) 200X%=X%+8 210IFX%=1280X%=0:P%=P%EOR4:VDU4,12,5:PROCPAL 220UNTIL0 230DEF PROCPAL FORI%=0TO3:VDU19,I%,O%?(I%+P%);0;:NEXT:ENDPROC 240DEF PROCASS P%=Z%:[OPT 0:PHP:LDY#&FF:SEI:STY&FE43:STA&FE4F:INY:STY&FE40:LDY#&10:.WAIT DEY:BNE WAIT:LDY#&08:STY&FE40:PLP:RTS:]:ENDPROC 250DEF PROCC(C%) A%=C%:CALLZ%:ENDPROC 260DEF PROCF(CH%,FR%) :PROCC(&80+CH%*32+(FR%MOD16)):PROCC(FR%/16):ENDPROC 270DEF PROCA(CH%,AT%) PROCC(&80+CH%*32+31-AT%):ENDPROC 280 DEF PROCNOTE(N%) IF N%=0 FORI%=17 TO 19:SOUND I%,0,0,0:NEXT:ENDPROC ELSE FOR I%=17 TO 19:SOUND I%,-15,N%*4+28,-1:NEXT:ENDPROC 290DEF PROCMUGTRAP(A$,B$) REPEATK$=CHR$(GETAND&DF):UNTILK$=A$ OR K$=B$:PRINTK$+CHR$8;:KY%=ASC(K$) 300REPEATREPEATK$=CHR$(GETAND&DF):UNTILK$=A$ OR K$=B$ OR K$=CHR$13:IFK$<>CHR$13 PRINTK$+CHR$8;:KY%=ASC(K$):UNTILFALSE ELSE UNTILTRUE:ENDPROC 310DEF PROCSPA PRINTTAB(3,20)"Press the SPACE BAR to continue";:REPEATUNTILGET$=" ":ENDPROC 320 FOR I%=16 TO 19:SOUND I%,0,0,0:NEXT:MODE7:PRINTTAB(8,6)"Do you want to go on to"'TAB(7)"the next program (Y/N)? ";:PROCMUGTRAP("Y","N"):IFKY%=ASC"N"THEN120 330 *FX 12,0 340 CHAIN "CLOCK"
� Music Program � � �T^@ �7 (� � � �D@A 2A �12,23;8202;0;0;0;:�I%=11�12:�16,I%)�&8D"Music":�:N%=�(500) <$� K1%22,K2%22,O%7,Z%30,INFO%(22) F�ASS P!$K1%="QAWSEDFTGYHJIKOLP;:[]_" Z!$K2%="qawsedftgyhjikolp+*{}`" d1�I%=1�22:INFO%(I%)=&4F65/(2^((I%-1)/12))/32:� n O%!4=&07030005:!O%=&04020106 x�5:�5:P%=0:�PAL �X%=0 �*FX 11 4 �*FX 12 4 �� �N$=�(4) �N%=�$K1%,N$)+�$K2%,N$) �C�N%>0�N$<>""�0,1+N%�3:�X%,44*N%-16:�1,0,40:�NOTE(N%) � �NOTE(0) �X%=X%+8 �%�X%=1280X%=0:P%=P%�4:�4,12,5:�PAL ��0 �+� �PAL �I%=0�3:�19,I%,O%?(I%+P%);0;:�:� �~� �ASS P%=Z%:[OPT 0:PHP:LDY#&FF:SEI:STY&FE43:STA&FE4F:INY:STY&FE40:LDY#&10:.WAIT DEY:BNE WAIT:LDY#&08:STY&FE40:PLP:RTS:]:� �� �C(C%) A%=C%:�Z%:� 7� �F(CH%,FR%) :�C(&80+CH%*32+(FR%�16)):�C(FR%/16):� )� �A(CH%,AT%) �C(&80+CH%*32+31-AT%):� Y � �NOTE(N%) � N%=0 �I%=17 � 19:� I%,0,0,0:�:� � � I%=17 � 19:� I%,-15,N%*4+28,-1:�:� "C� �MUGTRAP(A$,B$) �K$=�(��&DF):�K$=A$ � K$=B$:�K$+�8;:KY%=�(K$) ,N��K$=�(��&DF):�K$=A$ � K$=B$ � K$=�13:�K$<>�13 �K$+�8;:KY%=�(K$):�� � ��:� 6>� �SPA �3,20)"Press the SPACE BAR to continue";:���=" ":� @� � I%=16 � 19:� I%,0,0,0:�:�7:�8,6)"Do you want to go on to"'�7)"the next program (Y/N)? ";:�MUGTRAP("Y","N"):�KY%=�"N"��Dx@ J *FX 12,0 T � "CLOCK" �
00000000 0d 00 0a 13 f4 20 4d 75 73 69 63 20 50 72 6f 67 |..... Music Prog| 00000010 72 61 6d 0d 00 14 0e 20 ee 20 85 20 e5 8d 54 5e |ram.... . . ..T^| 00000020 40 0d 00 1e 07 20 eb 37 0d 00 28 0e ee 20 85 20 |@.... .7..(.. . | 00000030 e5 20 8d 44 40 41 0d 00 32 41 20 ef 31 32 2c 32 |. .D@A..2A .12,2| 00000040 33 3b 38 32 30 32 3b 30 3b 30 3b 30 3b 3a e3 49 |3;8202;0;0;0;:.I| 00000050 25 3d 31 31 b8 31 32 3a f1 8a 31 36 2c 49 25 29 |%=11.12:..16,I%)| 00000060 bd 26 38 44 22 4d 75 73 69 63 22 3a ed 3a 4e 25 |.&8D"Music":.:N%| 00000070 3d a6 28 35 30 30 29 0d 00 3c 24 de 20 4b 31 25 |=.(500)..<$. K1%| 00000080 32 32 2c 4b 32 25 32 32 2c 4f 25 37 2c 5a 25 33 |22,K2%22,O%7,Z%3| 00000090 30 2c 49 4e 46 4f 25 28 32 32 29 0d 00 46 08 f2 |0,INFO%(22)..F..| 000000a0 41 53 53 0d 00 50 21 24 4b 31 25 3d 22 51 41 57 |ASS..P!$K1%="QAW| 000000b0 53 45 44 46 54 47 59 48 4a 49 4b 4f 4c 50 3b 3a |SEDFTGYHJIKOLP;:| 000000c0 5b 5d 5f 22 0d 00 5a 21 24 4b 32 25 3d 22 71 61 |[]_"..Z!$K2%="qa| 000000d0 77 73 65 64 66 74 67 79 68 6a 69 6b 6f 6c 70 2b |wsedftgyhjikolp+| 000000e0 2a 7b 7d 60 22 0d 00 64 31 e3 49 25 3d 31 b8 32 |*{}`"..d1.I%=1.2| 000000f0 32 3a 49 4e 46 4f 25 28 49 25 29 3d 26 34 46 36 |2:INFO%(I%)=&4F6| 00000100 35 2f 28 32 5e 28 28 49 25 2d 31 29 2f 31 32 29 |5/(2^((I%-1)/12)| 00000110 29 2f 33 32 3a ed 0d 00 6e 20 4f 25 21 34 3d 26 |)/32:...n O%!4=&| 00000120 30 37 30 33 30 30 30 35 3a 21 4f 25 3d 26 30 34 |07030005:!O%=&04| 00000130 30 32 30 31 30 36 0d 00 78 13 eb 35 3a ef 35 3a |020106..x..5:.5:| 00000140 50 25 3d 30 3a f2 50 41 4c 0d 00 82 08 58 25 3d |P%=0:.PAL....X%=| 00000150 30 0d 00 8c 0c 2a 46 58 20 31 31 20 34 0d 00 96 |0....*FX 11 4...| 00000160 0c 2a 46 58 20 31 32 20 34 0d 00 a0 05 f5 0d 00 |.*FX 12 4.......| 00000170 aa 0b 4e 24 3d bf 28 34 29 0d 00 b4 1a 4e 25 3d |..N$=.(4)....N%=| 00000180 a7 24 4b 31 25 2c 4e 24 29 2b a7 24 4b 32 25 2c |.$K1%,N$)+.$K2%,| 00000190 4e 24 29 0d 00 be 43 e7 4e 25 3e 30 e7 4e 24 3c |N$)...C.N%>0.N$<| 000001a0 3e 22 22 e6 30 2c 31 2b 4e 25 83 33 3a ec 58 25 |>"".0,1+N%.3:.X%| 000001b0 2c 34 34 2a 4e 25 2d 31 36 3a f0 31 2c 30 2c 34 |,44*N%-16:.1,0,4| 000001c0 30 3a f2 4e 4f 54 45 28 4e 25 29 20 8b 20 f2 4e |0:.NOTE(N%) . .N| 000001d0 4f 54 45 28 30 29 0d 00 c8 0b 58 25 3d 58 25 2b |OTE(0)....X%=X%+| 000001e0 38 0d 00 d2 25 e7 58 25 3d 31 32 38 30 58 25 3d |8...%.X%=1280X%=| 000001f0 30 3a 50 25 3d 50 25 82 34 3a ef 34 2c 31 32 2c |0:P%=P%.4:.4,12,| 00000200 35 3a f2 50 41 4c 0d 00 dc 06 fd 30 0d 00 e6 2b |5:.PAL.....0...+| 00000210 dd 20 f2 50 41 4c 20 e3 49 25 3d 30 b8 33 3a ef |. .PAL .I%=0.3:.| 00000220 31 39 2c 49 25 2c 4f 25 3f 28 49 25 2b 50 25 29 |19,I%,O%?(I%+P%)| 00000230 3b 30 3b 3a ed 3a e1 0d 00 f0 7e dd 20 f2 41 53 |;0;:.:....~. .AS| 00000240 53 20 50 25 3d 5a 25 3a 5b 4f 50 54 20 30 3a 50 |S P%=Z%:[OPT 0:P| 00000250 48 50 3a 4c 44 59 23 26 46 46 3a 53 45 49 3a 53 |HP:LDY#&FF:SEI:S| 00000260 54 59 26 46 45 34 33 3a 53 54 41 26 46 45 34 46 |TY&FE43:STA&FE4F| 00000270 3a 49 4e 59 3a 53 54 59 26 46 45 34 30 3a 4c 44 |:INY:STY&FE40:LD| 00000280 59 23 26 31 30 3a 2e 57 41 49 54 20 44 45 59 3a |Y#&10:.WAIT DEY:| 00000290 42 4e 45 20 57 41 49 54 3a 4c 44 59 23 26 30 38 |BNE WAIT:LDY#&08| 000002a0 3a 53 54 59 26 46 45 34 30 3a 50 4c 50 3a 52 54 |:STY&FE40:PLP:RT| 000002b0 53 3a 5d 3a e1 0d 00 fa 18 dd 20 f2 43 28 43 25 |S:]:...... .C(C%| 000002c0 29 20 41 25 3d 43 25 3a d6 5a 25 3a e1 0d 01 04 |) A%=C%:.Z%:....| 000002d0 37 dd 20 f2 46 28 43 48 25 2c 46 52 25 29 20 3a |7. .F(CH%,FR%) :| 000002e0 f2 43 28 26 38 30 2b 43 48 25 2a 33 32 2b 28 46 |.C(&80+CH%*32+(F| 000002f0 52 25 83 31 36 29 29 3a f2 43 28 46 52 25 2f 31 |R%.16)):.C(FR%/1| 00000300 36 29 3a e1 0d 01 0e 29 dd 20 f2 41 28 43 48 25 |6):....). .A(CH%| 00000310 2c 41 54 25 29 20 f2 43 28 26 38 30 2b 43 48 25 |,AT%) .C(&80+CH%| 00000320 2a 33 32 2b 33 31 2d 41 54 25 29 3a e1 0d 01 18 |*32+31-AT%):....| 00000330 59 20 dd 20 f2 4e 4f 54 45 28 4e 25 29 20 e7 20 |Y . .NOTE(N%) . | 00000340 4e 25 3d 30 20 e3 49 25 3d 31 37 20 b8 20 31 39 |N%=0 .I%=17 . 19| 00000350 3a d4 20 49 25 2c 30 2c 30 2c 30 3a ed 3a e1 20 |:. I%,0,0,0:.:. | 00000360 8b 20 e3 20 49 25 3d 31 37 20 b8 20 31 39 3a d4 |. . I%=17 . 19:.| 00000370 20 49 25 2c 2d 31 35 2c 4e 25 2a 34 2b 32 38 2c | I%,-15,N%*4+28,| 00000380 2d 31 3a ed 3a e1 0d 01 22 43 dd 20 f2 4d 55 47 |-1:.:..."C. .MUG| 00000390 54 52 41 50 28 41 24 2c 42 24 29 20 f5 4b 24 3d |TRAP(A$,B$) .K$=| 000003a0 bd 28 a5 80 26 44 46 29 3a fd 4b 24 3d 41 24 20 |.(..&DF):.K$=A$ | 000003b0 84 20 4b 24 3d 42 24 3a f1 4b 24 2b bd 38 3b 3a |. K$=B$:.K$+.8;:| 000003c0 4b 59 25 3d 97 28 4b 24 29 0d 01 2c 4e f5 f5 4b |KY%=.(K$)..,N..K| 000003d0 24 3d bd 28 a5 80 26 44 46 29 3a fd 4b 24 3d 41 |$=.(..&DF):.K$=A| 000003e0 24 20 84 20 4b 24 3d 42 24 20 84 20 4b 24 3d bd |$ . K$=B$ . K$=.| 000003f0 31 33 3a e7 4b 24 3c 3e bd 31 33 20 f1 4b 24 2b |13:.K$<>.13 .K$+| 00000400 bd 38 3b 3a 4b 59 25 3d 97 28 4b 24 29 3a fd a3 |.8;:KY%=.(K$):..| 00000410 20 8b 20 fd b9 3a e1 0d 01 36 3e dd 20 f2 53 50 | . ..:...6>. .SP| 00000420 41 20 f1 8a 33 2c 32 30 29 22 50 72 65 73 73 20 |A ..3,20)"Press | 00000430 74 68 65 20 53 50 41 43 45 20 42 41 52 20 74 6f |the SPACE BAR to| 00000440 20 63 6f 6e 74 69 6e 75 65 22 3b 3a f5 fd be 3d | continue";:...=| 00000450 22 20 22 3a e1 0d 01 40 81 20 e3 20 49 25 3d 31 |" ":...@. . I%=1| 00000460 36 20 b8 20 31 39 3a d4 20 49 25 2c 30 2c 30 2c |6 . 19:. I%,0,0,| 00000470 30 3a ed 3a eb 37 3a f1 8a 38 2c 36 29 22 44 6f |0:.:.7:..8,6)"Do| 00000480 20 79 6f 75 20 77 61 6e 74 20 74 6f 20 67 6f 20 | you want to go | 00000490 6f 6e 20 74 6f 22 27 8a 37 29 22 74 68 65 20 6e |on to"'.7)"the n| 000004a0 65 78 74 20 70 72 6f 67 72 61 6d 20 28 59 2f 4e |ext program (Y/N| 000004b0 29 3f 20 22 3b 3a f2 4d 55 47 54 52 41 50 28 22 |)? ";:.MUGTRAP("| 000004c0 59 22 2c 22 4e 22 29 3a e7 4b 59 25 3d 97 22 4e |Y","N"):.KY%=."N| 000004d0 22 8c 8d 44 78 40 0d 01 4a 0d 20 2a 46 58 20 31 |"..Dx@..J. *FX 1| 000004e0 32 2c 30 0d 01 54 0e 20 d7 20 22 43 4c 4f 43 4b |2,0..T. . "CLOCK| 000004f0 22 0d ff |"..| 000004f3