A newer version of Max is available. Click here to access the latest version of the documentation

edge~ Reference

Detect logical signal transitions

edge~

Description

Use the edge~ to detect zero to non-zero (and vice versa) signal transitions and report a bang out of one of its two outlets according to which direction the transition has occurred.

Examples

Send a triggering Max message when a significant moment occurs in a signal

Arguments

None.

Attributes

Common Box Attributes

Messages

signal

A signal that will change between zero and non-zero values

Output

bang

Out left outlet: Sent when the input signal changes from zero to non-zero. The minimum time between bang messages will not be shorter than the minimum scheduler interval, which is generally equal to the signal vector size, but may be larger if Scheduler in Audio Interrupt mode is not enabled.

Out right outlet: Sent when the input signal changes from non-zero to zero. The output will not happen more often than the time represented by the number of samples in the current input/output vector size.

See Also

Name Description
change~
thresh~
zerox~