Home » Personal collection » Acorn hard disk » files » music » !MakeMIDI/old/!RI080899

!MakeMIDI/old/!RI080899

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 hard disk » files » music
Filename: !MakeMIDI/old/!RI080899
Read OK:
File size: 1B0F bytes
Load address: 0000
Exec address: 0000
File contents
   10REM !MakeMIDI
   20REM LEN Dominic Ford, 1999
   30:
   40ON ERROR !txt%=0:$(txt%+4)=REPORT$+" at line "+STR$ERL+CHR$0:SYS "Wimp_ReportError",txt%,0,"MIDI Maker":END
   50DIM q% 256,q2% 256,r% 256,menusp% &1000,iconsp% 256,infosp% &400,txt% 256,e% 256
   60DIM space &10000
   70OSCLI"LOAD <Obey$Dir>.MIDIHeader "+STR$~space
   80PROCclear
   90:
  100SYS "Wimp_Initialise",200,&4B534154,"MIDI Maker"
  110PROCicon(FALSE)
  120PROCmenus
  130 REPEAT
  140  SYS "Wimp_Poll",0,q% TO a%
  150  CASE a% OF
  160   WHEN 6
  170    CASE q%!12 OF
  180     WHEN -2
  190      IF q%!16=icon% AND q%!8=2 THEN PROCopen_menu
  200     WHEN save%
  210      CASE q%!16 OF
  220       WHEN 1
  230         IF (q%!8)>16 THEN
  240           !q2%=save%
  250           q2%!4=1
  260           SYS "Wimp_GetIconState",,q2%
  270           q2%!64=save%
  280           SYS "Wimp_GetWindowState",,(q2%+64)
  290           !r%=save%
  300           r%!4=5
  310           r%!8=(q2%!68)+(q2%!8)
  320           r%!12=(q2%!72)+(q2%!12)
  330           r%!16=(q2%!68)+(q2%!16)
  340           r%!20=(q2%!72)+(q2%!20)
  350           r%!24=&80000000
  360           r%!28=&80000000
  370           r%!32=&7FFFFFFF
  380           r%!36=&7FFFFFFF
  390           SYS "Wimp_DragBox",,r%
  400         ENDIF
  410       WHEN 2
  420         PROCsave(FNget_str(savetxt%))
  430         SYS "Wimp_CreateMenu",,-1
  440      ENDCASE
  450    ENDCASE
  460   WHEN 7
  470    SYS "Wimp_GetPointerInfo",,q2%
  480    !r%=36
  490    r%!16=1
  500    r%!20=q2%!12
  510    r%!24=q2%!16
  520    r%!28=!q2%
  530    r%!32=q2%!4
  540    r%!12=0
  550    r%!36=miditop%-space
  560     savefile$=FNget_str(savetxt%)
  570     p%=0
  580     WHILE INSTR(savefile$,".",p%)>0
  590       p%=INSTR(savefile$,".",p%)+1
  600     ENDWHILE
  610     savefile$=MID$(savefile$,p%)
  620     r%!40=&FD4
  630     $(r%+44)=savefile$+CHR$0
  640     !r%=((((45+LEN(savefile$)) DIV 4)+1)*4)
  650    SYS "Wimp_SendMessage",18,r%,q2%!12,q2%!16
  660    SYS "Wimp_CreateMenu",,-1
  670   WHEN 8
  680    IF (!q%=save%) AND (q%!4=0) AND (q%!24=13) THEN
  690     PROCsave(FNget_str(savetxt%))
  700     SYS "Wimp_CreateMenu",-1
  710     PROCmenus
  720    ELSE
  730     SYS "Wimp_ProcessKey",q%!24
  740    ENDIF
  750   WHEN 9
  760    PROChandlemenu
  770   WHEN 17,18
  780    CASE q%!16 OF
  790     WHEN 0
  800      END
  810     WHEN 2
  820      $(savetxt%)=FNget_str(q%+44):!savelen%=LEN(FNget_str(q%+44))
  830      PROCsave(FNget_str(q%+44))
  840      q%!12=q%!8
  850      q%!16=3
  860      SYS "Wimp_SendMessage",18,q%,q%!4
  870      q%!16=2
  880     WHEN 3
  890      IF q%!20=-2 AND q%!24=icon% THEN
  900       PROCconvert
  910       SYS "Wimp_CreateMenu",-1
  920       q%!16=3
  930      ENDIF
  940    ENDCASE
  950   WHEN 19
  960    CASE q%!16 OF
  970     WHEN 1
  980      PROCerror("Drag Icon to a Filer Window to Save")
  990     WHEN 3
 1000      PROCerror("Warning - Data May be Saved Incorrectly!")
 1010    ENDCASE
 1020  ENDCASE
 1030 UNTIL FALSE
 1040:
 1050DEFPROCclear
 1060file$="":pages=0:miditop%=space+&104
 1070lenW=space+&E1:start=space+&E5
 1080ENDPROC
 1090:
 1100DEFPROCsave(file$)
 1110LOCAL f%
 1120LOCAL ERROR
 1130ON ERROR LOCAL RESTORE ERROR:PROCfault(ERR,REPORT$):ENDPROC
 1140OSCLI"SAVE "+file$+" "+STR$~space+" "+STR$~miditop%
 1150OSCLI"SETTYPE "+file$+" FD4"
 1160RESTORE ERROR
 1170ENDPROC
 1180:
 1190DEFPROCerror(e$)
 1200!e%=0
 1210$(e%+4)=e$+CHR$0
 1220SYS "Wimp_ReportError",e%,0,"MIDI Maker"
 1230ENDPROC
 1240:
 1250DEFFNconfirm(m$)
 1260LOCAL r%
 1270!e%=0
 1280$(e%+4)=m$+CHR$0
 1290SYS "Wimp_ReportError",e%,&13,"MIDI Maker" TO ,r%
 1300=r%
 1310:
 1320DEFPROCfault(err%,err$)
 1330!e%=err%
 1340$(e%+4)=err$+CHR$0
 1350IFerr%=220 THEN $(e%+4)="Bad filename"+CHR$0
 1360SYS "Wimp_ReportError",e%,0,"MIDI Maker"
 1370ENDPROC
 1380:
 1390DEFPROCconvert
 1400file$=FNget_str(q%+44)
 1410type%=q%!40
 1420IF type%<>&AF1 THEN
 1430 !txt%=0:$(txt%+4)="Please convert to a Maestro file before attempting conversion"+CHR$0
 1440 SYS "Wimp_ReportError",txt%,0,"MIDI Maker"
 1450ELSE
 1460 PROCdoit(file$)
 1470 pages=pages+1
 1480 PROCicon(TRUE):PROCmenus
 1490ENDIF
 1500ENDPROC
 1510:
 1520DEFFNget_str(q%)
 1530LOCAL fn$,p%
 1540p%=0:fn$=""
 1550REPEAT
 1560 fn$=fn$+CHR$(q%?p%)
 1570 p%=p%+1
 1580UNTIL (q%?p%)<32
 1590=fn$
 1600:
 1610DEFPROCmenus
 1620 PROCinfobox
 1630 PROCsavebox
 1640 PROCmainmenu
 1650ENDPROC
 1660:
 1670DEFPROCsavebox
 1680 m%=menusp%
 1690 m%!28=&84000012
 1700 m%!32=&01070207
 1710 m%!36=&000C0103
 1720 m%!40=0:m%!44=0
 1730 m%!48=250:m%!52=160
 1740 m%!56=&00000019
 1750 m%!60=&00000000
 1760 m%!64=1:m%!68=250:m%!70=160
 1770 $(m%+72)="Save as:"+CHR$0
 1780 m%!84=3
 1790 m%!88=15:m%!92=10
 1800 m%!96=185:m%!100=55
 1810 m%!104=&0700F13D
 1820 m%!108=m%+250
 1830 m%!112=m%+192
 1840 m%!116=100
 1850 m%!120=80:m%!124=80
 1860 m%!128=145:m%!132=145
 1870 m%!136=&0700611A
 1880 m%!140=m%+200
 1890 m%!144=1
 1900 m%!148=1
 1910 m%!152=195:m%!156=10
 1920 m%!160=240:m%!164=55
 1930 m%!168=&C701903D
 1940 $(m%+172)="OK"+CHR$0
 1950 $(m%+200)="file_fd4"
 1960 $(m%+250)=file$:savetxt%=m%+250
 1970 !(m%+148)=8:savelen%=m%+148
 1980 m%!192=0
 1990 SYS "Wimp_CreateWindow",,m% TO save%
 2000ENDPROC
 2010:
 2020DEFPROCmainmenu
 2030 p%=menusp%+512:mainmenu%=p%
 2040 $p%="MIDI Maker"+CHR$0:p%!12=&70207:p%!16=200
 2050 p%!20=40:p%!24=0:f%=p%+28
 2060 !f%=0:f%!4=info%:f%!8=&07000011:$(f%+12)="Info"+CHR$0:f%+=24
 2070 IFpages=0THENf%!8=2^22+&07000011 ELSEf%!8=&07000011
 2080 !f%=0:f%!4=save%:$(f%+12)="Make MIDI"+CHR$0:f%+=24
 2090 IFpages=0THENf%!8=2^22+&07000011 ELSEf%!8=&07003011
 2100 !f%=0:f%!4=-1:$(f%+12)="Clear"+CHR$0:f%+=24
 2110 !f%=&80:f%!4=-1:f%!8=&07003011:$(f%+12)="Quit"+CHR$0:f%+=24
 2120ENDPROC
 2130:
 2140DEFPROChandlemenu
 2150 LOCAL a%,l%
 2160 CASE !q% OF
 2170   WHEN 2
 2180    a%=FNconfirm("Wipe processed music... Are you sure?")
 2190    IF a%=1 THEN PROCclear:PROCicon(TRUE):PROCmenus
 2200   WHEN 3
 2210   END
 2220 ENDCASE
 2230 SYS "Wimp_GetPointerInfo",,q%
 2240 IF ((q%!8) AND 1)=1 THEN PROCopen_menu
 2250ENDPROC
 2260:
 2270DEFPROCinfobox
 2280LOCAL s%,i%
 2290s%=infosp%
 2300s%!28=&84000012
 2310s%!32=&1070207
 2320s%!36=&20103
 2330s%!40=20:s%!44=0
 2340s%!48=636:s%!52=216
 2350s%!56=&00000119
 2360s%!60=&00000000
 2370s%!64=1
 2380s%!68=616
 2390s%!70=216
 2400s%!72=s%+528
 2410s%!76=s%+390
 2420s%!80=32
 2430s%!84=8
 2440i%=s%+88
 2450!i%=32:i%!4=8
 2460i%!8=184:i%!12=56
 2470i%!16=&07000211
 2480$(i%+20)="Version:"+CHR$0
 2490i%+=32
 2500!i%=188:i%!4=8
 2510i%!8=632:i%!12=56
 2520i%!16=&0700013D
 2530i%!20=s%+400
 2540i%!24=s%+390
 2550i%!28=30
 2560i%+=32
 2570!i%=32:i%!4=60
 2580i%!8=184:i%!12=108
 2590i%!16=&07000211
 2600$(i%+20)="Author:"+CHR$0
 2610i%+=32
 2620!i%=188:i%!4=60
 2630i%!8=632:i%!12=108
 2640i%!16=&0700013D
 2650i%!20=s%+432
 2660i%!24=s%+390
 2670i%!28=30
 2680i%+=32
 2690!i%=32:i%!4=112
 2700i%!8=184:i%!12=160
 2710i%!16=&07000211
 2720$(i%+20)="Purpose:"+CHR$0
 2730i%+=32
 2740!i%=188:i%!4=112
 2750i%!8=632:i%!12=160
 2760i%!16=&0700013D
 2770i%!20=s%+464
 2780i%!24=s%+390
 2790i%!28=30
 2800i%+=32
 2810!i%=32:i%!4=164
 2820i%!8=184:i%!12=212
 2830i%!16=&07000211
 2840$(i%+20)="Name:"+CHR$0
 2850i%+=32
 2860!i%=188:i%!4=164
 2870i%!8=632:i%!12=212
 2880i%!16=&0700013D
 2890i%!20=s%+496
 2900i%!24=s%+390
 2910i%!28=30
 2920s%!390=0
 2930$(s%+400)="1.00 (8-Aug-99)"+CHR$0
 2940$(s%+432)="� Dominic Ford, 1999"+CHR$0
 2950$(s%+464)="Maestro to MIDI"+CHR$0
 2960$(s%+496)="MIDI Maker"+CHR$0
 2970$(s%+528)="About this program"+CHR$0
 2980SYS "Wimp_CreateWindow",,s% TO info%
 2990ENDPROC
 3000:
 3010DEFPROCopen_menu
 3020 SYS "Wimp_CreateMenu",,mainmenu%,(!q%)-64,160
 3030ENDPROC
 3040:
 3050DEFPROCicon(redraw)
 3060sp%=iconsp%
 3070IF redraw THEN
 3080 !sp%=-1:sp%!4=icon%
 3090 SYS "Wimp_DeleteIcon",,sp%
 3100ENDIF
 3110!sp%=-1
 3120sp%!4=0
 3130sp%!8=-16
 3140sp%!12=128:sp%!16=84
 3150sp%!20=&1700310B
 3160sp%!24=sp%+40
 3170sp%!28=sp%+80
 3180sp%!32=32
 3190IF pages=0 THEN $(sp%+40)="Idle"+CHR$0
 3200IF pages=1 THEN $(sp%+40)="1 page"+CHR$0
 3210IF pages>1 THEN $(sp%+40)=STR$pages+" pages"+CHR$0
 3220$(sp%+80)="S!makemidi"+CHR$0
 3230SYS "Wimp_CreateIcon",,sp% TO icon%
 3240ENDPROC
 3250:
 3260REM CONVERSION ENGINE
 3270:
 3280DEFPROCdoit(filename$)
 3290ENDPROC

