1 line
7.2 KiB
XML
1 line
7.2 KiB
XML
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="BTg46[n:9=f~6z@km=l_" x="0" y="0"><field name="VALUE">播放两只老虎\n\nD8连接蜂鸣器,D2连接按钮\n</field></block><block type="base_setup" id="5!B^0EYg?0C0#f*@{8z{" x="0" y="125"><statement name="DO"><block type="lists_create_with_text2" id="h?#Q]QJ]yXdC-ppyoeCn"><field name="TYPE">float</field><field name="VAR">tonelist</field><field name="SIZE">7</field><field name="TEXT">1046.5,1174.7,1318.5,1396.9,1568,1760,1975.5</field><next><block type="lists_create_with_text2" id="Pg+/Lsp6H1Evz{(Q=J]p"><field name="TYPE">long</field><field name="VAR">musiclist</field><field name="SIZE">32</field><field name="TEXT">1,2,3,1,1,2,3,1,3,4,5,3,4,5,5,6,5,4,3,1,5,6,5,4,3,1,2,5,1,2,5,1</field><next><block type="lists_create_with_text2" id="v!]1t/QtI}rI8S):ITgR"><field name="TYPE">long</field><field name="VAR">highlist</field><field name="SIZE">32</field><field name="TEXT">0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,0,-1,0</field><next><block type="lists_create_with_text2" id="F.-w]@W,W!n5/:#G~:6{"><field name="TYPE">long</field><field name="VAR">updownlist</field><field name="SIZE">32</field><field name="TEXT">0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</field><next><block type="lists_create_with_text2" id="=,D85~doSpi_ryIW,uC?"><field name="TYPE">float</field><field name="VAR">rhythmlist</field><field name="SIZE">32</field><field name="TEXT">1,1,1,1,1,1,1,1,1,1,2,1,1,2,0.5,0.5,0.5,0.5,1,1,0.5,0.5,0.5,0.5,1,1,1,1,2,1,1,2</field><next><block type="variables_declare" id=";~hmSlc(EoT?7-hb=YAq" inline="false"><field name="variables_type">global_variate</field><field name="VAR">speed</field><field name="TYPE">float</field><value name="VALUE"><block type="math_number" id="_W}oE,:D+;v+YW=4mHZh"><field name="NUM">120.0</field></block></value><next><block type="variables_declare" id="30(C~7Pkr(wLwPDgX,h7" inline="false"><field name="variables_type">global_variate</field><field name="VAR">updown</field><field name="TYPE">long</field><value name="VALUE"><block type="math_number" id="`r=qAC9]QgsPd=d{LxB*"><field name="NUM">0</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="procedures_defnoreturn" id=")|)GyTr|R/A,k,Gwt-cM" x="0" y="373"><field name="NAME">playmusic</field><statement name="STACK"><block type="controls_for" id=".|g*x?eJ[Q]I?Z``~S2x"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id="63#_8::N*q]s*{JTMfjO"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id="xFb:z`e{Q:`tqEdp{tc{"><field name="NUM">32</field></shadow></value><value name="STEP"><shadow type="math_number" id="s(x7%U5:fw/oct9.L@{l"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="controls_tone" id="vnM*~up,hobwn#m^JS.F"><value name="PIN"><shadow type="pins_digital" id="S^pr16CEK4[Oo|%~AVk3"><field name="PIN">8</field></shadow></value><value name="FREQUENCY"><shadow xmlns="http://www.w3.org/1999/xhtml" type="tone_notes" id="vf4.:8}6@~6b;;0L1j:)"><field name="STAT">131</field></shadow><block type="math_arithmetic" id="R0r=7mS#(yub|Nc{TTb/"><field name="OP">MULTIPLY</field><value name="A"><block type="math_arithmetic" id="[hRg%vMtDx_S4h+19tSR"><field name="OP">MULTIPLY</field><value name="A"><block type="lists_getIndex" id="wmz:Anl[IAG8e?;p3B)^"><field name="VAR">tonelist</field><value name="AT"><block type="lists_getIndex" id="%i}?Tj@pfd]JHUJfpv/-"><field name="VAR">musiclist</field><value name="AT"><block type="variables_get" id=":vzx`O{#fTDQYjP:}O^-"><field name="VAR">i</field></block></value></block></value></block></value><value name="B"><block type="math_arithmetic" id=".@J3~oiy?QEN!PDCHG#V"><field name="OP">POWER</field><value name="A"><block type="math_number" id="nhMn)u.YGGC%rs-Nh5%G"><field name="NUM">2</field></block></value><value name="B"><block type="lists_getIndex" id=".|%RLKN]+{sT`(_up@!t"><field name="VAR">highlist</field><value name="AT"><block type="variables_get" id="c[C}I}iMUm=twGMr7#!s"><field name="VAR">i</field></block></value></block></value></block></value></block></value><value name="B"><block type="math_arithmetic" id=";]p4`rCJ~,(o7d=WLF^V"><field name="OP">POWER</field><value name="A"><block type="math_number" id="].8o%#NKC[M3F3`HCb3f"><field name="NUM">2</field></block></value><value name="B"><block type="math_arithmetic" id="4W!/EVzF!q|%vTmmW+1!"><field name="OP">DIVIDE</field><value name="A"><block type="math_arithmetic" id="o|fEfT-14G0UdU)1)3t`"><field name="OP">ADD</field><value name="A"><block type="lists_getIndex" id="lS=37AXD9@gMH*3@_Z[m"><field name="VAR">updownlist</field><value name="AT"><block type="variables_get" id="Ovg8oYjWmN]ZUL;we;,S"><field name="VAR">i</field></block></value></block></value><value name="B"><block type="variables_get" id=",v=Mj!{95Dj2yevcW}+#"><field name="VAR">updown</field></block></value></block></value><value name="B"><block type="math_number" id="uG)S2L9Kj8%]N-kxW~Pu"><field name="NUM">12.0</field></block></value></block></value></block></value></block></value><next><block type="base_delay" id="QSY~0(TM#pejFtL{Q.3i"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="_-}%DpA|5]prJ3h2]ciM"><field name="NUM">1000</field></shadow><block type="math_arithmetic" id="8rLU{I;Nv.[`6xA2!Xj!"><field name="OP">MULTIPLY</field><value name="A"><block type="math_arithmetic" id="wWB0JyvrE?4EXSZ))Iw@"><field name="OP">MULTIPLY</field><value name="A"><block type="math_number" id="O!=wHh!.N-xF*dN.6_`P"><field name="NUM">1000</field></block></value><value name="B"><block type="math_arithmetic" id="j.gI*y[IDe8o-tMvVaW;"><field name="OP">DIVIDE</field><value name="A"><block type="math_number" id="~^{65d8;CQgnE}~FH=+L"><field name="NUM">60</field></block></value><value name="B"><block type="variables_get" id="Tt4l4Vwbp.ptR-+uH9}@"><field name="VAR">speed</field></block></value></block></value></block></value><value name="B"><block type="lists_getIndex" id="A)|QDJ3D)sA#foCl+}mi"><field name="VAR">rhythmlist</field><value name="AT"><block type="variables_get" id=")6*5o#7|whd(qM30ko#B"><field name="VAR">i</field></block></value></block></value></block></value><next><block type="controls_notone" id=")6)5n92:UzYn#bOh?E4-"><value name="PIN"><shadow type="pins_digital" id="+OE52a+h@;p3E@b/iDb^"><field name="PIN">8</field></shadow></value><next><block type="base_delay" id="P=jwM6WA*`k|S,(:nYvA"><field name="UNIT">delay</field><value name="DELAY_TIME"><block type="math_number" id="|)iFQYu6m4Qd0g^jo;/}"><field name="NUM">10</field></block></value></block></next></block></next></block></next></block></statement></block></statement></block><block type="controls_if" id="@r_Po72m6tufR=gxfzQv" x="0" y="726"><value name="IF0"><block type="inout_digital_read2" id="kpfuW]:gKZ2mMDMd9WIV"><value name="PIN"><shadow type="pins_digital" id="zjOT@3arj;U*);toIsDz"><field name="PIN">2</field></shadow></value></block></value><statement name="DO0"><block type="procedures_callnoreturn" id="bsiQzV[ymS|2clM}73i}"><mutation xmlns="http://www.w3.org/1999/xhtml" name="playmusic"></mutation></block></statement></block></xml> |