Difference between revisions of "Logic CHOP"

From Derivative
Jump to navigation Jump to search
(TD Editor)
(cleaning)
Tags: 2018.28070 2021.10000
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Summary
 
{{Summary
|OPfilter=True
+
|opFilter=True
 
|long=The Logic CHOP first converts channels of all its input CHOPs into binary (0 = off, 1 = on) channels and then combines the channels using a variety of logic operations.
 
|long=The Logic CHOP first converts channels of all its input CHOPs into binary (0 = off, 1 = on) channels and then combines the channels using a variety of logic operations.
 
 
Line 12: Line 12:
 
 
 
To do math operations (add, multiply, ...) between channels or CHOPs, use the [[Math CHOP]].
 
To do math operations (add, multiply, ...) between channels or CHOPs, use the [[Math CHOP]].
|OPlicense=Non-Commercial
+
|opLicense=Non-Commercial
|OPclass=logicCHOP_Class
+
|opClass=logicCHOP_Class
|OPlabel=Logic
+
|opLabel=Logic
|OPfamily=CHOP
+
|opFamily=CHOP
|OPtype=logic
+
|opType=logic
 
|short=The Logic CHOP first converts channels of all its input CHOPs into binary (0 = off, 1 = on) channels and then combines the channels using a variety of logic operations.
 
|short=The Logic CHOP first converts channels of all its input CHOPs into binary (0 = off, 1 = on) channels and then combines the channels using a variety of logic operations.
 
}}
 
}}
 
