Files
mixly3/boards/default/micropython_esp32/examples/GDDbQRONNwNc/3vFWYZte86cV.mix
2024-07-21 09:30:11 +08:00

1 line
12 KiB
XML

<xml version="Mixly 2.0 Beta11" board="MixGo" xmlns="http://www.w3.org/1999/xhtml"><block type="lists_create_with" id="$y4FWLc|Itw995mWZis#" inline="true" x="555" y="-410"><mutation xmlns="http://www.w3.org/1999/xhtml" items="0"></mutation><field name="VAR">music_list</field><next><block type="controls_whileUntil" id="9y?h;LE1geFu(|wYeL*k"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="YK7Dc16/x8V3uWXzRSyT"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="controls_if" id="N}#)`qQQ$jo(-jO{gB.i"><value name="IF0"><block type="sensor_mixgo_pin_pressed" id="DLQ1)ZRV282mJNRx-Unc"><value name="button"><shadow type="number1" id="nvG2X{fK@WaFC]?-2ki5"><field name="op">touch1</field></shadow></value></block></value><statement name="DO0"><block type="esp32_music_pitch_with_time" id="l[d1+UZJ*jwBTj(}*osr"><value name="PIN"><shadow type="pins_pwm_pin" id="wvd=K+YPsGZ$bU)~^2yD"><field name="PIN">27</field></shadow></value><value name="pitch"><shadow type="pins_tone_notes" id="WBS#;b47rZ[_Uz7qfGNT"><field name="PIN">532</field></shadow></value><value name="time"><shadow type="math_number" id="7D0p4r;j[fR[#/yz}3Rc"><field name="NUM">500</field></shadow></value><next><block type="esp32_music_stop" id="$Rey2p/TMd~OiDrw:G]3"><value name="PIN"><shadow type="pins_pwm_pin" id="CZURC4#MJ1[8C{F{HgY("><field name="PIN">27</field></shadow></value><next><block type="lists_append_extend" id="H*~W*y))8ZzI8EmQ{0oC"><field name="OP">append</field><value name="LIST"><shadow xmlns="http://www.w3.org/1999/xhtml" type="variables_get" id="OR*%RY0W6N(hF0qsU,zN"><field name="VAR">mylist</field></shadow><block type="variables_get" id="0#g+/=*}gP}j^)Zb!lL`"><field name="VAR">music_list</field></block></value><value name="DATA"><shadow type="math_number" id="oX8CAh0iG]5Ln!+y:c4B"><field name="NUM">1</field></shadow></value></block></next></block></next></block></statement><next><block type="controls_if" id="z6;q:;S~{Qw^B]=xM5?v"><value name="IF0"><block type="sensor_mixgo_pin_pressed" id="dCzEKuhBow$9v?yg7Ylf"><value name="button"><shadow type="number1" id="=s|2y6SUXm9*D=h+B(ZO"><field name="op">touch2</field></shadow></value></block></value><statement name="DO0"><block type="esp32_music_pitch_with_time" id="|_l_*kti[Pz3F$H![SbL"><value name="PIN"><shadow type="pins_pwm_pin" id="6h_^2LkJhkM;+[Q@KiA3"><field name="PIN">27</field></shadow></value><value name="pitch"><shadow type="pins_tone_notes" id=",S.LX{57;f[YSXhT9{W/"><field name="PIN">587</field></shadow></value><value name="time"><shadow type="math_number" id="`}4bsvbtqC~|aC^Olu8@"><field name="NUM">500</field></shadow></value><next><block type="esp32_music_stop" id="mPs5If)b`Uknc-X+|2S_"><value name="PIN"><shadow type="pins_pwm_pin" id=":xSR2HmsP710*RoFr3j*"><field name="PIN">27</field></shadow></value><next><block type="lists_append_extend" id="@@lqrBFMWGFh_[KPBs1U"><field name="OP">append</field><value name="LIST"><shadow xmlns="http://www.w3.org/1999/xhtml" type="variables_get" id="OR*%RY0W6N(hF0qsU,zN"><field name="VAR">mylist</field></shadow><block type="variables_get" id="e:z17Q8^Bb^;gwW|HnX]"><field name="VAR">music_list</field></block></value><value name="DATA"><shadow type="math_number" id="CMTfcX#}0D-OpMB]nU[!"><field name="NUM">2</field></shadow></value></block></next></block></next></block></statement><next><block type="controls_if" id="jK/+6Un:%OUBXIlT|xa("><value name="IF0"><block type="sensor_mixgo_pin_pressed" id="I)OrJhOcy.ciwK99VD~+"><value name="button"><shadow type="number1" id="RuceDQbpMXhUO{,$KBA-"><field name="op">touch4</field></shadow></value></block></value><statement name="DO0"><block type="esp32_music_pitch_with_time" id=";PNB:FK]wgp[1xqU/NhI"><value name="PIN"><shadow type="pins_pwm_pin" id="PU%+Q=tL9uqO[h4@5cVY"><field name="PIN">27</field></shadow></value><value name="pitch"><shadow type="pins_tone_notes" id="RRD5^}rh9s*PwTMix7|~"><field name="PIN">659</field></shadow></value><value name="time"><shadow type="math_number" id="~M]o~_or?gPoGzyAklbD"><field name="NUM">500</field></shadow></value><next><block type="esp32_music_stop" id="@@I7pPvJv*ygM^$q;zv#"><value name="PIN"><shadow type="pins_pwm_pin" id="tW]ubsXyRF,QRMxCa1jm"><field name="PIN">27</field></shadow></value><next><block type="lists_append_extend" id="]doI%M9kV:c5r`!cGD{_"><field name="OP">append</field><value name="LIST"><shadow xmlns="http://www.w3.org/1999/xhtml" type="variables_get" id="OR*%RY0W6N(hF0qsU,zN"><field name="VAR">mylist</field></shadow><block type="variables_get" id="un3}u0K]}._,z]KWltBC"><field name="VAR">music_list</field></block></value><value name="DATA"><shadow type="math_number" id="kIWHC-ycvOdQDDIPbRZM"><field name="NUM">3</field></shadow></value></block></next></block></next></block></statement><next><block type="controls_if" id="EqSuh-^O;Wi1K}5X#|l("><value name="IF0"><block type="sensor_mixgo_pin_pressed" id="ze6WHxhI{FLyqF/%=.[~"><value name="button"><shadow type="number1" id="UWs;=InkV-K8x6TpI,Qt"><field name="op">touch3</field></shadow></value></block></value><statement name="DO0"><block type="esp32_music_pitch_with_time" id="Qww^ZFX@R|zuI!vu@Wb="><value name="PIN"><shadow type="pins_pwm_pin" id="MK98#[~[wO._.2ze3YK{"><field name="PIN">27</field></shadow></value><value name="pitch"><shadow type="pins_tone_notes" id="uGXNok%TCHv*C6``h|1K"><field name="PIN">698</field></shadow></value><value name="time"><shadow type="math_number" id="O[pFN=jt1y~PqNaq_ZFv"><field name="NUM">500</field></shadow></value><next><block type="esp32_music_stop" id="$9.)QU,m;BxYi)E@j,w;"><value name="PIN"><shadow type="pins_pwm_pin" id="A%w5^GW(/Vy4dH8N!~,7"><field name="PIN">27</field></shadow></value><next><block type="lists_append_extend" id="+v_..EVi*u*bkg3,cUQ)"><field name="OP">append</field><value name="LIST"><shadow xmlns="http://www.w3.org/1999/xhtml" type="variables_get" id="OR*%RY0W6N(hF0qsU,zN"><field name="VAR">mylist</field></shadow><block type="variables_get" id="8u:;F)GewgH}d%8)]pbj"><field name="VAR">music_list</field></block></value><value name="DATA"><shadow type="math_number" id="q9sVB!BpEu;-tSvgJ9ys"><field name="NUM">4</field></shadow></value></block></next></block></next></block></statement><next><block type="controls_if" id="Da+9)l[ZeKEa;pt/b.KM"><value name="IF0"><block type="sensor_mixgo_button_was_pressed" id="#ZiwsW*H{N4%@-(Wd6XK"><value name="btn"><shadow type="pins_button" id="Bor^0]#YTXuZ0cuoYMyN"><field name="PIN">button_a</field></shadow></value></block></value><statement name="DO0"><block type="display_scroll_string" id="[xctlAR$+0.4s83C^$MJ"><value name="data"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="1[:F;qKdNLBQkoKDWM^#"><field name="TEXT">Mixly</field></shadow><block type="number_to_text" id="iBWR4_/`hs({{m^f=n,u"><value name="VAR"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="LNd8Q#8ll1%IEmqQl+B="><field name="NUM">0</field></shadow><block type="variables_get" id=")e/?:Zsqf.-#+Bk^N#(`"><field name="VAR">music_list</field></block></value></block></value></block></statement><next><block type="controls_if" id="i_LV8/iJc5SRsKcJ+)44"><value name="IF0"><block type="sensor_mixgo_button_was_pressed" id="ul73.fR~!^[O.sSW;;ba"><value name="btn"><shadow type="pins_button" id="|)Qfsf[(X[rM*vv{1yGm"><field name="PIN">button_b</field></shadow></value></block></value><statement name="DO0"><block type="controls_forEach" id="x(#6!(a^jUR04u:Pvcu%"><value name="LIST"><shadow xmlns="http://www.w3.org/1999/xhtml" type="list_many_input"><field name="CONTENT">0,1,2,3</field></shadow><block type="variables_get" id="a7LPLxVJoO~oKf6J^SLP"><field name="VAR">music_list</field></block></value><value name="VAR"><shadow type="variables_get" id="5ZJ;zt;ZXKRFjQ23P93-"><field name="VAR">i</field></shadow></value><statement name="DO"><block type="procedures_callnoreturn" id="J,t|{IL3NW%}yblgf~[z"><mutation xmlns="http://www.w3.org/1999/xhtml" name="fmusic"><arg name="x"></arg></mutation><value name="ARG0"><block type="variables_get" id="@bX.e`no9HS{^U=Yd/.3"><field name="VAR">i</field></block></value><next><block type="esp32_music_stop" id="8Q8T.#*~F0mS?0QxT(TY"><value name="PIN"><shadow type="pins_pwm_pin" id="y7o{|]YL1YPEM4e]Asbn"><field name="PIN">27</field></shadow></value></block></next></block></statement><next><block type="lists_clear" id="mIYE|7eB|KSA|O$NLPHv"><value name="VAR"><shadow xmlns="http://www.w3.org/1999/xhtml" type="variables_get" id="(jdKK,{O:uUU:!iw`D;p"><field name="VAR">mylist</field></shadow><block type="variables_get" id="z5oPne@P:IC.%]Orf#}Q"><field name="VAR">music_list</field></block></value></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block><block type="procedures_defnoreturn" id="S?v/mqY2]E?gKbo7Qf3q" x="1246" y="-84"><mutation xmlns="http://www.w3.org/1999/xhtml"><arg name="x"></arg></mutation><field name="NAME">fmusic</field><statement name="STACK"><block type="controls_if" id="^v|+#2d#Tshxw|%-Q-R("><value name="IF0"><block type="logic_compare" id="6Y{kO50r4fb6dLR$t=th"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="%C(1=.;E@8Xpg!J%?[k6"><field name="VAR">x</field></block></value><value name="B"><block type="math_number" id="^!0wZ=81g=[@sP7y@VQ6"><field name="NUM">1</field></block></value></block></value><statement name="DO0"><block type="esp32_music_pitch_with_time" id="7LX_K1+x0)BvDL)kIYP%"><value name="PIN"><shadow type="pins_pwm_pin" id="B|{LfF`bzmW*RE,8i2@5"><field name="PIN">27</field></shadow></value><value name="pitch"><shadow type="pins_tone_notes" id="-9$t8r]$t3|PP2,!Tc|o"><field name="PIN">532</field></shadow></value><value name="time"><shadow type="math_number" id="D.g5!Xcyax/Iz0rEW`=5"><field name="NUM">500</field></shadow></value></block></statement><next><block type="controls_if" id="0TeyzM)hL,HrkIAlK$7["><value name="IF0"><block type="logic_compare" id="wF;I#!S;[iie848+:5,D"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="X1N`+Oo:c4`!4`3ws7_p"><field name="VAR">x</field></block></value><value name="B"><block type="math_number" id=":[WZ7g}2lP2UR|_zggtC"><field name="NUM">2</field></block></value></block></value><statement name="DO0"><block type="esp32_music_pitch_with_time" id="m!l~f#,2LVMI}v@J.cFg"><value name="PIN"><shadow type="pins_pwm_pin" id="a9uHp1t1`vFJqBj(?iCi"><field name="PIN">27</field></shadow></value><value name="pitch"><shadow type="pins_tone_notes" id="Zt!Trt%CWdv`.asCVU?~"><field name="PIN">587</field></shadow></value><value name="time"><shadow type="math_number" id="PlY{k;G[6KS048}W(o;-"><field name="NUM">500</field></shadow></value></block></statement><next><block type="controls_if" id="azMmHT/rr+UqiNVS.ISD"><value name="IF0"><block type="logic_compare" id="9`Z,g2;vrBH~$Hg|E0G#"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="$-tv?I_eN^.!9=/dE%1{"><field name="VAR">x</field></block></value><value name="B"><block type="math_number" id="Q}b(Uku5Xz$]*V9YezsZ"><field name="NUM">3</field></block></value></block></value><statement name="DO0"><block type="esp32_music_pitch_with_time" id="h7yq5.U@g%-U}FhJ#6^K"><value name="PIN"><shadow type="pins_pwm_pin" id="nyO?88J6B(WWc1T4K6)t"><field name="PIN">27</field></shadow></value><value name="pitch"><shadow type="pins_tone_notes" id="RHCAO=Z*c!7Q}BoAeAfV"><field name="PIN">659</field></shadow></value><value name="time"><shadow type="math_number" id="+(,~rV)tFkU3_|r^}2Hs"><field name="NUM">500</field></shadow></value></block></statement><next><block type="controls_if" id="*wD/t1E^^ieQjTq@O}_M"><value name="IF0"><block type="logic_compare" id="O:[p@iwppMd-J-Bx~0p0"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="!=cNatrL9,?J(E~japce"><field name="VAR">x</field></block></value><value name="B"><block type="math_number" id="+~xhsDb$2|bPgq^{#ig1"><field name="NUM">4</field></block></value></block></value><statement name="DO0"><block type="esp32_music_pitch_with_time" id="OilGV8I[E|C=5zmHDzOQ"><value name="PIN"><shadow type="pins_pwm_pin" id="BS7+P3$|::Lr#R6uMard"><field name="PIN">27</field></shadow></value><value name="pitch"><shadow type="pins_tone_notes" id="$z[)H~PV]TmmYY)0n`4n"><field name="PIN">698</field></shadow></value><value name="time"><shadow type="math_number" id="PDz#_*ScmOpaH2U.(yHd"><field name="NUM">500</field></shadow></value></block></statement></block></next></block></next></block></next></block></statement></block></xml>