Home » Personal collection » Acorn ADFS disks » Greaseweazled » adfs_EUG_54.adf » V/+SYNCH2

V/+SYNCH2

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 ADFS disks » Greaseweazled » adfs_EUG_54.adf
Filename: V/+SYNCH2
Read OK:
File size: 0F75 bytes
Load address: 2B204556
Exec address: 434E5953
Duplicates

There are 3 duplicate copies of this file in the archive:

File contents
             [ SYNCHRONISING WORDS AND MUSIC - CONTINUED ]

      4050DATA "*One,",88,8,"two,",88,8,"three,",80,4,"four,",72,4,"five
   ,",72,8
      4060DATA "*Once",80,4,"I",88,4,"caught",92,4,"a",100,4,"fish",100,
   4,"a",92,4,"-live",92,8
      4070DATA "*Six,",92,8,"seven,",92,8,"eight,",88,4,"nine,",80,4,"te
   n,",80,8
      4080DATA "*Then",72,4,"I",68,4,"let",60,4,"it",68,4,"go",80,4,"a",
   72,4,"-gain",72,8

The asterisk signals that a new line is to be printed and the dash that
this word is to be joined to onto the previous one. This is the proce-
dure that decodes these characters and prints out the whole verse in 
time to the music:
      2000DEF PROClines  
      2010PRINT '''
      2020FOR R=1 TO 24
      2030READ WORD$,PITCH,DUR 
      2040CONTROL$=LEFT$(WORD$,1)
      2050IF CONTROL$<>"-" AND CONTROL$<>"*" THEN 2090
      2060WORD$=RIGHT$(WORD$,LEN(WORD$)-1)
      2070IF CONTROL$="*" THEN PRINT ''
      2080IF CONTROL$="-" THEN VDU 8
      2090PRINT WORD$;" ";
      2100SOUND 1,-15,PITCH,DUR  
      2110T%=TIME:REPEATUNTIL TIME>T%+5*DUR
      2120NEXT R   
      2130PRINT TAB(5,20)"PRESS SPACE BAR TO CONTINUE."
      2140REPEAT UNTIL GET=32
      2150ENDPROC

This second procedure is for Mode 4 as well. Again, it could easily be 
converted to other modes by altering the TAB statements and the new line
control characters in the data.
   Line 2040 removes the control character from the lyric and checks to
see if it is in fact a control character. If it isn't then the note is
sounded, the word is printed onto the screen, and a delay loop used as
before. This time the word is printed to follow directly on from the 
last one, without clearing the screen.
   The lines 2070 and 2080 act according to the control character found.
If an asterisk is found a new line is printed before the word. If a dash
is there then the cursor is moved back one position, using VDU 8, to 
join the word to the last one printed.
   As we are writing the complete rhyme now, clearing the screen as soon
as the last word is printed isn't a good idea. A chance is given for the
user to read the verse with a pause in lines 2130 and 2140. GET reads 
the keyboard and returns the ASCII code for the key being pressed. The
space bar has an ASCII code of 32.
   We now have two procedures and two sets of data, one to print out the
words only, and one to print out the verse, line by line. So now let's
put them into a complete program:
        10MODE 4
        20VDU23;8202;0;0;0;
        30REPEAT
        40PROCcontinue
        50UNTIL FALSE
        60END
        70:
      3000DEF PROCcontinue   
      3010CLS
      3020VDU19,0,4;0;19,1,3;0;
      3030PRINT TAB(5,5)"Press W to play the words."
      3040PRINT TAB(7,7)"or P to play the poem."
      3050A$=GET$
      3060A=INSTR("WwPp",A$)
      3070IF A=0 THEN 3050
      3080CLS
      3090IF A<3 RESTORE 4000:PROCwords
      3100IF A>2 RESTORE 4050:PROClines
      3110ENDPROC

First Mode 4 is set up without a cursor and then the procedure, 
PROCcontinue is called again and again until you tire of the rhyme.
   PROCcontinue simply clears the screen and redefines the foreground 
and background colours to prettier variants, then offers you the choice
between seeing the rhyme one word at a time or building up on the 
screen. Your answer is compared in line 3060 with the possible legiti-
mate answers. Whichever you pick, the right data statements are selected
with the RESTORE command and the requisite procedure called.
   When you have heard 'One, two, three, four, five' to your heart's 
content, you may like to enter your own music. You can put any tune in 
as data. Each note should be entered as: word printed, pitch, and 
duration. Don't forget to change the total number of notes (24 in the
example) in lines 1010 and 2020.
                                             Brian Boyde-Shaw, ELBUG 2.1
                                                      Reproduced EUG #54
00000000  20 20 20 20 20 20 20 20  20 20 20 20 20 5b 20 53  |             [ S|
00000010  59 4e 43 48 52 4f 4e 49  53 49 4e 47 20 57 4f 52  |YNCHRONISING WOR|
00000020  44 53 20 41 4e 44 20 4d  55 53 49 43 20 2d 20 43  |DS AND MUSIC - C|
00000030  4f 4e 54 49 4e 55 45 44  20 5d 0d 0d 20 20 20 20  |ONTINUED ]..    |
00000040  20 20 34 30 35 30 44 41  54 41 20 22 2a 4f 6e 65  |  4050DATA "*One|
00000050  2c 22 2c 38 38 2c 38 2c  22 74 77 6f 2c 22 2c 38  |,",88,8,"two,",8|
00000060  38 2c 38 2c 22 74 68 72  65 65 2c 22 2c 38 30 2c  |8,8,"three,",80,|
00000070  34 2c 22 66 6f 75 72 2c  22 2c 37 32 2c 34 2c 22  |4,"four,",72,4,"|
00000080  66 69 76 65 0d 20 20 20  2c 22 2c 37 32 2c 38 0d  |five.   ,",72,8.|
00000090  20 20 20 20 20 20 34 30  36 30 44 41 54 41 20 22  |      4060DATA "|
000000a0  2a 4f 6e 63 65 22 2c 38  30 2c 34 2c 22 49 22 2c  |*Once",80,4,"I",|
000000b0  38 38 2c 34 2c 22 63 61  75 67 68 74 22 2c 39 32  |88,4,"caught",92|
000000c0  2c 34 2c 22 61 22 2c 31  30 30 2c 34 2c 22 66 69  |,4,"a",100,4,"fi|
000000d0  73 68 22 2c 31 30 30 2c  0d 20 20 20 34 2c 22 61  |sh",100,.   4,"a|
000000e0  22 2c 39 32 2c 34 2c 22  2d 6c 69 76 65 22 2c 39  |",92,4,"-live",9|
000000f0  32 2c 38 0d 20 20 20 20  20 20 34 30 37 30 44 41  |2,8.      4070DA|
00000100  54 41 20 22 2a 53 69 78  2c 22 2c 39 32 2c 38 2c  |TA "*Six,",92,8,|
00000110  22 73 65 76 65 6e 2c 22  2c 39 32 2c 38 2c 22 65  |"seven,",92,8,"e|
00000120  69 67 68 74 2c 22 2c 38  38 2c 34 2c 22 6e 69 6e  |ight,",88,4,"nin|
00000130  65 2c 22 2c 38 30 2c 34  2c 22 74 65 0d 20 20 20  |e,",80,4,"te.   |
00000140  6e 2c 22 2c 38 30 2c 38  0d 20 20 20 20 20 20 34  |n,",80,8.      4|
00000150  30 38 30 44 41 54 41 20  22 2a 54 68 65 6e 22 2c  |080DATA "*Then",|
00000160  37 32 2c 34 2c 22 49 22  2c 36 38 2c 34 2c 22 6c  |72,4,"I",68,4,"l|
00000170  65 74 22 2c 36 30 2c 34  2c 22 69 74 22 2c 36 38  |et",60,4,"it",68|
00000180  2c 34 2c 22 67 6f 22 2c  38 30 2c 34 2c 22 61 22  |,4,"go",80,4,"a"|
00000190  2c 0d 20 20 20 37 32 2c  34 2c 22 2d 67 61 69 6e  |,.   72,4,"-gain|
000001a0  22 2c 37 32 2c 38 0d 0d  54 68 65 20 61 73 74 65  |",72,8..The aste|
000001b0  72 69 73 6b 20 73 69 67  6e 61 6c 73 20 74 68 61  |risk signals tha|
000001c0  74 20 61 20 6e 65 77 20  6c 69 6e 65 20 69 73 20  |t a new line is |
000001d0  74 6f 20 62 65 20 70 72  69 6e 74 65 64 20 61 6e  |to be printed an|
000001e0  64 20 74 68 65 20 64 61  73 68 20 74 68 61 74 0d  |d the dash that.|
000001f0  74 68 69 73 20 77 6f 72  64 20 69 73 20 74 6f 20  |this word is to |
00000200  62 65 20 6a 6f 69 6e 65  64 20 74 6f 20 6f 6e 74  |be joined to ont|
00000210  6f 20 74 68 65 20 70 72  65 76 69 6f 75 73 20 6f  |o the previous o|
00000220  6e 65 2e 20 54 68 69 73  20 69 73 20 74 68 65 20  |ne. This is the |
00000230  70 72 6f 63 65 2d 0d 64  75 72 65 20 74 68 61 74  |proce-.dure that|
00000240  20 64 65 63 6f 64 65 73  20 74 68 65 73 65 20 63  | decodes these c|
00000250  68 61 72 61 63 74 65 72  73 20 61 6e 64 20 70 72  |haracters and pr|
00000260  69 6e 74 73 20 6f 75 74  20 74 68 65 20 77 68 6f  |ints out the who|
00000270  6c 65 20 76 65 72 73 65  20 69 6e 20 0d 74 69 6d  |le verse in .tim|
00000280  65 20 74 6f 20 74 68 65  20 6d 75 73 69 63 3a 0d  |e to the music:.|
00000290  20 20 20 20 20 20 32 30  30 30 44 45 46 20 50 52  |      2000DEF PR|
000002a0  4f 43 6c 69 6e 65 73 20  20 0d 20 20 20 20 20 20  |OClines  .      |
000002b0  32 30 31 30 50 52 49 4e  54 20 27 27 27 0d 20 20  |2010PRINT '''.  |
000002c0  20 20 20 20 32 30 32 30  46 4f 52 20 52 3d 31 20  |    2020FOR R=1 |
000002d0  54 4f 20 32 34 0d 20 20  20 20 20 20 32 30 33 30  |TO 24.      2030|
000002e0  52 45 41 44 20 57 4f 52  44 24 2c 50 49 54 43 48  |READ WORD$,PITCH|
000002f0  2c 44 55 52 20 0d 20 20  20 20 20 20 32 30 34 30  |,DUR .      2040|
00000300  43 4f 4e 54 52 4f 4c 24  3d 4c 45 46 54 24 28 57  |CONTROL$=LEFT$(W|
00000310  4f 52 44 24 2c 31 29 0d  20 20 20 20 20 20 32 30  |ORD$,1).      20|
00000320  35 30 49 46 20 43 4f 4e  54 52 4f 4c 24 3c 3e 22  |50IF CONTROL$<>"|
00000330  2d 22 20 41 4e 44 20 43  4f 4e 54 52 4f 4c 24 3c  |-" AND CONTROL$<|
00000340  3e 22 2a 22 20 54 48 45  4e 20 32 30 39 30 0d 20  |>"*" THEN 2090. |
00000350  20 20 20 20 20 32 30 36  30 57 4f 52 44 24 3d 52  |     2060WORD$=R|
00000360  49 47 48 54 24 28 57 4f  52 44 24 2c 4c 45 4e 28  |IGHT$(WORD$,LEN(|
00000370  57 4f 52 44 24 29 2d 31  29 0d 20 20 20 20 20 20  |WORD$)-1).      |
00000380  32 30 37 30 49 46 20 43  4f 4e 54 52 4f 4c 24 3d  |2070IF CONTROL$=|
00000390  22 2a 22 20 54 48 45 4e  20 50 52 49 4e 54 20 27  |"*" THEN PRINT '|
000003a0  27 0d 20 20 20 20 20 20  32 30 38 30 49 46 20 43  |'.      2080IF C|
000003b0  4f 4e 54 52 4f 4c 24 3d  22 2d 22 20 54 48 45 4e  |ONTROL$="-" THEN|
000003c0  20 56 44 55 20 38 0d 20  20 20 20 20 20 32 30 39  | VDU 8.      209|
000003d0  30 50 52 49 4e 54 20 57  4f 52 44 24 3b 22 20 22  |0PRINT WORD$;" "|
000003e0  3b 0d 20 20 20 20 20 20  32 31 30 30 53 4f 55 4e  |;.      2100SOUN|
000003f0  44 20 31 2c 2d 31 35 2c  50 49 54 43 48 2c 44 55  |D 1,-15,PITCH,DU|
00000400  52 20 20 0d 20 20 20 20  20 20 32 31 31 30 54 25  |R  .      2110T%|
00000410  3d 54 49 4d 45 3a 52 45  50 45 41 54 55 4e 54 49  |=TIME:REPEATUNTI|
00000420  4c 20 54 49 4d 45 3e 54  25 2b 35 2a 44 55 52 0d  |L TIME>T%+5*DUR.|
00000430  20 20 20 20 20 20 32 31  32 30 4e 45 58 54 20 52  |      2120NEXT R|
00000440  20 20 20 0d 20 20 20 20  20 20 32 31 33 30 50 52  |   .      2130PR|
00000450  49 4e 54 20 54 41 42 28  35 2c 32 30 29 22 50 52  |INT TAB(5,20)"PR|
00000460  45 53 53 20 53 50 41 43  45 20 42 41 52 20 54 4f  |ESS SPACE BAR TO|
00000470  20 43 4f 4e 54 49 4e 55  45 2e 22 0d 20 20 20 20  | CONTINUE.".    |
00000480  20 20 32 31 34 30 52 45  50 45 41 54 20 55 4e 54  |  2140REPEAT UNT|
00000490  49 4c 20 47 45 54 3d 33  32 0d 20 20 20 20 20 20  |IL GET=32.      |
000004a0  32 31 35 30 45 4e 44 50  52 4f 43 0d 0d 54 68 69  |2150ENDPROC..Thi|
000004b0  73 20 73 65 63 6f 6e 64  20 70 72 6f 63 65 64 75  |s second procedu|
000004c0  72 65 20 69 73 20 66 6f  72 20 4d 6f 64 65 20 34  |re is for Mode 4|
000004d0  20 61 73 20 77 65 6c 6c  2e 20 41 67 61 69 6e 2c  | as well. Again,|
000004e0  20 69 74 20 63 6f 75 6c  64 20 65 61 73 69 6c 79  | it could easily|
000004f0  20 62 65 20 0d 63 6f 6e  76 65 72 74 65 64 20 74  | be .converted t|
00000500  6f 20 6f 74 68 65 72 20  6d 6f 64 65 73 20 62 79  |o other modes by|
00000510  20 61 6c 74 65 72 69 6e  67 20 74 68 65 20 54 41  | altering the TA|
00000520  42 20 73 74 61 74 65 6d  65 6e 74 73 20 61 6e 64  |B statements and|
00000530  20 74 68 65 20 6e 65 77  20 6c 69 6e 65 0d 63 6f  | the new line.co|
00000540  6e 74 72 6f 6c 20 63 68  61 72 61 63 74 65 72 73  |ntrol characters|
00000550  20 69 6e 20 74 68 65 20  64 61 74 61 2e 0d 20 20  | in the data..  |
00000560  20 4c 69 6e 65 20 32 30  34 30 20 72 65 6d 6f 76  | Line 2040 remov|
00000570  65 73 20 74 68 65 20 63  6f 6e 74 72 6f 6c 20 63  |es the control c|
00000580  68 61 72 61 63 74 65 72  20 66 72 6f 6d 20 74 68  |haracter from th|
00000590  65 20 6c 79 72 69 63 20  61 6e 64 20 63 68 65 63  |e lyric and chec|
000005a0  6b 73 20 74 6f 0d 73 65  65 20 69 66 20 69 74 20  |ks to.see if it |
000005b0  69 73 20 69 6e 20 66 61  63 74 20 61 20 63 6f 6e  |is in fact a con|
000005c0  74 72 6f 6c 20 63 68 61  72 61 63 74 65 72 2e 20  |trol character. |
000005d0  49 66 20 69 74 20 69 73  6e 27 74 20 74 68 65 6e  |If it isn't then|
000005e0  20 74 68 65 20 6e 6f 74  65 20 69 73 0d 73 6f 75  | the note is.sou|
000005f0  6e 64 65 64 2c 20 74 68  65 20 77 6f 72 64 20 69  |nded, the word i|
00000600  73 20 70 72 69 6e 74 65  64 20 6f 6e 74 6f 20 74  |s printed onto t|
00000610  68 65 20 73 63 72 65 65  6e 2c 20 61 6e 64 20 61  |he screen, and a|
00000620  20 64 65 6c 61 79 20 6c  6f 6f 70 20 75 73 65 64  | delay loop used|
00000630  20 61 73 0d 62 65 66 6f  72 65 2e 20 54 68 69 73  | as.before. This|
00000640  20 74 69 6d 65 20 74 68  65 20 77 6f 72 64 20 69  | time the word i|
00000650  73 20 70 72 69 6e 74 65  64 20 74 6f 20 66 6f 6c  |s printed to fol|
00000660  6c 6f 77 20 64 69 72 65  63 74 6c 79 20 6f 6e 20  |low directly on |
00000670  66 72 6f 6d 20 74 68 65  20 0d 6c 61 73 74 20 6f  |from the .last o|
00000680  6e 65 2c 20 77 69 74 68  6f 75 74 20 63 6c 65 61  |ne, without clea|
00000690  72 69 6e 67 20 74 68 65  20 73 63 72 65 65 6e 2e  |ring the screen.|
000006a0  0d 20 20 20 54 68 65 20  6c 69 6e 65 73 20 32 30  |.   The lines 20|
000006b0  37 30 20 61 6e 64 20 32  30 38 30 20 61 63 74 20  |70 and 2080 act |
000006c0  61 63 63 6f 72 64 69 6e  67 20 74 6f 20 74 68 65  |according to the|
000006d0  20 63 6f 6e 74 72 6f 6c  20 63 68 61 72 61 63 74  | control charact|
000006e0  65 72 20 66 6f 75 6e 64  2e 0d 49 66 20 61 6e 20  |er found..If an |
000006f0  61 73 74 65 72 69 73 6b  20 69 73 20 66 6f 75 6e  |asterisk is foun|
00000700  64 20 61 20 6e 65 77 20  6c 69 6e 65 20 69 73 20  |d a new line is |
00000710  70 72 69 6e 74 65 64 20  62 65 66 6f 72 65 20 74  |printed before t|
00000720  68 65 20 77 6f 72 64 2e  20 49 66 20 61 20 64 61  |he word. If a da|
00000730  73 68 0d 69 73 20 74 68  65 72 65 20 74 68 65 6e  |sh.is there then|
00000740  20 74 68 65 20 63 75 72  73 6f 72 20 69 73 20 6d  | the cursor is m|
00000750  6f 76 65 64 20 62 61 63  6b 20 6f 6e 65 20 70 6f  |oved back one po|
00000760  73 69 74 69 6f 6e 2c 20  75 73 69 6e 67 20 56 44  |sition, using VD|
00000770  55 20 38 2c 20 74 6f 20  0d 6a 6f 69 6e 20 74 68  |U 8, to .join th|
00000780  65 20 77 6f 72 64 20 74  6f 20 74 68 65 20 6c 61  |e word to the la|
00000790  73 74 20 6f 6e 65 20 70  72 69 6e 74 65 64 2e 0d  |st one printed..|
000007a0  20 20 20 41 73 20 77 65  20 61 72 65 20 77 72 69  |   As we are wri|
000007b0  74 69 6e 67 20 74 68 65  20 63 6f 6d 70 6c 65 74  |ting the complet|
000007c0  65 20 72 68 79 6d 65 20  6e 6f 77 2c 20 63 6c 65  |e rhyme now, cle|
000007d0  61 72 69 6e 67 20 74 68  65 20 73 63 72 65 65 6e  |aring the screen|
000007e0  20 61 73 20 73 6f 6f 6e  0d 61 73 20 74 68 65 20  | as soon.as the |
000007f0  6c 61 73 74 20 77 6f 72  64 20 69 73 20 70 72 69  |last word is pri|
00000800  6e 74 65 64 20 69 73 6e  27 74 20 61 20 67 6f 6f  |nted isn't a goo|
00000810  64 20 69 64 65 61 2e 20  41 20 63 68 61 6e 63 65  |d idea. A chance|
00000820  20 69 73 20 67 69 76 65  6e 20 66 6f 72 20 74 68  | is given for th|
00000830  65 0d 75 73 65 72 20 74  6f 20 72 65 61 64 20 74  |e.user to read t|
00000840  68 65 20 76 65 72 73 65  20 77 69 74 68 20 61 20  |he verse with a |
00000850  70 61 75 73 65 20 69 6e  20 6c 69 6e 65 73 20 32  |pause in lines 2|
00000860  31 33 30 20 61 6e 64 20  32 31 34 30 2e 20 47 45  |130 and 2140. GE|
00000870  54 20 72 65 61 64 73 20  0d 74 68 65 20 6b 65 79  |T reads .the key|
00000880  62 6f 61 72 64 20 61 6e  64 20 72 65 74 75 72 6e  |board and return|
00000890  73 20 74 68 65 20 41 53  43 49 49 20 63 6f 64 65  |s the ASCII code|
000008a0  20 66 6f 72 20 74 68 65  20 6b 65 79 20 62 65 69  | for the key bei|
000008b0  6e 67 20 70 72 65 73 73  65 64 2e 20 54 68 65 0d  |ng pressed. The.|
000008c0  73 70 61 63 65 20 62 61  72 20 68 61 73 20 61 6e  |space bar has an|
000008d0  20 41 53 43 49 49 20 63  6f 64 65 20 6f 66 20 33  | ASCII code of 3|
000008e0  32 2e 0d 20 20 20 57 65  20 6e 6f 77 20 68 61 76  |2..   We now hav|
000008f0  65 20 74 77 6f 20 70 72  6f 63 65 64 75 72 65 73  |e two procedures|
00000900  20 61 6e 64 20 74 77 6f  20 73 65 74 73 20 6f 66  | and two sets of|
00000910  20 64 61 74 61 2c 20 6f  6e 65 20 74 6f 20 70 72  | data, one to pr|
00000920  69 6e 74 20 6f 75 74 20  74 68 65 0d 77 6f 72 64  |int out the.word|
00000930  73 20 6f 6e 6c 79 2c 20  61 6e 64 20 6f 6e 65 20  |s only, and one |
00000940  74 6f 20 70 72 69 6e 74  20 6f 75 74 20 74 68 65  |to print out the|
00000950  20 76 65 72 73 65 2c 20  6c 69 6e 65 20 62 79 20  | verse, line by |
00000960  6c 69 6e 65 2e 20 53 6f  20 6e 6f 77 20 6c 65 74  |line. So now let|
00000970  27 73 0d 70 75 74 20 74  68 65 6d 20 69 6e 74 6f  |'s.put them into|
00000980  20 61 20 63 6f 6d 70 6c  65 74 65 20 70 72 6f 67  | a complete prog|
00000990  72 61 6d 3a 0d 20 20 20  20 20 20 20 20 31 30 4d  |ram:.        10M|
000009a0  4f 44 45 20 34 0d 20 20  20 20 20 20 20 20 32 30  |ODE 4.        20|
000009b0  56 44 55 32 33 3b 38 32  30 32 3b 30 3b 30 3b 30  |VDU23;8202;0;0;0|
000009c0  3b 0d 20 20 20 20 20 20  20 20 33 30 52 45 50 45  |;.        30REPE|
000009d0  41 54 0d 20 20 20 20 20  20 20 20 34 30 50 52 4f  |AT.        40PRO|
000009e0  43 63 6f 6e 74 69 6e 75  65 0d 20 20 20 20 20 20  |Ccontinue.      |
000009f0  20 20 35 30 55 4e 54 49  4c 20 46 41 4c 53 45 0d  |  50UNTIL FALSE.|
00000a00  20 20 20 20 20 20 20 20  36 30 45 4e 44 0d 20 20  |        60END.  |
00000a10  20 20 20 20 20 20 37 30  3a 0d 20 20 20 20 20 20  |      70:.      |
00000a20  33 30 30 30 44 45 46 20  50 52 4f 43 63 6f 6e 74  |3000DEF PROCcont|
00000a30  69 6e 75 65 20 20 20 0d  20 20 20 20 20 20 33 30  |inue   .      30|
00000a40  31 30 43 4c 53 0d 20 20  20 20 20 20 33 30 32 30  |10CLS.      3020|
00000a50  56 44 55 31 39 2c 30 2c  34 3b 30 3b 31 39 2c 31  |VDU19,0,4;0;19,1|
00000a60  2c 33 3b 30 3b 0d 20 20  20 20 20 20 33 30 33 30  |,3;0;.      3030|
00000a70  50 52 49 4e 54 20 54 41  42 28 35 2c 35 29 22 50  |PRINT TAB(5,5)"P|
00000a80  72 65 73 73 20 57 20 74  6f 20 70 6c 61 79 20 74  |ress W to play t|
00000a90  68 65 20 77 6f 72 64 73  2e 22 0d 20 20 20 20 20  |he words.".     |
00000aa0  20 33 30 34 30 50 52 49  4e 54 20 54 41 42 28 37  | 3040PRINT TAB(7|
00000ab0  2c 37 29 22 6f 72 20 50  20 74 6f 20 70 6c 61 79  |,7)"or P to play|
00000ac0  20 74 68 65 20 70 6f 65  6d 2e 22 0d 20 20 20 20  | the poem.".    |
00000ad0  20 20 33 30 35 30 41 24  3d 47 45 54 24 0d 20 20  |  3050A$=GET$.  |
00000ae0  20 20 20 20 33 30 36 30  41 3d 49 4e 53 54 52 28  |    3060A=INSTR(|
00000af0  22 57 77 50 70 22 2c 41  24 29 0d 20 20 20 20 20  |"WwPp",A$).     |
00000b00  20 33 30 37 30 49 46 20  41 3d 30 20 54 48 45 4e  | 3070IF A=0 THEN|
00000b10  20 33 30 35 30 0d 20 20  20 20 20 20 33 30 38 30  | 3050.      3080|
00000b20  43 4c 53 0d 20 20 20 20  20 20 33 30 39 30 49 46  |CLS.      3090IF|
00000b30  20 41 3c 33 20 52 45 53  54 4f 52 45 20 34 30 30  | A<3 RESTORE 400|
00000b40  30 3a 50 52 4f 43 77 6f  72 64 73 0d 20 20 20 20  |0:PROCwords.    |
00000b50  20 20 33 31 30 30 49 46  20 41 3e 32 20 52 45 53  |  3100IF A>2 RES|
00000b60  54 4f 52 45 20 34 30 35  30 3a 50 52 4f 43 6c 69  |TORE 4050:PROCli|
00000b70  6e 65 73 0d 20 20 20 20  20 20 33 31 31 30 45 4e  |nes.      3110EN|
00000b80  44 50 52 4f 43 0d 0d 46  69 72 73 74 20 4d 6f 64  |DPROC..First Mod|
00000b90  65 20 34 20 69 73 20 73  65 74 20 75 70 20 77 69  |e 4 is set up wi|
00000ba0  74 68 6f 75 74 20 61 20  63 75 72 73 6f 72 20 61  |thout a cursor a|
00000bb0  6e 64 20 74 68 65 6e 20  74 68 65 20 70 72 6f 63  |nd then the proc|
00000bc0  65 64 75 72 65 2c 20 0d  50 52 4f 43 63 6f 6e 74  |edure, .PROCcont|
00000bd0  69 6e 75 65 20 69 73 20  63 61 6c 6c 65 64 20 61  |inue is called a|
00000be0  67 61 69 6e 20 61 6e 64  20 61 67 61 69 6e 20 75  |gain and again u|
00000bf0  6e 74 69 6c 20 79 6f 75  20 74 69 72 65 20 6f 66  |ntil you tire of|
00000c00  20 74 68 65 20 72 68 79  6d 65 2e 0d 20 20 20 50  | the rhyme..   P|
00000c10  52 4f 43 63 6f 6e 74 69  6e 75 65 20 73 69 6d 70  |ROCcontinue simp|
00000c20  6c 79 20 63 6c 65 61 72  73 20 74 68 65 20 73 63  |ly clears the sc|
00000c30  72 65 65 6e 20 61 6e 64  20 72 65 64 65 66 69 6e  |reen and redefin|
00000c40  65 73 20 74 68 65 20 66  6f 72 65 67 72 6f 75 6e  |es the foregroun|
00000c50  64 20 0d 61 6e 64 20 62  61 63 6b 67 72 6f 75 6e  |d .and backgroun|
00000c60  64 20 63 6f 6c 6f 75 72  73 20 74 6f 20 70 72 65  |d colours to pre|
00000c70  74 74 69 65 72 20 76 61  72 69 61 6e 74 73 2c 20  |ttier variants, |
00000c80  74 68 65 6e 20 6f 66 66  65 72 73 20 79 6f 75 20  |then offers you |
00000c90  74 68 65 20 63 68 6f 69  63 65 0d 62 65 74 77 65  |the choice.betwe|
00000ca0  65 6e 20 73 65 65 69 6e  67 20 74 68 65 20 72 68  |en seeing the rh|
00000cb0  79 6d 65 20 6f 6e 65 20  77 6f 72 64 20 61 74 20  |yme one word at |
00000cc0  61 20 74 69 6d 65 20 6f  72 20 62 75 69 6c 64 69  |a time or buildi|
00000cd0  6e 67 20 75 70 20 6f 6e  20 74 68 65 20 0d 73 63  |ng up on the .sc|
00000ce0  72 65 65 6e 2e 20 59 6f  75 72 20 61 6e 73 77 65  |reen. Your answe|
00000cf0  72 20 69 73 20 63 6f 6d  70 61 72 65 64 20 69 6e  |r is compared in|
00000d00  20 6c 69 6e 65 20 33 30  36 30 20 77 69 74 68 20  | line 3060 with |
00000d10  74 68 65 20 70 6f 73 73  69 62 6c 65 20 6c 65 67  |the possible leg|
00000d20  69 74 69 2d 0d 6d 61 74  65 20 61 6e 73 77 65 72  |iti-.mate answer|
00000d30  73 2e 20 57 68 69 63 68  65 76 65 72 20 79 6f 75  |s. Whichever you|
00000d40  20 70 69 63 6b 2c 20 74  68 65 20 72 69 67 68 74  | pick, the right|
00000d50  20 64 61 74 61 20 73 74  61 74 65 6d 65 6e 74 73  | data statements|
00000d60  20 61 72 65 20 73 65 6c  65 63 74 65 64 0d 77 69  | are selected.wi|
00000d70  74 68 20 74 68 65 20 52  45 53 54 4f 52 45 20 63  |th the RESTORE c|
00000d80  6f 6d 6d 61 6e 64 20 61  6e 64 20 74 68 65 20 72  |ommand and the r|
00000d90  65 71 75 69 73 69 74 65  20 70 72 6f 63 65 64 75  |equisite procedu|
00000da0  72 65 20 63 61 6c 6c 65  64 2e 0d 20 20 20 57 68  |re called..   Wh|
00000db0  65 6e 20 79 6f 75 20 68  61 76 65 20 68 65 61 72  |en you have hear|
00000dc0  64 20 27 4f 6e 65 2c 20  74 77 6f 2c 20 74 68 72  |d 'One, two, thr|
00000dd0  65 65 2c 20 66 6f 75 72  2c 20 66 69 76 65 27 20  |ee, four, five' |
00000de0  74 6f 20 79 6f 75 72 20  68 65 61 72 74 27 73 20  |to your heart's |
00000df0  0d 63 6f 6e 74 65 6e 74  2c 20 79 6f 75 20 6d 61  |.content, you ma|
00000e00  79 20 6c 69 6b 65 20 74  6f 20 65 6e 74 65 72 20  |y like to enter |
00000e10  79 6f 75 72 20 6f 77 6e  20 6d 75 73 69 63 2e 20  |your own music. |
00000e20  59 6f 75 20 63 61 6e 20  70 75 74 20 61 6e 79 20  |You can put any |
00000e30  74 75 6e 65 20 69 6e 20  0d 61 73 20 64 61 74 61  |tune in .as data|
00000e40  2e 20 45 61 63 68 20 6e  6f 74 65 20 73 68 6f 75  |. Each note shou|
00000e50  6c 64 20 62 65 20 65 6e  74 65 72 65 64 20 61 73  |ld be entered as|
00000e60  3a 20 77 6f 72 64 20 70  72 69 6e 74 65 64 2c 20  |: word printed, |
00000e70  70 69 74 63 68 2c 20 61  6e 64 20 0d 64 75 72 61  |pitch, and .dura|
00000e80  74 69 6f 6e 2e 20 44 6f  6e 27 74 20 66 6f 72 67  |tion. Don't forg|
00000e90  65 74 20 74 6f 20 63 68  61 6e 67 65 20 74 68 65  |et to change the|
00000ea0  20 74 6f 74 61 6c 20 6e  75 6d 62 65 72 20 6f 66  | total number of|
00000eb0  20 6e 6f 74 65 73 20 28  32 34 20 69 6e 20 74 68  | notes (24 in th|
00000ec0  65 0d 65 78 61 6d 70 6c  65 29 20 69 6e 20 6c 69  |e.example) in li|
00000ed0  6e 65 73 20 31 30 31 30  20 61 6e 64 20 32 30 32  |nes 1010 and 202|
00000ee0  30 2e 0d 20 20 20 20 20  20 20 20 20 20 20 20 20  |0..             |
00000ef0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000f10  42 72 69 61 6e 20 42 6f  79 64 65 2d 53 68 61 77  |Brian Boyde-Shaw|
00000f20  2c 20 45 4c 42 55 47 20  32 2e 31 0d 20 20 20 20  |, ELBUG 2.1.    |
00000f30  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000f60  20 20 52 65 70 72 6f 64  75 63 65 64 20 45 55 47  |  Reproduced EUG|
00000f70  20 23 35 34 0d                                    | #54.|
00000f75
V/+SYNCH2.m0
V/+SYNCH2.m1
V/+SYNCH2.m2
V/+SYNCH2.m4
V/+SYNCH2.m5