{{ParameterPage
 
{{ParameterPage
|OPfamily=CHOP
+
|opFamily=CHOP
|Pagename=Logic
+
|pageName=Logic
 
|items=
 
|items=
{{ParMenu
+
{{Parameter|parName=convert
|Parname=convert
+
|parItems=
|Paritems=
+
{{ParameterItem|itemName=nonzero
{{Menuitem
+
|opFamily=CHOP
|Itemname=nonzero
+
|parName=convert
|OPfamily=CHOP
+
|itemLabel=Off When Zero
|Parname=convert
+
|itemSummary=Returns a logical 0 when channel value is zero;<br /> Non zero values return 1.
|Itemlabel=Off When Zero
+
}}<!--
|Itemsummary=Returns a logical 0 when channel value is zero;<br /> Non zero values return 1.
+
-->{{ParameterItem|itemName=pos
}}
+
|opFamily=CHOP
{{Menuitem
+
|parName=convert
|Itemname=pos
+
|itemLabel=Off When Zero Or Less
|OPfamily=CHOP
+
|itemSummary=Returns a logical 0 when a channel value is zero or less; and 1 when values are positive.
|Parname=convert
+
}}<!--
|Itemlabel=Off When Zero Or Less
+
-->{{ParameterItem|itemName=bound
|Itemsummary=Returns a logical 0 when a channel value is zero or less; and 1 when values are positive.
+
|opFamily=CHOP
}}
+
|parName=convert
{{Menuitem
+
|itemLabel=Off When Outside Bounds
|Itemname=bound
+
|itemSummary=Returns 0 when channel value is outside the bounds set by the Bounds parameter below.
|OPfamily=CHOP
+
}}<!--
|Parname=convert
+
-->{{ParameterItem|itemName=valchange
|Itemlabel=Off When Outside Bounds
+
|opFamily=CHOP
|Itemsummary=Returns 0 when channel value is outside the bounds set by the <span class="tipTextCHOP">Bounds</span> parameter below.
+
|parName=convert
}}
+
|itemLabel=On When Value Changed
{{Menuitem
+
|itemSummary=Returns 1 when the channel value changes.
|Itemname=valchange
+
}}<!--
|OPfamily=CHOP
+
-->{{ParameterItem|itemName=namechange
|Parname=convert
+
|opFamily=CHOP
|Itemlabel=On When Value Changed
+
|parName=convert
|Itemsummary=Returns 1 when the channel value changes.
+
|itemLabel=On When Channel Name Changed
}}
+
|itemSummary=Returns 1 when the channel name changes.
{{Menuitem
 
|Itemname=namechange
 
|OPfamily=CHOP
 
|Parname=convert
 
|Itemlabel=On When Channel Name Changed
 
|Itemsummary=Returns 1 when the channel name changes.
 
 
 
 
[[Image:TouchChannels92.gif]]
 
[[Image:TouchChannels92.gif]]
Line 65: Line 59:
 
}}
 
}}
 
 
|Parorder=0
+
|parOrder=0
|Parlabel=Convert Input
+
|parLabel=Convert Input
|OPfamily=CHOP
+
|opFamily=CHOP
|OPtype=logic
+
|opType=logic
|Parsummary=This menu determines the method to convert inputs to binary:
+
|parSummary=This menu determines the method to convert inputs to binary:
}}
+
|parType=
{{ParMenu
+
|parReadOnly=
|Parname=preop
+
}}
|Paritems=
+
{{Parameter|parName=preop
{{Menuitem
+
|parItems=
|Itemname=off
+
{{ParameterItem|itemName=off
|OPfamily=CHOP
+
|opFamily=CHOP
|Parname=preop
+
|parName=preop
|Itemlabel=Off
+
|itemLabel=Off
|Itemsummary=
+
|itemSummary=
 +
}}<!--
 +
-->{{ParameterItem|itemName=invert
 +
|opFamily=CHOP
 +
|parName=preop
 +
|itemLabel=Invert
 +
|itemSummary=Changes 0 to 1; and 1 to 0.
 +
}}<!--
 +
-->{{ParameterItem|itemName=toggle
 +
|opFamily=CHOP
 +
|parName=preop
 +
|itemLabel=Toggle
 +
|itemSummary=Causes each 0 to 1 transition of the input channel to switch the current state between 0 and 1.
 +
}}<!--
 +
-->{{ParameterItem|itemName=radio
 +
|opFamily=CHOP
 +
|parName=preop
 +
|itemLabel=Radio Button
 +
|itemSummary=Only one channel per input can be on at once. If another channel turns on, the previously "on" channel is turned off.
 +
}}<!--
 +
-->{{ParameterItem|itemName=radio2
 +
|opFamily=CHOP
 +
|parName=preop
 +
|itemLabel=Last Two On
 +
|itemSummary=This is like Radio Button, but it keeps up to two channels on. If followed by a [[Lag CHOP]], it is useful for blending between pairs of poses.
 +
}}<!--
 +
-->{{ParameterItem|itemName=rise
 +
|opFamily=CHOP
 +
|parName=preop
 +
|itemLabel=Rising Edge
 +
|itemSummary=On for one sample only, at each place where a channel goes from off to on.
 +
}}<!--
 +
-->{{ParameterItem|itemName=fall
 +
|opFamily=CHOP
 +
|parName=preop
 +
|itemLabel=Falling Edge
 +
|itemSummary=On for one sample only, at each place where a a channel goes from on to off.
 
}}
 
}}
{{Menuitem
+
|Itemname=invert
+
|parOrder=1
|OPfamily=CHOP
+
|parLabel=Channel Pre OP
|Parname=preop
+
|opFamily=CHOP
|Itemlabel=Invert
+
|opType=logic
|Itemsummary=Changes 0 to 1; and 1 to 0.
+
|parSummary=Once converted by the Convert Input stage, Channel Pre OP defines a unary operation on each input sample:
}}
+
|parType=
{{Menuitem
+
|parReadOnly=
|Itemname=toggle
+
}}
|OPfamily=CHOP
+
{{Parameter|parName=chanop
|Parname=preop
+
|parItems=
|Itemlabel=Toggle
+
{{ParameterItem|itemName=off
|Itemsummary=Causes each 0 to 1 transition of the input channel to switch the current state between 0 and 1.
+
|opFamily=CHOP
}}
+
|parName=chanop
{{Menuitem
+
|itemLabel=Off
|Itemname=radio
+
|itemSummary=
|OPfamily=CHOP
+
}}<!--
|Parname=preop
+
-->{{ParameterItem|itemName=and
|Itemlabel=Radio Button
+
|opFamily=CHOP
|Itemsummary=Only one channel per input can be on at once. If another channel turns on, the previously "on" channel is turned off.
+
|parName=chanop
}}
+
|itemLabel=And
{{Menuitem
+
|itemSummary=
|Itemname=radio2
+
}}<!--
|OPfamily=CHOP
+
-->{{ParameterItem|itemName=or
|Parname=preop
+
|opFamily=CHOP
|Itemlabel=Last Two On
+
|parName=chanop
|Itemsummary=This is like Radio Button, but it keeps up to two channels on. If followed by a [[Lag CHOP]], it is useful for blending between pairs of poses.
+
|itemLabel=Or
}}
+
|itemSummary=
{{Menuitem
+
}}<!--
|Itemname=rise
+
-->{{ParameterItem|itemName=xor
|OPfamily=CHOP
+
|opFamily=CHOP
|Parname=preop
+
|parName=chanop
|Itemlabel=Rising Edge
+
|itemLabel=Exclusive Or
|Itemsummary=On for one sample only, at each place where a channel goes from off to on.
+
|itemSummary=
}}
+
}}<!--
{{Menuitem
+
-->{{ParameterItem|itemName=nand
|Itemname=fall
+
|opFamily=CHOP
|OPfamily=CHOP
+
|parName=chanop
|Parname=preop
+
|itemLabel=Not And
|Itemlabel=Falling Edge
+
|itemSummary=
|Itemsummary=On for one sample only, at each place where a a channel goes from on to off.
+
}}<!--
 +
-->{{ParameterItem|itemName=nor
 +
|opFamily=CHOP
 +
|parName=chanop
 +
|itemLabel=Not Or
 +
|itemSummary=
 +
}}<!--
 +
-->{{ParameterItem|itemName=eqv
 +
|opFamily=CHOP
 +
|parName=chanop
 +
|itemLabel=Equivalence
 +
|itemSummary=
 +
}}<!--
 +
-->{{ParameterItem|itemName=lowest
 +
|opFamily=CHOP
 +
|parName=chanop
 +
|itemLabel=Lowest Index On
 +
|itemSummary=
 +
}}<!--
 +
-->{{ParameterItem|itemName=highest
 +
|opFamily=CHOP
 +
|parName=chanop
 +
|itemLabel=Highest Index On
 +
|itemSummary=
 
}}
 
}}
 
 
|Parorder=1
+
|parOrder=2
|Parlabel=Channel Pre OP
+
|parLabel=Combine Channels
|OPfamily=CHOP
+
|opFamily=CHOP
|OPtype=logic
+
|opType=logic
|Parsummary=Once converted by the Convert Input stage, Channel Pre OP defines a unary operation on each input sample:
+
|parSummary=Takes the first input and combines its channels, then the second input and combines its channels, and so on.
}}
+
|parType=
{{ParMenu
+
|parReadOnly=
|Parname=chanop
+
}}
|Paritems=
+
{{Parameter|parName=chopop
{{Menuitem
+
|parItems=
|Itemname=off
+
{{ParameterItem|itemName=off
|OPfamily=CHOP
+
|opFamily=CHOP
|Parname=chanop
+
|parName=chopop
|Itemlabel=Off
+
|itemLabel=Off
|Itemsummary=
+
|itemSummary=
}}
+
}}<!--
{{Menuitem
+
-->{{ParameterItem|itemName=and
|Itemname=and
+
|opFamily=CHOP
|OPfamily=CHOP
+
|parName=chopop
|Parname=chanop
+
|itemLabel=And
|Itemlabel=And
+
|itemSummary=On if all inputs are on, otherwise off.
|Itemsummary=
+
}}<!--
}}
+
-->{{ParameterItem|itemName=or
{{Menuitem
+
|opFamily=CHOP
|Itemname=or
+
|parName=chopop
|OPfamily=CHOP
+
|itemLabel=Or
|Parname=chanop
+
|itemSummary=On if at least one input is on, otherwise off.
|Itemlabel=Or
+
}}<!--
|Itemsummary=
+
-->{{ParameterItem|itemName=xor
}}
+
|opFamily=CHOP
{{Menuitem
+
|parName=chopop
|Itemname=xor
+
|itemLabel=Exclusive Or
|OPfamily=CHOP
+
|itemSummary=On if one input on, but not more than one.
|Parname=chanop
+
}}<!--
|Itemlabel=Exclusive Or
+
-->{{ParameterItem|itemName=nand
|Itemsummary=
+
|opFamily=CHOP
}}
+
|parName=chopop
{{Menuitem
+
|itemLabel=Not And
|Itemname=nand
+
|itemSummary=Off if all inputs are on, otherwise on.
|OPfamily=CHOP
+
}}<!--
|Parname=chanop
+
-->{{ParameterItem|itemName=nor
|Itemlabel=Not And
+
|opFamily=CHOP
|Itemsummary=
+
|parName=chopop
}}
+
|itemLabel=Not Or
{{Menuitem
+
|itemSummary=Off if at least one input is on, otherwise on.
|Itemname=nor
+
}}<!--
|OPfamily=CHOP
+
-->{{ParameterItem|itemName=eqv
|Parname=chanop
+
|opFamily=CHOP
|Itemlabel=Not Or
+
|parName=chopop
|Itemsummary=
+
|itemLabel=Equivalence
}}
+
|itemSummary=On if inputs are equal (all on or off), otherwise off.
{{Menuitem
+
}}<!--
|Itemname=eqv
+
-->{{ParameterItem|itemName=lowest
|OPfamily=CHOP
+
|opFamily=CHOP
|Parname=chanop
+
|parName=chopop
|Itemlabel=Equivalence
+
|itemLabel=Lowest Index On
|Itemsummary=
+
|itemSummary=Gives the lowest index of the channel that is currently on,<br /> or -1 if no channels are on.
}}
+
}}<!--
{{Menuitem
+
-->{{ParameterItem|itemName=highest
|Itemname=lowest
+
|opFamily=CHOP
|OPfamily=CHOP
+
|parName=chopop
|Parname=chanop
+
|itemLabel=Highest Index On
|Itemlabel=Lowest Index On
+
|itemSummary=Gives the highest index of the channel that is currently on on,<br /> or -1 if no channels are on.
|Itemsummary=
+
}}
+
[[Image:TouchChannels93.gif]]
{{Menuitem
 
|Itemname=highest
 
|OPfamily=CHOP
 
|Parname=chanop
 
|Itemlabel=Highest Index On
 
|Itemsummary=
 
}}
 
 
 
|Parorder=2
 
|Parlabel=Combine Channels
 
|OPfamily=CHOP
 
|OPtype=logic
 
|Parsummary=
 
}}
 
{{ParMenu
 
|Parname=chopop
 
|Paritems=
 
{{Menuitem
 
|Itemname=off
 
|OPfamily=CHOP
 
|Parname=chopop
 
|Itemlabel=Off
 
|Itemsummary=
 
}}
 
{{Menuitem
 
|Itemname=and
 
|OPfamily=CHOP
 
|Parname=chopop
 
|Itemlabel=And
 
|Itemsummary=
 
}}
 
{{Menuitem
 
|Itemname=or
 
|OPfamily=CHOP
 
|Parname=chopop
 
|Itemlabel=Or
 
|Itemsummary=
 
}}
 
{{Menuitem
 
|Itemname=xor
 
|OPfamily=CHOP
 
|Parname=chopop
 
|Itemlabel=Exclusive Or
 
|Itemsummary=
 
}}
 
{{Menuitem
 
|Itemname=nand
 
|OPfamily=CHOP
 
|Parname=chopop
 
|Itemlabel=Not And
 
|Itemsummary=
 
}}
 
{{Menuitem
 
|Itemname=nor
 
|OPfamily=CHOP
 
|Parname=chopop
 
|Itemlabel=Not Or
 
|Itemsummary=
 
}}
 
{{Menuitem
 
|Itemname=eqv
 
|OPfamily=CHOP
 
|Parname=chopop
 
|Itemlabel=Equivalence
 
|Itemsummary=
 
}}
 
{{Menuitem
 
|Itemname=lowest
 
|OPfamily=CHOP
 
|Parname=chopop
 
|Itemlabel=Lowest Index On
 
|Itemsummary=
 
}}
 
{{Menuitem
 
|Itemname=highest
 
|OPfamily=CHOP
 
|Parname=chopop
 
|Itemlabel=Highest Index On
 
|Itemsummary=
 
 
}}
 
}}
 
 
|Parorder=3
+
|parOrder=3
|Parlabel=Combine CHOPs
+
|parLabel=Combine CHOPs
|OPfamily=CHOP
+
|opFamily=CHOP
|OPtype=logic
+
|opType=logic
|Parsummary=
+
|parSummary=Combine CHOPs combines the first channels of each CHOP, the second channels of each CHOP, etc.. Channels between inputs can be combined by number or name. Combining (Logic) Operations are:
}}
+
|parType=
{{ParMenu
+
|parReadOnly=
|Parname=match
+
}}
|Paritems=
+
{{Parameter|parName=match
{{Menuitem
+
|parItems=
|Itemname=index
+
{{ParameterItem|itemName=index
|OPfamily=CHOP
+
|opFamily=CHOP
|Parname=match
+
|parName=match
|Itemlabel=Channel Number
+
|itemLabel=Channel Number
|Itemsummary=
+
|itemSummary=
}}
+
}}<!--
{{Menuitem
+
-->{{ParameterItem|itemName=name
|Itemname=name
+
|opFamily=CHOP
|OPfamily=CHOP
+
|parName=match
|Parname=match
+
|itemLabel=Channel Name
|Itemlabel=Channel Name
+
|itemSummary=
|Itemsummary=
 
 
}}
 
}}
 
 
|Parorder=4
+
|parOrder=4
|Parlabel=Match by
+
|parLabel=Match by
|OPfamily=CHOP
+
|opFamily=CHOP
|OPtype=logic
+
|opType=logic
|Parsummary=
+
|parSummary=Channels are matched between inputs by Channel Name or Channel Number.
}}
+
|parType=
{{ParMenu
+
|parReadOnly=
|Parname=align
+
}}
|Paritems=
+
{{Parameter|parName=align
{{Menuitem
+
|parItems=
|Itemname=auto
+
{{ParameterItem|itemName=auto
|OPfamily=CHOP
+
|opFamily=CHOP
|Parname=align
+
|parName=align
|Itemlabel=Automatic
+
|itemLabel=Automatic
|Itemsummary=
+
|itemSummary=
}}
+
}}<!--
{{Menuitem
+
-->{{ParameterItem|itemName=none
|Itemname=none
+
|opFamily=CHOP
|OPfamily=CHOP
+
|parName=align
|Parname=align
+
|itemLabel=Extend to Min/Max
|Itemlabel=Extend to Min/Max
+
|itemSummary=
|Itemsummary=
+
}}<!--
}}
+
-->{{ParameterItem|itemName=stretch
{{Menuitem
+
|opFamily=CHOP
|Itemname=stretch
+
|parName=align
|OPfamily=CHOP
+
|itemLabel=Stretch to Min/Max
|Parname=align
+
|itemSummary=
|Itemlabel=Stretch to Min/Max
+
}}<!--
|Itemsummary=
+
-->{{ParameterItem|itemName=start
}}
+
|opFamily=CHOP
{{Menuitem
+
|parName=align
|Itemname=start
+
|itemLabel=Shift to Minimum
|OPfamily=CHOP
+
|itemSummary=
|Parname=align
+
}}<!--
|Itemlabel=Shift to Minimum
+
-->{{ParameterItem|itemName=end
|Itemsummary=
+
|opFamily=CHOP
}}
+
|parName=align
{{Menuitem
+
|itemLabel=Shift to Maximum
|Itemname=end
+
|itemSummary=
|OPfamily=CHOP
+
}}<!--
|Parname=align
+
-->{{ParameterItem|itemName=shift1
|Itemlabel=Shift to Maximum
+
|opFamily=CHOP
|Itemsummary=
+
|parName=align
}}
+
|itemLabel=Shift to First Interval
{{Menuitem
+
|itemSummary=
|Itemname=shift1
+
}}<!--
|OPfamily=CHOP
+
-->{{ParameterItem|itemName=trim1
|Parname=align
+
|opFamily=CHOP
|Itemlabel=Shift to First Interval
+
|parName=align
|Itemsummary=
+
|itemLabel=Trim to First Interval
}}
+
|itemSummary=
{{Menuitem
+
}}<!--
|Itemname=trim1
+
-->{{ParameterItem|itemName=stretch1
|OPfamily=CHOP
+
|opFamily=CHOP
|Parname=align
+
|parName=align
|Itemlabel=Trim to First Interval
+
|itemLabel=Stretch to First Interval
|Itemsummary=
+
|itemSummary=
}}
+
}}<!--
{{Menuitem
+
-->{{ParameterItem|itemName=trim
|Itemname=stretch1
+
|opFamily=CHOP
|OPfamily=CHOP
+
|parName=align
|Parname=align
+
|itemLabel=Trim to Smallest Interval
|Itemlabel=Stretch to First Interval
+
|itemSummary=
|Itemsummary=
+
}}<!--
}}
+
-->{{ParameterItem|itemName=squash
{{Menuitem
+
|opFamily=CHOP
|Itemname=trim
+
|parName=align
|OPfamily=CHOP
+
|itemLabel=Stretch to Smallest Interval
|Parname=align
+
|itemSummary=
|Itemlabel=Trim to Smallest Interval
 
|Itemsummary=
 
}}
 
{{Menuitem
 
|Itemname=squash
 
|OPfamily=CHOP
 
|Parname=align
 
|Itemlabel=Stretch to Smallest Interval
 
|Itemsummary=
 
 
}}
 
}}
 
 
|Parorder=5
+
|parOrder=5
|Parlabel=Align
+
|parLabel=Align
|OPfamily=CHOP
+
|opFamily=CHOP
|OPtype=logic
+
|opType=logic
|Parsummary=
+
|parSummary=Inputs that don't start at the same frame can be aligned. Se the section, Align Options.
}}
+
|parType=
{{ParFloat
+
|parReadOnly=
|Parname=bound
+
}}
|Paritems=
+
{{Parameter|parName=bound
{{floatitem
+
|parItems=
|Itemname=boundmin
+
{{ParameterItem|itemName=boundmin
|OPfamily=CHOP
+
|opFamily=CHOP
|Parname=bound
+
|parName=bound
|Itemlabel=""
+
|itemLabel=""
|Itemsummary=
+
|itemSummary=
}}
+
}}<!--
{{floatitem
+
-->{{ParameterItem|itemName=boundmax
|Itemname=boundmax
+
|opFamily=CHOP
|OPfamily=CHOP
+
|parName=bound
|Parname=bound
+
|itemLabel=""
|Itemlabel=""
+
|itemSummary=
|Itemsummary=
 
 
}}
 
}}
 
 
|Parorder=6
+
|parOrder=6
|Parlabel=Bounds
+
|parLabel=Bounds
|OPfamily=CHOP
+
|opFamily=CHOP
|OPtype=logic
+
|opType=logic
|Parsummary=
+
|parSummary=Set lower and upper bounds for when Convert Input is set to '''Off When Outside Bounds'''.
}}
+
|parType=
 +
|parReadOnly=
 +
}}
 
 
|Pagesummary=
+
|pageSummary=
 
}}
 
}}
 
{{:CHOP Filter Common Page
 
{{:CHOP Filter Common Page
 
}}
 
}}
{{History
+
{{InputsPage
 +
|opFamily=CHOP
 +
|opInputs={{OPInput
 +
|opFamily=CHOP
 +
|inputIndex=0
 +
|inputName=
 +
|inputSummary=
 +
}}
 +
}}{{History
 
}}
 
}}
 
{{CHOPNavBox
 
{{CHOPNavBox
|OPfamily=CHOP
+
|opFamily=CHOP
 
}}
 
}}
 
{{#invoke:Category
 
{{#invoke:Category
 
|list|CHOPs}}
 
|list|CHOPs}}

Latest revision as of 19:34, 24 January 2019

Summary
[edit]

The Logic CHOP first converts channels of all its input CHOPs into binary (0 = off, 1 = on) channels and then combines the channels using a variety of logic operations.

NOTE: The Logic CHOP is superceded by more convenient operators like the CHOP Execute DAT or the Text DAT which will run their scripts when CHOP channels change.

The Logic CHOP performs logic operations on the samples in CHOP channels. The channels of a CHOP can be combined into one channel, and several CHOPs can be combined into one CHOP.

With one input CHOP, you can invert the values of each sample. You can also do logic operations on the samples of one channel by the samples in the other channels, reducing N channels down to one. You can combine by applying an "or", "and", etc..

