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

macros:function:triggers.addmiditrigger [2018/09/16 12:19]
icke_siegen created
macros:function:triggers.addmiditrigger [2018/09/16 12:51] (current)
icke_siegen
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.txt · Last modified: 2018/09/16 12:51 by icke_siegen