<?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>a two voice melody</info>
    <name>melo 1</name>
    <genre>chip-music</genre>
    <create-dts>2006-01-12T22:10:56Z</create-dts>
    <change-dts>2006-01-12T22:10:56Z</change-dts>
    <bpm>120</bpm>
    <tpb>4</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.0"/>
        </properties>
      </machine>
            
      <machine type="source" id="beep1" plugin-name="simsyn" voices="0">
        <globaldata name="volume" value="1.0"/>
        <properties>
          <property key="xpos" value="-0.7"/>
          <property key="ypos" value="-0.5"/>
        </properties>
        <patterns>
          <pattern name="C-3_E-3_G-3" length="16">
            <tick time="0">
              <globaldata name="note" value="c-3"/>
              <globaldata name="volume" value="1.0"/>
              <globaldata name="decay" value="0.25"/>
              <globaldata name="wave" value="3"/>
            </tick>
            <tick time="8">
              <globaldata name="note" value="e-3"/>
            </tick>
            <tick time="12">
              <globaldata name="note" value="g-3"/>
            </tick>
          </pattern>
        </patterns>
      </machine>

      <machine type="source" id="beep2" plugin-name="simsyn" voices="0">
        <globaldata name="volume" value="1.0"/>
        <properties>
          <property key="xpos" value="-0.7"/>
          <property key="ypos" value="0.0"/>
        </properties>
        <patterns>
          <pattern name="C-1" length="16">
            <tick time="0">
              <globaldata name="note" value="c-1"/>
              <globaldata name="volume" value="0.5"/>
              <globaldata name="decay" value="1.0"/>
              <globaldata name="wave" value="2"/>
            </tick>
          </pattern>
        </patterns>
      </machine>
    </machines>
    
    <wires>
      <wire src="beep1" dst="audio_sink" gain="1.0"/>
      <wire src="beep2" dst="audio_sink" gain="1.0" panorama="-0.5"/>
    </wires>
  </setup>
  
  <sequence loop="off" length="64" tracks="2">
    <labels>
      <label time="0" name="start"/>
      <label time="63" name="end"/>
    </labels>
    <tracks>
      <track index="0" machine="beep1">
        <position time="0" pattern="C-3_E-3_G-3"/>
        <position time="32" pattern="C-3_E-3_G-3"/>
      </track>
      <track index="1" machine="beep2">
        <position time="0" pattern="C-1"/>
        <position time="16" pattern="C-1"/>
        <position time="32" pattern="C-1"/>
        <position time="48" pattern="C-1"/>
      </track>
      <track index="2" machine="audio_sink"/>
    </tracks>
  </sequence>

</buzztrax>
