This macro adds midi triggers apc mini mk1's buttons and faders to playbacks windows' first slot to 81 slot and main playback faders.
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<avolites.macros>
<macro id="Add_Trigger_For_APC_MINI_MK1">
<name>Add_Trigger_For_APC_MINI_MK1</name>
<sequence>
<step pause="0.01">Triggers.AddMapping("APC_MINI_MK1", 8655)</step>
<step pause="0.01">Triggers.SelectMappingByName("APC_MINI_MK1")</step>
<step pause="0.01">Triggers.SetPendingTargetHardware("PlaybackTouch", Math.ToEnum("", "Avolites.Menus.MenuEventTypes", OnSelect), "PlaybackWindow", 0, "Touch")</step>
<step pause="0.01">Triggers.AddSAcnTrigger(Triggers.SelectedMappingId, Triggers.PendingTriggerTarget, 8, 56, 1, false)</step>
<step pause="0.01">Triggers.ClearPendingTrigger()</step>
<step pause="0.01">Triggers.ClearSelectedMapping()</step>
<step pause="0.01">Triggers.SelectMappingByName("APC_MINI_MK1")</step>
<step pause="0.01">Triggers.SetPendingTargetHardware("PlaybackTouch", Math.ToEnum("", "Avolites.Menus.MenuEventTypes", OnSelect), "PlaybackWindow", 1, "Touch")</step>
<step pause="0.01">Triggers.AddSAcnTrigger(Triggers.SelectedMappingId, Triggers.PendingTriggerTarget, 8, 57, 1, false)</step>
<step pause="0.01">Triggers.ClearPendingTrigger()</step>
<step pause="0.01">Triggers.ClearSelectedMapping()</step>
...............
<step pause="0.01">Triggers.SelectMappingByName("APC_MINI_MK1")</step>
<step pause="0.01">Triggers.SetPendingTargetHardware("FaderMove.Fader.PlaybackFader", Math.ToEnum("", "Avolites.Menus.MenuEventTypes", "OnValueChanged"), "Playbacks", 0, "")</step>
<step pause="0.01">Triggers.AddMidiTrigger(Triggers.SelectedMappingId, Triggers.PendingTriggerTarget, 1, Math.ToEnum("Avolites.Titan.Controllers.Console", "Avolites.Titan.Controllers.Console.PanelMidiCommands", "Continuous"), 47, 0, 127,0,false)</step>
<step pause="0.01">Triggers.ClearPendingTrigger()</step>
<step pause="0.01">Triggers.ClearSelectedMapping()</step>
<step pause="0.01">Triggers.SelectMappingByName("APC_MINI_MK1")</step>
<step pause="0.01">Triggers.SetPendingTargetHardware("FaderMove.Fader.PlaybackFader", Math.ToEnum("", "Avolites.Menus.MenuEventTypes", "OnValueChanged"), "Playbacks", 1, "")</step>
<step pause="0.01">Triggers.AddMidiTrigger(Triggers.SelectedMappingId, Triggers.PendingTriggerTarget, 1, Math.ToEnum("Avolites.Titan.Controllers.Console", "Avolites.Titan.Controllers.Console.PanelMidiCommands", "Continuous"), 48, 0, 127,0,false)</step>
<step pause="0.01">Triggers.ClearPendingTrigger()</step>
<step pause="0.01">Triggers.ClearSelectedMapping()</step>
....................
</sequence>
</macro>
</avolites.macros>