MayaFlux 0.2.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 340 of file Logic.cpp.

341{
342 m_edge_type = type;
343 m_threshold = threshold;
345}
EdgeType m_edge_type
Type of edge to detect.
Definition Logic.hpp:579
double m_threshold
Threshold for boolean conversion.
Definition Logic.hpp:576
LogicOperator m_operator
Current logic operator.
Definition Logic.hpp:567
@ EDGE
Transition detector - identifies state changes.

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