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

◆ operator*()

MAYAFLUX_API std::shared_ptr< Nodes::Node > MayaFlux::operator* ( const std::shared_ptr< Nodes::Node > &  lhs,
const std::shared_ptr< Nodes::Node > &  rhs 
)

Combines two nodes in parallel (multiplication)

Parameters
lhsFirst node
rhsSecond node
Returns
A BinaryOpNode that multiplies both outputs

Creates a new node that processes both input nodes and multiplies their outputs. This is useful for amplitude modulation, scaling operations, and other multiplicative transformations:

auto modulated = carrier * modulator;

The resulting node takes an input, passes it to both source nodes, and returns the product of their outputs.

Definition at line 385 of file Graph.cpp.

386{
387 auto manager = get_node_graph_manager();
388 auto result = std::make_shared<Nodes::BinaryOpNode>(
389 lhs, rhs, [](double a, double b) { return a * b; }, *manager);
390 result->initialize();
391 return result;
392}
size_t a
size_t b
std::shared_ptr< Nodes::NodeGraphManager > get_node_graph_manager()
Gets the node graph manager from the default engine.
Definition Graph.cpp:35

References a, b, and get_node_graph_manager().

+ Here is the call graph for this function: