text:
contactref element="USB" pad="D+"/>
<contactref element="R11" pad="1"/>
<wire x1="75.762" y1="9" x2="79.262" y2="12.5" width="0.2032" layer="1"/>
<wire x1="79.262" y1="12.5" x2="80.75" y2="12.5" width="0.2032" layer="1"/>
<wire x1="80.75" y1="12.5" x2="81.75" y2="13.5" width="0.2032" layer="1"/>
<wire x1="81.75" y1="13.5" x2="81.75" y2="15" width="0.2032" layer="1"/>
<wire x1="81.75" y1="15" x2="80.1938" y2="16.5562" width="0.2032" layer="1"/>
<wire x1="80.1938" y1="16.5562" x2="80.1938" y2="17.2573" width="0.2032" layer="1"/>
</signal>
<signal name="N$11">
<contactref element="USB" pad="D-"/>
<contactref element="R12" pad="1"/>
<wire x1="72" y1="12.262" x2="72.012" y2="12.25" width="0.2032" layer="1"/>
<wire x1="72.012" y1="12.25" x2="78.25" y2="12.25" width="0.2032" layer="1"/>
<wire x1="78.25" y1="12.25" x2="80.0569" y2="14.0569" width="0.2032" layer="1"/>
<wire x1="80.0569" y1="14.0569" x2="80.1938" y2="14.0569" width="0.2032" layer="1"/>
</signal>
<signal name="N$9">
<contactref element="U$6" pad="5"/>
<contactref element="C14" pad="1"/>
<wire x1="70.246" y1="8.413" x2="70.25" y2="8.417" width="0.2032" layer="1"/>
<wire x1="70.25" y1="8.417" x2="70.25" y2="9.75" width="0.2032" layer="1"/>
<wire x1="70.25" y1="9.75" x2="70.5" y2="10" width="0.2032" layer="1"/>
<wire x1="70.5" y1="10" x2="70.5" y2="10.738" width="0.2032" layer="1"/>
</signal>
<signal name="N$12">
<contactref element="USB" pad="VBUS"/>
<contactref element="L1" pad="1"/>
<wire x1="77.7046" y1="14.0569" x2="76.8977" y2="13.25" width="0.2032" layer="1"/>
<wire x1="76.8977" y1="13.25" x2="70" y2="13.25" width="0.2032" layer="1"/>
<wire x1="70" y1="13.25" x2="69.012" y2="12.262" width="0.2032" layer="1"/>
<wire x1="69.012" y1="12.262" x2="69" y2="12.262" width="0.2032" layer="1"/>
</signal>
<signal name="N$13">
<contactref element="U$6" pad="6"/>
<contactref element="L1" pad="2"/>
<wire x1="69.738" y1="8.413" x2="69.75" y2="8.425" width="0.2032" layer="1"/>
<wire x1="69.75" y1="8.425" x2="69.75" y2="9.5" width="0.2032" layer="1"/>
<wire x1="69.75" y1="9.5" x2="69" y2="10.25" width="0.2032" layer="1"/>
<wire x1="69" y1="10.25" x2="69" y2="10.738" width="0.2032" layer="1"/>
</signal>
<signal name="N$17">
<contactref element="R8" pad="2"/>
<contactref element="IC1" pad="2"/>
<contactref element="R1" pad="1"/>
<wire x1="79.5" y1="30.762" x2="82.238" y2="30.762" width="0.2032" layer="1"/>
<wire x1="82.238" y1="30.762" x2="82.5" y2="30.5" width="0.2032" layer="1"/>
<wire x1="82.5" y1="30.5" x2="82.5" y2="28.94" width="0.2032" layer="1"/>
<wire x1="82.5" y1="28.94" x2="82.46" y2="28.9" width="0.2032" layer="1"/>
<wire x1="82.46" y1="28.9" x2="82.46" y2="27.302" width="0.2032" layer="1"/>
<wire x1="82.46" y1="27.302" x2="83.262" y2="26.5" width="0.2032" layer="1"/>
<contactref element="C4" pad="2"/>
<wire x1="83.262" y1="25" x2="83.262" y2="26.5" width="0.2032" layer="1"/>
</signal>
<signal name="N$18">
<contactref element="R1" pad="2"/>
<contactref element="IC1" pad="1"/>
<contactref element="R7" pad="1"/>
<wire x1="81.19" y1="28.9" x2="81.19" y2="27.048" width="0.2032" layer="1"/>
<wire x1="81.19" y1="27.048" x2="81.738" y2="26.5" width="0.2032" layer="1"/>
<contactref element="C4" pad="1"/>
<wire x1="81.738" y1="26.5" x2="81.738" y2="25" width="0.2032" layer="1"/>
<wire x1="81.738" y1="25" x2="81.738" y2="23.5" width="0.2032" layer="1"/>
</signal>
<signal name="N$19">
<contactref element="R7" pad="2"/>
<contactref element="IC1" pad="6"/>
<contactref element="R3" pad="1"/>
<wire x1="87.54" y1="28.9" x2="87.54" y2="26.698" width="0.2032" layer="1"/>
<wire x1="87.54" y1="26.698" x2="87.738" y2="26.5" width="0.2032" layer="1"/>
<contactref element="C5" pad="2"/>
<wire x1="87.738" y1="25" x2="87.738" y2="26.5" width="0.2032" layer="1"/>
<wire x1="83.262" y1="23.5" x2="83.625" y2="23.5" width="0.2032" layer="1"/>
<wire x1="83.625" y1="23.5" x2="84.125" y2="24" width="0.2032" layer="1"/>
<wire x1="84.125" y1="24" x2="84.125" y2="24.5" width="0.2032" layer="1"/>
<wire x1="84.125" y1="24.5" x2="84.625" y2="25" width="0.2032" layer="1"/>
<wire x1="84.625" y1="25" x2="87.738" y2="25" width="0.2032" layer="1"/>
</signal>
<signal name="N$20">
<contactref element="R3" pad="2"/>
<contactref element="IC1" pad="7"/>
<contactref element="R5" pad="1"/>
<wire x1="88.81" y1="28.9" x2="88.81" y2="26.952" width="0.2032" layer="1"/>
<wire x1="88.81" y1="26.952" x2="89.262" y2="26.5" width="0.2032" layer="1"/>
<wire x1="88.81" y1="28.9" x2="90.838" y2="28.9" width="0.2032" layer="1"/>
<wire x1="90.838" y1="28.9" x2="91" y2="28.738" width="0.2032" layer="1"/>
<contactref element="C5" pad="1"/>
<wire x1="89.262" y1="25" x2="89.262" y2="26.5" width="0.2032" layer="1"/>
</signal>
<signal name="VEL">
<contactref element="R5" pad="2"/>
<contactref element="JP1" pad="1"/>
<wire x1="91" y1="30.262" x2="91.012" y2="30.262" width="0.2032" layer="1"/>
<wire x1="91.012" y1="30.262" x2="92.25" y2="31.5" width="0.2032" layer="1"/>
<wire x1="92.25" y1="31.5" x2="92.25" y2="32.75" width="0.2032" layer="1"/>
<wire x1="92.25" y1="32.75" x2="95" y2="35.5" width="0.2032" layer="1"/>
</signal>
<signal name="N$22">
<contactref element="R9" pad="2"/>
<contactref element="IC1" pad="13"/>
<contactref element="R2" pad="1"/>
<contactref element="R19" pad="2"/>
<wire x1="82.46" y1="34.1" x2="82.46" y2="36.198" width="0.2032" layer="1"/>
<wire x1="82.46" y1="36.198" x2="82.5" y2="36.738" width="0.2032" layer="1"/>
<contactref element="C6" pad="2"/>
<wire x1="77.988" y1="35.25" x2="78.012" y2="35.25" width="0.2032" layer="1"/>
<wire x1="78.012" y1="35.25" x2="79.5" y2="33.762" width="0.2032" layer="1"/>
<wire x1="79.5" y1="33.762" x2="79.5" y2="33.738" width="0.2032" layer="1"/>
<wire x1="79.5" y1="33.738" x2="78" y2="32.238" width="0.2032" layer="1"/>
<wire x1="79.5" y1="33.762" x2="79.5" y2="33.75" width="0.2032" layer="1"/>
<wire x1="79.5" y1="33.75" x2="80.375" y2="32.875" width="0.2032" layer="1"/>
<wire x1="80.375" y1="32.875" x2="80.375" y2="32.625" width="0.2032" layer="1"/>
<wire x1="80.375" y1="32.625" x2="80.75" y2="32.25" width="0.2032" layer="1"/>
<wire x1="80.75" y1="32.25" x2="82" y2="32.25" width="0.2032" layer="1"/>
<wire x1="82" y1="32.25" x2="82.46" y2="32.71" width="0.2032" layer="1"/>
<wire x1="82.46" y1="34.1" x2="82.46" y2="32.71" width="0.2032" layer="1"/>
</signal>
<signal name="N$23">
<contactref element="IC1" pad="14"/>
<contactref element="R10" pad="1"/>
<contactref element="SCALE" pad="2"/>
<contactref element="SCALE" pad="1"/>
<wire x1="81.19" y1="34.1" x2="81.19" y2="35.125" width="0.2032" layer="1"/>
<wire x1="81.19" y1="35.125" x2="81.19" y2="36.94" width="0.2032" layer="1"/>
<wire x1="81.19" y1="36.94" x2="81.75" y2="37.5" width="0.2032" layer="1"/>
<wire x1="81.75" y1="37.5" x2="83.5" y2="37.5" width="0.2032" layer="1"/>
<wire x1="83.5" y1="37.5" x2="84.238" y2="37.5" width="0.2032" layer="1"/>
<wire x1="84.238" y1="37.5" x2="84.738" y2="38" width="0.2032" layer="1"/>
<wire x1="85.175" y1="36" x2="84.175" y2="37" width="0.2032" layer="16"/>
<wire x1="84.175" y1="37" x2="83.5" y2="37" width="0.2032" layer="16"/>
<via x="83.5" y="37" extent="1-16" drill="0.3048"/>
<wire x1="83.5" y1="37" x2="83.5" y2="37.5" width="0.2032" layer="1"/>
<wire x1="85.175" y1="36" x2="86.175" y2="37" width="0.2032" layer="16"/>
<wire x1="86.175" y1="37" x2="88.5" y2="37" width="0.2032" layer="16"/>
<contactref element="C6" pad="1"/>
<wire x1="79.512" y1="35.25" x2="81.065" y2="35.25" width="0.2032" layer="1"/>
<wire x1="81.065" y1="35.25" x2="81.19" y2="35.125" width="0.2032" layer="1"/>
</signal>
<signal name="N$24">
<contactref element="R10" pad="2"/>
<contactref element="IC1" pad="9"/>
<contactref element="R4" pad="1"/>
<wire x1="87.54" y1="34.1" x2="87.54" y2="36.302" width="0.2032" layer="1"/>
<wire x1="87.54" y1="36.302" x2="87.738" y2="36.5" width="0.2032" layer="1"/>
<wire x1="87.75" y1="36.512" x2="87.738" y2="36.5" width="0.2032" layer="1"/>
<contactref element="C22" pad="2"/>
<wire x1="87.75" y1="36.512" x2="87.738" y2="36.512" width="0.2032" layer="1"/>
<wire x1="87.738" y1="36.512" x2="87.738" y2="38" width="0.2032" layer="1"/>
<wire x1="87.738" y1="38" x2="86.262" y2="38" width="0.2032" layer="1"/>
</signal>
<signal name="N$25">
<contactref element="R4" pad="2"/>
<contactref element="IC1" pad="8"/>
<contactref element="R6" pad="1"/>
<wire x1="88.81" y1="34.1" x2="88.81" y2="36.048" width="0.2032" layer="1"/>
<wire x1="88.81" y1="36.048" x2="89.262" y2="36.5" width="0.2032" layer="1"/>
<wire x1="88.81" y1="34.1" x2="90.838" y2="34.1" width="0.2032" layer="1"/>
<wire x1="90.838" y1="34.1" x2="91" y2="34.262" width="0.2032" layer="1"/>
<contactref element="C22" pad="1"/>
<wire x1="89.262" y1="36.5" x2="89.262" y2="38" width="0.2032" layer="1"/>
</signal>
<signal name="SWDIO_KL26">
<contactref element="SWD2" pad="2"/>
<contactref element="U$6" pad="13"/>
<wire x1="68.087" y1="5.746" x2="67.496" y2="5.746" width="0.2032" layer="1"/>
<wire x1="67.496" y1="5.746" x2="66.25" y2="4.5" width="0.2032" layer="1"/>
<wire x1="66.25" y1="4.5" x2="63.25" y2="4.5" width="0.2032" layer="1"/>
<wire x1="63.25" y1="4.5" x2="62.5" y2="3.75" width="0.2032" layer="1"/>
<wire x1="62.5" y1="3.75" x2="62.5" y2="2" width="0.2032" layer="1"/>
<via x="62.5" y="2" extent="1-16" drill="0.3048"/>
<wire x1="62.5" y1="2" x2="62.5" y2="1.96" width="0.2032" layer="16"/>
</signal>
<signal name="SWCLK_KL26">
<contactref element="SWD2" pad="4"/>
<contactref element="U$6" pad="10"/>
<wire x1="68.087" y1="7.2446" x2="67.2446" y2="7.2446" width="0.2032" layer="1"/>
<wire x1="67.2446" y1="7.2446" x2="67" y2="7" width="0.2032" layer="1"/>
<wire x1="67" y1="7" x2="67" y2="6" width="0.2032" layer="1"/>
<wire x1="67" y1="6" x2="66" y2="5" width="0.2032" layer="1"/>
<wire x1="66" y1="5" x2="62.5" y2="5" width="0.2032" layer="1"/>
<wire x1="62.5" y1="5" x2="61.5" y2="4" width="0.2032" layer="1"/>
<wire x1="61.5" y1="4" x2="61.5" y2="3.25" width="0.2032" layer="1"/>
<via x="61.5" y="3.25" extent="1-16" drill="0.3048"/>
<wire x1="62.5" y1="3.23" x2="62.48" y2="3.25" width="0.2032" layer="16"/>
<wire x1="62.48" y1="3.25" x2="61.5" y2="3.25" width="0.2032" layer="16"/>
</signal>
<signal name="MIDI_OUT">
<contactref element="U$6" pad="30"/>
<contactref element="IC2" pad="5"/>
<wire x1="46.77" y1="2.4266" x2="46.75" y2="2.4466" width="0.2032" layer="1"/>
<wire x1="46.75" y1="2.4466" x2="46.75" y2="3.5" width="0.2032" layer="1"/>
<wire x1="46.75" y1="3.5" x2="47" y2="3.75" width="0.2032" layer="1"/>
<wire x1="47" y1="3.75" x2="60.625" y2="3.75" width="0.2032" layer="1"/>
<wire x1="62.5" y1="13.75" x2="68.5" y2="19.75" width="0.2032" layer="1"/>
<wire x1="73.625" y1="19.75" x2="75.25" y2="18.125" width="0.2032" layer="1"/>
<wire x1="68.5" y1="19.75" x2="73.625" y2="19.75" width="0.2032" layer="1"/>
<wire x1="75.25" y1="11.625" x2="75.25" y2="10.625" width="0.2032" layer="1"/>
<wire x1="75.25" y1="13.875" x2="75.25" y2="11.625" width="0.2032" layer="16"/>
<wire x1="75.25" y1="18.125" x2="75.25" y2="13.875" width="0.2032" layer="1"/>
<via x="75.25" y="11.625" extent="1-16" drill="0.3048"/>
<via x="75.25" y="13.875" extent="1-16" drill="0.3048"/>
<wire x1="73" y1="6.75" x2="72.913" y2="6.762" width="0.2032" layer="1"/>
<wire x1="73" y1="6.75" x2="75.125" y2="6.75" width="0.2032" layer="1"/>
<wire x1="75.125" y1="6.75" x2="75.625" y2="6.25" width="0.2032" layer="1"/>
<via x="75.625" y="6.25" extent="1-16" drill="0.3048"/>
<wire x1="75.625" y1="6.25" x2="75.625" y2="10" width="0.2032" layer="16"/>
<wire x1="75.625" y1="10" x2="75.75" y2="10.125" width="0.2032" layer="16"/>
<via x="75.75" y="10.125" extent="1-16" drill="0.3048"/>
<wire x1="75.75" y1="10.125" x2="75.25" y2="10.625" width="0.2032" layer="1"/>
<wire x1="60.625" y1="3.75" x2="62" y2="5.125" width="0.2032" layer="1"/>
<wire x1="62" y1="5.125" x2="62" y2="8.25" width="0.2032" layer="1"/>
<wire x1="62" y1="8.25" x2="61.375" y2="8.875" width="0.2032" layer="1"/>
<wire x1="61.375" y1="8.875" x2="61.375" y2="11.125" width="0.2032" layer="1"/>
<wire x1="61.375" y1="11.125" x2="62.5" y2="12.25" width="0.2032" layer="1"/>
<wire x1="62.5" y1="12.25" x2="62.5" y2="13.75" width="0.2032" layer="1"/>
</signal>
<signal name="MIDI_IN">
<contactref element="U$6" pad="29"/>
<contactref element="U$9" pad="6"/>
<contactref element="R17" pad="2"/>
<contactref element="IC2" pad="1"/>
<wire x1="23.95" y1="1.92" x2="25.37" y2="0.5" width="0.2032" layer="1"/>
<wire x1="25.37" y1="0.5" x2="31.25" y2="0.5" width="0.2032" layer="1"/>
<wire x1="31.25" y1="0.5" x2="32.988" y2="2.238" width="0.2032" layer="1"/>
<wire x1="32.988" y1="2.238" x2="33" y2="2.238" width="0.2032" layer="1"/>
<wire x1="33" y1="2.238" x2="33.1886" y2="2.4266" width="0.2032" layer="1"/>
<wire x1="33.1886" y1="2.4266" x2="41.69" y2="2.4266" width="0.2032" layer="1"/>
<wire x1="41.69" y1="2.4266" x2="41.69" y2="1.31" width="0.2032" layer="1"/>
<wire x1="41.69" y1="1.31" x2="42.25" y2="0.75" width="0.2032" layer="1"/>
<wire x1="42.25" y1="0.75" x2="64.75" y2="0.75" width="0.2032" layer="1"/>
<wire x1="64.75" y1="0.75" x2="65" y2="0.5" width="0.2032" layer="1"/>
<wire x1="65" y1="0.5" x2="76.25" y2="0.5" width="0.2032" layer="1"/>
<wire x1="76.25" y1="0.5" x2="76.5" y2="0.75" width="0.2032" layer="1"/>
<wire x1="75.75" y1="3.75" x2="75.75" y2="5" width="0.2032" layer="1"/>
<wire x1="75.75" y1="5" x2="74.5" y2="6.25" width="0.2032" layer="1"/>
<wire x1="74.5" y1="6.25" x2="72.917" y2="6.25" width="0.2032" layer="1"/>
<wire x1="72.917" y1="6.25" x2="72.913" y2="6.254" width="0.2032" layer="1"/>
<wire x1="75.75" y1="3.75" x2="76.25" y2="3.25" width="0.2032" layer="1"/>
<wire x1="76.25" y1="3.25" x2="76.25" y2="2.5" width="0.2032" layer="1"/>
<wire x1="76.25" y1="2.5" x2="76.5" y2="2.25" width="0.2032" layer="1"/>
<wire x1="76.5" y1="2.25" x2="76.5" y2="0.75" width="0.2032" layer="1"/>
</signal>
<signal name="KL26_TO_MK20">
<contactref element="U$6" pad="32"/>
<wire x1="72.913" y1="7.7526" x2="76.1276" y2="7.7526" width="0.2032" layer="1"/>
<wire x1="76.1276" y1="7.7526" x2="76.875" y2="8.5" width="0.2032" layer="1"/>
<wire x1="76.875" y1="8.5" x2="76.875" y2="9.125" width="0.2032" layer="1"/>
<wire x1="76.875" y1="9.125" x2="79" y2="11.25" width="0.2032" layer="1"/>
<wire x1="79" y1="11.25" x2="81.5" y2="11.25" width="0.2032" layer="1"/>
<wire x1="81.5" y1="11.25" x2="82.75" y2="12.5" width="0.2032" layer="1"/>
<wire x1="82.75" y1="12.5" x2="82.75" y2="17.625" width="0.2032" layer="1"/>
<wire x1="82.75" y1="17.625" x2="81.125" y2="19.25" width="0.2032" layer="1"/>
<wire x1="81.125" y1="19.25" x2="75.375" y2="19.25" width="0.2032" layer="1"/>
<wire x1="75.375" y1="19.25" x2="73.875" y2="20.75" width="0.2032" layer="1"/>
<wire x1="73.875" y1="20.75" x2="68.125" y2="20.75" width="0.2032" layer="1"/>
<wire x1="68.125" y1="20.75" x2="65.375" y2="18" width="0.2032" layer="1"/>
<wire x1="65.375" y1="18" x2="60.25" y2="18" width="0.2032" layer="1"/>
<wire x1="60.25" y1="18" x2="59.25" y2="17" width="0.2032" layer="1"/>
<wire x1="59.25" y1="17" x2="56.75" y2="17" width="0.2032" layer="1"/>
<wire x1="56.75" y1="17" x2="55.75" y2="18" width="0.2032" layer="1"/>
<wire x1="55.75" y1="18" x2="52.25" y2="18" width="0.2032" layer="1"/>
<contactref element="MCU" pad="2"/>
<wire x1="48.77688125" y1="21.819884375" x2="50" y2="20.596765625" width="0.2032" layer="1"/>
<wire x1="50" y1="20.596765625" x2="50" y2="20.25" width="0.2032" layer="1"/>
<wire x1="50" y1="20.25" x2="52.25" y2="18" width="0.2032" layer="1"/>
</signal>
<signal name="MK20_TO_KL26">
<contactref element="U$6" pad="31"/>
<wire x1="50.25" y1="17.5" x2="55.625" y2="17.5" width="0.2032" layer="1"/>
<wire x1="55.625" y1="17.5" x2="56.625" y2="16.5" width="0.2032" layer="1"/>
<wire x1="56.625" y1="16.5" x2="59.375" y2="16.5" width="0.2032" layer="1"/>
<wire x1="59.375" y1="16.5" x2="60.5" y2="17.625" width="0.2032" layer="1"/>
<wire x1="60.5" y1="17.625" x2="65.625" y2="17.625" width="0.2032" layer="1"/>
<wire x1="65.625" y1="17.625" x2="68.25" y2="20.25" width="0.2032" layer="1"/>
<wire x1="50.25" y1="17.5" x2="48.423328125" y2="19.326671875" width="0.2032" layer="1"/>
<wire x1="68.25" y1="20.25" x2="73.75" y2="20.25" width="0.2032" layer="1"/>
<wire x1="73.75" y1="20.25" x2="75.25" y2="18.75" width="0.2032" layer="1"/>
<wire x1="75.25" y1="18.75" x2="80.875" y2="18.75" width="0.2032" layer="1"/>
<wire x1="80.875" y1="18.75" x2="82.25" y2="17.375" width="0.2032" layer="1"/>
<wire x1="82.25" y1="17.375" x2="82.25" y2="12.875" width="0.2032" layer="1"/>
<wire x1="82.25" y1="12.875" x2="81.375" y2="12" width="0.2032" layer="1"/>
<via x="81.375" y="12" extent="1-16" drill="0.3048"/>
<wire x1="81.375" y1="12" x2="81.375" y2="10.625" width="0.2032" layer="16"/>
<via x="81.375" y="10.625" extent="1-16" drill="0.3048"/>
<wire x1="81.375" y1="10.625" x2="79" y2="10.625" width="0.2032" layer="1"/>
<wire x1="79" y1="10.625" x2="77.375" y2="9" width="0.2032" layer="1"/>
<wire x1="77.375" y1="9" x2="77.375" y2="8.375" width="0.2032" layer="1"/>
<wire x1="77.375" y1="8.375" x2="76.25" y2="7.25" width="0.2032" layer="1"/>
<wire x1="76.25" y1="7.25" x2="72.9184" y2="7.25" width="0.2032" layer="1"/>
<wire x1="72.9184" y1="7.25" x2="72.913" y2="7.2446" width="0.2032" layer="1"/>
<contactref element="MCU" pad="1"/>
<wire x1="48.423328125" y1="21.46633125" x2="48.423328125" y2="19.326671875" width="0.2032" layer="1"/>
</signal>
<signal name="RESET_KL26">
<contactref element="SWD2" pad="10"/>
<contactref element="U$6" pad="19"/>
<contactref element="R13" pad="1"/>
<wire x1="69.738" y1="3.587" x2="69.738" y2="2.762" width="0.2032" layer="1"/>
<wire x1="69.738" y1="2.762" x2="70.75" y2="1.75" width="0.2032" layer="1"/>
<wire x1="70.75" y1="1.75" x2="71" y2="1.75" width="0.2032" layer="1"/>
<via x="71" y="1.75" extent="1-16" drill="0.3048"/>
<wire x1="71" y1="1.75" x2="71" y2="3.25" width="0.2032" layer="16"/>
<wire x1="71" y1="3.25" x2="70.25" y2="4" width="0.2032" layer="16"/>
<wire x1="70.25" y1="4" x2="67.5" y2="4" width="0.2032" layer="16"/>
<wire x1="67.5" y1="4" x2="65.75" y2="5.75" width="0.2032" layer="16"/>
<via x="65.75" y="5.75" extent="1-16" drill="0.3048"/>
<wire x1="65.75" y1="5.75" x2="65.488" y2="5.75" width="0.2032" layer="1"/>
<wire x1="65.488" y1="5.75" x2="64.5" y2="6.738" width="0.2032" layer="1"/>
<wire x1="62.5" y1="7.04" x2="64.46" y2="7.04" width="0.2032" layer="16"/>
<wire x1="64.46" y1="7.04" x2="65.75" y2="5.75" width="0.2032" layer="16"/>
</signal>
<signal name="N$21">
<contactref element="U$6" pad="18"/>
<contactref element="X1" pad="1"/>
<contactref element="C17" pad="2"/>
<wire x1="69.2554" y1="3.587" x2="69.25" y2="3.5816" width="0.2032" layer="1"/>
<wire x1="69.25" y1="3.5816" x2="69.25" y2="2.5" width="0.2032" layer="1"/>
<wire x1="69.25" y1="2.5" x2="70.75" y2="1" width="0.2032" layer="1"/>
<wire x1="71.988" y1="1.25" x2="72.5" y2="1.25" width="0.2032" layer="1"/>
<via x="72.5" y="1.25" extent="1-16" drill="0.3048"/>
<wire x1="72.5" y1="1.25" x2="72.75" y2="2" width="0.2032" layer="16"/>
<wire x1="72.75" y1="2" x2="73.159" y2="2" width="0.2032" layer="16"/>
<wire x1="71.988" y1="1.25" x2="71.75" y2="1.25" width="0.2032" layer="1"/>
<wire x1="71.75" y1="1.25" x2="71.5" y2="1" width="0.2032" layer="1"/>
<wire x1="71.5" y1="1" x2="70.75" y2="1" width="0.2032" layer="1"/>
</signal>
<signal name="N$26">
<contactref element="U$6" pad="17"/>
<contactref element="X1" pad="2"/>
<contactref element="C18" pad="2"/>
<wire x1="67.762" y1="1.5" x2="68.75" y2="1.5" width="0.2032" layer="1"/>
<via x="68.75" y="1.5" extent="1-16" drill="0.3048"/>
<wire x1="68.75" y1="1.5" x2="69" y2="1.5" width="0.2032" layer="16"/>
<wire x1="68.7474" y1="3.587" x2="68.75" y2="3.5844" width="0.2032" layer="1"/>
<wire x1="68.75" y1="3.5844" x2="68.75" y2="1.5" width="0.2032" layer="1"/>
<wire x1="68.75" y1="1.5" x2="68.841" y2="1.591" width="0.2032" layer="16"/>
<wire x1="68.841" y1="1.591" x2="68.841" y2="2" width="0.2032" layer="16"/>
</signal>
<signal name="N$28">
<contactref element="IN" pad="5"/>
<contactref element="L2" pad="1"/>
<wire x1="16.475" y1="13.525" x2="16.475" y2="8.263" width="0.8128" layer="1"/>
<wire x1="16.475" y1="8.263" x2="17.238" y2="7.5" width="0.8128" layer="1"/>
</signal>
<signal name="N$29">
<contactref element="IN" pad="4"/>
<contactref element="L3" pad="1"/>
<wire x1="11.525" y1="13.525" x2="11.5" y2="13.525" width="0.2032" layer="1"/>
<wire x1="11.5" y1="13.525" x2="11.5" y2="8.262" width="0.8128" layer="1"/>
</signal>
<signal name="N$30">
<contactref element="THROUGH" pad="5"/>
<contactref element="L4" pad="1"/>
<wire x1="60.475" y1="13.525" x2="60.475" y2="8.287" width="0.8128" layer="1"/>
<wire x1="60.475" y1="8.287" x2="61" y2="7.762" width="0.8128" layer="1"/>
</signal>
<signal name="N$31">
<contactref element="THROUGH" pad="4"/>
<contactref element="L5" pad="1"/>
<wire x1="55.525" y1="13.525" x2="55.525" y2="8.287" width="0.8128" layer="1"/>
<wire x1="55.525" y1="8.287" x2="55" y2="7.762" width="0.8128" layer="1"/>
</signal>
<signal name="N$32">
<contactref element="OUT" pad="5"/>
<contactref element="L6" pad="1"/>
<wire x1="38.475" y1="13.525" x2="38.475" y2="7.787" width="0.8128" layer="1"/>
<wire x1="38.475" y1="7.787" x2="38.762" y2="7.5" width="0.8128" layer="1"/>
</signal>
<signal name="N$33">
<contactref element="OUT" pad="4"/>
<contactref element="L7" pad="1"/>
<wire x1="33.525" y1="13.525" x2="33.525" y2="7.787" width="0.8128" layer="1"/>
<wire x1="33.525" y1="7.787" x2="33.238" y2="7.5" width="0.8128" layer="1"/>
</signal>
<signal name="N$34">
<contactref element="D5" pad="-"/>
<contactref element="U$9" pad="2"/>
<contactref element="R16" pad="1"/>
<wire x1="18" y1="2.54" x2="18" y2="1.849" width="0.2032" layer="1"/>
<wire x1="18" y1="1.849" x2="17.889" y2="1.738" width="0.2032" layer="1"/>
<wire x1="17.889" y1="1.738" x2="16" y2="1.738" width="0.2032" layer="1"/>
<wire x1="18" y1="2.54" x2="26.42" y2="10.96" width="0.2032" layer="1"/>
<wire x1="26.42" y1="10.96" x2="26.42" y2="11.46" width="0.2032" layer="1"/>
</signal>
<signal name="N$35">
<contactref element="U$9" pad="3"/>
<contactref element="D5" pad="+"/>
<contactref element="L2" pad="2"/>
<wire x1="18" y1="5.151" x2="18.762" y2="5.913" width="0.2032" layer="1"/>
<wire x1="18.762" y1="5.913" x2="18.762" y2="7.5" width="0.2032" layer="1"/>
<wire x1="20.42" y1="7.5" x2="18.762" y2="7.5" width="0.2032" layer="1"/>
<wire x1="20.42" y1="7.5" x2="23.88" y2="10.96" width="0.2032" layer="1"/>
<wire x1="23.88" y1="10.96" x2="23.88" y2="11.46" width="0.2032" layer="1"/>
</signal>
<signal name="N$36">
<contactref element="L3" pad="2"/>
<contactref element="R16" pad="2"/>
<wire x1="11.5" y1="6.738" x2="11.5" y2="5" width="0.2032" layer="1"/>
<wire x1="11.5" y1="5" x2="13" y2="3.5" width="0.2032" layer="1"/>
<wire x1="13" y1="3.5" x2="15.762" y2="3.5" width="0.2032" layer="1"/>
<wire x1="15.762" y1="3.5" x2="16" y2="3.262" width="0.2032" layer="1"/>
</signal>
<signal name="N$37">
<contactref element="IC2" pad="2"/>
<contactref element="IC2" pad="3"/>
<wire x1="44.23" y1="2.4266" x2="42.96" y2="2.4266" width="0.2032" layer="1"/>
</signal>
<signal name="N$38">
<contactref element="IC2" pad="6"/>
<contactref element="IC2" pad="9"/>
<wire x1="48.04" y1="2.4266" x2="47.9666" y2="2.5" width="0.2032" layer="1"/>
<wire x1="47.9666" y1="2.5" x2="47.75" y2="2.5" width="0.2032" layer="1"/>
<via x="47.75" y="2.5" extent="1-16" drill="0.3048"/>
<wire x1="47.75" y1="2.5" x2="47.75" y2="5.5" width="0.2032" layer="16"/>
<via x="47.75" y="5.5" extent="1-16" drill="0.3048"/>
<wire x1="47.75" y1="5.5" x2="48.04" y2="5.79" width="0.2032" layer="1"/>
<wire x1="48.04" y1="5.79" x2="48.04" y2="8.5734" width="0.2032" layer="1"/>
</signal>
<signal name="MIDI_THROUGH_BUFFER">
<contactref element="IC2" pad="4"/>
<contactref element="R23" pad="1"/>
<wire x1="45.5" y1="2.4266" x2="45.5" y2="3.75" width="0.2032" layer="1"/>
<wire x1="45.5" y1="3.75" x2="46" y2="4.25" width="0.2032" layer="1"/>
<wire x1="46" y1="4.25" x2="55.5" y2="4.25" width="0.2032" layer="1"/>
<wire x1="55.5" y1="4.25" x2="57.25" y2="6" width="0.2032" layer="1"/>
<wire x1="57.25" y1="6" x2="57.738" y2="6" width="0.2032" layer="1"/>
</signal>
<signal name="MIDI_OUT_BUFFER">
<contactref element="IC2" pad="8"/>
<contactref element="R21" pad="1"/>
<wire x1="38.762" y1="6" x2="40.75" y2="6" width="0.2032" layer="1"/>
<via x="40.75" y="6" extent="1-16" drill="0.3048"/>
<wire x1="40.75" y1="6" x2="42" y2="4.75" width="0.2032" layer="16"/>
<via x="42" y="4.75" extent="1-16" drill="0.3048"/>
<wire x1="42" y1="4.75" x2="48.5" y2="4.75" width="0.2032" layer="1"/>
<wire x1="48.5" y1="4.75" x2="49.31" y2="5.56" width="0.2032" layer="1"/>
<wire x1="49.31" y1="5.56" x2="49.31" y2="8.5734" width="0.2032" layer="1"/>
</signal>
<signal name="N$41">
<contactref element="L7" pad="2"/>
<contactref element="R20" pad="2"/>
<wire x1="34.762" y1="7.5" x2="34.762" y2="6" width="0.2032" layer="1"/>
</signal>
<signal name="N$42">
<contactref element="L6" pad="2"/>
<contactref element="R21" pad="2"/>
<wire x1="37.238" y1="7.5" x2="37.238" y2="6" width="0.2032" layer="1"/>
</signal>
<signal name="N$43">
<contactref element="L5" pad="2"/>
<contactref element="R22" pad="2"/>
<wire x1="55" y1="6.25" x2="53.75" y2="6.25" width="0.2032" layer="1"/>
<wire x1="53.75" y1="6.25" x2="53.5" y2="6.238" width="0.2032" layer="1"/>
<wire x1="55" y1="6.25" x2="55" y2="6.238" width="0.2032" layer="1"/>
</signal>
<signal name="N$44">
<contactref element="L4" pad="2"/>
<contactref element="R23" pad="2"/>
<wire x1="59.262" y1="6" x2="60.762" y2="6" width="0.2032" layer="1"/>
<wire x1="60.762" y1="6" x2="61" y2="6.238" width="0.2032" layer="1"/>
</signal>
<signal name="N$39">
<contactref element="IN" pad="2"/>
<contactref element="C21" pad="2"/>
<wire x1="14" y1="12.5" x2="14" y2="8.262" width="0.8128" layer="1"/>
</signal>
<signal name="N$7">
<contactref element="J2" pad="2"/>
<contactref element="R31" pad="1"/>
<wire x1="59.5" y1="25.762" x2="59.5" y2="31.75" width="0.2032" layer="1"/>
<wire x1="59.5" y1="31.75" x2="60.15" y2="32.4" width="0.2032" layer="1"/>
<wire x1="60.15" y1="32.4" x2="60.15" y2="34.96" width="0.2032" layer="1"/>
</signal>
<signal name="N$8">
<contactref element="J2" pad="3"/>
<contactref element="R32" pad="1"/>
<wire x1="58" y1="25.762" x2="58" y2="26" width="0.2032" layer="1"/>
<wire x1="58" y1="26" x2="59" y2="27" width="0.2032" layer="1"/>
<wire x1="59" y1="27" x2="59" y2="32" width="0.2032" layer="1"/>
<wire x1="59" y1="32" x2="59.5" y2="32.5" width="0.2032" layer="1"/>
<wire x1="59.5" y1="32.5" x2="59.5" y2="34.96" width="0.2032" layer="1"/>
</signal>
<signal name="USBMINUS">
<contactref element="R31" pad="2"/>
<wire x1="54" y1="20.75" x2="55.875" y2="22.625" width="0.2032" layer="1"/>
<wire x1="55.875" y1="22.625" x2="58.625" y2="22.625" width="0.2032" layer="1"/>
<wire x1="58.625" y1="22.625" x2="59.5" y2="23.5" width="0.2032" layer="1"/>
<wire x1="59.5" y1="23.5" x2="59.5" y2="24.238" width="0.2032" layer="1"/>
<contactref element="MCU" pad="6"/>
<wire x1="50.191096875" y1="23.234096875" x2="52.67519375" y2="20.75" width="0.2032" layer="1"/>
<wire x1="52.67519375" y1="20.75" x2="54" y2="20.75" width="0.2032" layer="1"/>
</signal>
<signal name="USBPLUS">
<contactref element="R32" pad="2"/>
<wire x1="54.5" y1="20.25" x2="56.125" y2="21.875" width="0.2032" layer="1"/>
<via x="56.125" y="21.875" extent="1-16" drill="0.3048"/>
<wire x1="56.125" y1="21.875" x2="57.5" y2="23.25" width="0.2032" layer="16"/>
<via x="57.5" y="23.25" extent="1-16" drill="0.3048"/>
<wire x1="57.5" y1="23.25" x2="58" y2="23.75" width="0.2032" layer="1"/>
<wire x1="58" y1="23.75" x2="58" y2="24.238" width="0.2032" layer="1"/>
<contactref element="MCU" pad="5"/>
<wire x1="49.837540625" y1="22.88054375" x2="52.468084375" y2="20.25" width="0.2032" layer="1"/>
<wire x1="52.468084375" y1="20.25" x2="54.5" y2="20.25" width="0.2032" layer="1"/>
</signal>
<signal name="N$14">
<contactref element="J2" pad="P2"/>
<contactref element="J2" pad="P1"/>
<contactref element="J2" pad="E2"/>
<contactref element="J2" pad="E1"/>
<contactref element="L8" pad="2"/>
<wire x1="55.55" y1="37.881" x2="58.484" y2="37.881" width="0.2032" layer="1"/>
<wire x1="58.484" y1="37.881" x2="60.516" y2="37.881" width="0.2032" layer="1"/>
<wire x1="60.516" y1="37.881" x2="63.45" y2="37.881" width="0.2032" layer="1"/>
<wire x1="63.45" y1="37.881" x2="64.069" y2="38.5" width="0.2032" layer="1"/>
<wire x1="64.069" y1="38.5" x2="65.738" y2="38.5" width="0.2032" layer="1"/>
</signal>
<signal name="INPUTPOWER">
<contactref element="L11" pad="2"/>
<wire x1="62.637" y1="32.875" x2="62.637" y2="33.738" width="0.2032" layer="1"/>
<wire x1="62.637" y1="33.738" x2="61.75" y2="34.625" width="0.2032" layer="1"/>
<via x="61.75" y="34.625" extent="1-16" drill="0.3048"/>
<wire x1="61.75" y1="34.625" x2="61.625" y2="34.625" width="0.2032" layer="16"/>
<wire x1="61.625" y1="34.625" x2="60.125" y2="36.125" width="0.2032" layer="16"/>
<wire x1="60.125" y1="36.125" x2="57.875" y2="36.125" width="0.2032" layer="16"/>
<wire x1="57.875" y1="36.125" x2="56.375" y2="34.625" width="0.2032" layer="16"/>
<wire x1="56.375" y1="34.625" x2="56.375" y2="32.5" width="0.2032" layer="16"/>
<wire x1="56.375" y1="32.5" x2="50.875" y2="27" width="0.2032" layer="16"/>
<via x="50.875" y="27" extent="1-16" drill="0.3048"/>
<wire x1="50.875" y1="27" x2="50.125" y2="26.25" width="0.2032" layer="1"/>
<wire x1="50.125" y1="26.25" x2="50.125" y2="24.7447375" width="0.2032" layer="1"/>
<contactref element="MCU" pad="8"/>
<wire x1="50.125" y1="24.7447375" x2="50.898203125" y2="23.971534375" width="0.2032" layer="1"/>
<wire x1="50.898203125" y1="23.971534375" x2="50.898203125" y2="23.941203125" width="0.2032" layer="1"/>
</signal>
<signal name="ADC_AFTERTOUCH">
<contactref element="R15" pad="1"/>
<contactref element="R18" pad="1"/>
<wire x1="24.262" y1="34.5" x2="24.262" y2="36.5" width="0.2032" layer="1"/>
<wire x1="43.362378125" y1="35.75" x2="42" y2="35.75" width="0.2032" layer="1"/>
<wire x1="42" y1="35.75" x2="39.5" y2="38.25" width="0.2032" layer="1"/>
<wire x1="39.5" y1="38.25" x2="30" y2="38.25" width="0.2032" layer="1"/>
<contactref element="L13" pad="1"/>
<wire x1="25.875" y1="34.738" x2="25.637" y2="34.5" width="0.2032" layer="1"/>
<wire x1="25.637" y1="34.5" x2="24.262" y2="34.5" width="0.2032" layer="1"/>
<wire x1="30" y1="38.25" x2="29.375" y2="37.625" width="0.2032" layer="1"/>
<wire x1="29.375" y1="37.625" x2="25.5" y2="37.625" width="0.2032" layer="1"/>
<wire x1="25.5" y1="37.625" x2="24.375" y2="36.5" width="0.2032" layer="1"/>
<wire x1="24.375" y1="36.5" x2="24.262" y2="36.5" width="0.2032" layer="1"/>
<contactref element="MCU" pad="35"/>
<wire x1="43.362378125" y1="35.75" x2="44.95850625" y2="34.153871875" width="0.2032" layer="1"/>
<wire x1="44.95850625" y1="34.153871875" x2="44.95850625" y2="34.123540625" width="0.2032" layer="1"/>
</signal>
<signal name="ADC_PITCHBEND">
<wire x1="39.625" y1="37.375" x2="41.75" y2="35.25" width="0.2032" layer="1"/>
<wire x1="41.75" y1="35.25" x2="43.155271875" y2="35.25" width="0.2032" layer="1"/>
<contactref element="L14" pad="1"/>
<wire x1="39.625" y1="37.375" x2="37.625" y2="37.375" width="0.2032" layer="1"/>
<wire x1="37.625" y1="37.375" x2="36.887" y2="37.387" width="0.2032" layer="1"/>
<wire x1="36.887" y1="37.387" x2="36.887" y2="37.375" width="0.2032" layer="1"/>
<contactref element="MCU" pad="36"/>
<wire x1="43.155271875" y1="35.25" x2="44.604953125" y2="33.80031875" width="0.2032" layer="1"/>
<wire x1="44.604953125" y1="33.80031875" x2="44.604953125" y2="33.7699875" width="0.2032" layer="1"/>
</signal>
<signal name="ADC_KNOB1">
<wire x1="33.875" y1="31.625" x2="38" y2="35.75" width="0.2032" layer="1"/>
<wire x1="38" y1="35.75" x2="40.5" y2="35.75" width="0.2032" layer="1"/>
<wire x1="40.5" y1="35.75" x2="41.5" y2="34.75" width="0.2032" layer="1"/>
<wire x1="41.5" y1="34.75" x2="42.948165625" y2="34.75" width="0.2032" layer="1"/>
<contactref element="L10" pad="2"/>
<wire x1="33.875" y1="31.625" x2="32.012" y2="31.625" width="0.2032" layer="1"/>
<contactref element="MCU" pad="37"/>
<wire x1="42.948165625" y1="34.75" x2="44.2514" y2="33.446765625" width="0.2032" layer="1"/>
<wire x1="44.2514" y1="33.446765625" x2="44.2514" y2="33.416434375" width="0.2032" layer="1"/>
</signal>
<signal name="UI_RX">
<contactref element="JP2" pad="2"/>
<wire x1="8.04" y1="34.5" x2="12.915" y2="39.375" width="0.2032" layer="1"/>
<wire x1="12.915" y1="39.375" x2="40.125" y2="39.375" width="0.2032" layer="1"/>
<wire x1="40.125" y1="39.375" x2="41.125" y2="38.375" width="0.2032" layer="1"/>
<wire x1="41.125" y1="38.375" x2="41.125" y2="37.5" width="0.2032" layer="1"/>
<via x="41.125" y="37.5" extent="1-16" drill="0.3048"/>
<wire x1="41.125" y1="37.5" x2="41.125" y2="34.625" width="0.2032" layer="16"/>
<wire x1="41.125" y1="34.625" x2="40.5" y2="34" width="0.2032" layer="16"/>
<via x="40.5" y="34" extent="1-16" drill="0.3048"/>
<wire x1="40.5" y1="34" x2="40.75" y2="33.75" width="0.2032" layer="1"/>
<wire x1="40.75" y1="33.75" x2="42.53395" y2="33.75" width="0.2032" layer="1"/>
<contactref element="MCU" pad="39"/>
<wire x1="42.53395" y1="33.75" x2="43.544290625" y2="32.739659375" width="0.2032" layer="1"/>
<wire x1="43.544290625" y1="32.739659375" x2="43.544290625" y2="32.709328125" width="0.2032" layer="1"/>
</signal>
<signal name="UI_TX">
<contactref element="JP2" pad="3"/>
<wire x1="10.58" y1="34.5" x2="10.58" y2="36.33" width="0.2032" layer="1"/>
<wire x1="10.58" y1="36.33" x2="13.125" y2="38.875" width="0.2032" layer="1"/>
<wire x1="13.125" y1="38.875" x2="39.75" y2="38.875" width="0.2032" layer="1"/>
<wire x1="39.75" y1="38.875" x2="40" y2="38.625" width="0.2032" layer="1"/>
<via x="40" y="38.625" extent="1-16" drill="0.3048"/>
<wire x1="40" y1="38.625" x2="40" y2="35.375" width="0.2032" layer="16"/>
<wire x1="40" y1="35.375" x2="39.125" y2="34.5" width="0.2032" layer="16"/>
<via x="39.125" y="34.5" extent="1-16" drill="0.3048"/>
<wire x1="39.125" y1="34.5" x2="40.375" y2="33.25" width="0.2032" layer="1"/>
<wire x1="40.375" y1="33.25" x2="42.32684375" y2="33.25" width="0.2032" layer="1"/>
<contactref element="MCU" pad="40"/>
<wire x1="42.32684375" y1="33.25" x2="43.1907375" y2="32.38610625" width="0.2032" layer="1"/>
<wire x1="43.1907375" y1="32.38610625" x2="43.1907375" y2="32.355775" width="0.2032" layer="1"/>
</signal>
<signal name="GATE_SIGNAL">
<contactref element="R40" pad="1"/>
<contactref element="R35" pad="2"/>
<wire x1="86.738" y1="20.5" x2="86.738" y2="22" width="0.2032" layer="1"/>
<wire x1="43.28763125" y1="30.875" x2="44.625" y2="30.875" width="0.2032" layer="1"/>
<wire x1="44.625" y1="30.875" x2="46.75" y2="33" width="0.2032" layer="1"/>
<wire x1="46.75" y1="33" x2="47" y2="33" width="0.2032" layer="1"/>
<via x="47" y="33" extent="1-16" drill="0.3048"/>
<wire x1="47" y1="33" x2="48.625" y2="33" width="0.2032" layer="16"/>
<wire x1="48.625" y1="33" x2="54.125" y2="38.5" width="0.2032" layer="16"/>
<wire x1="54.125" y1="38.5" x2="66.5" y2="38.5" width="0.2032" layer="16"/>
<wire x1="66.5" y1="38.5" x2="67.25" y2="37.75" width="0.2032" layer="16"/>
<wire x1="67.25" y1="37.75" x2="69.375" y2="37.75" width="0.2032" layer="16"/>
<via x="69.375" y="37.75" extent="1-16" drill="0.3048"/>
<wire x1="69.375" y1="37.75" x2="69.75" y2="38.125" width="0.2032" layer="1"/>
<wire x1="69.75" y1="38.125" x2="72.375" y2="38.125" width="0.2032" layer="1"/>
<wire x1="72.375" y1="38.125" x2="73.375" y2="37.125" width="0.2032" layer="1"/>
<wire x1="73.375" y1="37.125" x2="73.375" y2="31.25" width="0.2032" layer="1"/>
<via x="73.375" y="31.25" extent="1-16" drill="0.3048"/>
<wire x1="73.375" y1="31.25" x2="74.875" y2="31.25" width="0.2032" layer="16"/>
<via x="74.875" y="31.25" extent="1-16" drill="0.3048"/>
<wire x1="74.875" y1="31.25" x2="75" y2="31.125" width="0.2032" layer="1"/>
<wire x1="75" y1="31.125" x2="75" y2="24" width="0.2032" layer="1"/>
<wire x1="75" y1="24" x2="78.5" y2="20.5" width="0.2032" layer="1"/>
<wire x1="78.5" y1="20.5" x2="86.738" y2="20.5" width="0.2032" layer="1"/>
<contactref element="MCU" pad="42"/>
<wire x1="43.28763125" y1="30.875" x2="42.5139625" y2="31.64866875" width="0.2032" layer="1"/>
<wire x1="42.5139625" y1="31.64866875" x2="42.48363125" y2="31.64866875" width="0.2032" layer="1"/>
</signal>
<signal name="N$60">
<contactref element="R40" pad="2"/>
<contactref element="Q5" pad="B"/>
<wire x1="90.55" y1="20.9" x2="88.362" y2="20.9" width="0.2032" layer="1"/>
<wire x1="88.362" y1="20.9" x2="88.262" y2="20.5" width="0.2032" layer="1"/>
</signal>
<signal name="N$45">
<contactref element="D6" pad="-"/>
<contactref element="R35" pad="1"/>
<wire x1="88.262" y1="22" x2="89" y2="22" width="0.2032" layer="1"/>
<wire x1="89" y1="22" x2="89.25" y2="22.25" width="0.2032" layer="1"/>
<via x="89.25" y="22.25" extent="1-16" drill="0.3048"/>
<wire x1="89.25" y1="22.25" x2="88.988" y2="22.25" width="0.2032" layer="16"/>
<wire x1="88.988" y1="22.25" x2="88.738" y2="22.5" width="0.2032" layer="16"/>
</signal>
<signal name="ADC_KNOB2">
<wire x1="33.75" y1="30.75" x2="38.25" y2="35.25" width="0.2032" layer="1"/>
<wire x1="38.25" y1="35.25" x2="40.25" y2="35.25" width="0.2032" layer="1"/>
<wire x1="40.25" y1="35.25" x2="41.25" y2="34.25" width="0.2032" layer="1"/>
<wire x1="41.25" y1="34.25" x2="42.74105625" y2="34.25" width="0.2032" layer="1"/>
<contactref element="L9" pad="2"/>
<wire x1="33.75" y1="30.75" x2="28.5" y2="30.75" width="0.2032" layer="1"/>
<wire x1="28.5" y1="30.75" x2="27.762" y2="31.488" width="0.2032" layer="1"/>
<wire x1="27.762" y1="31.488" x2="27.762" y2="31.625" width="0.2032" layer="1"/>
<contactref element="MCU" pad="38"/>
<wire x1="42.74105625" y1="34.25" x2="43.89784375" y2="33.0932125" width="0.2032" layer="1"/>
<wire x1="43.89784375" y1="33.0932125" x2="43.89784375" y2="33.06288125" width="0.2032" layer="1"/>
</signal>
<signal name="N$4">
<contactref element="R2" pad="2"/>
<contactref element="SCALE" pad="3"/>
<wire x1="82.5" y1="38.262" x2="83.613" y2="38.262" width="0.2032" layer="1"/>
<wire x1="83.613" y1="38.262" x2="83.625" y2="38.25" width="0.2032" layer="1"/>
<via x="83.625" y="38.25" extent="1-16" drill="0.3048"/>
<wire x1="83.625" y1="38.25" x2="84.925" y2="38.25" width="0.2032" layer="16"/>
<wire x1="84.925" y1="38.25" x2="85.175" y2="38" width="0.2032" layer="16"/>
</signal>
<signal name="N$46">
<contactref element="R19" pad="1"/>
<contactref element="OFFSET" pad="2"/>
<wire x1="79" y1="35.5" x2="76.875" y2="35.5" width="0.2032" layer="16"/>
<via x="76.875" y="35.5" extent="1-16" drill="0.3048"/>
<wire x1="77.75" y1="34.012" x2="78" y2="33.762" width="0.2032" layer="1"/>
<wire x1="77.75" y1="34.012" x2="77.488" y2="34.012" width="0.2032" layer="1"/>
<wire x1="77.488" y1="34.012" x2="76.875" y2="34.625" width="0.2032" layer="1"/>
<wire x1="76.875" y1="34.625" x2="76.875" y2="35.5" width="0.2032" layer="1"/>
</signal>
<signal name="N$47">
<contactref element="OFFSET" pad="3"/>
<contactref element="R24" pad="2"/>
<wire x1="79.5" y1="38.762" x2="80.988" y2="38.762" width="0.2032" layer="1"/>
<wire x1="80.988" y1="38.762" x2="81" y2="38.75" width="0.2032" layer="1"/>
<via x="81" y="38.75" extent="1-16" drill="0.3048"/>
<wire x1="81" y1="38.75" x2="80.075" y2="38.75" width="0.2032" layer="16"/>
<wire x1="80.075" y1="38.75" x2="80" y2="38.825" width="0.2032" layer="16"/>
</signal>
<signal name="N$48">
<contactref element="OFFSET" pad="1"/>
<contactref element="R25" pad="2"/>
<wire x1="78" y1="38.762" x2="76.762" y2="38.762" width="0.2032" layer="1"/>
<wire x1="76.762" y1="38.762" x2="76.75" y2="38.75" width="0.2032" layer="1"/>
<via x="76.75" y="38.75" extent="1-16" drill="0.3048"/>
<wire x1="76.75" y1="38.75" x2="77.925" y2="38.75" width="0.2032" layer="16"/>
<wire x1="77.925" y1="38.75" x2="78" y2="38.825" width="0.2032" layer="16"/>
</signal>
<signal name="N$27">
<contactref element="JP4" pad="2"/>
<contactref element="L9" pad="1"/>
<wire x1="27.96" y1="33.73" x2="26.238" y2="32.008" width="0.2032" layer="1"/>
<wire x1="26.238" y1="32.008" x2="26.238" y2="31.625" width="0.2032" layer="1"/>
</signal>
<signal name="N$49">
<contactref element="JP4" pad="4"/>
<contactref element="L10" pad="1"/>
<wire x1="30.488" y1="31.625" x2="30.5" y2="31.637" width="0.2032" layer="1"/>
<wire x1="30.5" y1="31.637" x2="30.5" y2="33.73" width="0.2032" layer="1"/>
</signal>
<signal name="N$50">
<contactref element="JP4" pad="1"/>
<contactref element="L13" pad="2"/>
<wire x1="27.96" y1="36.27" x2="27.952" y2="36.262" width="0.2032" layer="1"/>
<wire x1="27.952" y1="36.262" x2="25.875" y2="36.262" width="0.2032" layer="1"/>
</signal>
<signal name="N$51">
<contactref element="JP4" pad="3"/>
<contactref element="L14" pad="2"/>
<wire x1="35.363" y1="37.375" x2="34.25" y2="37.375" width="0.2032" layer="1"/>
<wire x1="34.25" y1="37.375" x2="34" y2="37.625" width="0.2032" layer="1"/>
<wire x1="34" y1="37.625" x2="31.855" y2="37.625" width="0.2032" layer="1"/>
<wire x1="31.855" y1="37.625" x2="30.5" y2="36.27" width="0.2032" layer="1"/>
</signal>
<signal name="XTAL1">
<contactref element="X3" pad="2"/>
<contactref element="C23" pad="1"/>
<contactref element="MCU" pad="32"/>
<wire x1="48.423328125" y1="34.83065" x2="50.534" y2="36.941321875" width="0.2032" layer="1"/>
<wire x1="50.534" y1="36.941321875" x2="50.534" y2="38" width="0.2032" layer="1"/>
<wire x1="50.534" y1="38" x2="51.296" y2="38.637" width="0.2032" layer="1"/>
<wire x1="51.296" y1="38.637" x2="52.5" y2="38.637" width="0.2032" layer="1"/>
</signal>
<signal name="XTAL2">
<contactref element="X3" pad="1"/>
<contactref element="C24" pad="1"/>
<contactref element="MCU" pad="33"/>
<wire x1="45.6656125" y1="34.83065" x2="45.5" y2="34.9962625" width="0.2032" layer="1"/>
<wire x1="45.5" y1="34.9962625" x2="45.5" y2="37.25" width="0.2032" layer="1"/>
<wire x1="45.5" y1="37.25" x2="46.216" y2="37.966" width="0.2032" layer="1"/>
<wire x1="46.216" y1="37.966" x2="46.216" y2="38" width="0.2032" layer="1"/>
<wire x1="46.216" y1="38" x2="45.579" y2="38.637" width="0.2032" layer="1"/>
<wire x1="45.579" y1="38.637" x2="44.375" y2="38.637" width="0.2032" layer="1"/>
</signal>
<signal name="SWDIO">
<contactref element="SWD3" pad="2"/>
<contactref element="MCU" pad="25"/>
<wire x1="50.898203125" y1="32.355775" x2="51.667428125" y2="33.125" width="0.2032" layer="1"/>
<wire x1="51.667428125" y1="33.125" x2="56.375" y2="33.125" width="0.2032" layer="1"/>
<wire x1="56.375" y1="33.125" x2="58" y2="31.5" width="0.2032" layer="1"/>
<via x="58" y="31.5" extent="1-16" drill="0.3048"/>
<wire x1="62.75" y1="30.415" x2="59.085" y2="30.415" width="0.2032" layer="16"/>
<wire x1="59.085" y1="30.415" x2="58" y2="31.5" width="0.2032" layer="16"/>
</signal>
<signal name="SWCLK">
<contactref element="MCU" pad="22"/>
<contactref element="SWD3" pad="4"/>
<wire x1="62.75" y1="29.145" x2="62.73" y2="29.125" width="0.2032" layer="16"/>
<wire x1="51.9588625" y1="31.295115625" x2="52.413746875" y2="31.75" width="0.2032" layer="1"/>
<wire x1="52.413746875" y1="31.75" x2="53.625" y2="31.75" width="0.2032" layer="1"/>
<wire x1="53.625" y1="31.75" x2="55.5" y2="29.875" width="0.2032" layer="1"/>
<wire x1="55.5" y1="29.875" x2="55.5" y2="29.625" width="0.2032" layer="1"/>
<via x="55.5" y="29.625" extent="1-16" drill="0.3048"/>
<wire x1="55.5" y1="29.625" x2="56.5" y2="30.625" width="0.2032" layer="16"/>
<wire x1="56.5" y1="30.625" x2="57.375" y2="30.625" width="0.2032" layer="16"/>
<wire x1="57.375" y1="30.625" x2="58.875" y2="29.125" width="0.2032" layer="16"/>
<wire x1="58.875" y1="29.125" x2="62.73" y2="29.125" width="0.2032" layer="16"/>
</signal>
<signal name="SWO">
<contactref element="MCU" pad="24"/>
<contactref element="SWD3" pad="6"/>
<wire x1="51.25175625" y1="32.002221875" x2="51.874534375" y2="32.625" width="0.2032" layer="1"/>
<wire x1="51.874534375" y1="32.625" x2="54.125" y2="32.625" width="0.2032" layer="1"/>
<wire x1="54.125" y1="32.625" x2="57.5" y2="29.25" width="0.2032" layer="1"/>
<via x="57.5" y="29.25" extent="1-16" drill="0.3048"/>
<wire x1="57.5" y1="29.25" x2="58.875" y2="27.875" width="0.2032" layer="16"/>
<wire x1="58.875" y1="27.875" x2="62.75" y2="27.875" width="0.2032" layer="16"/>
</signal>
<signal name="RESET">
<contactref element="MCU" pad="34"/>
<contactref element="R27" pad="1"/>
<contactref element="SWD3" pad="10"/>
<wire x1="58.75" y1="32.875" x2="57.5" y2="32.875" width="0.2032" layer="1"/>
<wire x1="58.875" y1="32.75" x2="58.75" y2="32.875" width="0.2032" layer="1"/>
<wire x1="60.125" y1="31.5" x2="58.875" y2="32.75" width="0.2032" layer="16"/>
<wire x1="55.375" y1="35" x2="57.5" y2="32.875" width="0.2032" layer="1"/>
<wire x1="54.125" y1="36.25" x2="55.375" y2="35" width="0.2032" layer="16"/>
<wire x1="54.125" y1="38.25" x2="54.125" y2="36.25" width="0.2032" layer="1"/>
<wire x1="52.75" y1="39.625" x2="54.125" y2="38.25" width="0.2032" layer="1"/>
<via x="58.875" y="32.75" extent="1-16" drill="0.3048"/>
<via x="60.125" y="31.5" extent="1-16" drill="0.3048"/>
<via x="55.375" y="35" extent="1-16" drill="0.3048"/>
<via x="54.125" y="36.25" extent="1-16" drill="0.3048"/>
<wire x1="52.75" y1="39.625" x2="43.5" y2="39.625" width="0.2032" layer="1"/>
<wire x1="43.5" y1="39.625" x2="43" y2="39.125" width="0.2032" layer="1"/>
<wire x1="43" y1="39.125" x2="43" y2="36.789153125" width="0.2032" layer="1"/>
<wire x1="43" y1="36.789153125" x2="45.312059375" y2="34.47709375" width="0.2032" layer="1"/>
<wire x1="64.363" y1="25.375" x2="63.875" y2="24.887" width="0.2032" layer="1"/>
<wire x1="63.875" y1="24.887" x2="63.875" y2="24.5" width="0.2032" layer="1"/>
<via x="63.875" y="24.5" extent="1-16" drill="0.3048"/>
<wire x1="63.875" y1="24.5" x2="63.04" y2="25.335" width="0.2032" layer="16"/>
<wire x1="63.04" y1="25.335" x2="62.75" y2="25.335" width="0.2032" layer="16"/>
<wire x1="64.363" y1="25.375" x2="60.125" y2="29.613" width="0.2032" layer="1"/>
<wire x1="60.125" y1="29.613" x2="60.125" y2="31.5" width="0.2032" layer="1"/>
</signal>
<signal name="JTAG_TDI">
<contactref element="MCU" pad="23"/>
<contactref element="SWD3" pad="8"/>
<wire x1="51.605309375" y1="31.64866875" x2="52.081640625" y2="32.125" width="0.2032" layer="1"/>
<wire x1="52.081640625" y1="32.125" x2="53.875" y2="32.125" width="0.2032" layer="1"/>
<wire x1="53.875" y1="32.125" x2="56.5" y2="29.5" width="0.2032" layer="1"/>
<wire x1="56.5" y1="29.5" x2="56.5" y2="27.75" width="0.2032" layer="1"/>
<via x="56.5" y="27.75" extent="1-16" drill="0.3048"/>
<wire x1="56.5" y1="27.75" x2="57.645" y2="26.605" width="0.2032" layer="16"/>
<wire x1="57.645" y1="26.605" x2="62.75" y2="26.605" width="0.2032" layer="16"/>
</signal>
<signal name="N$52">
<contactref element="MCU" pad="7"/>
<contactref element="C35" pad="2"/>
<wire x1="50.54465" y1="23.58765" x2="51.921115625" y2="22.211184375" width="0.2032" layer="1"/>
<wire x1="51.921115625" y1="22.211184375" x2="52.961184375" y2="22.211184375" width="0.2032" layer="1"/>
</signal>
<signal name="N$59">
<contactref element="MCU" pad="26"/>
<contactref element="TP1" pad="P$1"/>
<wire x1="52.75" y1="34.5" x2="52.5" y2="34.25" width="0.2032" layer="16"/>
<via x="52" y="33.75" extent="1-16" drill="0.3048"/>
<wire x1="52.5" y1="34.25" x2="52" y2="33.75" width="0.2032" layer="16"/>
<wire x1="52" y1="33.75" x2="51.585321875" y2="33.75" width="0.2032" layer="1"/>
<wire x1="51.585321875" y1="33.75" x2="50.54465" y2="32.709328125" width="0.2032" layer="1"/>
</signal>
<signal name="DACOUT">
<contactref element="MCU" pad="18"/>
<contactref element="JP3" pad="1"/>
<wire x1="70.25" y1="34.625" x2="70.25" y2="32.125" width="0.2032" layer="1"/>
<wire x1="70.25" y1="32.125" x2="70.125" y2="32" width="0.2032" layer="1"/>
<via x="70.125" y="32" extent="1-16" drill="0.3048"/>
<wire x1="70.125" y1="32" x2="70.125" y2="29.625" width="0.2032" layer="16"/>
<wire x1="70.125" y1="29.625" x2="70" y2="29.5" width="0.2032" layer="16"/>
<via x="70" y="29.5" extent="1-16" drill="0.3048"/>
<wire x1="70" y1="29.5" x2="69" y2="28.5" width="0.2032" layer="1"/>
<wire x1="69" y1="28.5" x2="69" y2="25.875" width="0.2032" layer="1"/>
<wire x1="69" y1="25.875" x2="66.625" y2="23.5" width="0.2032" layer="1"/>
<wire x1="66.625" y1="23.5" x2="62" y2="23.5" width="0.2032" layer="1"/>
<wire x1="62" y1="23.5" x2="60.5" y2="25" width="0.2032" layer="1"/>
<wire x1="60.5" y1="25" x2="57.375" y2="25" width="0.2032" layer="1"/>
<wire x1="57.375" y1="25" x2="56.625" y2="24.25" width="0.2032" layer="1"/>
<wire x1="56.625" y1="24.25" x2="56.125" y2="24.25" width="0.2032" layer="1"/>
<wire x1="56.125" y1="24.25" x2="55.125" y2="25.25" width="0.2032" layer="1"/>
<wire x1="55.125" y1="25.25" x2="55.125" y2="27" width="0.2032" layer="1"/>
<wire x1="55.125" y1="27" x2="54" y2="28.125" width="0.2032" layer="1"/>
<wire x1="54" y1="28.125" x2="53.25" y2="28.125" width="0.2032" layer="1"/>
<wire x1="53.25" y1="28.125" x2="52.75" y2="28.625" width="0.2032" layer="1"/>
<wire x1="52.75" y1="28.625" x2="52.75" y2="29.257825" width="0.2032" layer="1"/>
<wire x1="52.75" y1="29.257825" x2="53.373075" y2="29.8809" width="0.2032" layer="1"/>
</signal>
</signals>
<errors>
<approved hash="5,1,758d55834d954375"/>
<approved hash="5,1,43a94da955677559"/>
<approved hash="5,1,0f8d018d017b0195"/>
<approved hash="5,1,01a901a701590f69"/>
<approved hash="5,1,2f0f210321096107"/>
<approved hash="5,1,09ce6e8990e94fd6"/>
<approved hash="3,16,1c899e8c590b6e04"/>
<approved hash="5,16,7a8f7d14cf14c88f"/>
<approved hash="5,16,fe42fd484b484842"/>
<approved hash="5,16,4c0821367389a108"/>
<approved hash="7,39,9c215c9b5cb49856"/>
<approved hash="7,39,3a309322d30aa08d"/>
<approved hash="7,39,b5082a31d2377876"/>
<approved hash="7,39,61ec63a027695cc0"/>
<approved hash="5,1,09102603502b0720"/>
<approved hash="5,1,f036a291d0b5fbfa"/>
</errors>
</board>
</drawing>
</eagle>

license: MIT

license_type: permissive

branch_name: refs/heads/master


text:
require core-image-olinuxino.bb

DESCRIPTION = "OLinuXino support that includes everything within \
core-image-olinuxino plus meta-toolchain, development headers and libraries to \
form a standalone SDK."

#QT4PKG = "qt4-pkgs"
#QT4PKG_mips64 = ""

IMAGE_FEATURES += "dev-pkgs tools-sdk \
	tools-debug eclipse-debug tools-profile tools-testapps debug-tweaks ssh-server-openssh"

IMAGE_INSTALL += "kernel-dev"

extension: bb


text:
package jamf

import (
	"context"
	"fmt"
	"strconv"

	"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
	"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
	"github.com/sioncojp/go-jamf-api"
)

func resourceJamfStaticComputerGroup() *schema.Resource {
	return &schema.Resource{
		CreateContext: resourceJamfStaticComputerGroupCreate,
		ReadContext:   resourceJamfStaticComputerGroupRead,
		UpdateContext: resourceJamfStaticComputerGroupUpdate,
		DeleteContext: resourceJamfStaticComputerGroupDelete,
		Importer: &schema.ResourceImporter{
			StateContext: importJamfStaticComputerGroupState,
		},
		Schema: map[string]*schema.Schema{
			"name": {
				Type:     schema.TypeString,
				Required: true,
			},
			"id": {
				Type:     schema.TypeString,
				Computed: true,
			},
			"site": {
				Type:     schema.TypeSet,
				Optional: true,
				MaxItems: 1,
				Elem: &schema.Resource{
					Schema: map[string]*schema.Schema{
						"id": {
							Type:     schema.TypeInt,
							Computed: true,
						},
						"name": {
							Type:     schema.TypeString,
							Required: true,
						},
					},
				},
			},
			"computer": {
				Type:     schema.TypeSet,
				Optional: true,
				Elem: &schema.Resource{
					Schema: map[string]*schema.Schema{
						"id": {
							Type:     schema.TypeInt,
							Optional: true,
						},
						"name": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"serial_number": {
							Type:     schema.TypeString,
							Computed: true,
						},
					},
				},
			},
		},
	}
}

func buildJamfStaticComputerGroupStruct(d *schema.ResourceData) *jamf.ComputerGroup {
	var out jamf.ComputerGroup
	id, _ := strconv.Atoi(d.Id())
	out.ID = id
	out.Name = d.Get("name").(string)
	out.IsSmart = false
	if v, ok := d.GetOk("site"); ok {
		siteList := v.(*schema.Set).List()
		site := siteList[0].(map[string]interface{})
		if val, ok := site["name"].(string); ok {
			out.Site.Name = val
		}
		if val, ok := site["id"].(int); ok {
			out.Site.ID = val
		}
	}

	if v, ok := d.GetOk("computer"); ok {
		comps := v.(*schema.Set).List()
		compList := []jamf.Computer{}
		for _, c := range comps {
			compData := c.(map[string]interface{})
			comp := jamf.Computer{}
			if val, ok := compData["id"].(int); ok {
				comp.ID = val
			}
			if val, ok := compData["serial_number"].(string); ok {
				comp.SerialNumber = val
			}
			if val, ok := compData["name"].(string); ok {
				comp.Name = val
			}
			compList = append(compList, comp)
		}
		out.Computers = compList
	}

	return &out
}

func resourceJamfStaticComputerGroupCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
	c := m.(*jamf.Client)

	b := buildJamfStaticComputerGroupStruct(d)

	group := &jamf.ComputerGroupRequest{}
	group.Name = b.Name
	if b.Site.Name != "" {
		group.Site = b.Site
	}
	group.IsSmart = b.IsSmart
	group.Computers = b.Computers

	id, err := c.CreateComputerGroup(group)
	if err != nil {
		return diag.FromErr(err)
	}

	d.SetId(strconv.Itoa(id))

	return resourceJamfStaticComputerGroupRead(ctx, d, m)
}

func resourceJamfStaticComputerGroupRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
	var diags diag.Diagnostics
	c := m.(*jamf.Client)

	id, err := strconv.Atoi(d.Id())
	if err != nil {
		return diag.FromErr(err)
	}
	resp, err := c.GetComputerGroup(id)
	if err != nil {
		if jamfErr, ok := err.(jamf.Error); ok && jamfErr.StatusCode() == 404 {
			d.SetId("")
		} else {
			return diag.FromErr(err)
		}
	} else {
		deconstructJamfComputerGroupStruct(d, resp)
	}

	return diags
}

func resourceJamfStaticComputerGroupUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
	c := m.(*jamf.Client)

	b := buildJamfStaticComputerGroupStruct(d)

	if _, err := c.UpdateComputerGroup(b); err != nil {
		return diag.FromErr(err)
	}

	return resourceJamfStaticComputerGroupRead(ctx, d, m)
}

func resourceJamfStaticComputerGroupDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
	var diags diag.Diagnostics
	c := m.(*jamf.Client)
	b := buildJamfStaticComputerGroupStruct(d)

	if _, err := c.DeleteComputerGroup(b.ID); err != nil {
		return diag.FromErr(err)
	}

	d.SetId("")

	return diags
}

func importJamfStaticComputerGroupState(ctx context.Context, d *schema.ResourceData, m interface{}) ([]*schema.ResourceData, error) {
	c := m.(*jamf.Client)
	d.SetId(d.Id())
	id, err := strconv.Atoi(d.Id())
	if err != nil {
		return nil, err
	}
	resp, err := c.GetComputerGroup(id)
	if err != nil {
		return nil, fmt.Errorf("cannot get Computer Group data")
	}

	deconstructJamfComputerGroupStruct(d, resp)

	return []*schema.ResourceData{d}, nil
}