With two or more CHOP inputs, you can combine the channels in one CHOP with the channels in all the other CHOPs, reducing N CHOPs to 1.

To do math operations (add, multiply, ...) between channels or CHOPs, use the Math CHOP.

PythonIcon.pnglogicCHOP_Class


Parameters - Logic Page

Convert Input convert - - This menu determines the method to convert inputs to binary:

  • Off When Zero nonzero - Returns a logical 0 when channel value is zero;
    Non zero values return 1.
  • Off When Zero Or Less pos - Returns a logical 0 when a channel value is zero or less; and 1 when values are positive.
  • Off When Outside Bounds bound - Returns 0 when channel value is outside the bounds set by the Bounds parameter below.
  • On When Value Changed valchange - Returns 1 when the channel value changes.
  • On When Channel Name Changed namechange - Returns 1 when the channel name changes.

TouchChannels92.gif

Channel Pre OP preop - - Once converted by the Convert Input stage, Channel Pre OP defines a unary operation on each input sample:

  • Off off -
  • Invert invert - Changes 0 to 1; and 1 to 0.
  • Toggle toggle - Causes each 0 to 1 transition of the input channel to switch the current state between 0 and 1.
  • Radio Button radio - Only one channel per input can be on at once. If another channel turns on, the previously "on" channel is turned off.
  • Last Two On radio2 - This is like Radio Button, but it keeps up to two channels on. If followed by a Lag CHOP, it is useful for blending between pairs of poses.
  • Rising Edge rise - On for one sample only, at each place where a channel goes from off to on.
  • Falling Edge fall - On for one sample only, at each place where a a channel goes from on to off.

