User Tools

Site Tools


macros:function:triggers.addmiditrigger

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
macros:function:triggers.addmiditrigger [2018/09/16 10:19] – created icke_siegenmacros:function:triggers.addmiditrigger [2018/09/16 10:51] (current) – external edit 127.0.0.1
Line 10: Line 10:
 ^ [[macros:namespace|namespace]] | [[macros:namespace:triggers]] | ^ [[macros:namespace|namespace]] | [[macros:namespace:triggers]] |
 ^ parameter | mappingId ( [[macros:type:int32]] ) : The id of the mapping to add the trigger to. | ^ parameter | mappingId ( [[macros:type:int32]] ) : The id of the mapping to add the trigger to. |
-^ ::: | targetData ( [[macros:type:TriggerTargetData]] ) : The target data. | +^ ::: | targetData ( [[macros:type: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 [[macros:property:triggers.pendingtriggertarget|]] 
-^ ::: | parameter2 ( [[macros:type:]] ) : description of parameter2 +^ ::: | channel ( [[macros:type:int32]] ) : The MIDI channel. 
-^ ::: | parameter2 ( [[macros:type:]] ) : description of parameter2 +^ ::: | panelCommand ( [[macros:type:enum|]] [[macros:identifier:PanelMidiCommands]] ) : The MIDI command. 
-^ ::: | parameter2 ( [[macros:type:]] ) : description of parameter2 +^ ::: | value ( [[macros:type:int32]] ) : The MIDI value coming with the command. 
-^ ::: | parameter2 ( [[macros:type:]] ) : description of parameter2 +^ ::: | min ( [[macros:type:int32]] ) : minimum value 
-^ ::: | parameter2 ( [[macros:type:]] ) : description of parameter2 |+^ ::: | max ( [[macros:type:int32]] ) : maximum value | 
 +^ ::: | threshold ( [[macros:type:int32]] ) : threshold | 
 +^ ::: | useLevelMatching ( [[macros:type:boolean]] ) : if set to true [use level matching]. |
 ^ return value | [[macros:type:void]] |   ^ return value | [[macros:type:void]] |  
  
 == Example in ==  == Example in == 
-[[macros:example:]]: +[[macros:example:addmiditrigger]]: 
  
 <code xml> <code xml>
 +<!-- 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>
 </code> </code>
  
macros/function/triggers.addmiditrigger.1537093145.txt.gz · Last modified: 2018/09/16 10:19 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki