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

◆ on_range_enter()

void MayaFlux::Nodes::Input::InputNode::on_range_enter ( double  min,
double  max,
const TypedHook< InputContext > &  callback 
)

Register callback for entering a value range.

Parameters
minRange minimum
maxRange maximum
callbackFunction to call when value enters range

Definition at line 169 of file InputNode.cpp.

170{
171 add_input_callback(callback, InputEventType::RANGE_ENTER, {}, { { min, max } });
172}
void add_input_callback(const TypedHook< InputContext > &callback, InputEventType event_type, std::optional< double > threshold={}, std::optional< std::pair< double, double > > range={}, std::optional< NodeCondition > condition={})
std::vector< double > max(std::span< const double > data, size_t n_windows, uint32_t hop_size, uint32_t window_size)
Maximum value per window.
Definition Analysis.cpp:436
std::vector< double > min(std::span< const double > data, size_t n_windows, uint32_t hop_size, uint32_t window_size)
Minimum value per window.
Definition Analysis.cpp:420
@ RANGE_ENTER
Value entered specified range.

References add_input_callback(), and MayaFlux::Nodes::Input::RANGE_ENTER.

+ Here is the call graph for this function: