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

◆ set_modulation_function()

void MayaFlux::Buffers::LogicProcessor::set_modulation_function ( ModulationFunction  func)

Set custom modulation function.

This sets the ModulationType to CUSTOM and uses the provided function for modulating the buffer. The function takes two parameters: the logic value and the buffer value, and returns the modulated result.

Use cases:

  • Conditional data transformation based on logic state
  • Complex digital signal processing operations
  • Custom digital filtering based on binary conditions
  • Algorithmic decision trees in signal processing
Parameters
funcCustom modulation function

Definition at line 195 of file LogicProcessor.cpp.

196{
197 m_modulation_function = std::move(func);
199}
ModulationFunction m_modulation_function
Custom transformation function.
@ CUSTOM
User-defined modulation function.
ModulationType m_modulation_type
How logic values modulate buffer content.

References CUSTOM, m_modulation_function, and m_modulation_type.