MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Nodes::Filters::FilterContext Class Reference

Specialized context for filter node callbacks. More...

#include <Filter.hpp>

+ Inheritance diagram for MayaFlux::Nodes::Filters::FilterContext:
+ Collaboration diagram for MayaFlux::Nodes::Filters::FilterContext:

Public Member Functions

 FilterContext (double value, const std::vector< double > &input_history, const std::vector< double > &output_history, const std::vector< double > &coefs_a, const std::vector< double > &coefs_b)
 Constructs a FilterContext with the current filter state.
 
- Public Member Functions inherited from MayaFlux::Nodes::NodeContext
virtual ~NodeContext ()=default
 
template<typename T >
T * as ()
 Safely cast to a derived context type.
 

Public Attributes

const std::vector< double > & input_history
 Current input history buffer.
 
const std::vector< double > & output_history
 Current output history buffer.
 
const std::vector< double > & coefs_a
 Current coefficients for input.
 
const std::vector< double > & coefs_b
 Current coefficients for output.
 
- Public Attributes inherited from MayaFlux::Nodes::NodeContext
double value
 Current sample value.
 
std::string type_id
 Type identifier for runtime type checking.
 

Additional Inherited Members

- Protected Member Functions inherited from MayaFlux::Nodes::NodeContext
 NodeContext (double value, const std::string &type)
 Protected constructor for NodeContext.
 

Detailed Description

Specialized context for filter node callbacks.

FilterContext extends the base NodeContext to provide filter-specific information to callbacks. It includes references to the filter's internal state, including input and output history buffers and coefficient vectors.

This rich context enables callbacks to perform sophisticated analysis and monitoring of filter behavior, such as:

  • Detecting resonance conditions or instability
  • Analyzing filter response characteristics in real-time
  • Implementing adaptive processing based on filter state
  • Visualizing filter behavior through external interfaces
  • Recording filter state for later analysis or debugging

Definition at line 29 of file Filter.hpp.


The documentation for this class was generated from the following file: