User Tools

Site Tools


macros:function:triggers.addmiditrigger

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
You could leave a comment if you were logged in.
macros/function/triggers.addmiditrigger.txt · Last modified: 2018/09/16 10:51 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki