<?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">
<!-- xsd:schemaLocation="http://www.buzztrax.org buzztrax.xsd" -->

  <meta>
    <info>what a lovely tune</info>
    <name>example</name>
    <genre>dark-wave</genre>
    <create-dts>2005-09-20T22:10:56Z</create-dts>
    <change-dts>2005-09-20T22: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>
        <globaldata name="volume" value="1.0"/>
      </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="2">
        <properties>
          <property key="xpos" value="-0.7"/>
          <property key="ypos" value="0.0"/>
        </properties>
        <globaldata name="volume" value="1.0"/>
        <globaldata name="bpm" value="4"/>
        <voicedata name="volume" value="1.0" voice="0"/>
        <voicedata name="volume" value="0.5" voice="1"/>
        <patterns>
          <pattern name="beep" length="16">
            <tick time="0">
              <voicedata voice="0" name="note" value="C-3"/>
              <voicedata voice="0" name="volume" value="1.0"/>
              <voicedata voice="1" name="note" value="E-3"/>
              <voicedata voice="1" name="volume" value="1.0"/>
            </tick>
            <tick time="1">
              <voicedata voice="0" name="note" value="D-3"/>
              <voicedata voice="0" name="volume" value="1.0"/>
              <voicedata voice="1" name="note" value="F-3"/>
              <voicedata voice="1" name="volume" value="0.8"/>
            </tick>
          </pattern>
        </patterns>
      </machine>
    </machines>
    
    <wires>
      <wire src="sine1" dst="amp1" gain="1.5"/>
      <wire src="amp1" dst="audio_sink" gain="1.0" panorama="-0.5"/>
    </wires>
  </setup>
  
  <sequence length="97" tracks="1">
    <labels>
      <label time="0" name="start"/>
      <label time="96" name="end"/>
    </labels>
    <tracks>
      <track index="0" machine="sine1">
        <position time="0" pattern="beep"/>
        <position time="48" pattern="beep"/>
        <position time="64" pattern="   break"/>
      </track>
    </tracks>
  </sequence>
  
  <wavetable>
    <!-- loading file from harddisk -->
    <wave index="1" name="909base" uri="file:///data/samples/basedrums/909base.wav"/>
    <!-- loading file from song archive -->
    <wave index="2" name="dreampad" uri="file://!/wavetable/dreampad.wav"/>
  </wavetable>
  
</buzztrax>