� !MakeMIDI
� � Dominic Ford, 1999
:
(Z� � !txt%=0:$(txt%+4)=�$+" at line "+Þ+�0:ș "Wimp_ReportError",txt%,0,"MIDI Maker":�
2R� q% 256,q2% 256,r% 256,menusp% &1000,iconsp% 256,infosp% &400,txt% 256,e% 256
<� space &10000
F*�"LOAD <Obey$Dir>.MIDIHeader "+�~space
P
�clear
Z:
d3ș "Wimp_Initialise",200,&4B534154,"MIDI Maker"
n�icon(�)
x
�menus
� �
�  ș "Wimp_Poll",0,q% � a%
�
  Ȏ a% �
�
   � 6
�    Ȏ q%!12 �
�
     � -2
�-      � q%!16=icon% � q%!8=2 � �open_menu
�     � save%
�      Ȏ q%!16 �
�       � 1
�         � (q%!8)>16 �
�           !q2%=save%
�           q2%!4=1
*           ș "Wimp_GetIconState",,q2%
           q2%!64=save%
1           ș "Wimp_GetWindowState",,(q2%+64)
"           !r%=save%
,           r%!4=5
6$           r%!8=(q2%!68)+(q2%!8)
@&           r%!12=(q2%!72)+(q2%!12)
J&           r%!16=(q2%!68)+(q2%!16)
T&           r%!20=(q2%!72)+(q2%!20)
^           r%!24=&80000000
h           r%!28=&80000000
r           r%!32=&7FFFFFFF
|           r%!36=&7FFFFFFF
�$           ș "Wimp_DragBox",,r%
�         �
�       � 2
�&         �save(�get_str(savetxt%))
�%         ș "Wimp_CreateMenu",,-1
�      �
�	    �
�
   � 7
�%    ș "Wimp_GetPointerInfo",,q2%
�    !r%=36
�    r%!16=1
�    r%!20=q2%!12
�    r%!24=q2%!16
    r%!28=!q2%
    r%!32=q2%!4
    r%!12=0
&    r%!36=miditop%-space
0%     savefile$=�get_str(savetxt%)
:
     p%=0
D      ȕ �savefile$,".",p%)>0
N"       p%=�savefile$,".",p%)+1
X
     �
b!     savefile$=�savefile$,p%)
l     r%!40=&FD4
v     $(r%+44)=savefile$+�0
�,     !r%=((((45+�(savefile$)) � 4)+1)*4)
�1    ș "Wimp_SendMessage",18,r%,q2%!12,q2%!16
�     ș "Wimp_CreateMenu",,-1
�
   � 8
�/    � (!q%=save%) � (q%!4=0) � (q%!24=13) �
�"     �save(�get_str(savetxt%))
�      ș "Wimp_CreateMenu",-1
�     �menus
�	    �
�#     ș "Wimp_ProcessKey",q%!24
�	    �
�
   � 9
�    �handlemenu
   � 17,18
    Ȏ q%!16 �
     � 0
       �
*     � 2
4B      $(savetxt%)=�get_str(q%+44):!savelen%=�(�get_str(q%+44))
>       �save(�get_str(q%+44))
H      q%!12=q%!8
R      q%!16=3
\*      ș "Wimp_SendMessage",18,q%,q%!4
f      q%!16=2
p     � 3
z$      � q%!20=-2 � q%!24=icon% �
�       �convert
�"       ș "Wimp_CreateMenu",-1
�       q%!16=3
�      �
�	    �
�   � 19
�    Ȏ q%!16 �
�     � 1
�7      �error("Drag Icon to a Filer Window to Save")
�     � 3
�<      �error("Warning - Data May be Saved Incorrectly!")
�	    �
�  �
 � �
