home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 37
/
037.d81
/
adsr_tempo
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
2KB
|
59 lines
10 gosub60100:clr
20 print"[147] adsr tempo tables"
25 print" by louis f. sander"
30 print" this program requires a printer!"
35 print" a - print adsr table"
40 print" t - print tempo table"
45 print" q - quit"
50 print" choose a, t, or q."
55 a=peek(203):ifa<>10anda<>22anda<>62then55
60 ifa=10thengosub80:ifokthen500
65 ifa=22thengosub80:ifokthen100
70 ifa=62thengosub60000:goto50
75 goto55
80 ok=.:open15,4,15:close15:ifst=.thenok=1:return
82 print" printer not online"
84 fora=1to2000:next:print"[145] [145][145]"
86 return
100 print"[145] printing tempo table -- please wait."
110 open4,4:cmd4:print,"note durations in milliseconds"
120 print"tempo whole half quarter eighth sixteenth"
130 fort=1to60:printt;" ";:ift<10thenprint" ";
140 u=19220/t:forn=0to4:d=int(u/2^n)
150 d$=right$(" "+str$(d),6)+" "
160 printd$;:next:print:next:print#4:close4
170 print"[145] [145]":goto50
500 print"[145] printing adsr table -- please wait."
510 restore:forj=1to16:readk:cs=cs+k:next:restore
520 open4,4:cmd4:print" adsr durations in milliseconds":print
530 print"value attack decay release"
540 forv=0to15:printv;" ";:ifv<10thenprint" ";
550 readt:forn=0to2:d=t:ifnthend=3*t
560 d$=right$(" "+str$(d),6)+" "
570 printd$;:next:print:next:print#4:close4
580 data 2,8,16,24,38,56,68,80,100,250,500,800,1000,3000,5000,8000
590 print"[145] [145]":goto50
60000 print"[145] are you sure you want to quit? (y/n)"
60010 a=peek(203):ifa<>25anda<>39then60010
60020 ifa=39thenprint"[145] [145]":return
60030 open15,8,15,"r0:hello connect=hello connect":input#15,er:close15
60040 ifer<>63thenend
60050 load"hello connect",8
60100 poke53280,2:poke53281,14
60110 print"[147]"chr$(142)"[213][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][201]";
60120 fora=1to23:print"[221]"spc(38)"[221]";:next
60130 print"[202][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][203][157][148][192]";
60140 fora=217to242:pokea,peek(a)or128:next
60150 print" loadstar presents:"
60160 print" "
60170 print" adsr tempo tables "
60180 print" "
60190 print" by louis f. sander "
60200 print" "
60210 print" copyright 1987 "
60220 print" "
60230 print" "
60240 print" press space to continue."
60250 ifpeek(203)<>60then60150
60260 return