repository: sioncojp/terraform-provider-jamf

repo_name: sioncojp/terraform-provider-jamf

gha_license_id: NOASSERTION

gha_language: Go

extension: go


text:
/*
Copyright (c) 2013 Branden J Brown

This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.

Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:

   1. The origin of this software must not be misrepresented; you must not
   claim that you wrote the original software. If you use this software
   in a product, an acknowledgment in the product documentation would be
   appreciated but is not required.

   2. Altered source versions must be plainly marked as such, and must not be
   misrepresented as being the original software.

   3. This notice may not be removed or altered from any source
   distribution.
*/

package sort

import (
	"fmt"
	"math/rand"
	"sort"
	"testing"
)

type tracker struct {
	d    []int
	c, s int
}

func (d *tracker) Less(i, j int) bool {
	d.c++
	return d.d[i] < d.d[j]
}
func (d *tracker) Swap(i, j int) {
	d.s++
	d.d[i], d.d[j] = d.d[j], d.d[i]
}
func (d *tracker) Len() int {
	return len(d.d)
}
func (d *tracker) String() string {
	return fmt.Sprintf("%d elements %d compares %d swaps", len(d.d), d.c, d.s)
}

func TestDPQS(t *testing.T) {
	for i := 0; i < 100; i++ {
		d := &tracker{d: make([]int, 33+0*rand.Intn(9999))}
		for j := range d.d {
			d.d[j] = rand.Int()
		}
		DPQS(d)
		if !sort.IsSorted(d) {
			for _, v := range d.d {
				t.Logf("%16x\n", v)
			}
			t.Fatal("DPQS failed on slice of length", len(d.d), d)
		}
	}
}