:
��clear
$(file$="":pages=0:miditop%=space+&104
."lenW=space+&E1:start=space+&E5
8�
B:
L��save(file$)
V� f%
`� �
j� � � � �:�fault(�,�$):�
t-�"SAVE "+file$+" "+�~space+" "+�~miditop%
~�"SETTYPE "+file$+" FD4"
�� �
��
�:
���error(e$)
�	!e%=0
�$(e%+4)=e$+�0
�+ș "Wimp_ReportError",e%,0,"MIDI Maker"
��
�:
�ݤconfirm(m$)
�� r%
�	!e%=0
$(e%+4)=m$+�0

3ș "Wimp_ReportError",e%,&13,"MIDI Maker" � ,r%
=r%
:
(��fault(err%,err$)
2!e%=err%
<$(e%+4)=err$+�0
F)�err%=220 � $(e%+4)="Bad filename"+�0
P+ș "Wimp_ReportError",e%,0,"MIDI Maker"
Z�
d:
n
��convert
xfile$=�get_str(q%+44)
�type%=q%!40
�� type%<>&AF1 �
�Y !txt%=0:$(txt%+4)="Please convert to a Maestro file before attempting conversion"+�0
�. ș "Wimp_ReportError",txt%,0,"MIDI Maker"
��
� �doit(file$)
� pages=pages+1
� �icon(�):�menus
��
��
�:
�ݤget_str(q%)
�� fn$,p%
p%=0:fn$=""
�
 fn$=fn$+�(q%?p%)
" p%=p%+1
,� (q%?p%)<32
6=fn$
@:
J��menus
T
 �infobox
^
 �savebox
h �mainmenu
r�
|:
�
��savebox
� m%=menusp%
� m%!28=&84000012
� m%!32=&01070207
� m%!36=&000C0103
� m%!40=0:m%!44=0
� m%!48=250:m%!52=160
� m%!56=&00000019
� m%!60=&00000000
�  m%!64=1:m%!68=250:m%!70=160
� $(m%+72)="Save as:"+�0
� m%!84=3
� m%!88=15:m%!92=10
 m%!96=185:m%!100=55
 m%!104=&0700F13D
 m%!108=m%+250
& m%!112=m%+192
0 m%!116=100
: m%!120=80:m%!124=80
D m%!128=145:m%!132=145
N m%!136=&0700611A
X m%!140=m%+200
b
 m%!144=1
l
 m%!148=1
v m%!152=195:m%!156=10
� m%!160=240:m%!164=55
� m%!168=&C701903D
� $(m%+172)="OK"+�0
� $(m%+200)="file_fd4"
�$ $(m%+250)=file$:savetxt%=m%+250
�  !(m%+148)=8:savelen%=m%+148
�
 m%!192=0
�' ș "Wimp_CreateWindow",,m% � save%
��
�:
���mainmenu
�  p%=menusp%+512:mainmenu%=p%
�/ $p%="MIDI Maker"+�0:p%!12=&70207:p%!16=200
 p%!20=40:p%!24=0:f%=p%+28
> !f%=0:f%!4=info%:f%!8=&07000011:$(f%+12)="Info"+�0:f%+=24
1 �pages=0�f%!8=2^22+&07000011 �f%!8=&07000011
 4 !f%=0:f%!4=save%:$(f%+12)="Make MIDI"+�0:f%+=24
*1 �pages=0�f%!8=2^22+&07000011 �f%!8=&07003011
4- !f%=0:f%!4=-1:$(f%+12)="Clear"+�0:f%+=24
>= !f%=&80:f%!4=-1:f%!8=&07003011:$(f%+12)="Quit"+�0:f%+=24
H�
R:
\��handlemenu
f � a%,l%
p
 Ȏ !q% �
z
   � 2
�<    a%=�confirm("Wipe processed music... Are you sure?")
�'    � a%=1 � �clear:�icon(�):�menus
�
   � 3
�   �
� �
�! ș "Wimp_GetPointerInfo",,q%
�" � ((q%!8) � 1)=1 � �open_menu
��
�:
�
��infobox
�� s%,i%
�s%=infosp%
�s%!28=&84000012
	s%!32=&1070207
	s%!36=&20103
	s%!40=20:s%!44=0
	$s%!48=636:s%!52=216
	.s%!56=&00000119
	8s%!60=&00000000
	Bs%!64=1
	L
s%!68=616
	V
s%!70=216
	`s%!72=s%+528
	js%!76=s%+390
	ts%!80=32
	~s%!84=8
	�i%=s%+88
	�!i%=32:i%!4=8
	�i%!8=184:i%!12=56
	�i%!16=&07000211
	�$(i%+20)="Version:"+�0
	�
i%+=32
	�!i%=188:i%!4=8
	�i%!8=632:i%!12=56
	�i%!16=&0700013D
	�i%!20=s%+400
	�i%!24=s%+390
	�i%!28=30

i%+=32

!i%=32:i%!4=60
i%!8=184:i%!12=108
i%!16=&07000211
($(i%+20)="Author:"+�0
2
i%+=32
<!i%=188:i%!4=60
Fi%!8=632:i%!12=108
Pi%!16=&0700013D
Zi%!20=s%+432
di%!24=s%+390
ni%!28=30
x
i%+=32
�!i%=32:i%!4=112
�i%!8=184:i%!12=160
�i%!16=&07000211
�$(i%+20)="Purpose:"+�0
�
i%+=32
�!i%=188:i%!4=112
�i%!8=632:i%!12=160
�i%!16=&0700013D
�i%!20=s%+464
�i%!24=s%+390
�i%!28=30
�
i%+=32
�!i%=32:i%!4=164
i%!8=184:i%!12=212
i%!16=&07000211
$(i%+20)="Name:"+�0
"
i%+=32
,!i%=188:i%!4=164
6i%!8=632:i%!12=212
@i%!16=&0700013D
Ji%!20=s%+496
Ti%!24=s%+390
^i%!28=30
hs%!390=0
r"$(s%+400)="1.00 (8-Aug-99)"+�0
|'$(s%+432)="� Dominic Ford, 1999"+�0
�"$(s%+464)="Maestro to MIDI"+�0
�$(s%+496)="MIDI Maker"+�0
�%$(s%+528)="About this program"+�0
�&ș "Wimp_CreateWindow",,s% � info%
��
�:
���open_menu
�1 ș "Wimp_CreateMenu",,mainmenu%,(!q%)-64,160
��
�:
���icon(redraw)
�sp%=iconsp%
�� redraw �
 !sp%=-1:sp%!4=icon%
 ș "Wimp_DeleteIcon",,sp%
�
&!sp%=-1
0sp%!4=0
:
sp%!8=-16
Dsp%!12=128:sp%!16=84
Nsp%!20=&1700310B
Xsp%!24=sp%+40
bsp%!28=sp%+80
l
sp%!32=32
v#� pages=0 � $(sp%+40)="Idle"+�0
�%� pages=1 � $(sp%+40)="1 page"+�0
�,� pages>1 � $(sp%+40)=�pages+" pages"+�0
�$(sp%+80)="S!makemidi"+�0
�%ș "Wimp_CreateIcon",,sp% � icon%
��
�:
�� CONVERSION ENGINE
�:
���doit(filename$)
��
�
00000000  0d 00 0a 0f f4 20 21 4d  61 6b 65 4d 49 44 49 0d  |..... !MakeMIDI.|
00000010  00 14 1a f4 20 a9 20 44  6f 6d 69 6e 69 63 20 46  |.... . Dominic F|
00000020  6f 72 64 2c 20 31 39 39  39 0d 00 1e 05 3a 0d 00  |ord, 1999....:..|
00000030  28 5a ee 20 85 20 21 74  78 74 25 3d 30 3a 24 28  |(Z. . !txt%=0:$(|
00000040  74 78 74 25 2b 34 29 3d  f6 24 2b 22 20 61 74 20  |txt%+4)=.$+" at |
00000050  6c 69 6e 65 20 22 2b c3  9e 2b bd 30 3a c8 99 20  |line "+..+.0:.. |
00000060  22 57 69 6d 70 5f 52 65  70 6f 72 74 45 72 72 6f  |"Wimp_ReportErro|
00000070  72 22 2c 74 78 74 25 2c  30 2c 22 4d 49 44 49 20  |r",txt%,0,"MIDI |
00000080  4d 61 6b 65 72 22 3a e0  0d 00 32 52 de 20 71 25  |Maker":...2R. q%|
00000090  20 32 35 36 2c 71 32 25  20 32 35 36 2c 72 25 20  | 256,q2% 256,r% |
000000a0  32 35 36 2c 6d 65 6e 75  73 70 25 20 26 31 30 30  |256,menusp% &100|
000000b0  30 2c 69 63 6f 6e 73 70  25 20 32 35 36 2c 69 6e  |0,iconsp% 256,in|
000000c0  66 6f 73 70 25 20 26 34  30 30 2c 74 78 74 25 20  |fosp% &400,txt% |
000000d0  32 35 36 2c 65 25 20 32  35 36 0d 00 3c 12 de 20  |256,e% 256..<.. |
000000e0  73 70 61 63 65 20 26 31  30 30 30 30 0d 00 46 2a  |space &10000..F*|
000000f0  ff 22 4c 4f 41 44 20 3c  4f 62 65 79 24 44 69 72  |."LOAD <Obey$Dir|
00000100  3e 2e 4d 49 44 49 48 65  61 64 65 72 20 22 2b c3  |>.MIDIHeader "+.|
00000110  7e 73 70 61 63 65 0d 00  50 0a f2 63 6c 65 61 72  |~space..P..clear|
00000120  0d 00 5a 05 3a 0d 00 64  33 c8 99 20 22 57 69 6d  |..Z.:..d3.. "Wim|
00000130  70 5f 49 6e 69 74 69 61  6c 69 73 65 22 2c 32 30  |p_Initialise",20|
00000140  30 2c 26 34 42 35 33 34  31 35 34 2c 22 4d 49 44  |0,&4B534154,"MID|
00000150  49 20 4d 61 6b 65 72 22  0d 00 6e 0c f2 69 63 6f  |I Maker"..n..ico|
00000160  6e 28 a3 29 0d 00 78 0a  f2 6d 65 6e 75 73 0d 00  |n(.)..x..menus..|
00000170  82 06 20 f5 0d 00 8c 1e  20 20 c8 99 20 22 57 69  |.. .....  .. "Wi|
00000180  6d 70 5f 50 6f 6c 6c 22  2c 30 2c 71 25 20 b8 20  |mp_Poll",0,q% . |
00000190  61 25 0d 00 96 0d 20 20  c8 8e 20 61 25 20 ca 0d  |a%....  .. a% ..|
000001a0  00 a0 0a 20 20 20 c9 20  36 0d 00 aa 12 20 20 20  |...   . 6....   |
000001b0  20 c8 8e 20 71 25 21 31  32 20 ca 0d 00 b4 0d 20  | .. q%!12 ..... |
000001c0  20 20 20 20 c9 20 2d 32  0d 00 be 2d 20 20 20 20  |    . -2...-    |
000001d0  20 20 e7 20 71 25 21 31  36 3d 69 63 6f 6e 25 20  |  . q%!16=icon% |
000001e0  80 20 71 25 21 38 3d 32  20 8c 20 f2 6f 70 65 6e  |. q%!8=2 . .open|
000001f0  5f 6d 65 6e 75 0d 00 c8  10 20 20 20 20 20 c9 20  |_menu....     . |
00000200  73 61 76 65 25 0d 00 d2  14 20 20 20 20 20 20 c8  |save%....      .|
00000210  8e 20 71 25 21 31 36 20  ca 0d 00 dc 0e 20 20 20  |. q%!16 .....   |
00000220  20 20 20 20 c9 20 31 0d  00 e6 1a 20 20 20 20 20  |    . 1....     |
00000230  20 20 20 20 e7 20 28 71  25 21 38 29 3e 31 36 20  |    . (q%!8)>16 |
00000240  8c 0d 00 f0 19 20 20 20  20 20 20 20 20 20 20 20  |.....           |
00000250  21 71 32 25 3d 73 61 76  65 25 0d 00 fa 16 20 20  |!q2%=save%....  |
00000260  20 20 20 20 20 20 20 20  20 71 32 25 21 34 3d 31  |         q2%!4=1|
00000270  0d 01 04 2a 20 20 20 20  20 20 20 20 20 20 20 c8  |...*           .|
00000280  99 20 22 57 69 6d 70 5f  47 65 74 49 63 6f 6e 53  |. "Wimp_GetIconS|
00000290  74 61 74 65 22 2c 2c 71  32 25 0d 01 0e 1b 20 20  |tate",,q2%....  |
000002a0  20 20 20 20 20 20 20 20  20 71 32 25 21 36 34 3d  |         q2%!64=|
000002b0  73 61 76 65 25 0d 01 18  31 20 20 20 20 20 20 20  |save%...1       |
000002c0  20 20 20 20 c8 99 20 22  57 69 6d 70 5f 47 65 74  |    .. "Wimp_Get|
000002d0  57 69 6e 64 6f 77 53 74  61 74 65 22 2c 2c 28 71  |WindowState",,(q|
000002e0  32 25 2b 36 34 29 0d 01  22 18 20 20 20 20 20 20  |2%+64)..".      |
000002f0  20 20 20 20 20 21 72 25  3d 73 61 76 65 25 0d 01  |     !r%=save%..|
00000300  2c 15 20 20 20 20 20 20  20 20 20 20 20 72 25 21  |,.           r%!|
00000310  34 3d 35 0d 01 36 24 20  20 20 20 20 20 20 20 20  |4=5..6$         |
00000320  20 20 72 25 21 38 3d 28  71 32 25 21 36 38 29 2b  |  r%!8=(q2%!68)+|
00000330  28 71 32 25 21 38 29 0d  01 40 26 20 20 20 20 20  |(q2%!8)..@&     |
00000340  20 20 20 20 20 20 72 25  21 31 32 3d 28 71 32 25  |      r%!12=(q2%|
00000350  21 37 32 29 2b 28 71 32  25 21 31 32 29 0d 01 4a  |!72)+(q2%!12)..J|
00000360  26 20 20 20 20 20 20 20  20 20 20 20 72 25 21 31  |&           r%!1|
00000370  36 3d 28 71 32 25 21 36  38 29 2b 28 71 32 25 21  |6=(q2%!68)+(q2%!|
00000380  31 36 29 0d 01 54 26 20  20 20 20 20 20 20 20 20  |16)..T&         |
00000390  20 20 72 25 21 32 30 3d  28 71 32 25 21 37 32 29  |  r%!20=(q2%!72)|
000003a0  2b 28 71 32 25 21 32 30  29 0d 01 5e 1e 20 20 20  |+(q2%!20)..^.   |
000003b0  20 20 20 20 20 20 20 20  72 25 21 32 34 3d 26 38  |        r%!24=&8|
000003c0  30 30 30 30 30 30 30 0d  01 68 1e 20 20 20 20 20  |0000000..h.     |
000003d0  20 20 20 20 20 20 72 25  21 32 38 3d 26 38 30 30  |      r%!28=&800|
000003e0  30 30 30 30 30 0d 01 72  1e 20 20 20 20 20 20 20  |00000..r.       |
000003f0  20 20 20 20 72 25 21 33  32 3d 26 37 46 46 46 46  |    r%!32=&7FFFF|
00000400  46 46 46 0d 01 7c 1e 20  20 20 20 20 20 20 20 20  |FFF..|.         |
00000410  20 20 72 25 21 33 36 3d  26 37 46 46 46 46 46 46  |  r%!36=&7FFFFFF|
00000420  46 0d 01 86 24 20 20 20  20 20 20 20 20 20 20 20  |F...$           |
00000430  c8 99 20 22 57 69 6d 70  5f 44 72 61 67 42 6f 78  |.. "Wimp_DragBox|
00000440  22 2c 2c 72 25 0d 01 90  0e 20 20 20 20 20 20 20  |",,r%....       |
00000450  20 20 cd 0d 01 9a 0e 20  20 20 20 20 20 20 c9 20  |  .....       . |
00000460  32 0d 01 a4 26 20 20 20  20 20 20 20 20 20 f2 73  |2...&         .s|
00000470  61 76 65 28 a4 67 65 74  5f 73 74 72 28 73 61 76  |ave(.get_str(sav|
00000480  65 74 78 74 25 29 29 0d  01 ae 25 20 20 20 20 20  |etxt%))...%     |
00000490  20 20 20 20 c8 99 20 22  57 69 6d 70 5f 43 72 65  |    .. "Wimp_Cre|
000004a0  61 74 65 4d 65 6e 75 22  2c 2c 2d 31 0d 01 b8 0b  |ateMenu",,-1....|
000004b0  20 20 20 20 20 20 cb 0d  01 c2 09 20 20 20 20 cb  |      .....    .|
000004c0  0d 01 cc 0a 20 20 20 c9  20 37 0d 01 d6 25 20 20  |....   . 7...%  |
000004d0  20 20 c8 99 20 22 57 69  6d 70 5f 47 65 74 50 6f  |  .. "Wimp_GetPo|
000004e0  69 6e 74 65 72 49 6e 66  6f 22 2c 2c 71 32 25 0d  |interInfo",,q2%.|
000004f0  01 e0 0e 20 20 20 20 21  72 25 3d 33 36 0d 01 ea  |...    !r%=36...|
00000500  0f 20 20 20 20 72 25 21  31 36 3d 31 0d 01 f4 14  |.    r%!16=1....|
00000510  20 20 20 20 72 25 21 32  30 3d 71 32 25 21 31 32  |    r%!20=q2%!12|
00000520  0d 01 fe 14 20 20 20 20  72 25 21 32 34 3d 71 32  |....    r%!24=q2|
00000530  25 21 31 36 0d 02 08 12  20 20 20 20 72 25 21 32  |%!16....    r%!2|
00000540  38 3d 21 71 32 25 0d 02  12 13 20 20 20 20 72 25  |8=!q2%....    r%|
00000550  21 33 32 3d 71 32 25 21  34 0d 02 1c 0f 20 20 20  |!32=q2%!4....   |
00000560  20 72 25 21 31 32 3d 30  0d 02 26 1c 20 20 20 20  | r%!12=0..&.    |
00000570  72 25 21 33 36 3d 6d 69  64 69 74 6f 70 25 2d 73  |r%!36=miditop%-s|
00000580  70 61 63 65 0d 02 30 25  20 20 20 20 20 73 61 76  |pace..0%     sav|
00000590  65 66 69 6c 65 24 3d a4  67 65 74 5f 73 74 72 28  |efile$=.get_str(|
000005a0  73 61 76 65 74 78 74 25  29 0d 02 3a 0d 20 20 20  |savetxt%)..:.   |
000005b0  20 20 70 25 3d 30 0d 02  44 20 20 20 20 20 20 c8  |  p%=0..D      .|
000005c0  95 20 a7 73 61 76 65 66  69 6c 65 24 2c 22 2e 22  |. .savefile$,"."|
000005d0  2c 70 25 29 3e 30 0d 02  4e 22 20 20 20 20 20 20  |,p%)>0..N"      |
000005e0  20 70 25 3d a7 73 61 76  65 66 69 6c 65 24 2c 22  | p%=.savefile$,"|
000005f0  2e 22 2c 70 25 29 2b 31  0d 02 58 0a 20 20 20 20  |.",p%)+1..X.    |
00000600  20 ce 0d 02 62 21 20 20  20 20 20 73 61 76 65 66  | ...b!     savef|
00000610  69 6c 65 24 3d c1 73 61  76 65 66 69 6c 65 24 2c  |ile$=.savefile$,|
00000620  70 25 29 0d 02 6c 13 20  20 20 20 20 72 25 21 34  |p%)..l.     r%!4|
00000630  30 3d 26 46 44 34 0d 02  76 1e 20 20 20 20 20 24  |0=&FD4..v.     $|
00000640  28 72 25 2b 34 34 29 3d  73 61 76 65 66 69 6c 65  |(r%+44)=savefile|
00000650  24 2b bd 30 0d 02 80 2c  20 20 20 20 20 21 72 25  |$+.0...,     !r%|
00000660  3d 28 28 28 28 34 35 2b  a9 28 73 61 76 65 66 69  |=((((45+.(savefi|
00000670  6c 65 24 29 29 20 81 20  34 29 2b 31 29 2a 34 29  |le$)) . 4)+1)*4)|
00000680  0d 02 8a 31 20 20 20 20  c8 99 20 22 57 69 6d 70  |...1    .. "Wimp|
00000690  5f 53 65 6e 64 4d 65 73  73 61 67 65 22 2c 31 38  |_SendMessage",18|
000006a0  2c 72 25 2c 71 32 25 21  31 32 2c 71 32 25 21 31  |,r%,q2%!12,q2%!1|
000006b0  36 0d 02 94 20 20 20 20  20 c8 99 20 22 57 69 6d  |6...     .. "Wim|
000006c0  70 5f 43 72 65 61 74 65  4d 65 6e 75 22 2c 2c 2d  |p_CreateMenu",,-|
000006d0  31 0d 02 9e 0a 20 20 20  c9 20 38 0d 02 a8 2f 20  |1....   . 8.../ |
000006e0  20 20 20 e7 20 28 21 71  25 3d 73 61 76 65 25 29  |   . (!q%=save%)|
000006f0  20 80 20 28 71 25 21 34  3d 30 29 20 80 20 28 71  | . (q%!4=0) . (q|
00000700  25 21 32 34 3d 31 33 29  20 8c 0d 02 b2 22 20 20  |%!24=13) ...."  |
00000710  20 20 20 f2 73 61 76 65  28 a4 67 65 74 5f 73 74  |   .save(.get_st|
00000720  72 28 73 61 76 65 74 78  74 25 29 29 0d 02 bc 20  |r(savetxt%))... |
00000730  20 20 20 20 20 c8 99 20  22 57 69 6d 70 5f 43 72  |     .. "Wimp_Cr|
00000740  65 61 74 65 4d 65 6e 75  22 2c 2d 31 0d 02 c6 0f  |eateMenu",-1....|
00000750  20 20 20 20 20 f2 6d 65  6e 75 73 0d 02 d0 09 20  |     .menus.... |
00000760  20 20 20 cc 0d 02 da 23  20 20 20 20 20 c8 99 20  |   ....#     .. |
00000770  22 57 69 6d 70 5f 50 72  6f 63 65 73 73 4b 65 79  |"Wimp_ProcessKey|
00000780  22 2c 71 25 21 32 34 0d  02 e4 09 20 20 20 20 cd  |",q%!24....    .|
00000790  0d 02 ee 0a 20 20 20 c9  20 39 0d 02 f8 13 20 20  |....   . 9....  |
000007a0  20 20 f2 68 61 6e 64 6c  65 6d 65 6e 75 0d 03 02  |  .handlemenu...|
000007b0  0e 20 20 20 c9 20 31 37  2c 31 38 0d 03 0c 12 20  |.   . 17,18.... |
000007c0  20 20 20 c8 8e 20 71 25  21 31 36 20 ca 0d 03 16  |   .. q%!16 ....|
000007d0  0c 20 20 20 20 20 c9 20  30 0d 03 20 0b 20 20 20  |.     . 0.. .   |
000007e0  20 20 20 e0 0d 03 2a 0c  20 20 20 20 20 c9 20 32  |   ...*.     . 2|
000007f0  0d 03 34 42 20 20 20 20  20 20 24 28 73 61 76 65  |..4B      $(save|
00000800  74 78 74 25 29 3d a4 67  65 74 5f 73 74 72 28 71  |txt%)=.get_str(q|
00000810  25 2b 34 34 29 3a 21 73  61 76 65 6c 65 6e 25 3d  |%+44):!savelen%=|
00000820  a9 28 a4 67 65 74 5f 73  74 72 28 71 25 2b 34 34  |.(.get_str(q%+44|
00000830  29 29 0d 03 3e 20 20 20  20 20 20 20 f2 73 61 76  |))..>       .sav|
00000840  65 28 a4 67 65 74 5f 73  74 72 28 71 25 2b 34 34  |e(.get_str(q%+44|
00000850  29 29 0d 03 48 14 20 20  20 20 20 20 71 25 21 31  |))..H.      q%!1|
00000860  32 3d 71 25 21 38 0d 03  52 11 20 20 20 20 20 20  |2=q%!8..R.      |
00000870  71 25 21 31 36 3d 33 0d  03 5c 2a 20 20 20 20 20  |q%!16=3..\*     |
00000880  20 c8 99 20 22 57 69 6d  70 5f 53 65 6e 64 4d 65  | .. "Wimp_SendMe|
00000890  73 73 61 67 65 22 2c 31  38 2c 71 25 2c 71 25 21  |ssage",18,q%,q%!|
000008a0  34 0d 03 66 11 20 20 20  20 20 20 71 25 21 31 36  |4..f.      q%!16|
000008b0  3d 32 0d 03 70 0c 20 20  20 20 20 c9 20 33 0d 03  |=2..p.     . 3..|
000008c0  7a 24 20 20 20 20 20 20  e7 20 71 25 21 32 30 3d  |z$      . q%!20=|
000008d0  2d 32 20 80 20 71 25 21  32 34 3d 69 63 6f 6e 25  |-2 . q%!24=icon%|
000008e0  20 8c 0d 03 84 13 20 20  20 20 20 20 20 f2 63 6f  | .....       .co|
000008f0  6e 76 65 72 74 0d 03 8e  22 20 20 20 20 20 20 20  |nvert..."       |
00000900  c8 99 20 22 57 69 6d 70  5f 43 72 65 61 74 65 4d  |.. "Wimp_CreateM|
00000910  65 6e 75 22 2c 2d 31 0d  03 98 12 20 20 20 20 20  |enu",-1....     |
00000920  20 20 71 25 21 31 36 3d  33 0d 03 a2 0b 20 20 20  |  q%!16=3....   |
00000930  20 20 20 cd 0d 03 ac 09  20 20 20 20 cb 0d 03 b6  |   .....    ....|
00000940  0b 20 20 20 c9 20 31 39  0d 03 c0 12 20 20 20 20  |.   . 19....    |
00000950  c8 8e 20 71 25 21 31 36  20 ca 0d 03 ca 0c 20 20  |.. q%!16 .....  |
00000960  20 20 20 c9 20 31 0d 03  d4 37 20 20 20 20 20 20  |   . 1...7      |
00000970  f2 65 72 72 6f 72 28 22  44 72 61 67 20 49 63 6f  |.error("Drag Ico|
00000980  6e 20 74 6f 20 61 20 46  69 6c 65 72 20 57 69 6e  |n to a Filer Win|
00000990  64 6f 77 20 74 6f 20 53  61 76 65 22 29 0d 03 de  |dow to Save")...|
000009a0  0c 20 20 20 20 20 c9 20  33 0d 03 e8 3c 20 20 20  |.     . 3...<   |
000009b0  20 20 20 f2 65 72 72 6f  72 28 22 57 61 72 6e 69  |   .error("Warni|
000009c0  6e 67 20 2d 20 44 61 74  61 20 4d 61 79 20 62 65  |ng - Data May be|
000009d0  20 53 61 76 65 64 20 49  6e 63 6f 72 72 65 63 74  | Saved Incorrect|
000009e0  6c 79 21 22 29 0d 03 f2  09 20 20 20 20 cb 0d 03  |ly!")....    ...|
000009f0  fc 07 20 20 cb 0d 04 06  08 20 fd 20 a3 0d 04 10  |..  ..... . ....|
00000a00  05 3a 0d 04 1a 0b dd f2  63 6c 65 61 72 0d 04 24  |.:......clear..$|
00000a10  28 66 69 6c 65 24 3d 22  22 3a 70 61 67 65 73 3d  |(file$="":pages=|
00000a20  30 3a 6d 69 64 69 74 6f  70 25 3d 73 70 61 63 65  |0:miditop%=space|
00000a30  2b 26 31 30 34 0d 04 2e  22 6c 65 6e 57 3d 73 70  |+&104..."lenW=sp|
00000a40  61 63 65 2b 26 45 31 3a  73 74 61 72 74 3d 73 70  |ace+&E1:start=sp|
00000a50  61 63 65 2b 26 45 35 0d  04 38 05 e1 0d 04 42 05  |ace+&E5..8....B.|
00000a60  3a 0d 04 4c 11 dd f2 73  61 76 65 28 66 69 6c 65  |:..L...save(file|
00000a70  24 29 0d 04 56 08 ea 20  66 25 0d 04 60 07 ea 20  |$)..V.. f%..`.. |
00000a80  85 0d 04 6a 1c ee 20 85  20 ea 20 f7 20 85 3a f2  |...j.. . . . .:.|
00000a90  66 61 75 6c 74 28 9f 2c  f6 24 29 3a e1 0d 04 74  |fault(.,.$):...t|
00000aa0  2d ff 22 53 41 56 45 20  22 2b 66 69 6c 65 24 2b  |-."SAVE "+file$+|
00000ab0  22 20 22 2b c3 7e 73 70  61 63 65 2b 22 20 22 2b  |" "+.~space+" "+|
00000ac0  c3 7e 6d 69 64 69 74 6f  70 25 0d 04 7e 1c ff 22  |.~miditop%..~.."|
00000ad0  53 45 54 54 59 50 45 20  22 2b 66 69 6c 65 24 2b  |SETTYPE "+file$+|
00000ae0  22 20 46 44 34 22 0d 04  88 07 f7 20 85 0d 04 92  |" FD4"..... ....|
00000af0  05 e1 0d 04 9c 05 3a 0d  04 a6 0f dd f2 65 72 72  |......:......err|
00000b00  6f 72 28 65 24 29 0d 04  b0 09 21 65 25 3d 30 0d  |or(e$)....!e%=0.|
00000b10  04 ba 11 24 28 65 25 2b  34 29 3d 65 24 2b bd 30  |...$(e%+4)=e$+.0|
00000b20  0d 04 c4 2b c8 99 20 22  57 69 6d 70 5f 52 65 70  |...+.. "Wimp_Rep|
00000b30  6f 72 74 45 72 72 6f 72  22 2c 65 25 2c 30 2c 22  |ortError",e%,0,"|
00000b40  4d 49 44 49 20 4d 61 6b  65 72 22 0d 04 ce 05 e1  |MIDI Maker".....|
00000b50  0d 04 d8 05 3a 0d 04 e2  11 dd a4 63 6f 6e 66 69  |....:......confi|
00000b60  72 6d 28 6d 24 29 0d 04  ec 08 ea 20 72 25 0d 04  |rm(m$)..... r%..|
00000b70  f6 09 21 65 25 3d 30 0d  05 00 11 24 28 65 25 2b  |..!e%=0....$(e%+|
00000b80  34 29 3d 6d 24 2b bd 30  0d 05 0a 33 c8 99 20 22  |4)=m$+.0...3.. "|
00000b90  57 69 6d 70 5f 52 65 70  6f 72 74 45 72 72 6f 72  |Wimp_ReportError|
00000ba0  22 2c 65 25 2c 26 31 33  2c 22 4d 49 44 49 20 4d  |",e%,&13,"MIDI M|
00000bb0  61 6b 65 72 22 20 b8 20  2c 72 25 0d 05 14 07 3d  |aker" . ,r%....=|
00000bc0  72 25 0d 05 1e 05 3a 0d  05 28 16 dd f2 66 61 75  |r%....:..(...fau|
00000bd0  6c 74 28 65 72 72 25 2c  65 72 72 24 29 0d 05 32  |lt(err%,err$)..2|
00000be0  0c 21 65 25 3d 65 72 72  25 0d 05 3c 13 24 28 65  |.!e%=err%..<.$(e|
00000bf0  25 2b 34 29 3d 65 72 72  24 2b bd 30 0d 05 46 29  |%+4)=err$+.0..F)|
00000c00  e7 65 72 72 25 3d 32 32  30 20 8c 20 24 28 65 25  |.err%=220 . $(e%|
00000c10  2b 34 29 3d 22 42 61 64  20 66 69 6c 65 6e 61 6d  |+4)="Bad filenam|
00000c20  65 22 2b bd 30 0d 05 50  2b c8 99 20 22 57 69 6d  |e"+.0..P+.. "Wim|
00000c30  70 5f 52 65 70 6f 72 74  45 72 72 6f 72 22 2c 65  |p_ReportError",e|
00000c40  25 2c 30 2c 22 4d 49 44  49 20 4d 61 6b 65 72 22  |%,0,"MIDI Maker"|
00000c50  0d 05 5a 05 e1 0d 05 64  05 3a 0d 05 6e 0d dd f2  |..Z....d.:..n...|
00000c60  63 6f 6e 76 65 72 74 0d  05 78 19 66 69 6c 65 24  |convert..x.file$|
00000c70  3d a4 67 65 74 5f 73 74  72 28 71 25 2b 34 34 29  |=.get_str(q%+44)|
00000c80  0d 05 82 0f 74 79 70 65  25 3d 71 25 21 34 30 0d  |....type%=q%!40.|
00000c90  05 8c 13 e7 20 74 79 70  65 25 3c 3e 26 41 46 31  |.... type%<>&AF1|
00000ca0  20 8c 0d 05 96 59 20 21  74 78 74 25 3d 30 3a 24  | ....Y !txt%=0:$|
00000cb0  28 74 78 74 25 2b 34 29  3d 22 50 6c 65 61 73 65  |(txt%+4)="Please|
00000cc0  20 63 6f 6e 76 65 72 74  20 74 6f 20 61 20 4d 61  | convert to a Ma|
00000cd0  65 73 74 72 6f 20 66 69  6c 65 20 62 65 66 6f 72  |estro file befor|
00000ce0  65 20 61 74 74 65 6d 70  74 69 6e 67 20 63 6f 6e  |e attempting con|
00000cf0  76 65 72 73 69 6f 6e 22  2b bd 30 0d 05 a0 2e 20  |version"+.0.... |
00000d00  c8 99 20 22 57 69 6d 70  5f 52 65 70 6f 72 74 45  |.. "Wimp_ReportE|
00000d10  72 72 6f 72 22 2c 74 78  74 25 2c 30 2c 22 4d 49  |rror",txt%,0,"MI|
00000d20  44 49 20 4d 61 6b 65 72  22 0d 05 aa 05 cc 0d 05  |DI Maker".......|
00000d30  b4 11 20 f2 64 6f 69 74  28 66 69 6c 65 24 29 0d  |.. .doit(file$).|
00000d40  05 be 12 20 70 61 67 65  73 3d 70 61 67 65 73 2b  |... pages=pages+|
00000d50  31 0d 05 c8 14 20 f2 69  63 6f 6e 28 b9 29 3a f2  |1.... .icon(.):.|
00000d60  6d 65 6e 75 73 0d 05 d2  05 cd 0d 05 dc 05 e1 0d  |menus...........|
00000d70  05 e6 05 3a 0d 05 f0 11  dd a4 67 65 74 5f 73 74  |...:......get_st|
00000d80  72 28 71 25 29 0d 05 fa  0c ea 20 66 6e 24 2c 70  |r(q%)..... fn$,p|
00000d90  25 0d 06 04 0f 70 25 3d  30 3a 66 6e 24 3d 22 22  |%....p%=0:fn$=""|
00000da0  0d 06 0e 05 f5 0d 06 18  15 20 66 6e 24 3d 66 6e  |......... fn$=fn|
00000db0  24 2b bd 28 71 25 3f 70  25 29 0d 06 22 0c 20 70  |$+.(q%?p%)..". p|
00000dc0  25 3d 70 25 2b 31 0d 06  2c 10 fd 20 28 71 25 3f  |%=p%+1..,.. (q%?|
00000dd0  70 25 29 3c 33 32 0d 06  36 08 3d 66 6e 24 0d 06  |p%)<32..6.=fn$..|
00000de0  40 05 3a 0d 06 4a 0b dd  f2 6d 65 6e 75 73 0d 06  |@.:..J...menus..|
00000df0  54 0d 20 f2 69 6e 66 6f  62 6f 78 0d 06 5e 0d 20  |T. .infobox..^. |
00000e00  f2 73 61 76 65 62 6f 78  0d 06 68 0e 20 f2 6d 61  |.savebox..h. .ma|
00000e10  69 6e 6d 65 6e 75 0d 06  72 05 e1 0d 06 7c 05 3a  |inmenu..r....|.:|
00000e20  0d 06 86 0d dd f2 73 61  76 65 62 6f 78 0d 06 90  |......savebox...|
00000e30  0f 20 6d 25 3d 6d 65 6e  75 73 70 25 0d 06 9a 14  |. m%=menusp%....|
00000e40  20 6d 25 21 32 38 3d 26  38 34 30 30 30 30 31 32  | m%!28=&84000012|
00000e50  0d 06 a4 14 20 6d 25 21  33 32 3d 26 30 31 30 37  |.... m%!32=&0107|
00000e60  30 32 30 37 0d 06 ae 14  20 6d 25 21 33 36 3d 26  |0207.... m%!36=&|
00000e70  30 30 30 43 30 31 30 33  0d 06 b8 14 20 6d 25 21  |000C0103.... m%!|
00000e80  34 30 3d 30 3a 6d 25 21  34 34 3d 30 0d 06 c2 18  |40=0:m%!44=0....|
00000e90  20 6d 25 21 34 38 3d 32  35 30 3a 6d 25 21 35 32  | m%!48=250:m%!52|
00000ea0  3d 31 36 30 0d 06 cc 14  20 6d 25 21 35 36 3d 26  |=160.... m%!56=&|
00000eb0  30 30 30 30 30 30 31 39  0d 06 d6 14 20 6d 25 21  |00000019.... m%!|
00000ec0  36 30 3d 26 30 30 30 30  30 30 30 30 0d 06 e0 20  |60=&00000000... |
00000ed0  20 6d 25 21 36 34 3d 31  3a 6d 25 21 36 38 3d 32  | m%!64=1:m%!68=2|
00000ee0  35 30 3a 6d 25 21 37 30  3d 31 36 30 0d 06 ea 1b  |50:m%!70=160....|
00000ef0  20 24 28 6d 25 2b 37 32  29 3d 22 53 61 76 65 20  | $(m%+72)="Save |
00000f00  61 73 3a 22 2b bd 30 0d  06 f4 0c 20 6d 25 21 38  |as:"+.0.... m%!8|
00000f10  34 3d 33 0d 06 fe 16 20  6d 25 21 38 38 3d 31 35  |4=3.... m%!88=15|
00000f20  3a 6d 25 21 39 32 3d 31  30 0d 07 08 18 20 6d 25  |:m%!92=10.... m%|
00000f30  21 39 36 3d 31 38 35 3a  6d 25 21 31 30 30 3d 35  |!96=185:m%!100=5|
00000f40  35 0d 07 12 15 20 6d 25  21 31 30 34 3d 26 30 37  |5.... m%!104=&07|
00000f50  30 30 46 31 33 44 0d 07  1c 12 20 6d 25 21 31 30  |00F13D.... m%!10|
00000f60  38 3d 6d 25 2b 32 35 30  0d 07 26 12 20 6d 25 21  |8=m%+250..&. m%!|
00000f70  31 31 32 3d 6d 25 2b 31  39 32 0d 07 30 0f 20 6d  |112=m%+192..0. m|
00000f80  25 21 31 31 36 3d 31 30  30 0d 07 3a 18 20 6d 25  |%!116=100..:. m%|
00000f90  21 31 32 30 3d 38 30 3a  6d 25 21 31 32 34 3d 38  |!120=80:m%!124=8|
00000fa0  30 0d 07 44 1a 20 6d 25  21 31 32 38 3d 31 34 35  |0..D. m%!128=145|
00000fb0  3a 6d 25 21 31 33 32 3d  31 34 35 0d 07 4e 15 20  |:m%!132=145..N. |
00000fc0  6d 25 21 31 33 36 3d 26  30 37 30 30 36 31 31 41  |m%!136=&0700611A|
00000fd0  0d 07 58 12 20 6d 25 21  31 34 30 3d 6d 25 2b 32  |..X. m%!140=m%+2|
00000fe0  30 30 0d 07 62 0d 20 6d  25 21 31 34 34 3d 31 0d  |00..b. m%!144=1.|
00000ff0  07 6c 0d 20 6d 25 21 31  34 38 3d 31 0d 07 76 19  |.l. m%!148=1..v.|
00001000  20 6d 25 21 31 35 32 3d  31 39 35 3a 6d 25 21 31  | m%!152=195:m%!1|
00001010  35 36 3d 31 30 0d 07 80  19 20 6d 25 21 31 36 30  |56=10.... m%!160|
00001020  3d 32 34 30 3a 6d 25 21  31 36 34 3d 35 35 0d 07  |=240:m%!164=55..|
00001030  8a 15 20 6d 25 21 31 36  38 3d 26 43 37 30 31 39  |.. m%!168=&C7019|
00001040  30 33 44 0d 07 94 16 20  24 28 6d 25 2b 31 37 32  |03D.... $(m%+172|
00001050  29 3d 22 4f 4b 22 2b bd  30 0d 07 9e 19 20 24 28  |)="OK"+.0.... $(|
00001060  6d 25 2b 32 30 30 29 3d  22 66 69 6c 65 5f 66 64  |m%+200)="file_fd|
00001070  34 22 0d 07 a8 24 20 24  28 6d 25 2b 32 35 30 29  |4"...$ $(m%+250)|
00001080  3d 66 69 6c 65 24 3a 73  61 76 65 74 78 74 25 3d  |=file$:savetxt%=|
00001090  6d 25 2b 32 35 30 0d 07  b2 20 20 21 28 6d 25 2b  |m%+250...  !(m%+|
000010a0  31 34 38 29 3d 38 3a 73  61 76 65 6c 65 6e 25 3d  |148)=8:savelen%=|
000010b0  6d 25 2b 31 34 38 0d 07  bc 0d 20 6d 25 21 31 39  |m%+148.... m%!19|
000010c0  32 3d 30 0d 07 c6 27 20  c8 99 20 22 57 69 6d 70  |2=0...' .. "Wimp|
000010d0  5f 43 72 65 61 74 65 57  69 6e 64 6f 77 22 2c 2c  |_CreateWindow",,|
000010e0  6d 25 20 b8 20 73 61 76  65 25 0d 07 d0 05 e1 0d  |m% . save%......|
000010f0  07 da 05 3a 0d 07 e4 0e  dd f2 6d 61 69 6e 6d 65  |...:......mainme|
00001100  6e 75 0d 07 ee 20 20 70  25 3d 6d 65 6e 75 73 70  |nu...  p%=menusp|
00001110  25 2b 35 31 32 3a 6d 61  69 6e 6d 65 6e 75 25 3d  |%+512:mainmenu%=|
00001120  70 25 0d 07 f8 2f 20 24  70 25 3d 22 4d 49 44 49  |p%.../ $p%="MIDI|
00001130  20 4d 61 6b 65 72 22 2b  bd 30 3a 70 25 21 31 32  | Maker"+.0:p%!12|
00001140  3d 26 37 30 32 30 37 3a  70 25 21 31 36 3d 32 30  |=&70207:p%!16=20|
00001150  30 0d 08 02 1e 20 70 25  21 32 30 3d 34 30 3a 70  |0.... p%!20=40:p|
00001160  25 21 32 34 3d 30 3a 66  25 3d 70 25 2b 32 38 0d  |%!24=0:f%=p%+28.|
00001170  08 0c 3e 20 21 66 25 3d  30 3a 66 25 21 34 3d 69  |..> !f%=0:f%!4=i|
00001180  6e 66 6f 25 3a 66 25 21  38 3d 26 30 37 30 30 30  |nfo%:f%!8=&07000|
00001190  30 31 31 3a 24 28 66 25  2b 31 32 29 3d 22 49 6e  |011:$(f%+12)="In|
000011a0  66 6f 22 2b bd 30 3a 66  25 2b 3d 32 34 0d 08 16  |fo"+.0:f%+=24...|
000011b0  31 20 e7 70 61 67 65 73  3d 30 8c 66 25 21 38 3d  |1 .pages=0.f%!8=|
000011c0  32 5e 32 32 2b 26 30 37  30 30 30 30 31 31 20 8b  |2^22+&07000011 .|
000011d0  66 25 21 38 3d 26 30 37  30 30 30 30 31 31 0d 08  |f%!8=&07000011..|
000011e0  20 34 20 21 66 25 3d 30  3a 66 25 21 34 3d 73 61  | 4 !f%=0:f%!4=sa|
000011f0  76 65 25 3a 24 28 66 25  2b 31 32 29 3d 22 4d 61  |ve%:$(f%+12)="Ma|
00001200  6b 65 20 4d 49 44 49 22  2b bd 30 3a 66 25 2b 3d  |ke MIDI"+.0:f%+=|
00001210  32 34 0d 08 2a 31 20 e7  70 61 67 65 73 3d 30 8c  |24..*1 .pages=0.|
00001220  66 25 21 38 3d 32 5e 32  32 2b 26 30 37 30 30 30  |f%!8=2^22+&07000|
00001230  30 31 31 20 8b 66 25 21  38 3d 26 30 37 30 30 33  |011 .f%!8=&07003|
00001240  30 31 31 0d 08 34 2d 20  21 66 25 3d 30 3a 66 25  |011..4- !f%=0:f%|
00001250  21 34 3d 2d 31 3a 24 28  66 25 2b 31 32 29 3d 22  |!4=-1:$(f%+12)="|
00001260  43 6c 65 61 72 22 2b bd  30 3a 66 25 2b 3d 32 34  |Clear"+.0:f%+=24|
00001270  0d 08 3e 3d 20 21 66 25  3d 26 38 30 3a 66 25 21  |..>= !f%=&80:f%!|
00001280  34 3d 2d 31 3a 66 25 21  38 3d 26 30 37 30 30 33  |4=-1:f%!8=&07003|
00001290  30 31 31 3a 24 28 66 25  2b 31 32 29 3d 22 51 75  |011:$(f%+12)="Qu|
000012a0  69 74 22 2b bd 30 3a 66  25 2b 3d 32 34 0d 08 48  |it"+.0:f%+=24..H|
000012b0  05 e1 0d 08 52 05 3a 0d  08 5c 10 dd f2 68 61 6e  |....R.:..\...han|
000012c0  64 6c 65 6d 65 6e 75 0d  08 66 0c 20 ea 20 61 25  |dlemenu..f. . a%|
000012d0  2c 6c 25 0d 08 70 0d 20  c8 8e 20 21 71 25 20 ca  |,l%..p. .. !q% .|
000012e0  0d 08 7a 0a 20 20 20 c9  20 32 0d 08 84 3c 20 20  |..z.   . 2...<  |
000012f0  20 20 61 25 3d a4 63 6f  6e 66 69 72 6d 28 22 57  |  a%=.confirm("W|
00001300  69 70 65 20 70 72 6f 63  65 73 73 65 64 20 6d 75  |ipe processed mu|
00001310  73 69 63 2e 2e 2e 20 41  72 65 20 79 6f 75 20 73  |sic... Are you s|
00001320  75 72 65 3f 22 29 0d 08  8e 27 20 20 20 20 e7 20  |ure?")...'    . |
00001330  61 25 3d 31 20 8c 20 f2  63 6c 65 61 72 3a f2 69  |a%=1 . .clear:.i|
00001340  63 6f 6e 28 b9 29 3a f2  6d 65 6e 75 73 0d 08 98  |con(.):.menus...|
00001350  0a 20 20 20 c9 20 33 0d  08 a2 08 20 20 20 e0 0d  |.   . 3....   ..|
00001360  08 ac 06 20 cb 0d 08 b6  21 20 c8 99 20 22 57 69  |... ....! .. "Wi|
00001370  6d 70 5f 47 65 74 50 6f  69 6e 74 65 72 49 6e 66  |mp_GetPointerInf|
00001380  6f 22 2c 2c 71 25 0d 08  c0 22 20 e7 20 28 28 71  |o",,q%..." . ((q|
00001390  25 21 38 29 20 80 20 31  29 3d 31 20 8c 20 f2 6f  |%!8) . 1)=1 . .o|
000013a0  70 65 6e 5f 6d 65 6e 75  0d 08 ca 05 e1 0d 08 d4  |pen_menu........|
000013b0  05 3a 0d 08 de 0d dd f2  69 6e 66 6f 62 6f 78 0d  |.:......infobox.|
000013c0  08 e8 0b ea 20 73 25 2c  69 25 0d 08 f2 0e 73 25  |.... s%,i%....s%|
000013d0  3d 69 6e 66 6f 73 70 25  0d 08 fc 13 73 25 21 32  |=infosp%....s%!2|
000013e0  38 3d 26 38 34 30 30 30  30 31 32 0d 09 06 12 73  |8=&84000012....s|
000013f0  25 21 33 32 3d 26 31 30  37 30 32 30 37 0d 09 10  |%!32=&1070207...|
00001400  10 73 25 21 33 36 3d 26  32 30 31 30 33 0d 09 1a  |.s%!36=&20103...|
00001410  14 73 25 21 34 30 3d 32  30 3a 73 25 21 34 34 3d  |.s%!40=20:s%!44=|
00001420  30 0d 09 24 17 73 25 21  34 38 3d 36 33 36 3a 73  |0..$.s%!48=636:s|
00001430  25 21 35 32 3d 32 31 36  0d 09 2e 13 73 25 21 35  |%!52=216....s%!5|
00001440  36 3d 26 30 30 30 30 30  31 31 39 0d 09 38 13 73  |6=&00000119..8.s|
00001450  25 21 36 30 3d 26 30 30  30 30 30 30 30 30 0d 09  |%!60=&00000000..|
00001460  42 0b 73 25 21 36 34 3d  31 0d 09 4c 0d 73 25 21  |B.s%!64=1..L.s%!|
00001470  36 38 3d 36 31 36 0d 09  56 0d 73 25 21 37 30 3d  |68=616..V.s%!70=|
00001480  32 31 36 0d 09 60 10 73  25 21 37 32 3d 73 25 2b  |216..`.s%!72=s%+|
00001490  35 32 38 0d 09 6a 10 73  25 21 37 36 3d 73 25 2b  |528..j.s%!76=s%+|
000014a0  33 39 30 0d 09 74 0c 73  25 21 38 30 3d 33 32 0d  |390..t.s%!80=32.|
000014b0  09 7e 0b 73 25 21 38 34  3d 38 0d 09 88 0c 69 25  |.~.s%!84=8....i%|
000014c0  3d 73 25 2b 38 38 0d 09  92 11 21 69 25 3d 33 32  |=s%+88....!i%=32|
000014d0  3a 69 25 21 34 3d 38 0d  09 9c 15 69 25 21 38 3d  |:i%!4=8....i%!8=|
000014e0  31 38 34 3a 69 25 21 31  32 3d 35 36 0d 09 a6 13  |184:i%!12=56....|
000014f0  69 25 21 31 36 3d 26 30  37 30 30 30 32 31 31 0d  |i%!16=&07000211.|
00001500  09 b0 1a 24 28 69 25 2b  32 30 29 3d 22 56 65 72  |...$(i%+20)="Ver|
00001510  73 69 6f 6e 3a 22 2b bd  30 0d 09 ba 0a 69 25 2b  |sion:"+.0....i%+|
00001520  3d 33 32 0d 09 c4 12 21  69 25 3d 31 38 38 3a 69  |=32....!i%=188:i|
00001530  25 21 34 3d 38 0d 09 ce  15 69 25 21 38 3d 36 33  |%!4=8....i%!8=63|
00001540  32 3a 69 25 21 31 32 3d  35 36 0d 09 d8 13 69 25  |2:i%!12=56....i%|
00001550  21 31 36 3d 26 30 37 30  30 30 31 33 44 0d 09 e2  |!16=&0700013D...|
00001560  10 69 25 21 32 30 3d 73  25 2b 34 30 30 0d 09 ec  |.i%!20=s%+400...|
00001570  10 69 25 21 32 34 3d 73  25 2b 33 39 30 0d 09 f6  |.i%!24=s%+390...|
00001580  0c 69 25 21 32 38 3d 33  30 0d 0a 00 0a 69 25 2b  |.i%!28=30....i%+|
00001590  3d 33 32 0d 0a 0a 12 21  69 25 3d 33 32 3a 69 25  |=32....!i%=32:i%|
000015a0  21 34 3d 36 30 0d 0a 14  16 69 25 21 38 3d 31 38  |!4=60....i%!8=18|
000015b0  34 3a 69 25 21 31 32 3d  31 30 38 0d 0a 1e 13 69  |4:i%!12=108....i|
000015c0  25 21 31 36 3d 26 30 37  30 30 30 32 31 31 0d 0a  |%!16=&07000211..|
000015d0  28 19 24 28 69 25 2b 32  30 29 3d 22 41 75 74 68  |(.$(i%+20)="Auth|
000015e0  6f 72 3a 22 2b bd 30 0d  0a 32 0a 69 25 2b 3d 33  |or:"+.0..2.i%+=3|
000015f0  32 0d 0a 3c 13 21 69 25  3d 31 38 38 3a 69 25 21  |2..<.!i%=188:i%!|
00001600  34 3d 36 30 0d 0a 46 16  69 25 21 38 3d 36 33 32  |4=60..F.i%!8=632|
00001610  3a 69 25 21 31 32 3d 31  30 38 0d 0a 50 13 69 25  |:i%!12=108..P.i%|
00001620  21 31 36 3d 26 30 37 30  30 30 31 33 44 0d 0a 5a  |!16=&0700013D..Z|
00001630  10 69 25 21 32 30 3d 73  25 2b 34 33 32 0d 0a 64  |.i%!20=s%+432..d|
00001640  10 69 25 21 32 34 3d 73  25 2b 33 39 30 0d 0a 6e  |.i%!24=s%+390..n|
00001650  0c 69 25 21 32 38 3d 33  30 0d 0a 78 0a 69 25 2b  |.i%!28=30..x.i%+|
00001660  3d 33 32 0d 0a 82 13 21  69 25 3d 33 32 3a 69 25  |=32....!i%=32:i%|
00001670  21 34 3d 31 31 32 0d 0a  8c 16 69 25 21 38 3d 31  |!4=112....i%!8=1|
00001680  38 34 3a 69 25 21 31 32  3d 31 36 30 0d 0a 96 13  |84:i%!12=160....|
00001690  69 25 21 31 36 3d 26 30  37 30 30 30 32 31 31 0d  |i%!16=&07000211.|
000016a0  0a a0 1a 24 28 69 25 2b  32 30 29 3d 22 50 75 72  |...$(i%+20)="Pur|
000016b0  70 6f 73 65 3a 22 2b bd  30 0d 0a aa 0a 69 25 2b  |pose:"+.0....i%+|
000016c0  3d 33 32 0d 0a b4 14 21  69 25 3d 31 38 38 3a 69  |=32....!i%=188:i|
000016d0  25 21 34 3d 31 31 32 0d  0a be 16 69 25 21 38 3d  |%!4=112....i%!8=|
000016e0  36 33 32 3a 69 25 21 31  32 3d 31 36 30 0d 0a c8  |632:i%!12=160...|
000016f0  13 69 25 21 31 36 3d 26  30 37 30 30 30 31 33 44  |.i%!16=&0700013D|
00001700  0d 0a d2 10 69 25 21 32  30 3d 73 25 2b 34 36 34  |....i%!20=s%+464|
00001710  0d 0a dc 10 69 25 21 32  34 3d 73 25 2b 33 39 30  |....i%!24=s%+390|
00001720  0d 0a e6 0c 69 25 21 32  38 3d 33 30 0d 0a f0 0a  |....i%!28=30....|
00001730  69 25 2b 3d 33 32 0d 0a  fa 13 21 69 25 3d 33 32  |i%+=32....!i%=32|
00001740  3a 69 25 21 34 3d 31 36  34 0d 0b 04 16 69 25 21  |:i%!4=164....i%!|
00001750  38 3d 31 38 34 3a 69 25  21 31 32 3d 32 31 32 0d  |8=184:i%!12=212.|
00001760  0b 0e 13 69 25 21 31 36  3d 26 30 37 30 30 30 32  |...i%!16=&070002|
00001770  31 31 0d 0b 18 17 24 28  69 25 2b 32 30 29 3d 22  |11....$(i%+20)="|
00001780  4e 61 6d 65 3a 22 2b bd  30 0d 0b 22 0a 69 25 2b  |Name:"+.0..".i%+|
00001790  3d 33 32 0d 0b 2c 14 21  69 25 3d 31 38 38 3a 69  |=32..,.!i%=188:i|
000017a0  25 21 34 3d 31 36 34 0d  0b 36 16 69 25 21 38 3d  |%!4=164..6.i%!8=|
000017b0  36 33 32 3a 69 25 21 31  32 3d 32 31 32 0d 0b 40  |632:i%!12=212..@|
000017c0  13 69 25 21 31 36 3d 26  30 37 30 30 30 31 33 44  |.i%!16=&0700013D|
000017d0  0d 0b 4a 10 69 25 21 32  30 3d 73 25 2b 34 39 36  |..J.i%!20=s%+496|
000017e0  0d 0b 54 10 69 25 21 32  34 3d 73 25 2b 33 39 30  |..T.i%!24=s%+390|
000017f0  0d 0b 5e 0c 69 25 21 32  38 3d 33 30 0d 0b 68 0c  |..^.i%!28=30..h.|
00001800  73 25 21 33 39 30 3d 30  0d 0b 72 22 24 28 73 25  |s%!390=0..r"$(s%|
00001810  2b 34 30 30 29 3d 22 31  2e 30 30 20 28 38 2d 41  |+400)="1.00 (8-A|
00001820  75 67 2d 39 39 29 22 2b  bd 30 0d 0b 7c 27 24 28  |ug-99)"+.0..|'$(|
00001830  73 25 2b 34 33 32 29 3d  22 a9 20 44 6f 6d 69 6e  |s%+432)=". Domin|
00001840  69 63 20 46 6f 72 64 2c  20 31 39 39 39 22 2b bd  |ic Ford, 1999"+.|
00001850  30 0d 0b 86 22 24 28 73  25 2b 34 36 34 29 3d 22  |0..."$(s%+464)="|
00001860  4d 61 65 73 74 72 6f 20  74 6f 20 4d 49 44 49 22  |Maestro to MIDI"|
00001870  2b bd 30 0d 0b 90 1d 24  28 73 25 2b 34 39 36 29  |+.0....$(s%+496)|
00001880  3d 22 4d 49 44 49 20 4d  61 6b 65 72 22 2b bd 30  |="MIDI Maker"+.0|
00001890  0d 0b 9a 25 24 28 73 25  2b 35 32 38 29 3d 22 41  |...%$(s%+528)="A|
000018a0  62 6f 75 74 20 74 68 69  73 20 70 72 6f 67 72 61  |bout this progra|
000018b0  6d 22 2b bd 30 0d 0b a4  26 c8 99 20 22 57 69 6d  |m"+.0...&.. "Wim|
000018c0  70 5f 43 72 65 61 74 65  57 69 6e 64 6f 77 22 2c  |p_CreateWindow",|
000018d0  2c 73 25 20 b8 20 69 6e  66 6f 25 0d 0b ae 05 e1  |,s% . info%.....|
000018e0  0d 0b b8 05 3a 0d 0b c2  0f dd f2 6f 70 65 6e 5f  |....:......open_|
000018f0  6d 65 6e 75 0d 0b cc 31  20 c8 99 20 22 57 69 6d  |menu...1 .. "Wim|
00001900  70 5f 43 72 65 61 74 65  4d 65 6e 75 22 2c 2c 6d  |p_CreateMenu",,m|
00001910  61 69 6e 6d 65 6e 75 25  2c 28 21 71 25 29 2d 36  |ainmenu%,(!q%)-6|
00001920  34 2c 31 36 30 0d 0b d6  05 e1 0d 0b e0 05 3a 0d  |4,160.........:.|
00001930  0b ea 12 dd f2 69 63 6f  6e 28 72 65 64 72 61 77  |.....icon(redraw|
00001940  29 0d 0b f4 0f 73 70 25  3d 69 63 6f 6e 73 70 25  |)....sp%=iconsp%|
00001950  0d 0b fe 0e e7 20 72 65  64 72 61 77 20 8c 0d 0c  |..... redraw ...|
00001960  08 18 20 21 73 70 25 3d  2d 31 3a 73 70 25 21 34  |.. !sp%=-1:sp%!4|
00001970  3d 69 63 6f 6e 25 0d 0c  12 1e 20 c8 99 20 22 57  |=icon%.... .. "W|
00001980  69 6d 70 5f 44 65 6c 65  74 65 49 63 6f 6e 22 2c  |imp_DeleteIcon",|
00001990  2c 73 70 25 0d 0c 1c 05  cd 0d 0c 26 0b 21 73 70  |,sp%.......&.!sp|
000019a0  25 3d 2d 31 0d 0c 30 0b  73 70 25 21 34 3d 30 0d  |%=-1..0.sp%!4=0.|
000019b0  0c 3a 0d 73 70 25 21 38  3d 2d 31 36 0d 0c 44 18  |.:.sp%!8=-16..D.|
000019c0  73 70 25 21 31 32 3d 31  32 38 3a 73 70 25 21 31  |sp%!12=128:sp%!1|
000019d0  36 3d 38 34 0d 0c 4e 14  73 70 25 21 32 30 3d 26  |6=84..N.sp%!20=&|
000019e0  31 37 30 30 33 31 30 42  0d 0c 58 11 73 70 25 21  |1700310B..X.sp%!|
000019f0  32 34 3d 73 70 25 2b 34  30 0d 0c 62 11 73 70 25  |24=sp%+40..b.sp%|
00001a00  21 32 38 3d 73 70 25 2b  38 30 0d 0c 6c 0d 73 70  |!28=sp%+80..l.sp|
00001a10  25 21 33 32 3d 33 32 0d  0c 76 23 e7 20 70 61 67  |%!32=32..v#. pag|
00001a20  65 73 3d 30 20 8c 20 24  28 73 70 25 2b 34 30 29  |es=0 . $(sp%+40)|
00001a30  3d 22 49 64 6c 65 22 2b  bd 30 0d 0c 80 25 e7 20  |="Idle"+.0...%. |
00001a40  70 61 67 65 73 3d 31 20  8c 20 24 28 73 70 25 2b  |pages=1 . $(sp%+|
00001a50  34 30 29 3d 22 31 20 70  61 67 65 22 2b bd 30 0d  |40)="1 page"+.0.|
00001a60  0c 8a 2c e7 20 70 61 67  65 73 3e 31 20 8c 20 24  |..,. pages>1 . $|
00001a70  28 73 70 25 2b 34 30 29  3d c3 70 61 67 65 73 2b  |(sp%+40)=.pages+|
00001a80  22 20 70 61 67 65 73 22  2b bd 30 0d 0c 94 1d 24  |" pages"+.0....$|
00001a90  28 73 70 25 2b 38 30 29  3d 22 53 21 6d 61 6b 65  |(sp%+80)="S!make|
00001aa0  6d 69 64 69 22 2b bd 30  0d 0c 9e 25 c8 99 20 22  |midi"+.0...%.. "|
00001ab0  57 69 6d 70 5f 43 72 65  61 74 65 49 63 6f 6e 22  |Wimp_CreateIcon"|
00001ac0  2c 2c 73 70 25 20 b8 20  69 63 6f 6e 25 0d 0c a8  |,,sp% . icon%...|
00001ad0  05 e1 0d 0c b2 05 3a 0d  0c bc 17 f4 20 43 4f 4e  |......:..... CON|
00001ae0  56 45 52 53 49 4f 4e 20  45 4e 47 49 4e 45 0d 0c  |VERSION ENGINE..|
00001af0  c6 05 3a 0d 0c d0 15 dd  f2 64 6f 69 74 28 66 69  |..:......doit(fi|
00001b00  6c 65 6e 61 6d 65 24 29  0d 0c da 05 e1 0d ff     |lename$).......|
00001b0f