Function

Triggers.AddMidiTrigger

Void Triggers.AddMidiTrigger(Int32 mappingId, TriggerTargetData targetData, Int32 channel, PanelMidiCommands panelCommand, 
                             Int32 value, Int32 min, Int32 max, Int32 threshold, Boolean useLevelMatching)
API http://api.avolites.com/11.0/Triggers.AddMidiTrigger.html
description Adds a midi trigger and sets all its details.
namespace Triggers
parameter mappingId ( Int32 ) : The id of the mapping to add the trigger to.
targetData ( Object ) : The target data. The API states this is a separate type,
however it is assumed that this is simply an object, most likely the Triggers.PendingTriggerTarget
channel ( Int32 ) : The MIDI channel.
panelCommand ( Enum PanelMidiCommands ) : The MIDI command.
value ( Int32 ) : The MIDI value coming with the command.
min ( Int32 ) : minimum value
max ( Int32 ) : maximum value
threshold ( Int32 ) : threshold
useLevelMatching ( Boolean ) : if set to true [use level matching].
return value Void
Example in

Trigger - Add MIDi trigger:

<!-- lines wrapped only for readability -->
  <step>Triggers.AddMidiTrigger(
    Triggers.SelectedMappingId, 
    Triggers.PendingTriggerTarget, 
    1, 
    Math.ToEnum(
      "Avolites.Titan.Controllers.Console", 
      "Avolites.Titan.Controllers.Console.PanelMidiCommands", 
      "Continuous"), 
    1,
    0, 
    127, 
    0, 
    false)
  </step>
Also used in
Remarks