<?xml version="1.0" encoding="utf-8"?>
<avolites.macros>

<!-- 
	from http://forum.avolites.com/viewtopic.php?f=3&t=6293&p=24354#p24353
	tap a master, and also send DMX by firing a playback
	details for tapping masters: http://forum.avolites.com/viewtopic.php?f=3&t=6293&p=24354#p24353
	details for flashing a playback: https://www.avolites.de/wiki/macros/example/fireflashplaybacks
	
	Usage:
	 - move this macro to a suitable handle, e.g. in the playbacks window (make sure to MOVE it - copy doesn't work here)
	 - patch a dimmer to the channel which you want to send to e.g. Resolume
	 - set this dimmer to full, program a playback, Clear, give this playback User Number 901
	 - create a trigger which fires the playback button you have copied the macro to
-->

  <macro id="Avolites.Macros.TapBPM1AndFlash" name="Tap BPM 1 and Flash PB 901">
    <start>
      <step>Masters.TapTempo(1612, Math.GetCurrentTimeStamp())</step>
	  <step>Playbacks.FlashPlayback("cueHandleUN=901")</step>
    </start>
	<end>
	  <step>Playbacks.ClearFlashPlayback("cueHandleUN=901")</step>	
	</end>
  </macro>
  
</avolites.macros>