l╚Ö&411C0,,pa%,k$+".Defaults"+A$╕,Dc%:╚Ö&411C0,,pa%,k$+".Defaults"+A$╕,r%:τñg(k$+".Tools"+j$)îA$=j$ïA$=r$.æ╚Ö&411C1,,r%,k$+".Tools"+A$:╚Ö&44AE2,256,pa%,0╕,G%:Gc%=0:Ec%=0:╚Ö&20023,"MBROM$Instruments",h%,256,0,0╕,,A%:h%?A%=0:h%?255=0:A$=ñc(h%):τA%>0îæPe%=1:╚òe%<A%+1:b$="":╚òù(┴A$,e%,1))>32:b$+=┴A$,e%,1):e%+=1:╬:τb$<>""î≥ta(b$)┘He%+=1:╬:≥ua:╚Ö&20023,G$,h%,-1,0,0╕,,A%:τA%<0î≥va(n$,ea%-2,"FNV(F$)")╔≥wa:b$(Gc%)="Rest":c%(Gc%)=&80000000:a$(Gc%)="Rest":Gc%+=1:A%=ñe(r%,"Rest",r%,"none","pnone","snone"):A%=ñe(r%,"?",r%,"unknown","punknown","sunknown"):╚Ö&64AE2,260,Dc%,"sZ",r%,"sprintinst"+a$,0╕;P%i╢≥B(r%,"sprintinst",r%,"sprint",1):╚Ö&64AE2,25,r%,"sprint":πe%=1╕6:A%=ñe(r%,"t"+├(e%),r%,"tool"+├(e%),"ptool"+├(e%),"-"):╚Ö&64AE2,25,r%,"tool"+├(e%):╚Ö&64AE2,25,r%,"ptool"+├(e%):φ▒¬A%=ñe(r%,"speaker",r%,"speak","pspeak","-"):A%=ñe(r%,"load",r%,"_load","_load","-"):A%=ñe(r%,"save",r%,"_save","_save","-"):A%=ñe(r%,"clear",r%,"_clear","_clear","-")╒┼A%=ñe(r%,"copy",r%,"_copy","_copy","-"):A%=ñe(r%,"yes",r%,"_yes","_yes","-"):A%=ñe(r%,"no",r%,"_no","_no","-"):A%=ñe(r%,"Print",r%,"_print","_print","-"):A%=ñe(r%,"Slow",r%,"_Slow","_Slow","-")╘A%=ñe(r%,"Fast",r%,"_Fast","_Fast","-"):A%=ñe(r%,"Ok",r%,"_Ok","_Ok","-"):╚Ö&64AE2,25,r%,"_ok":╚Ö&64AE2,25,r%,"_save":╚Ö&64AE2,25,r%,"_load":╚Ö&64AE2,25,r%,"_slow":╚Ö&64AE2,25,r%,"_fast":╚Ö&64AE2,25,r%,"_yes"J╥╚Ö&64AE2,25,r%,"_no":╚Ö&64AE2,25,r%,"_print":╚Ö&64AE2,25,r%,"_copy":╚Ö&64AE2,25,r%,"_clear":╚Ö&64AE2,25,r%,"speak":╚Ö&64AE2,25,r%,"pspeak":╚Ö&64AE2,25,r%,"none":╚Ö&64AE2,25,r%,"pnone":╚Ö&64AE2,25,r%,"snone"¢ì╚Ö&64AE2,25,r%,"unknown":╚Ö&64AE2,25,r%,"punknown":╚Ö&64AE2,25,r%,"sunknown":╚Ö&44AC3,,G%:╚Ö&44AC3,,Dc%:τñg(k$+".Sprites"+j$)îA$=j$ïA$=r$∞eτ¼ñg(k$+".Sprites"+A$)î≥b("Sprites file missign from inside MusicBox. Sorry I can't continue.",╣)⌡D╚Ö&411C1,,r%,k$+".Sprites"+A$╕;A%:τñg(k$+".Menu"+j$)îA$=j$ïA$=r$0τ(A%Ç1)=0Çia%î╚Ö&411C1,,r%,k$+".Menu"+A$╕;A%7τ(A%Ç1)î≥b("Not enough memory to load MusicBox.",╣)¡A%=!r%:▐U% A%!0:╚Ö&44AC7,A%!0,A%,U%:╚Ö&44AC3,,r%:r%=-1:╚Ö&44AE3,1+2^11,U%,"S?",wb%,wb%,pa%╕,,_%:╚Ö&44AE3,1+2^11,U%,"S?",wb%,wb%,pa%╕,,Hc%:╚Ö&40880,"<MusicBoxD$Dir>.11":ßs▌ñV(a$):ΩP%,A%,B%:τGc%<ea%îT"b$(Gc%)=a$:c%(Gc%)=0:τj$="22"îo?╚Ö&64AE2,258,G%,H$+"."+a$╕;P%:╚Ö&64AE2,258,G%,I$+"."+a$╕;P%èA╠:╚Ö&64AE2,258,G%,I$+"."+a$╕;P%:╚Ö&64AE2,258,G%,H$+"."+a$╕;P%Ñ═Ñ3A%=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:τj$="22"îu?╚Ö&64AE2,258,G%,J$+"."+l$╕;P%:╚Ö&64AE2,258,G%,K$+"."+l$╕;P%ÉA╠:╚Ö&64AE2,258,G%,K$+"."+l$╕;P%:╚Ö&64AE2,258,G%,J$+"."+l$╕;P%½═½-τñe(r%,l$,G%,"Normal","Playing","Small")î┤a$(Gc%)=l$╞╠:a$(Gc%)="?"╪═╪Y╚Ö&64AE2,25,G%,"Normal":╚Ö&64AE2,25,G%,"Playing":╚Ö&64AE2,25,G%,"Small":Gc%+=1:Ec%+=1═φ:ß k▌≥va(A$,Uc%,L$):ΩVc%,R%,Y%,F$,P%,Wc%,A%:P%=0:⌡:╚Ö&2000C,10,A$,h%,1,P%,64,"*"╕A%,,,R%,P%;Wc%:τ(Wc%Ç1)=0îh
τR%>0îq:F$=ñc(h%+20):τ((!h%)Ç&FFF00000)=&FFF00000Ç(h%!16Ç1)=1îâVc%=!h%Ç&FFF00ò╠:Vc%=0º═ºτVc%=&FFA00î░τEc%>Uc%î╣v≥b("Music Box can only handle a maximum of "+├(ea%)+" instruments. So I shall only use the first "+├(ea%)+".",ú):ß┬╠:Vc%=á(L$):Ec%+=1µ═µ═∩(F$=A$+"."+F$:τh%!16=2î≥va(F$,Uc%,L$)═
╠:≥b(ñc(A%+4),ú):R%=0.═.²R%=0äP%=-1äEc%>Uc%+1:ß@:▌ñe(Ic%,a$,G%,s$,l$,p$):ΩA%:╚Ö&64AE2,261,G%,s$╕A%:τA%îêla$=┬a$,11):╚Ö&44AE2,260,Dc%,"Z",Ic%,a$,0╕;A%:╚Ö&44AE2,260,Dc%,"pZ",Ic%,"p"+a$,0╕;P%:A%=(P%äA%):τp$<>"-"î╡=╚Ö&44AE2,260,Dc%,"sZ",Ic%,"s"+a$,0╕;P%:A%=(((P%äA%)Ç1)=0)╨═╨τA%î┘1≥B(Ic%,a$,G%,s$,1):╚Ö&64AE2,261,G%,l$╕B%:τB%î⌠≥B(Ic%,"p"+a$,G%,l$,1)╠:≥B(Ic%,"p"+a$,G%,s$,1)═τp$<>"-"î!╚Ö&64AE2,261,G%,p$╕B%:τB%î3≥B(Ic%,"s"+a$,G%,p$,1)E╠:≥B(Ic%,"s"+a$,G%,s$,2)W═W═`C╠:╚Ö&64AE2,25,G%,a$:╚Ö&64AE2,25,G%,"p"+a$:╚Ö&64AE2,25,G%,"s"+a$ì═ì╠:A%=╣:τ¼Fc%î¿¢≥b("Some instruments (eg "+a$+") do not have a sprite file containing a sprite called '"+s$+"'. I will create a sprite for these instruments.",ú):Fc%=╣├═├la$=┬a$,11):╚Ö&44AE2,260,Dc%,"Z",Ic%,a$,0╕;A%:╚Ö&44AE2,260,Dc%,"pZ",Ic%,"p"+a$,0╕;P%:A%=(P%äA%):τp$<>"-"î≡=╚Ö&44AE2,260,Dc%,"sZ",Ic%,"s"+a$,0╕;P%:A%=(((P%äA%)Ç1)=0)═τA%îP≥xa(Ic%,a$,G%,a$,1):≥xa(Ic%,"p"+a$,G%,a$,1):τp$<>"-"î≥xa(Ic%,"s"+a$,G%,a$,2)/C╠:╚Ö&64AE2,25,G%,a$:╚Ö&64AE2,25,G%,"p"+a$:╚Ö&64AE2,25,G%,"s"+a$\═\═e=A%╚≡▌≥xa(Ic%,m$,Jc%,f$,z%):ΩA%,B%,C%,Kc%,Lc%,Mc%,Nc%,Oc%,Pc%,Qc%,Rc%,Sc%,Tc%:╚Ö&44AE2,40,Ic%,m$╕,,,Kc%,Lc%,Sc%,Mc%:╚Ö&35,Mc%,4╕,,A%:Kc%=Kc%<<A%:h%!8=(1<<A%)*z%:╚Ö&35,Mc%,5╕,,A%:Lc%=Lc%<<A%:h%!12=(1<<A%)*z%:╚Ö&35,Pc%,4╕,,A%:Nc%=16*2*2:h%!0=44P╚Ö&35,Pc%,5╕,,A%:Oc%=36*2:h%!4=8:╚Ö&44AE2,60,Ic%,m$,0╕,A%,B%,C%:µ8:τ⌐(f$)>1îj¢╚Ö&44AE2,51,ù(┴f$,1,1)),,((Kc%+2)*z%-Nc%)/(z%*2),((Lc%+2)*z%-Oc%)/(z%*2),0,h%:╚Ö&44AE2,51,ù(┴f$,2,1)),,((Kc%+2)*z%)/(z%*2),((Lc%+2)*z%-Oc%)/(z%*2),0,h%àU╠:╚Ö&44AE2,51,ù(┴f$,1,1)),,((Kc%+2)*z%-Nc%/2)/(z%*2),((Lc%+2)*z%-Oc%)/(z%*2),0,h%ù═ù╚Ö&2E,60,A%,B%,C%:τSc%=1î⌐C╚Ö&44AE2,61,Ic%,m$,0╕,A%,B%,C%:∩18,0,63,23,17,3,&C0,0,0,0,0,0,0╗τ⌐(f$)>1î─¢╚Ö&44AE2,51,ù(┴f$,1,1)),,((Kc%+2)*z%-Nc%)/(z%*2),((Lc%+2)*z%-Oc%)/(z%*2),0,h%:╚Ö&44AE2,51,ù(┴f$,2,1)),,((Kc%+2)*z%)/(z%*2),((Lc%+2)*z%-Oc%)/(z%*2),0,h%▀U╠:╚Ö&44AE2,51,ù(┴f$,1,1)),,((Kc%+2)*z%-Nc%/2)/(z%*2),((Lc%+2)*z%-Oc%)/(z%*2),0,h%±═±╚Ö&2E,61,A%,B%,C%═ß\▌≥wa:v$=ño("Tune"):B$=ño("Beat"):C$=ño("Sound"):D$=ño("Chord"):Xc%=ú:Yc%=ú:Zc%=ú:_c%=ú:ßoé▌ño(c$):Ωs%,A%,`c%,f%,b$,Uc%,c%:!g%=1:g%!4=Da%:╚Ö&44AEA,0,"<MB"+c$+"Files$Dir>",g%,c$+"*",pa%╕,s%:f%=!s%:`c%=!f%:Uc%=1:τ`c%>0î╔[f%+=4+16*`c%-16+⌐(c$):⌡:A%=f%:f%-=16:╚ò?A%>=ù("0")Ç?A%<=ù("9"):A%+=1:╬:τ?A%<32ä?A%=127î &c%=(á(ñc(f%+16)))+1:τc%>Uc%îUc%=c% #═ ,`c%-=1:²`c%=0 G═ G╚Ö&44AC3,,s%:=c$+├(Uc%) kJ▌≥ua:ΩA%,a$,ad%,bd%:ad%=ú:bd%=ú:╚Ö&20023,G$,h%,-1,0,0╕,,A%:τA%<0îbd%=╣ Å9╚Ö&20023,"MBBeatFiles$Dir",h%,-1,0,0╕,,A%:τA%<0îad%=╣ íτad%Çbd%îß ¬τ(¼ad%)Ç(¼bd%)î │P≥ya("Please insert a disc containing !MBInsts and !MBFiles into drive 0 ",3) ┼╠:τ¼ad%î ╬C≥ya("Please insert a disc containing !MBFiles into drive 0 ",1) αE╠:≥ya("Please insert a disc containing !MBInsts into drive 0 ",2) ≥═ ≥═ √ß!\▌≥ya(M$,F%):⌡:!h%=0:$(h%+4)=M$+╜0:╚Ö&400DF,h%,3+2^4,"Message from MusicBox"╕,A%:τA%<>1îß!: ╚ÄF%╩!C*╔1:╚Ö&20008,17,"ADFS::0.$.!MBFiles"╕A%!^&╔2:╚Ö&8,17,"ADFS::0.$.!MBInsts"╕A%!pP╔3:╚Ö&20008,17,"ADFS::0.$.!MBFiles"╕A%:τA%=2î╚Ö&8,17,"ADFS::0.$.!MBInsts"╕A%!é╦!ïp²A%=2:╚Ö&40245,"0",h%:a$="ADFS::":A%=0:╚òA%<12Ç?(h%+A%+22)>32:a$+=╜(?(h%+A%+22)):A%+=1:╬:a$+=".$":τ(F%Ç1)=1î!σ╟ ("*SET MBTuneFiles$Dir "+a$+".!MBFiles.Tunes"): ("*SET MBBeatFiles$Dir "+a$+".!MBFiles.Beats"): ("*SET MBChordFiles$Dir "+a$+".!MBFiles.Chords"): ("*SET MBSoundFiles$Dir "+a$+".!MBFiles.Sounds")"═"τ(F%Ç2)=2î"▓ ("*SET MBInstruments$Dir "+a$+".!MBInsts.Instrumnts"): ("*SET MBInstrumentSprites$Dir "+a$+".!MBInsts.Sprites"): ("*SET MBInstrumentSprites22$Dir "+a$+".!MBInsts.Sprites22")"?═"?ß"H─▌≥na(e$):Ωcd%,dd%,ed%,f%,fd%:gd%=3:▐f%(gd%,4):fd%=0:cd%=4096:hd%=5120+2024:▐dd% hd%:id%=dd%:╚Ö&44AC1,,pa%,cd%+20╕,i%:ed%=!i%:i%=ed%+20:╚Ö&8,17,e$╕ja%:τja%<>1î≥b("Template file not found.",╣):ß#₧U╚Ö&400D9,,e$:≥za:≥Aa:≥Ba:≥Ca:≥Da:≥Ea:≥Fa:≥Ga:≥Ha:≥Ia:≥Ja:≥Ka:╚Ö&400DA:jd%=0:≥La:ß$R;▌≥za:≥f("info"):╚Ö&400C1,,i%╕kd%:╚Ö&44AD0,kd%,9,T$+╜0:ß%&▌≥Aa:≥f("Topo"):╚Ö&400C1,,i%╕ld%:ß%3Ñ▌≥Ba:Ωf%:≥f("LdSv"):md%=1:nd%=3:od%=4:pd%=5:qd%=6:f%=88+i%+md%*32:rd%=(!f%+f%!8)/2-1:sd%=(f%!4+f%!12)/2+2:td%=f%!12-f%!4-16:ud%=f%!8-f%!0-8-48:╚Ö&400C1,,i%╕vd%:ß&&L▌≥Ma:≥f("List"):▐wd% 32:╚Ö&44AC7,32,i%+88,wd%:i%!84=0:╚Ö&400C1,,i%╕xd%:ß&nD▌≥Ja:≥f("Copy"):yd%=4:zd%=5:Ad%=6:Bd%=7:Cd%=8:╚Ö&400C1,,i%╕Dd%:ß&∞8▌≥Ia:≥f("Ques"):Ed%=2:Fd%=3:Gd%=1:╚Ö&400C1,,i%╕Hd%:ß'X▐▌≥Ga:≥f("ConfTune"):Id%=22:Jd%=25:Kd%=28:Ld%=31:Md%=37:Nd%=38:╚Ö&400C1,,i%╕Od%:≥f("ConfStart"):Pd%=16:Qd%=17:Rd%=18:Sd%=19:Td%=20:Ud%=21:Vd%=22:Wd%=23:Xd%=24:Yd%=29:╚Ö&400C1,,i%╕`%:≥f("ConfGlobal"):Zd%=23:_d%=24:`d%=25(«▐ae%=26:be%=28:ce%=30:de%=11:ee%=32:fe%=35:ge%=38:he%=40:ie%=41:je%=42:ke%=43:le%=44:me%=45:ne%=47:oe%=49:pe%=51:qe%=53:re%=55:se%=57:te%=59:ue%=61:ve%=63:we%=65:╚Ö&400C1,,i%╕m%:xe%=3:ye%=4:ze%=5:Ae%=6:Be%=7:Ce%=8:De%=9)╫╝Ee%=10:Fe%=11:≥f("ConfBeat"):Ge%=23:He%=26:Ie%=29:Je%=32:Ke%=36:Le%=37:╚Ö&400C1,,i%╕Me%:≥f("ConfLdSv"):Ne%=14:Oe%=15:Pe%=16:Qe%=17:Re%=18:Se%=19:Te%=20:Ue%=22:Ve%=23:╚Ö&400C1,,i%╕We%:ß*ª╓▌≥Ca:ΩXe%,Ye%,Ze%,_e%,`e%,af%,S%,bf%,cf%,X%,Y%,A%,f%:≥f("SndB"):df%=15:ef%=16:ff%=4:gf%=5:hf%=6:if%=7:jf%=8:kf%=0:lf%=i%!84-2:mf%=lf%+_b%*Zb%:nf%=14:of%=11:pf%=9:qf%=10:rf%=18:sf%=19:tf%=21:uf%=12:vf%=13:wf%=20,h╩f%=i%+88+32*pf%:d%(0,0)=f%!0:d%(0,1)=f%!4:d%(0,2)=f%!8:d%(0,3)=f%!12:╚Ö&44ADD,5+256,i%,pf%,1:f%=i%+88+32*lf%:Xe%=f%!16:af%=f%!8-f%!0:S%=f%!12-f%!4:cf%=f%!8-f%!40:bf%=f%!12-f%!44:Ye%=f%!0-bf%*(_b%-1)-