<?xml version="1.0" encoding="UTF-8"?>

<buzztrax
  xmlns="http://www.buzztrax.org/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance"
  xsd:noNamespaceSchemaLocation="buzztrax.xsd">

  <meta>
    <info>what a lovely tune</info>
    <name>test simple 3</name>
    <genre>dark-wave</genre>
    <create-dts>2005-09-20T22:10:56Z</create-dts>
    <change-dts>2005-09-20T22:10:56Z</change-dts>
    <bpm>100</bpm>
    <tpb>8</tpb>
    <bars>16</bars>
  </meta>

  <setup>
    <machines>
      <machine type="sink" id="audio_sink">
        <properties>
          <property key="xpos" value="0.7"/>
          <property key="ypos" value="0.5"/>
        </properties>
      </machine>

      <machine type="processor" id="amp1" plugin-name="volume">
        <properties>
          <property key="xpos" value="0.3"/>
          <property key="ypos" value="0.0"/>
        </properties>
        <globaldata name="volume" value="1.0"/>
      </machine>

      <machine type="source" id="sine1" plugin-name="audiotestsrc" voices="0">
        <properties>
          <property key="xpos" value="0.0"/>
          <property key="ypos" value="0.5"/>
        </properties>
        <globaldata name="volume" value="0.1"/>
        <patterns>
          <pattern name="beeps" length="3">
            <tick time="0">
              <globaldata name="freq" value="440.0"/>
            </tick>
            <tick time="1">
              <globaldata name="freq" value="880.0"/>
            </tick>
            <tick time="2">
              <globaldata name="freq" value="1760.0"/>
            </tick>
          </pattern>
        </patterns>
      </machine>

      <machine type="source" id="sine2" plugin-name="audiotestsrc" voices="0">
        <properties>
          <property key="xpos" value="0.0"/>
          <property key="ypos" value="0.0"/>
        </properties>
        <globaldata name="volume" value="0.1"/>
        <patterns>
          <pattern name="beeps" length="8">
            <tick time="0">
              <globaldata name="freq" value="110.0"/>
            </tick>
            <tick time="2">
              <globaldata name="freq" value="220.0"/>
            </tick>
            <tick time="6">
              <globaldata name="freq" value="55.0"/>
            </tick>
          </pattern>
        </patterns>
      </machine>
    </machines>

    <wires>
      <wire src="sine1" dst="amp1" gain="1.5"/>
      <wire src="sine2" dst="amp1" gain="0.5"/>
      <wire src="amp1" dst="audio_sink" gain="1.0" panorama="-0.5"/>
    </wires>
  </setup>

  <sequence length="16" tracks="2">
    <labels>
      <label time="0" name="start"/>
      <!--label time="1" name="end"/-->
    </labels>
    <tracks>
      <track index="0" machine="sine1">
        <position time="0" pattern="beeps"/>
      </track>
      <track index="1" machine="sine2">
        <position time="0" pattern="beeps"/>
      </track>
    </tracks>
  </sequence>

</buzztrax>
