Namespaces

Variants
Actions

trigger

From Cycling '74 Wiki
(Difference between revisions)
Jump to: navigation, search
(Initial upsert from MAXobjectNT list)
 
Line 2: Line 2:
  
 
==Using the {{maxword|name=trigger}} object==
 
==Using the {{maxword|name=trigger}} object==
 +
The trigger object is extremely useful anytime that you want to force multiple output messages based on a single input.
 +
 +
Trigger has an outlet for every argument you type in and each outlet has an output type defined by the associated argument. Arguments can define a variable that passes messages of the correct type unaltered while converting those that do not match, or they can be constant values. Whenever trigger receives any message in its inlet, it outputs the associated message for each outlet in right to left order.
 +
 +
For more information on using variable types and their conversions, see the help patch or [//www.cycling74.com/docs/max6/dynamic/c74_docs.html#trigger reference file.]
  
 
=={{maxword|name=trigger}} Tutorials==
 
=={{maxword|name=trigger}} Tutorials==
 +
In [http://cycling74.com/docs/max6/dynamic/c74_docs.html#basicchapter05 Max Basic Tutorial 5: Message Order and Debugging] trigger is used to force the order of output of messages. It also demonstrates how trigger converts numerical inputs of different types.
 +
 +
[http://cycling74.com/docs/max6/dynamic/c74_docs.html#basicchapter06 Max Basic Tutorial 6: Simple Math in Max] uses the trigger object to force calculations when passing values into cold inlets.
 +
 +
[http://cycling74.com/docs/max6/dynamic/c74_docs.html#jitterchapter31 Jitter Tutorial 31: Rendering Destinations] demonstrates a common use of the trigger object in OpenGL environments to control rendering order. This is used in many patches that deal with OpenGL, where you need to erase the previous frame before drawing the next. Note the use of the "l" argument to pass the jit_matrix <matrixname> list.
  
 
=={{maxword|name=trigger}} Tips and Workarounds==
 
=={{maxword|name=trigger}} Tips and Workarounds==
 +
You can abbreviate the word trigger and simply use "t".
 +
 +
This simple patch takes the idea of calculating the delta between two input values that is shown in the help file and applies it to a matrix:
 +
<maxpat>
 +
<pre><code>
 +
----------begin_max5_patcher----------
 +
525.3ocyUEraiBCD8L7UX4yzHaLNgtmZ+NVUEYBdoNBrYMNMrsp+601.soaS
 +
ZHnrn8.1xCil48dL77KgAvLUKuAB9A3mfffWBCB7gbAB5OG.qXsaJYM9zfaE
 +
lE06Exb0dXT26k6pDxRtwm.tOXMyr4QgrXsluwz0fDzpEnH.cE0sQVgbawoo
 +
KPfG9nTpclgZE2GUj6asJa6MD7PW6xy7mZdW0gvH6C3A2aeMLzsDMRNI46s0
 +
dnvFdq4cpppA2Yet4nbM97bMIwsgwDOWwWDUQCM8WJoQxp7DEduVvJOoHXw7
 +
5JlQKZ6kiCJQi3YeZNvLAUxnJJJ4S7idB5VuBfFVOgNf+pNDuD9d40VUvv0q
 +
4RVVomLnSoDBo4pNM7aam0J.gLwQgDheCiPmYT3HR.lNgQgLlr3pN.TwaZXE
 +
7unLpZt7REEJldfnP8ZB91KQSRmfjbUkiuw0nPyx.jXDHNAM0eXVQF23xQbN
 +
n+eYbbBgx.JAkS8NjtsI4qlLkAmwpI9bfkB4eeqpmKt3eVnZT6zaF5xfqO3C
 +
1jyaLBIyHTxCSB+ojdTjmykG5FlKZbFjdRe7OYiEOzQ.mjYCMtNgOm3flU3f
 +
FCbvyBbb2TdV7foyl7jNB3LenAS+GBmt+6Y00Ow0M8kziDqU3Vk1cbYj+nP1
 +
czaxA07mDC4S7QXZqmmwZ3sS24L0ltDF55yqgugFv05l
 +
-----------end_max5_patcher-----------
 +
</code></pre>
 +
</maxpat>
  
 
==Third-Party Max externals similar to the {{maxword|name=trigger}} object==
 
==Third-Party Max externals similar to the {{maxword|name=trigger}} object==
Line 12: Line 43:
  
 
==People who looked at/used this object also looked at....==
 
==People who looked at/used this object also looked at....==
 +
*{{maxword|name=bangbang}}
 +
*{{maxword|name=buddy}}
 +
*{{maxword|name=bondo}}
 +
*{{maxword|name=join}}
 +
*{{maxword|name=jstrigger}}
 +
*{{maxword|name=pack}}
 +
*{{maxword|name=pak}}
 +
*{{maxword|name=unjoin}}
 +
*{{maxword|name=unpack}}
 +
*{{maxword|name=uzi}}
  
 
==Errors or Clarifications==
 
==Errors or Clarifications==

Latest revision as of 00:19, 2 August 2013

Contents

[edit] trigger online refpage

[edit] Using the trigger object

The trigger object is extremely useful anytime that you want to force multiple output messages based on a single input.

Trigger has an outlet for every argument you type in and each outlet has an output type defined by the associated argument. Arguments can define a variable that passes messages of the correct type unaltered while converting those that do not match, or they can be constant values. Whenever trigger receives any message in its inlet, it outputs the associated message for each outlet in right to left order.

For more information on using variable types and their conversions, see the help patch or reference file.

[edit] trigger Tutorials

In Max Basic Tutorial 5: Message Order and Debugging trigger is used to force the order of output of messages. It also demonstrates how trigger converts numerical inputs of different types.

Max Basic Tutorial 6: Simple Math in Max uses the trigger object to force calculations when passing values into cold inlets.

Jitter Tutorial 31: Rendering Destinations demonstrates a common use of the trigger object in OpenGL environments to control rendering order. This is used in many patches that deal with OpenGL, where you need to erase the previous frame before drawing the next. Note the use of the "l" argument to pass the jit_matrix <matrixname> list.

[edit] trigger Tips and Workarounds

You can abbreviate the word trigger and simply use "t".

This simple patch takes the idea of calculating the delta between two input values that is shown in the help file and applies it to a matrix:

-- Pasted Max Patch, click to expand. --

[edit] Third-Party Max externals similar to the trigger object

Maxobjects.com listing for the trigger object

[edit] People who looked at/used this object also looked at....

[edit] Errors or Clarifications

(please list things that you believe to be errors or omissions from the existing refpage)