Combine Channels chanop - - Takes the first input and combines its channels, then the second input and combines its channels, and so on.

  • Off off -
  • And and -
  • Or or -
  • Exclusive Or xor -
  • Not And nand -
  • Not Or nor -
  • Equivalence eqv -
  • Lowest Index On lowest -
  • Highest Index On highest -

Combine CHOPs chopop - - Combine CHOPs combines the first channels of each CHOP, the second channels of each CHOP, etc.. Channels between inputs can be combined by number or name. Combining (Logic) Operations are:

  • Off off -
  • And and - On if all inputs are on, otherwise off.
  • Or or - On if at least one input is on, otherwise off.
  • Exclusive Or xor - On if one input on, but not more than one.
  • Not And nand - Off if all inputs are on, otherwise on.
  • Not Or nor - Off if at least one input is on, otherwise on.
  • Equivalence eqv - On if inputs are equal (all on or off), otherwise off.
  • Lowest Index On lowest - Gives the lowest index of the channel that is currently on,
    or -1 if no channels are on.
  • Highest Index On highest - Gives the highest index of the channel that is currently on on,
    or -1 if no channels are on.

TouchChannels93.gif

Match by match - - Channels are matched between inputs by Channel Name or Channel Number.

  • Channel Number index -
  • Channel Name name -

