<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<syntona version="0.5.24">
  <module bundle="core" id="0" name="top2" type="patch">
    <view height="0" width="0" xpos="20" ypos="20"/>
    <editor>
      <view height="600" width="800" xpos="352" ypos="80"/>
    </editor>
    <modules>
      <module bundle="jsyn" id="0" name="sample" type="sample">
        <view height="128" width="96" xpos="288" ypos="30"/>
        <editor>
          <view height="81" width="285" xpos="676" ypos="222"/>
        </editor>
        <sample file="samples/percussion/HiHat_Closed.wav"/>
        <jack name="on"/>
        <jack name="off"/>
        <jack name="queue"/>
        <jack name="output"/>
        <jack name="rate"/>
      </module>
      <module bundle="jsyn" id="1" name="lineOut" type="lineOut">
        <view height="68" width="96" xpos="588" ypos="43"/>
        <jack max="1.0" min="0.0" name="input0" value="0.0" valueAdded="false"/>
        <jack max="1.0" min="0.0" name="input1" value="0.0" valueAdded="false"/>
      </module>
      <module bundle="jsyn" id="2" name="monoRdr" type="monoRdr">
        <view height="108" width="96" xpos="456" ypos="56"/>
        <editor>
          <view height="218" width="526" xpos="587" ypos="393"/>
        </editor>
        <jack name="dataQueue"/>
        <jack max="1.0" min="0.0" name="amplitude" value="1.0" valueAdded="false"/>
        <jack max="48000.0" min="0.0" name="rate" value="44100.0" valueAdded="false"/>
        <jack name="output"/>
      </module>
      <module bundle="music" id="3" name="beatClock" type="beatClock">
        <view height="48" width="96" xpos="19" ypos="57"/>
        <match value="1"/>
        <jack name="out"/>
      </module>
      <module bundle="jsyn" id="4" name="sample2" type="sample">
        <view height="128" width="96" xpos="293" ypos="181"/>
        <editor>
          <view height="81" width="285" xpos="434" ypos="463"/>
        </editor>
        <sample file="samples/percussion/HiHat_Open.wav"/>
        <jack name="on"/>
        <jack name="off"/>
        <jack name="queue"/>
        <jack name="output"/>
        <jack name="rate"/>
      </module>
      <module bundle="core" id="5" name="toggle" type="toggle">
        <view height="88" width="96" xpos="146" ypos="57"/>
        <jack max="100.0" min="0.0" name="in" value="17.0"/>
        <jack name="out0"/>
        <jack name="out1"/>
      </module>
      <module bundle="core" id="6" name="comment" type="comment">
        <view height="182" width="250" xpos="28" ypos="265"/>
        <text>Click the Start button at the top of the frame to start the beatClock. You should hear a HiHat cymbal.

If you open the sample editor then you can load or save the sample to a WAV file.

Connect the rate ports so that it will play at the recorded sample rate.</text>
      </module>
    </modules>
    <connections>
      <output id="0" jack="output">
        <input id="2" jack="dataQueue"/>
      </output>
      <output id="0" jack="rate">
        <input id="2" jack="rate"/>
      </output>
      <output id="2" jack="output">
        <input id="1" jack="input0"/>
      </output>
      <output id="3" jack="out">
        <input id="5" jack="in"/>
      </output>
      <output id="4" jack="output">
        <input id="2" jack="dataQueue"/>
      </output>
      <output id="4" jack="rate">
        <input id="2" jack="rate"/>
      </output>
      <output id="5" jack="out0">
        <input id="0" jack="queue"/>
      </output>
      <output id="5" jack="out1">
        <input id="4" jack="queue"/>
      </output>
    </connections>
  </module>
</syntona>
