Debian Codegraph @

online/static/samples/Vision Demos/AI Piano.xml

raw symbols SCIP
1 <xml xmlns="https://developers.google.com/blockly/xml">
2 <variables>
3 <variable id="@XqEZCd@#c$150r$I3-0">gesture</variable>
4 </variables>
5 <block type="add_mp_hands" id="h0s4:(vHme.s$0T4y^pd" x="25" y="-56">
6 <next>
7 <block type="add_piano" id="[T[0ST1JB02}KVYBpzE{">
8 <next>
9 <block type="controls_whileUntil" id=".{Z)z=N#scEFP4Cd]#kB">
10 <field name="MODE">WHILE</field>
11 <value name="BOOL">
12 <block type="logic_boolean" id="T%vh,hWbmX`rmg(.]Gaw">
13 <field name="BOOL">TRUE</field>
14 </block>
15 </value>
16 <statement name="DO">
17 <block type="controls_whileUntil" id="LybzStw}@KHxE`ZoC]:i">
18 <field name="MODE">WHILE</field>
19 <value name="BOOL">
20 <shadow type="logic_boolean" id="KY`gGNu|JG{hB/iAR+J$">
21 <field name="BOOL">TRUE</field>
22 </shadow>
23 <block type="ai_gesture_available" id="U7}P?p%~}lNaNTT/p{T4"></block>
24 </value>
25 <statement name="DO">
26 <block type="variables_set" id="SH#7EFUlxvul:[^|7q||">
27 <field name="VAR" id="@XqEZCd@#c$150r$I3-0">gesture</field>
28 <value name="VALUE">
29 <block type="ai_get_gesture" id="rytiZiTQflOL9HLLDh_p"></block>
30 </value>
31 <next>
32 <block type="controls_if" id="2;I.?M*_T6(TLAb(,Ypr">
33 <value name="IF0">
34 <block type="ai_check_gesture" id="]*S8qyPPtD@uJj7MjZzY">
35 <field name="gesturetype">INDEXFOLDED</field>
36 <value name="gesture">
37 <block type="variables_get" id="]iyDAnDRGVvO*NzC_,R}">
38 <field name="VAR" id="@XqEZCd@#c$150r$I3-0">gesture</field>
39 </block>
40 </value>
41 </block>
42 </value>
43 <statement name="DO0">
44 <block type="play_piano" id="OlU:,/f%JyKM-BWwIaq@">
45 <value name="NOTE">
46 <shadow type="text" id="%=ZblPD)G(T%%d-F(#ps">
47 <field name="TEXT">C#</field>
48 </shadow>
49 </value>
50 </block>
51 </statement>
52 <next>
53 <block type="controls_if" id="73~cUA8,(,N/l/ZaNk!W">
54 <value name="IF0">
55 <block type="ai_check_gesture" id="wQO;.l|:QYdbt}X)9^+H">
56 <field name="gesturetype">MIDDLEFOLDED</field>
57 <value name="gesture">
58 <block type="variables_get" id="6fMk`kC(iSN=]0?;Mn4=">
59 <field name="VAR" id="@XqEZCd@#c$150r$I3-0">gesture</field>
60 </block>
61 </value>
62 </block>
63 </value>
64 <statement name="DO0">
65 <block type="play_piano" id="#]3A-X3KrcM#8LIsIF]Y">
66 <value name="NOTE">
67 <shadow type="text" id="Vk%zNI#Ea[{E7#`){Q}y">
68 <field name="TEXT">D#</field>
69 </shadow>
70 </value>
71 </block>
72 </statement>
73 <next>
74 <block type="controls_if" id="pv;g{/-g.cNuTSHoWy;`">
75 <value name="IF0">
76 <block type="ai_check_gesture" id="o4OpH5j`*m#Z))KllWS)">
77 <field name="gesturetype">RINGFOLDED</field>
78 <value name="gesture">
79 <block type="variables_get" id="!AefHJE]xJL8~mm7wSL}">
80 <field name="VAR" id="@XqEZCd@#c$150r$I3-0">gesture</field>
81 </block>
82 </value>
83 </block>
84 </value>
85 <statement name="DO0">
86 <block type="play_piano" id="lVv4VLeW+~n*O{${lK.a">
87 <value name="NOTE">
88 <shadow type="text" id="HMT~Y3AtU9{L=.|uxSHe">
89 <field name="TEXT">F</field>
90 </shadow>
91 </value>
92 </block>
93 </statement>
94 <next>
95 <block type="controls_if" id="x@y7Xt;//,2xE{y2nOU!">
96 <value name="IF0">
97 <block type="ai_check_gesture" id="/+EF4h{RX%2[TJp!9vb`">
98 <field name="gesturetype">LITTLEFOLDED</field>
99 <value name="gesture">
100 <block type="variables_get" id="hh?2Sz=I.(+Y;LUFQ(Qs">
101 <field name="VAR" id="@XqEZCd@#c$150r$I3-0">gesture</field>
102 </block>
103 </value>
104 </block>
105 </value>
106 <statement name="DO0">
107 <block type="play_piano" id="56i*/lj[Sa5L8lQ%LR]@">
108 <value name="NOTE">
109 <shadow type="text" id="7%;5~?xzid~)d5~))n1(">
110 <field name="TEXT">F#</field>
111 </shadow>
112 </value>
113 </block>
114 </statement>
115 </block>
116 </next>
117 </block>
118 </next>
119 </block>
120 </next>
121 </block>
122 </next>
123 </block>
124 </statement>
125 <next>
126 <block type="wait_seconds" id="f*o+{~Od%}rD/R3RXOL$">
127 <field name="SECONDS">0.1</field>
128 </block>
129 </next>
130 </block>
131 </statement>
132 </block>
133 </next>
134 </block>
135 </next>
136 </block>
137 <description>
138 <![CDATA[<h2>Introduction</h2><p><br></p><p>AI is used to find positions of each finger, and determine whether they are folded or extended. Then each finger is used to simulate a piano key being played</p>]]>
139 </description>
140 </xml>