Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::structure::tracks::ChannelSubgraphBuilder Class Reference

A helper class to add nodes and standard connections for a channel to a DSP graph. More...

#include <src/structure/tracks/channel_subgraph_builder.h>

Static Public Member Functions

static void add_nodes (dsp::graph::Graph &graph, Channel &ch)
static void add_connections (dsp::graph::Graph &graph, Channel &ch, dsp::PortUuidReference track_processor_output)
 Adds connections for the nodes already in the graph.
template<dsp::FinalPortSubclass T>
static void add_connection_for_ports (dsp::graph::Graph &graph, const T &src_port, const T &dest_port)
 Adds a connection to the graph for the given ports.
static bool connect_like_ports (dsp::graph::Graph &graph, const RangeOf< dsp::PortUuidReference > auto &src_refs, const RangeOf< dsp::PortUuidReference > auto &dest_refs)
 Connects ports of the same type in the given source and destination ranges.

Detailed Description

A helper class to add nodes and standard connections for a channel to a DSP graph.

Definition at line 15 of file channel_subgraph_builder.h.

Member Function Documentation

◆ add_connection_for_ports()

template<dsp::FinalPortSubclass T>
void zrythm::structure::tracks::ChannelSubgraphBuilder::add_connection_for_ports ( dsp::graph::Graph & graph,
const T & src_port,
const T & dest_port )
inlinestatic

Adds a connection to the graph for the given ports.

Note
Assumes the ports are already added to the graph.
Parameters
graph
src_ref
dest_ref

Definition at line 48 of file channel_subgraph_builder.h.

◆ add_connections()

void zrythm::structure::tracks::ChannelSubgraphBuilder::add_connections ( dsp::graph::Graph & graph,
Channel & ch,
dsp::PortUuidReference track_processor_output )
static

Adds connections for the nodes already in the graph.

This requires add_nodes() to be called beforehand.

Note
track_processor_output must be added to the graph before calling this.
Parameters
graph
ch
track_processor_outputTrack processor output to connect to the channel's input (or the first plugin).

◆ connect_like_ports()

bool zrythm::structure::tracks::ChannelSubgraphBuilder::connect_like_ports ( dsp::graph::Graph & graph,
const RangeOf< dsp::PortUuidReference > auto & src_refs,
const RangeOf< dsp::PortUuidReference > auto & dest_refs )
inlinestatic

Connects ports of the same type in the given source and destination ranges.

Returns
Whether any connections were made.

Definition at line 66 of file channel_subgraph_builder.h.


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