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

<PluginList>
  <Plugin id="SE MIDI Recorder" name="MIDI Recorder" category="MIDI">
    <Audio>
      <Pin name="Host BPM" datatype="float" hostConnect="Time/BPM" />
      <Pin name="Host SP" datatype="float" hostConnect="Time/SongPosition" />
      <Pin name="Host Bar Start" datatype="float" hostConnect="Time/BarStartPosition" />
      <Pin name="Numerator" datatype="int" hostConnect="Time/Timesignature/Numerator" />
      <Pin name="Denominator" datatype="int" hostConnect="Time/Timesignature/Denominator" />

      <Pin name="File Name" datatype="string" default="popcorn" isFilename="true" metadata="mid"/>
      <Pin name="Trigger" datatype="bool" default="1"/>
      <Pin name="Gate" datatype="bool" default="1"/>
      <Pin name="MIDI In" datatype="midi"/>
    </Audio>
  </Plugin>
  
  <Plugin id="SE MidiMessage" name="MIDI Message" category="MIDI">
    <Audio>
      <Pin name="Hex Bytes" datatype="string" default="90 39 64" />
      <Pin name="Trigger" datatype="bool" />
      <Pin name="MIDI Out" datatype="midi" direction="out"  />
    </Audio>
  </Plugin>

  <Plugin id="SE MIDItoGate" name="MIDI to Gate" category="Old">
    <Audio>
      <Pin name="MIDI In" datatype="midi" />
      <Pin name="Retrigger" datatype="bool" />
      <Pin name="Gate" datatype="bool" direction="out" />
    </Audio>
  </Plugin>

  <Plugin id="SE MIDItoGate2" name="MIDI to Gate2" category="MIDI">
    <Audio>
      <Pin name="MIDI In" datatype="midi" />
      <Pin name="Trigger" datatype="bool" direction="out" />
      <Pin name="Gate" datatype="bool" direction="out" />
    </Audio>
  </Plugin>

  <Plugin id="SE MIDI Player2" name="MIDI Player2" category="MIDI" graphicsApi="none" >
    <Audio>
      <Pin id="0" name="File Name" direction="in" datatype="string" default="popcorn" metadata="mid" isFilename="true"/>
      <Pin id="1" name="Trigger" direction="in" datatype="float" rate="audio" default="0.1"/>
      <Pin id="2" name="Gate" direction="in" datatype="float" rate="audio" default="0.1"/>
      <Pin id="3" name="MIDI Out" direction="out" datatype="midi"/>
      <Pin id="4" name="Host BPM" direction="in" datatype="float" hostConnect="Time/BPM" />
      <Pin id="5" name="Tempo from" direction="in" datatype="enum" metadata="Host=1,MIDI File=0" default="1" isMinimised="true" />
      <Pin id="6" name="Loop Mode" direction="in" datatype="bool" default="0" />
      <Pin name="Send Clocks" datatype="bool" default="1" private="true"/>
	</Audio>
  </Plugin>

  <!-- Old version for backward compatibility -->
  <Plugin id="MIDI Player" name="MIDI Player" category="Old" graphicsApi="none" helpUrl="synthedit.chm::/mdl_MIDI_Player.htm">
    <Audio>
      <Pin id="0" name="File Name" direction="in" datatype="string" default="popcorn" metadata="mid" isFilename="true"/>
      <Pin id="1" name="Tempo" direction="in" datatype="float" rate="audio" default="1.2"/>
      <Pin id="2" name="MIDI Out" direction="out" datatype="midi"/>
      <Pin id="3" name="Ignore MIDI tempo Changes" direction="in" datatype="bool" default="0"/>
      <Pin id="4" name="Loop Mode" direction="in" datatype="bool" default="0"/>
    </Audio>
  </Plugin>
</PluginList>


