Home » Personal collection » Acorn tapes » Electron_User » Electron_User_tape30b_acorn_eu_1991_december.wav » STAVE

STAVE

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 tapes » Electron_User » Electron_User_tape30b_acorn_eu_1991_december.wav
Filename: STAVE
Read OK:
File size: 05A9 bytes
Load address: FFFF1A00
Exec address: FFFF8023
Duplicates

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

File contents
   10REM > <basicsave$dir>.Stave Print
   20REM by Alan Hampson
   30REM (c) The Micro User
   40MODE6:PRINT"Musical Stave Print"
   50ONERRORGOTO150
   60DIMm%(8)
   70m%(1)=10:m%(2)=6:m%(3)=4:m%(4)=3
   80m%(5)= 3:m%(6)=2:m%(7)=2:m%(8)=2
   90REPEAT:PROCinput:REPEAT
  100PRINT'" ";Q%*N%;" bars of ";P%;"-part..."
  110PROCprint:CLS:*FX15,1
  120PRINT'"Another identical sheet (Y/N)?"
  130REPEAT:G%=GET AND &DF:UNTILG%=78 OR G%=89
  140UNTILG%=78:UNTILFALSE
  150VDU3:REPORT:PRINT" at ";ERL:END
  160:
  170DEFPROCinput
  180PRINT'"Select grouping..."
  190PRINT'" 1. Single staves, up to 10 per page"
  200FORA%=2TO8
  210PRINT" ";A%"-part staves, up to  ";m%(A%);" per page":NEXT
  220REPEAT:P%=GET-48:UNTILP%>0 ANDP%<9
  230PRINTTAB(36,P%+5);P%
  240M%=m%(P%)
  250PRINTTAB(1,15)"How many staves (1-";M%;")?";
  260IFM%=10 PRINTTAB(1,16)"(Press : for 10)"
  270REPEAT:N%=GET-48:UNTILN%>0 AND N%<=M%
  280PRINTTAB(36,15);N%
  290PRINT" How many bars per stave (1-6)?";
  300REPEAT:Q%=GET-48:UNTILQ%>0 ANDQ%<7
  310PRINTTAB(36,16);Q%
  320L%=60 DIVQ%:S%=9-Q%:ENDPROC
  330:
  340DEFPROCprint:PROCprton
  350FORC%=1TON%
  360PROCline(135,136,130)
  370FORA%=1TO3
  380PROCline(132,131,128):NEXT
  390IF P%>1 PROCmulti
  400PROCline(137,138,129):PRINT'''''
  410NEXT:VDU3:ENDPROC
  420:
  430DEFPROCmulti
  440FORA%=1TO P%-1
  450PROCline(132,131,128)
  460FORB%=1TO3:PROCjoin:NEXT
  470PROCline(132,131,128)
  480FORB%=1TO3
  490PROCline(132,131,128):NEXT
  500NEXT:ENDPROC
  510:
  520DEFPROCline(a%,b%,c%):VDUa%
  530FORJ%=1TOS%:VDU133:NEXT
  540FORJ%=1TOQ%
  550FORK%=1TOL%:VDU133:NEXT
  560IFJ%=Q% VDUb% ELSE VDUc%
  570NEXT:PRINT:ENDPROC
  580:
  590DEFPROCjoin:VDU134
  600FORJ%=1TOS%:VDU32:NEXT
  610FORJ%=1TOQ%
  620FORK%=1TOL%:VDU32:NEXT
  630VDU134:NEXT:PRINT:ENDPROC
  640:
  650DEFPROCprton
  660PRINT'" Insert paper and press SPACE when ready";:REPEATUNTILGET=32
  670VDU2,1,27,1,108,1,8,1,27,1,109,1,4,1,27,1,56
  680IFP%>4 V%=16 ELSE V%=20
  690VDU1,27,1,51,1,V%
  700ENDPROC

#� > <basicsave$dir>.Stave Print
� by Alan Hampson
� (c) The Micro User
(�6:�"Musical Stave Print"
2��tV@
<
�m%(8)
F$m%(1)=10:m%(2)=6:m%(3)=4:m%(4)=3
P$m%(5)= 3:m%(6)=2:m%(7)=2:m%(8)=2
Z�:�input:�
d)�'" ";Q%*N%;" bars of ";P%;"-part..."
n�print:�:*FX15,1
x&�'"Another identical sheet (Y/N)?"
��:G%=� � &DF:�G%=78 � G%=89
�
�G%=78:��
��3:�:�" at ";�:�
�:
���input
��'"Select grouping..."
�,�'" 1. Single staves, up to 10 per page"
��A%=2�8
�7�" ";A%"-part staves, up to  ";m%(A%);" per page":�
��:P%=�-48:�P%>0 �P%<9
��36,P%+5);P%
�
M%=m%(P%)
�)�1,15)"How many staves (1-";M%;")?";
$�M%=10 �1,16)"(Press : for 10)"
�:N%=�-48:�N%>0 � N%<=M%
�36,15);N%
"'�" How many bars per stave (1-6)?";
,�:Q%=�-48:�Q%>0 �Q%<7
6�36,16);Q%
@L%=60 �Q%:S%=9-Q%:�
J:
T��print:�prton
^�C%=1�N%
h�line(135,136,130)
r�A%=1�3
|�line(132,131,128):�
�� P%>1 �multi
��line(137,138,129):�'''''
�
�:�3:�
�:
���multi
��A%=1� P%-1
��line(132,131,128)
��B%=1�3:�join:�
��line(132,131,128)
��B%=1�3
��line(132,131,128):�
��:�
�:
��line(a%,b%,c%):�a%
�J%=1�S%:�133:�
�J%=1�Q%
&�K%=1�L%:�133:�
0�J%=Q% �b% � �c%
:	�:�:�
D:
N��join:�134
X�J%=1�S%:�32:�
b�J%=1�Q%
l�K%=1�L%:�32:�
v�134:�:�:�
�:
���prton
�8�'" Insert paper and press SPACE when ready";:���=32
�.�2,1,27,1,108,1,8,1,27,1,109,1,4,1,27,1,56
��P%>4 V%=16 � V%=20
��1,27,1,51,1,V%
��
�
00000000  0d 00 0a 23 f4 20 3e 20  3c 62 61 73 69 63 73 61  |...#. > <basicsa|
00000010  76 65 24 64 69 72 3e 2e  53 74 61 76 65 20 50 72  |ve$dir>.Stave Pr|
00000020  69 6e 74 0d 00 14 15 f4  20 62 79 20 41 6c 61 6e  |int..... by Alan|
00000030  20 48 61 6d 70 73 6f 6e  0d 00 1e 18 f4 20 28 63  | Hampson..... (c|
00000040  29 20 54 68 65 20 4d 69  63 72 6f 20 55 73 65 72  |) The Micro User|
00000050  0d 00 28 1d eb 36 3a f1  22 4d 75 73 69 63 61 6c  |..(..6:."Musical|
00000060  20 53 74 61 76 65 20 50  72 69 6e 74 22 0d 00 32  | Stave Print"..2|
00000070  0b ee 85 e5 8d 74 56 40  0d 00 3c 0a de 6d 25 28  |.....tV@..<..m%(|
00000080  38 29 0d 00 46 24 6d 25  28 31 29 3d 31 30 3a 6d  |8)..F$m%(1)=10:m|
00000090  25 28 32 29 3d 36 3a 6d  25 28 33 29 3d 34 3a 6d  |%(2)=6:m%(3)=4:m|
000000a0  25 28 34 29 3d 33 0d 00  50 24 6d 25 28 35 29 3d  |%(4)=3..P$m%(5)=|
000000b0  20 33 3a 6d 25 28 36 29  3d 32 3a 6d 25 28 37 29  | 3:m%(6)=2:m%(7)|
000000c0  3d 32 3a 6d 25 28 38 29  3d 32 0d 00 5a 0e f5 3a  |=2:m%(8)=2..Z..:|
000000d0  f2 69 6e 70 75 74 3a f5  0d 00 64 29 f1 27 22 20  |.input:...d).'" |
000000e0  22 3b 51 25 2a 4e 25 3b  22 20 62 61 72 73 20 6f  |";Q%*N%;" bars o|
000000f0  66 20 22 3b 50 25 3b 22  2d 70 61 72 74 2e 2e 2e  |f ";P%;"-part...|
00000100  22 0d 00 6e 14 f2 70 72  69 6e 74 3a db 3a 2a 46  |"..n..print:.:*F|
00000110  58 31 35 2c 31 0d 00 78  26 f1 27 22 41 6e 6f 74  |X15,1..x&.'"Anot|
00000120  68 65 72 20 69 64 65 6e  74 69 63 61 6c 20 73 68  |her identical sh|
00000130  65 65 74 20 28 59 2f 4e  29 3f 22 0d 00 82 1f f5  |eet (Y/N)?".....|
00000140  3a 47 25 3d a5 20 80 20  26 44 46 3a fd 47 25 3d  |:G%=. . &DF:.G%=|
00000150  37 38 20 84 20 47 25 3d  38 39 0d 00 8c 0d fd 47  |78 . G%=89.....G|
00000160  25 3d 37 38 3a fd a3 0d  00 96 14 ef 33 3a f6 3a  |%=78:.......3:.:|
00000170  f1 22 20 61 74 20 22 3b  9e 3a e0 0d 00 a0 05 3a  |." at ";.:.....:|
00000180  0d 00 aa 0b dd f2 69 6e  70 75 74 0d 00 b4 1a f1  |......input.....|
00000190  27 22 53 65 6c 65 63 74  20 67 72 6f 75 70 69 6e  |'"Select groupin|
000001a0  67 2e 2e 2e 22 0d 00 be  2c f1 27 22 20 31 2e 20  |g..."...,.'" 1. |
000001b0  53 69 6e 67 6c 65 20 73  74 61 76 65 73 2c 20 75  |Single staves, u|
000001c0  70 20 74 6f 20 31 30 20  70 65 72 20 70 61 67 65  |p to 10 per page|
000001d0  22 0d 00 c8 0b e3 41 25  3d 32 b8 38 0d 00 d2 37  |".....A%=2.8...7|
000001e0  f1 22 20 22 3b 41 25 22  2d 70 61 72 74 20 73 74  |." ";A%"-part st|
000001f0  61 76 65 73 2c 20 75 70  20 74 6f 20 20 22 3b 6d  |aves, up to  ";m|
00000200  25 28 41 25 29 3b 22 20  70 65 72 20 70 61 67 65  |%(A%);" per page|
00000210  22 3a ed 0d 00 dc 19 f5  3a 50 25 3d a5 2d 34 38  |":......:P%=.-48|
00000220  3a fd 50 25 3e 30 20 80  50 25 3c 39 0d 00 e6 11  |:.P%>0 .P%<9....|
00000230  f1 8a 33 36 2c 50 25 2b  35 29 3b 50 25 0d 00 f0  |..36,P%+5);P%...|
00000240  0d 4d 25 3d 6d 25 28 50  25 29 0d 00 fa 29 f1 8a  |.M%=m%(P%)...)..|
00000250  31 2c 31 35 29 22 48 6f  77 20 6d 61 6e 79 20 73  |1,15)"How many s|
00000260  74 61 76 65 73 20 28 31  2d 22 3b 4d 25 3b 22 29  |taves (1-";M%;")|
00000270  3f 22 3b 0d 01 04 24 e7  4d 25 3d 31 30 20 f1 8a  |?";...$.M%=10 ..|
00000280  31 2c 31 36 29 22 28 50  72 65 73 73 20 3a 20 66  |1,16)"(Press : f|
00000290  6f 72 20 31 30 29 22 0d  01 0e 1c f5 3a 4e 25 3d  |or 10)".....:N%=|
000002a0  a5 2d 34 38 3a fd 4e 25  3e 30 20 80 20 4e 25 3c  |.-48:.N%>0 . N%<|
000002b0  3d 4d 25 0d 01 18 0f f1  8a 33 36 2c 31 35 29 3b  |=M%......36,15);|
000002c0  4e 25 0d 01 22 27 f1 22  20 48 6f 77 20 6d 61 6e  |N%.."'." How man|
000002d0  79 20 62 61 72 73 20 70  65 72 20 73 74 61 76 65  |y bars per stave|
000002e0  20 28 31 2d 36 29 3f 22  3b 0d 01 2c 19 f5 3a 51  | (1-6)?";..,..:Q|
000002f0  25 3d a5 2d 34 38 3a fd  51 25 3e 30 20 80 51 25  |%=.-48:.Q%>0 .Q%|
00000300  3c 37 0d 01 36 0f f1 8a  33 36 2c 31 36 29 3b 51  |<7..6...36,16);Q|
00000310  25 0d 01 40 17 4c 25 3d  36 30 20 81 51 25 3a 53  |%..@.L%=60 .Q%:S|
00000320  25 3d 39 2d 51 25 3a e1  0d 01 4a 05 3a 0d 01 54  |%=9-Q%:...J.:..T|
00000330  12 dd f2 70 72 69 6e 74  3a f2 70 72 74 6f 6e 0d  |...print:.prton.|
00000340  01 5e 0c e3 43 25 3d 31  b8 4e 25 0d 01 68 16 f2  |.^..C%=1.N%..h..|
00000350  6c 69 6e 65 28 31 33 35  2c 31 33 36 2c 31 33 30  |line(135,136,130|
00000360  29 0d 01 72 0b e3 41 25  3d 31 b8 33 0d 01 7c 18  |)..r..A%=1.3..|.|
00000370  f2 6c 69 6e 65 28 31 33  32 2c 31 33 31 2c 31 32  |.line(132,131,12|
00000380  38 29 3a ed 0d 01 86 11  e7 20 50 25 3e 31 20 f2  |8):...... P%>1 .|
00000390  6d 75 6c 74 69 0d 01 90  1d f2 6c 69 6e 65 28 31  |multi.....line(1|
000003a0  33 37 2c 31 33 38 2c 31  32 39 29 3a f1 27 27 27  |37,138,129):.'''|
000003b0  27 27 0d 01 9a 0a ed 3a  ef 33 3a e1 0d 01 a4 05  |''.....:.3:.....|
000003c0  3a 0d 01 ae 0b dd f2 6d  75 6c 74 69 0d 01 b8 0f  |:......multi....|
000003d0  e3 41 25 3d 31 b8 20 50  25 2d 31 0d 01 c2 16 f2  |.A%=1. P%-1.....|
000003e0  6c 69 6e 65 28 31 33 32  2c 31 33 31 2c 31 32 38  |line(132,131,128|
000003f0  29 0d 01 cc 13 e3 42 25  3d 31 b8 33 3a f2 6a 6f  |).....B%=1.3:.jo|
00000400  69 6e 3a ed 0d 01 d6 16  f2 6c 69 6e 65 28 31 33  |in:......line(13|
00000410  32 2c 31 33 31 2c 31 32  38 29 0d 01 e0 0b e3 42  |2,131,128).....B|
00000420  25 3d 31 b8 33 0d 01 ea  18 f2 6c 69 6e 65 28 31  |%=1.3.....line(1|
00000430  33 32 2c 31 33 31 2c 31  32 38 29 3a ed 0d 01 f4  |32,131,128):....|
00000440  07 ed 3a e1 0d 01 fe 05  3a 0d 02 08 18 dd f2 6c  |..:.....:......l|
00000450  69 6e 65 28 61 25 2c 62  25 2c 63 25 29 3a ef 61  |ine(a%,b%,c%):.a|
00000460  25 0d 02 12 13 e3 4a 25  3d 31 b8 53 25 3a ef 31  |%.....J%=1.S%:.1|
00000470  33 33 3a ed 0d 02 1c 0c  e3 4a 25 3d 31 b8 51 25  |33:......J%=1.Q%|
00000480  0d 02 26 13 e3 4b 25 3d  31 b8 4c 25 3a ef 31 33  |..&..K%=1.L%:.13|
00000490  33 3a ed 0d 02 30 14 e7  4a 25 3d 51 25 20 ef 62  |3:...0..J%=Q% .b|
000004a0  25 20 8b 20 ef 63 25 0d  02 3a 09 ed 3a f1 3a e1  |% . .c%..:..:.:.|
000004b0  0d 02 44 05 3a 0d 02 4e  0f dd f2 6a 6f 69 6e 3a  |..D.:..N...join:|
000004c0  ef 31 33 34 0d 02 58 12  e3 4a 25 3d 31 b8 53 25  |.134..X..J%=1.S%|
000004d0  3a ef 33 32 3a ed 0d 02  62 0c e3 4a 25 3d 31 b8  |:.32:...b..J%=1.|
000004e0  51 25 0d 02 6c 12 e3 4b  25 3d 31 b8 4c 25 3a ef  |Q%..l..K%=1.L%:.|
000004f0  33 32 3a ed 0d 02 76 0e  ef 31 33 34 3a ed 3a f1  |32:...v..134:.:.|
00000500  3a e1 0d 02 80 05 3a 0d  02 8a 0b dd f2 70 72 74  |:.....:......prt|
00000510  6f 6e 0d 02 94 38 f1 27  22 20 49 6e 73 65 72 74  |on...8.'" Insert|
00000520  20 70 61 70 65 72 20 61  6e 64 20 70 72 65 73 73  | paper and press|
00000530  20 53 50 41 43 45 20 77  68 65 6e 20 72 65 61 64  | SPACE when read|
00000540  79 22 3b 3a f5 fd a5 3d  33 32 0d 02 9e 2e ef 32  |y";:...=32.....2|
00000550  2c 31 2c 32 37 2c 31 2c  31 30 38 2c 31 2c 38 2c  |,1,27,1,108,1,8,|
00000560  31 2c 32 37 2c 31 2c 31  30 39 2c 31 2c 34 2c 31  |1,27,1,109,1,4,1|
00000570  2c 32 37 2c 31 2c 35 36  0d 02 a8 17 e7 50 25 3e  |,27,1,56.....P%>|
00000580  34 20 56 25 3d 31 36 20  8b 20 56 25 3d 32 30 0d  |4 V%=16 . V%=20.|
00000590  02 b2 13 ef 31 2c 32 37  2c 31 2c 35 31 2c 31 2c  |....1,27,1,51,1,|
000005a0  56 25 0d 02 bc 05 e1 0d  ff                       |V%.......|
000005a9
STAVE.m0
STAVE.m1
STAVE.m2
STAVE.m4
STAVE.m5