-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.blocks
1 lines (1 loc) · 11.1 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="@Fp2CQ^(le1bjdNvqn^e">sek</variable><variable id="|G78D}mG#Zhd#e]hTs^8">enable</variable><variable id="ts2-V)4s{U|CU0528Mn{">running</variable><variable id="3/P-Lf6{^Z+|sxWy~`6T">zeitA_ms</variable><variable id="_xHwL^LXCxKwI9PiNLky">zeit_ms</variable><variable id="ucQ`4O-?coKTZeTKUmmS">result</variable><variable id="5.yv=CjxoSIlnwB4QgJK">h_m</variable></variables><block type="device_forever" id="cnA%DMglH04hE/Yp(3sV" x="20" y="20"><statement name="HANDLER"><block type="device_while" id="hJ4g;VvSCS~OOrxli34P"><value name="COND"><shadow type="logic_boolean" id="=|z]oKe?;-@HHEW))Hl]"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="controls_if" id=";]D3|iFC9x{Jq6}~EPSa"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="device_get_button2" id=".)*`l#O8L]$%a=-@Eu{V"><field name="NAME">Button.A</field></block></value><statement name="DO0"><block type="function_call" id="(?fe0M!sNn=gAEay/6mR"><mutation name="Countdown" functionid="cy1:E+:Xe+MD*o2tYexL"/><next><block type="variables_set" id="Jl:PMpaVvmCH?lAsmQ2u"><field name="VAR" id="|G78D}mG#Zhd#e]hTs^8">enable</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="logic_boolean" id="t+L(Rts}c~17jmLNUujw"><field name="BOOL">TRUE</field></block></value></block></next></block></statement><next><block type="controls_if" id="~7h+N^$=o^B8:uC8|mK!"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="variables_get" id="f;WYh~M;DN`CfVk9~*{H"><field name="VAR" id="|G78D}mG#Zhd#e]hTs^8">enable</field></block></value><statement name="DO0"><block type="controls_if" id="JhWa#%*OznW?3rWZU|w_"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_operation" id="KtI76JD10P[Ev}U928`0"><field name="OP">AND</field><value name="A"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_negate" id="60:0%8^N#}P:zf)-p94`"><value name="BOOL"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="variables_get" id="U`x^tuNU/BVwZDAv41v{"><field name="VAR" id="ts2-V)4s{U|CU0528Mn{">running</field></block></value></block></value><value name="B"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="DwUhFKO.InZ)};g.||@K"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_acceleration" id="=r%RElLd7(D3i`e,xOU["><field name="NAME">Dimension.Strength</field></block></value><value name="B"><shadow type="math_number" id="OiRX5W`F#yaRVdCDdz@c"><field name="NUM">500</field></shadow></value></block></value></block></value><statement name="DO0"><block type="variables_set" id="F8wr[4R*Ndq-U@tiwlDB"><field name="VAR" id="3/P-Lf6{^Z+|sxWy~`6T">zeitA_ms</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_get_running_time" id="d_uZ[xo,~iwJV5+b5|l`"/></value><next><block type="controls_if" id="*]]seuue{k%CgU.s=eLo"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_negate" id="ir3W(9-P-)(y0%BbP#J;"><value name="BOOL"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="variables_get" id="`uGP]?=P~lh#OS_o-Cz{"><field name="VAR" id="ts2-V)4s{U|CU0528Mn{">running</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="Yu]e]fG%1^-]Wi1g_kVv"><field name="VAR" id="ts2-V)4s{U|CU0528Mn{">running</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="logic_boolean" id="^)w3|)%Ob7jhojFp-9NN"><field name="BOOL">TRUE</field></block></value></block></statement></block></next></block></statement><next><block type="controls_if" id="cfSRFN?_i7S1Rw#nCkJD"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_operation" id="kc[;C4,27$ZiR?WAzIlP"><field name="OP">AND</field><value name="A"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="variables_get" id="02Q,=UL(oS,IJmCzZ9*,"><field name="VAR" id="ts2-V)4s{U|CU0528Mn{">running</field></block></value><value name="B"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="-=MEC,80(NC;#OJDe.p{"><field name="OP">GT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_acceleration" id="iDO0f^|jErJZWtnR:n^a"><field name="NAME">Dimension.Strength</field></block></value><value name="B"><shadow type="math_number" id="I@H^{%yasZj#ZJ`Nks7A"><field name="NUM">1000</field></shadow></value></block></value></block></value><statement name="DO0"><block type="variables_set" id="%hWtl{1:0PH6{04tRhwq"><field name="VAR" id="_xHwL^LXCxKwI9PiNLky">zeit_ms</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="*R-[!{T=+ImM/;mn~Hrn"><field name="OP">MINUS</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_get_running_time" id="^Z;?N],tr+:b:k^-.5)l"/></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="/#%lO9!#ya,l_jyEPOZ|"><field name="VAR" id="3/P-Lf6{^Z+|sxWy~`6T">zeitA_ms</field></block></value></block></value><next><block type="variables_set" id="LOebcPs*IJUbuq5?OPzz"><field name="VAR" id="ts2-V)4s{U|CU0528Mn{">running</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="logic_boolean" id="DpuP*@dr_oTHigd!}=RB"><field name="BOOL">FALSE</field></block></value><next><block type="variables_set" id="2%mtI9@|QmAy9^^W`o6o"><field name="VAR" id="ucQ`4O-?coKTZeTKUmmS">result</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="logic_boolean" id="(-}KCY^K};E}cjt~|4_n"><field name="BOOL">TRUE</field></block></value></block></next></block></next></block></statement><next><block type="controls_if" id="H9*$y%CBqZ_]#-:50iu~"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="variables_get" id=")8ItHYcBl$PeC8+RtcXL"><field name="VAR" id="ucQ`4O-?coKTZeTKUmmS">result</field></block></value><statement name="DO0"><block type="variables_set" id=":|i+M]:Ru|cY^+n(Fv[#"><field name="VAR" id="5.yv=CjxoSIlnwB4QgJK">h_m</field><comment pinned="false" h="80" w="160" relx="10" rely="10">basic.showNumber(zeit_ms)</comment><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id=":Q8l:/_rAp#$FQ#$3|qI"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="QF.@58rWkEp[Ip1W*BmK"><field name="OP">DIVIDE</field><value name="A"><shadow type="math_number" id="(Y*LkOfA$YP5{7$o??yN"><field name="NUM">9.81</field></shadow></value><value name="B"><shadow type="math_number" id=";H;4!bh_XjBEe34r+na4"><field name="NUM">2</field></shadow></value></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="^O[H.q4[R?Je^]WzZtFK"><field name="OP">POWER</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="8Slj44k.%hlHcX~Dxk]e"><field name="OP">DIVIDE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="Ij%i@2*$,Y1ESOa%Wdrs"><field name="VAR" id="_xHwL^LXCxKwI9PiNLky">zeit_ms</field></block></value><value name="B"><shadow type="math_number" id="Nn95+S:C5nMQ[rF]gKGL"><field name="NUM">1000</field></shadow></value></block></value><value name="B"><shadow type="math_number" id="|i$(l6i=%S4TSEJ6R%6T"><field name="NUM">2</field></shadow></value></block></value></block></value><next><block type="device_show_number" id="Zz1XvQD%RwB?sKJeG]S7"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="0" _input_init="false"></mutation><value name="number"><block type="variables_get" id=":S,6nd=t3PCx%WKx%rD`"><field name="VAR" id="5.yv=CjxoSIlnwB4QgJK">h_m</field></block></value></block></next></block></statement></block></next></block></next></block></statement></block></next></block></statement></block></statement></block><block type="function_definition" id="I,tY-6:pPavRbO(]5;6^" x="1171" y="20"><mutation name="Countdown" functionid="cy1:E+:Xe+MD*o2tYexL"/><field name="function_name">Countdown</field><statement name="STACK"><block type="variables_set" id="Eq[hWue[G}`c)Ov=/{KZ"><field name="VAR" id="@Fp2CQ^(le1bjdNvqn^e">sek</field><value name="VALUE"><shadow type="math_number" id="X30o6/MHOl4frM!3?ymV"><field name="NUM">3</field></shadow></value><next><block type="controls_repeat_ext" id="GtgJC|QMs?.vQ29OSK,f"><value name="TIMES"><shadow type="math_whole_number" id="kQ)q6#rm:csCV!8uCpq%"><field name="NUM">3</field></shadow></value><statement name="DO"><block type="device_play_note" id="`ftRpbRqhH:Sj,orR$@3"><value name="note"><shadow type="device_note" id="?@zBDWy~|[v)1@syaim)"><field name="name">262</field></shadow></value><value name="duration"><shadow type="device_beat" id="rzzT5Q-~6;g_6|#Y#Gc~"><field name="fraction">BeatFraction.Half</field></shadow></value><next><block type="device_show_number" id="~i;O%Wq(Z%VXST425)FT"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="0" _input_init="false"></mutation><value name="number"><block type="variables_get" id="PBGrD%R?:{PVVV,W^7T#"><field name="VAR" id="@Fp2CQ^(le1bjdNvqn^e">sek</field></block></value><next><block type="device_pause" id="R*=:i=!`[;@jWDPk?d[V"><value name="pause"><shadow type="timePicker" id="b{O`dcis6.tPuivwy(rJ"><field name="ms">1000</field></shadow></value><next><block type="variables_change" id="*_Z)A_Q[MKGbO!A~M!Yh"><field name="VAR" id="@Fp2CQ^(le1bjdNvqn^e">sek</field><value name="VALUE"><shadow type="math_number" id="[yLi5sIS*%Hr^-1iP_$`"><field name="NUM">-1</field></shadow></value></block></next></block></next></block></next></block></statement><next><block type="device_clear_display" id="u.[M6akq8k7.l9^M(k3W"><next><block type="device_play_note" id="aRZWFOkp+7ymV#h:la(P"><value name="note"><shadow type="device_note" id="ov3D!cFR$MXG0+[Z}%:)"><field name="name">392</field></shadow></value><value name="duration"><shadow type="device_beat" id="dwwCIr9[3:UeP*ktH-tt"><field name="fraction">BeatFraction.Half</field></shadow></value></block></next></block></next></block></next></block></statement></block><block type="controls_repeat_ext" id="I~+K?M:pEnZM;--*Q~c6" disabled="true" x="1808" y="20"><value name="TIMES"><shadow type="math_whole_number" id="*g..y5jLuU,4pB1?ZvcH" disabled="true"><field name="NUM">3</field></shadow></value></block><block type="variables_set" id="yEIY`d/#T.UY61Ul]6~q" disabled="true" x="20" y="1209"><field name="VAR" id="@Fp2CQ^(le1bjdNvqn^e">sek</field><value name="VALUE"><shadow type="math_number" id="DQdWC=ywx^zMdbR%1cmd" disabled="true"><field name="NUM">3</field></shadow></value></block></xml>