Align align - - Inputs that don't start at the same frame can be aligned. Se the section, Align Options.

  • Automatic auto -
  • Extend to Min/Max none -
  • Stretch to Min/Max stretch -
  • Shift to Minimum start -
  • Shift to Maximum end -
  • Shift to First Interval shift1 -
  • Trim to First Interval trim1 -
  • Stretch to First Interval stretch1 -
  • Trim to Smallest Interval trim -
  • Stretch to Smallest Interval squash -

Bounds bound - - Set lower and upper bounds for when Convert Input is set to Off When Outside Bounds.

  • boundmin -
  • boundmax -


Parameters - Common Page

Time Slice timeslice - Turning this on forces the channels to be "Time Sliced". A Time Slice is the time between the last cook frame and the current cook frame.

Scope scope - To determine which channels get affected, some CHOPs use a Scope string on the Common page.

Sample Rate Match srselect - - Handle cases where multiple input CHOPs' sample rates are different. When Resampling occurs, the curves are interpolated according to the Interpolation Method Option, or "Linear" if the Interpolate Options are not available.

  • Resample At First Input's Rate first - Use rate of first input to resample others.
  • Resample At Maximum Rate max - Resample to the highest sample rate.
  • Resample At Minimum Rate min - Resample to the lowest sample rate.
  • Error If Rates Differ err - Doesn't accept conflicting sample rates.

Export Method exportmethod - - This will determine how to connect the CHOP channel to the parameter. Refer to the Export article for more information.

  • DAT Table by Index datindex - Uses the docked DAT table and references the channel via the index of the channel in the CHOP.
  • DAT Table by Name datname - Uses the docked DAT table and references the channel via the name of the channel in the CHOP.
  • Channel Name is Path:Parameter autoname - The channel is the full destination of where to export to, such has geo1/transform1:tx.

Export Root autoexportroot - This path points to the root node where all of the paths that exporting by Channel Name is Path:Parameter are relative to.

Export Table exporttable - The DAT used to hold the export information when using the DAT Table Export Methods (See above).


Operator Inputs

  • Input 0 -

TouchDesigner Build:

CHOPs
Ableton Link • Analyze • Angle • Attribute • Audio Band EQ • Audio Device In • Audio Device Out • Audio Dynamics • Audio File In • Audio File Out • Audio Filter • Audio Movie • Audio NDI • Audio Oscillator • Audio Para EQ • Audio Play • Audio Render • Audio Spectrum • Audio Stream In • Audio Stream Out • Beat • Bind • BlackTrax • Blend • Blob Track • Bullet Solver • Clip Blender • Clip • Clock • Composite • Constant • Copy • Count • CPlusPlus • Cross • Cycle • DAT to • Delay • Delete • DMX In • DMX Out • Envelope • EtherDream • Event • Expression • Extend • Face Track • Fan • Feedback • File In • File Out • Filter • FreeD • Function • Gesture • Handle • Helios DAC • Hog • Hokuyo • Hold • Import Select • In • Info • Interpolate • Introduction To s Vid • Inverse Curve • Inverse Kin • Join • Joystick • Keyboard In • Keyframe • Kinect Azure • Kinect • Lag • Laser • Leap Motion • Leuze ROD4 • LFO • Limit • Logic • Lookup • LTC In • LTC Out • Math • Merge • MIDI In • MIDI In Map • MIDI Out • Mouse In • Mouse Out • NatNet In • Ncam • Noise • Null • Object • Oculus Audio • Oculus Rift • OpenVR • OSC In • OSC Out • Out • Override • Panel • Pangolin • Parameter • Pattern • Perform • Phaser • Pipe In • Pipe Out • PosiStageNet • Pulse • RealSense • Record • Rename • Render Pick • Reorder • Replace • Resample • S Curve • Scan • Script • Select • Sequencer • Serial • Shared Mem In • Shared Mem Out • Shift • Shuffle • Slope • SOP to • Sort • Speed • Splice • Spring • Stretch • Stype • Switch • Sync In • Sync Out • Tablet • Time Slice • Timeline • Timer • TOP to • Touch In • Touch Out • Trail • Transform • Transform XYZ • Trigger • Trim • Warp • Wave • WrnchAI • ZED