func BenchmarkRandomDPQS10k(b *testing.B) {
	for i := 0; i < b.N; i++ {
		b.StopTimer()
		d := make(sort.IntSlice, 10000)
		for j := range d {
			d[j] = rand.Int()
		}
		b.StartTimer()
		DPQS(d)
	}
}

func BenchmarkSortedDPQS10k(b *testing.B) {
	for i := 0; i < b.N; i++ {
		b.StopTimer()
		d := make(sort.IntSlice, 10000)
		for j := range d {
			d[j] = j
		}
		b.StartTimer()
		DPQS(d)
	}
}

func BenchmarkReverseDPQS10k(b *testing.B) {
	for i := 0; i < b.N; i++ {
		b.StopTimer()
		d := make(sort.IntSlice, 10000)
		for j := range d {
			d[j] = len(d) - j
		}
		b.StartTimer()
		DPQS(d)
	}
}

func BenchmarkSawtoothDPQS10k(b *testing.B) {
	for i := 0; i < b.N; i++ {
		b.StopTimer()
		d := make(sort.IntSlice, 10000)
		x, y := 0, 1
		for j := range d {
			d[j] = x
			x++
			if x == y {
				x = 0
				y++
			}
		}
		b.StartTimer()
		DPQS(d)
	}
}

license: Zlib

repository: zephyrtronium/sort

repo_name: zephyrtronium/sort