-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
7 lines (7 loc) · 6.06 KB
/
main.blocks
1
2
3
4
5
6
7
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="K*.!RvCpEJONd+4^Be(3">X</variable><variable id="G`^DKPDVZNHr!*ptrxh-">Y</variable></variables><block type="pxt-on-start" id="+FQm-_@D#6avYlNg;x(8" x="0" y="0"><statement name="HANDLER"><block type="variables_set" id="Fw5x=j+N$:Vt2e9I8g]X"><field name="VAR" id="K*.!RvCpEJONd+4^Be(3">X</field><value name="VALUE"><shadow type="math_number" id="Nh#$^Va=u3:amzqB,T%Y"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id=":OX+$i+-h,oYrzFXzlcu"><field name="VAR" id="G`^DKPDVZNHr!*ptrxh-">Y</field><value name="VALUE"><shadow type="math_number" id="w]@N}@Lfn|I,J7FFw#lg"><field name="NUM">0</field></shadow></value></block></next></block></statement></block><block type="device_forever" id="7b1dYD9)S8P78ptj:=5D" x="180" y="-7"><statement name="HANDLER"><block type="device_show_leds" id="m6|:qk]-pW:Y3Cd``s`Y"><field name="LEDS">`
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
`</field><next><block type="device_led_toggle" id="#^QcApKOV5Q4qXm%eVJ8"><value name="x"><shadow type="math_number_minmax"><mutation min="0" max="4" label="X" precision="1"></mutation><field name="SLIDER">2</field></shadow><block type="variables_get" id="WW;6lBB5-Jv/[Kdw^vtm"><field name="VAR" id="K*.!RvCpEJONd+4^Be(3">X</field></block></value><value name="y"><shadow type="math_number_minmax"><mutation min="0" max="4" label="Y" precision="1"></mutation><field name="SLIDER">2</field></shadow><block type="variables_get" id=",2[ETVK8`?~3$0sO}TSg"><field name="VAR" id="G`^DKPDVZNHr!*ptrxh-">Y</field></block></value><next><block type="controls_if" id="Bt_9]~A;W)d1|o%Azyfp"><mutation else="1"></mutation><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="device_get_button2" id="[QPnb~h|Ga9@^}nqw.3."><field name="NAME">Button.A</field></block></value><statement name="DO0"><block type="variables_change" id="G:Mn-kHhCC3Mmg;s()S3"><field name="VAR" id="G`^DKPDVZNHr!*ptrxh-">Y</field><value name="VALUE"><shadow type="math_number" id="BY2V3cD?}q~j.F!DWm7z"><field name="NUM">1</field></shadow></value><next><block type="soundExpression_playSoundEffect" id="ZLvbqhCoS5X8IKxnD{d/"><field name="mode">SoundExpressionPlayMode.UntilDone</field><value name="sound"><shadow type="soundExpression_createSoundEffect" id="{y8P6t#nP*$mGk#]Fh,k" inline="true"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="0" _input_init="true"></mutation><field name="waveShape">WaveShape.Sine</field><field name="effect">SoundExpressionEffect.None</field><field name="interpolation">InterpolationCurve.Linear</field><value name="startFrequency"><shadow type="math_number_minmax" id="rbVy2C8f-cb,.ATu/;K/"><mutation min="0" max="5000" label="StartFrequency" precision="0"></mutation><field name="SLIDER">5000</field></shadow></value><value name="endFrequency"><shadow type="math_number_minmax" id="^$O3.WTV}0XAXsZwFOu+"><mutation min="0" max="5000" label="EndFrequency" precision="0"></mutation><field name="SLIDER">0</field></shadow></value><value name="duration"><shadow type="math_number_minmax" id="ICP1{%G|,ZkSg25vb:3!"><mutation min="1" max="9999" label="Duration" precision="0"></mutation><field name="SLIDER">500</field></shadow></value><value name="startVolume"><shadow type="math_number_minmax" id="HV{q3Jx*2rubCkxRsO$;"><mutation min="0" max="255" label="StartVolume" precision="0"></mutation><field name="SLIDER">255</field></shadow></value><value name="endVolume"><shadow type="math_number_minmax" id="JYY5{j~csIpOw-_~;#DG"><mutation min="0" max="255" label="EndVolume" precision="0"></mutation><field name="SLIDER">0</field></shadow></value></shadow></value></block></next></block></statement><statement name="ELSE"><block type="controls_if" id="SYk(*Cpy9;s4Tp0:h`}_"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="device_get_button2" id="zz5Hvyk@Cj99t3vtJ/ud"><field name="NAME">Button.B</field></block></value><statement name="DO0"><block type="variables_change" id="!cqA1E*~t(Ul@Px3Illr"><field name="VAR" id="K*.!RvCpEJONd+4^Be(3">X</field><value name="VALUE"><shadow type="math_number" id="B__$.dybcj!5Xvcz{4a@"><field name="NUM">1</field></shadow></value><next><block type="soundExpression_playSoundEffect" id="|d!!wC/m5~be2IiUrAi/"><field name="mode">SoundExpressionPlayMode.UntilDone</field><value name="sound"><shadow type="soundExpression_createSoundEffect" id="Rr4a3]!%L(e{D3BPxBNq" inline="true"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="0" _input_init="true"></mutation><field name="waveShape">WaveShape.Noise</field><field name="effect">SoundExpressionEffect.None</field><field name="interpolation">InterpolationCurve.Linear</field><data>{"commentRefs":[],"fieldData":{"waveShape":"{\"interpolation\":\"linear\",\"effect\":\"none\",\"wave\":\"noise\",\"startVolume\":255,\"endVolume\":0,\"startFrequency\":500,\"endFrequency\":499,\"duration\":750}"}}</data><value name="startFrequency"><shadow type="math_number_minmax" id="mhtIJrs.k=}IBEIH[DXt"><mutation min="0" max="5000" label="StartFrequency" precision="0"></mutation><field name="SLIDER">500</field></shadow></value><value name="endFrequency"><shadow type="math_number_minmax" id="}t!JAMR9Ck`r^TX]Up0t"><mutation min="0" max="5000" label="EndFrequency" precision="0"></mutation><field name="SLIDER">499</field></shadow></value><value name="duration"><shadow type="math_number_minmax" id="`.9-s@e}R?Eq$Wx?cP4|"><mutation min="1" max="9999" label="Duration" precision="0"></mutation><field name="SLIDER">750</field></shadow></value><value name="startVolume"><shadow type="math_number_minmax" id="7}[rdpFG{egbvs^(ETMn"><mutation min="0" max="255" label="StartVolume" precision="0"></mutation><field name="SLIDER">255</field></shadow></value><value name="endVolume"><shadow type="math_number_minmax" id="a}wRs$x7NRs{(e_w487Q"><mutation min="0" max="255" label="EndVolume" precision="0"></mutation><field name="SLIDER">0</field></shadow></value></shadow></value></block></next></block></statement></block></statement></block></next></block></next></block></statement></block></xml>