MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ set_edge_detection()

void MayaFlux::Nodes::Generator::Logic::set_edge_detection ( EdgeType  type,
double  threshold = 0.5 
)

Configures digital transition detection.

Parameters
typeType of transition to detect (rising, falling, or both)
thresholdDecision boundary for state changes

Sets up the node to detect specific types of state transitions (edges) in the input signal. Useful for event detection, trigger generation, and synchronization with external events.

Definition at line 336 of file Logic.cpp.

337{
338 m_edge_type = type;
341}
EdgeType m_edge_type
Type of edge to detect.
Definition Logic.hpp:593
double m_threshold
Threshold for boolean conversion.
Definition Logic.hpp:590
LogicOperator m_operator
Current logic operator.
Definition Logic.hpp:581
Tendency< D, float > threshold(const Tendency< D, float > &t, float thresh)
Zero output below threshold, pass through above.
Definition Tendency.hpp:141
@ EDGE
Transition detector - identifies state changes.

References MayaFlux::Nodes::Generator::EDGE, m_edge_type, m_operator, and m_threshold.