"CLOCK2 "VTR Ident/Leader Clock #"V 8.002.04.86OS1.2 I#"V 8.112.12.06 JGH: Tweeked for Windows t(" <,,,,,,,,,,,,,,,,,,,,,,,,,,l 5(C) 1986 Alan Pemberton j 5(C) 1986 Alan Pemberton j t<"5pembers.freeserve.co.uk j 5pembers.freeserve.co.ukj -,,,,,,,,,,,,,,,,,,,,,,,,,,. Eos%=byte(0,1,0) FPJ} Z7:intro n4:disp:bot%=::bot%= pcos(60),sin(60) A%=byte(151,96,0) A%=byte(151,98,127) control_byte%=0 fade%= date$="DATE: "+13," ") prog$="PROG: "+184," ") shot$="SHOT: "+13," ") take$="TAKE: "+13," ") start_angle%=330 26,12 slate centre box P@} date prog shot "clock(1330) , " "DATA FOR MARKERS "@ 40,20,15,3,0  90,108,180,210,330 "DATA FOR LEGENDS  "FADE",7,0,"IDENT",0,17 A "5",10,6,"1O",6,9,"15",4,14,"2O",6,20,"3O",15,25,"4O",24,20 $ "",0,0 " slate 0,1 centre legend grad arc(180,90,-6,424,16)  arc(210,330,6,424,16) arc(360,0,-12,120,-16)    " " )arc(start%,end%,inc%,radius%,wall%)  X,Y,angle% #X=1.084*(start%):Y=(start%) K X*radius%/xs,Y*radius%/ys: X*(radius%+wall%)/xs,Y*(radius%+wall%)/ys & angle%=start%+inc% end% inc% #X=1.084*(angle%):Y=(angle%) Q 85,X*radius%/xs,Y*radius%/ys: 85,X*(radius%+wall%)/xs,Y*(radius%+wall%)/ys   " grad  angle%,A% 2 angle%=90 180 6:spoke(angle%,424,-24): 3 angle%=90 330 30:spoke(angle%,424,-48): 2 angle%=180 210 6:spoke(angle%,424,16): d|C / A%=1 5: angle%:spoke(angle%,424,48):  o" #pspoke(angle%,radius%,length%) z X,Y,X1,Y1 7X=radius%*1.084*(angle%-1):Y=radius%*(angle%-1) 9X1=radius%*1.084*(angle%+1):Y1=radius%*(angle%+1) 'cos=1.084*(angle%):sin=(angle%) 'X2=X1+length%*cos:Y2=Y1+length%*sin %X3=X+length%*cos:Y3=Y+length%*sin  X/xs,Y/ys: X3/xs,Y3/ys % 85,X1/xs,Y1/ys: 85,X2/xs,Y2/ys  W" Xclock(start%) b angle% dangle%=start% l 9vangle%>1000 angle%=angle%-1000 angle%=start_angle% xtrig(angle%)  3,1 finger(angle%): ON  *FX15  28,31,23,39,19 129:0 70,0)"SPACEBAR"'"to start"''" ESCAPE "'"for menu"; 128:1 inkey=48 28,31,23,39,19,12 129:0 logic_control(angle%) (-time)100=0   &finger(angle%):angle%=156 flash finger(angle%-6): // angle%=96 19,1,7;0;  angle%=angle%-6 4logic_control(angle%) >tone(angle%) Htrig(angle%) Jfade%= angle%=108 fade Qt=+50:>t R(-time)100=0 \(0=32)(angle%<=90) fclear_bit(0) pangle%<=90 zA%=byte(151,96,0) finger(angle%): OFF take%=take%+1 take 19,1,7;0;   ?" @finger(angle%) J X,Y T3,1 !^X=cos(angle%):Y=sin(angle%) h*FX19 +r X*120/xs,Y*120/ys: X*400/xs,Y*400/ys | '#" (#legend 2# X,Y,legend$ <#down$=8+10 F#TPD P# Z# legend$,X%,Y% Kd# legend$="IDENT" legend$="I"+down$+"D"+down$+"E"+down$+"N"+down$+"T" n#X%,Y%);legend$ x# legend$="" # '" 'box '29,0;0; $'28,20,17,38,0 3.'0,1)date$;0,3)prog$;0,14)shot$;0,16)take$; 8'0,1 (B' 628/xs,1008/ys:21,1276/xs,1008/ys >L' 21,1276/xs,466/ys: 21,628/xs,466/ys: 21,628/xs,1008/ys 'V' 628/xs,944/ys: 21,1276/xs,944/ys '`' 628/xs,592/ys: 21,1276/xs,592/ys 'j' 628/xs,528/ys: 21,1276/xs,528/ys t'centre ~' *" *date +*FX15 +prompt +128:1 +box  +date$=type(20,1,38,1) "+unprompt *+box 4+ ." .prog .prompt .box .prog$=type(20,12,38,3) .unprompt .box / 2" 2shot 2prompt 2box 2shot$=type(20,14,38,14) 2take%=1 2unprompt 2take 2box 3 6" 6take 623,1,0,0;0;0;0; 6128:1 628,20,16,38,16 6take%<1 take%=1 '6take$="TAKE: "+take%+13," "),18) 60,0)take$; 630 7*FX15  7 :" :reset E:finger(angle%):angle%=start_angle%:trig(angle%):finger(angle%) : >" >ݤyes_no(A$) > reply$ > A$" (Y/N) ?"; >*FX15 > >reply$=( &DF) > reply$="Y" reply$="N" >=(reply$="Y") gB" hBmenu rBA%=byte(151,96,0) tBunprompt vBfinger(angle%) |B128:1 B28,31,23,39,19,12 B28,21,16,39,1 B29,0;0; &B24,636/xs;474/ys;1268/xs;1000/ys; B0,129 B B23,1,0,0;0;0;0; B128:1 B"Now press:"' B129:0 B"1 Reset to 10 Sec." B"2 20" B"3 30" B"4 40" B"> Increment Take" B"< Decrement Take" B"D Re-type DATE" B"P "" PROG" C"S "" SHOT" C"F Auto/Manual Fade" C"B Blank display" C'"C Continue" &C"E Exit program"; 0C"1234F>0 2C0,128: 4C128:1 6C26 :Cfinger(angle%) DCbox NCclock(angle%+1000) XC OF" PFintro ZF23,1,0,0;0;0;0; 1dF"?w``+w``+w``+w``+w``+w``+"8 8nF"5""o}0 ""o}0 ""o}0 ""o}0 ""o}0 ""o}0 ""o"8 1xF"=,,,,,,,,,,,,,,,,,,,n"8 1F"5_~?! _~?! _~?! _~?! _~?! _~?! _~"8 1F"}wppxwppxwppxwppxwppxwppx"8 1F"5<,4<,4<,4l,40VTR IDENT/LEADER CLOCKj"8 1F"57`!7+1up5zp50by Alan Pemberton (c) j"8 1F"=,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,n"8 1F"5All the functions of this clock arej"8 1F"5available by pressing the j"8 1F"5appropriate key when the clock is j"8 1F"5at rest. Alternatively, a menu is j"8 1F"5displayed whenESCAPEis pressed.j"8 1F"5 j"8 1F"5In theDATE/PROG/SHOTmodes, youj"8 1F"5use the machine as a video type- j"8 1G"5writer, within the chosen window. j"8 1G"5Use the cursor, return and delete j"8 1G"5keys as normal. To exit each box j"8 1"G"5pressSHIFT + RETURN. j"8 1,G"5 `````````````` j"8 16G"7ssc``s`ss3s3``c```7ss3c3c`3s3```c````k"8 1@G"5-lj jp5 5 = !j 5 5 uzjf = ! j j"8 1JG"ussrsrpqpqpsqqprpppupqpqrrpqsqqpprppppz"8 TG8); %^G笤yes_no("More instructions") hG28,0,24,39,8,12 1rG"5When the clock is at rest, pressingj"8 1|G"51sets the clock to 10 seconds. j"8 1G"52sets the clock to 20 seconds. j"8 1G"53sets the clock to 30 seconds. j"8 1G"54sets the clock to 40 seconds. j"8 1G"5>increments the TAKE number. j"8 1G"563 inkey%=inkey%&DF inkey%=inkey%16 "Y inkey%<>-1 inkey%<>66 20 +Z inkey%>47 inkey%<53 finger(angle%) 9 Z inkey%=48 time=:finger(angle%):angle%=150 flash  Z inkey%=48 set_bit(0) 8Z inkey%=49 angle%=150:trig(angle%):finger(angle%) 8Z inkey%=50 angle%=210:trig(angle%):finger(angle%) 8(Z inkey%=51 angle%=270:trig(angle%):finger(angle%) 82Z inkey%=52 angle%=330:trig(angle%):finger(angle%) /4Z inkey%>48 inkey%<53 start_angle%=angle% )bC%=127 =left% 31,right%,-1,9 HbC%>31 C%<128 C% Rb>right% 31,left%,+1 \b>bottom% 31,,top% (fb 270 byte("X000000X"): 0bangle%<=270 angle%>210 byte("X000001X"): /bangle%<=210 angle%>180byte("X000010X"): #cangle%<=90 byte("X0000000"): $cangle%<=108 byte("X111100X"): $cangle%<=120 byte("X011100X"): $$cangle%<=126 byte("X001100X"): $.cangle%<=150 byte("X000100X"): "8cangle%<=180 byte("X000000X") Bc e" eset_bit(power%) e Y% *econtrol_byte%=control_byte%(2^power%) eY%=control_byte% eA%=byte(151,96,Y%) e wi" xiclear_bit(power%) i Y% 0icontrol_byte%=control_byte%(&FF-(2^power%)) iY%=control_byte% iA%=byte(151,96,Y%) i _m" `mbyte(bit$) jm I%,I$ tmI%=1bit$ ~mI$=bit$,I%,1) mI$="1" set_bit(bit$-I%) mI$="0" clear_bit(bit$-I%) m m Gq" Hqtone(angle%) (Rqangle%=120 angle%=114 1,-10,100,2 \qangle%=108 1,-15,100,10 'fqangle%=102 angle%=96 1,-10,150,2 pqangle%=90 1,-15,150,10 zq /u" ytrig(angle%) ("ysin(((angle%+360)360)6)=(angle%) *$ysin(((angle%+354)360)6)=(angle%-6) .,ycos(((angle%+360)360)6)=1.084*(angle%) 0.ycos(((angle%+354)360)6)=1.084*(angle%-6) y y" yprompt y128:1 y28,31,23,39,19,12 y28,31,23,38,19 y129:0: .y"Press"'"SHIFT+"'"RETURN"'"to leavebox."; y128:1 :z Cz" Dzunprompt Nz128:1 Xz28,31,23,38,19,12 z z" zflash z*FX19 z19,0,7;0;19,1,0;0; z*FX19 z19,0,0;0;19,1,7;0; {  {" p{fade z{ colour%,colour$,C% |{colour$="73625140" {C%=1colour$ {colour%=colour$,C%,1) {*FX19 {19,1,colour%;0; {*FX19 { { {" | |" }=17menu  } }7 }3 (}*FX4 2}A%=byte(151,96,0) <}=17:"QUIT",os%=32): F}31,0,10 P}:"at line"; } }ݤbyte(A%,X%,Y%) *}os%=6: "XOS_Byte",A%,X%,Y% ,X%:=X% }=((&FFF4)&FF00)256 ,~disp 6~xs=1:ys=1: os%<>32: &@~ "GetSystemMetrics", 0 xscreen% &J~ "GetSystemMetrics", 1 yscreen% -T~ "SetWindowLong", @hwnd%, -16, &16000000 =^~ "SetWindowPos", @hwnd%, -1, 0, 0, xscreen%, yscreen%, 0