macros:function:triggers.addmiditrigger
This is an old revision of the document!
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
<!-- 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.1537095073.txt.gz · Last modified: 2018/09/16 10:51 (external edit)
