tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications

« « « Anklang Documentation
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations | Functions
tracktion_Node.h File Reference

Go to the source code of this file.

Classes

struct  tracktion::graph::NodeBuffer
 Holds a view over some data and optionally some storage for that data. More...
 
struct  tracktion::graph::NodeAndID
 A Node and its ID cached for quick lookup (without having to traverse the graph). More...
 
struct  tracktion::graph::NodeGraph
 Holds a graph in an order ready for processing and a sorted map for quick lookups. More...
 
struct  tracktion::graph::PlaybackInitialisationInfo
 Passed into Nodes when they are being initialised, to give them useful contextual information that they may need. More...
 
struct  tracktion::graph::NodeProperties
 Holds some really basic properties of a node. More...
 
struct  tracktion::graph::NodeOptimisations
 Holds some hints that might be used by the Node or players to improve efficiency. More...
 
class  tracktion::graph::TransformCache
 
class  tracktion::graph::Node
 Main graph Node processor class. More...
 
struct  tracktion::graph::Node::AudioAndMidiBuffer
 Contains the buffers for a processing operation. More...
 
struct  tracktion::graph::Node::ProcessContext
 Struct to describe a single iteration of a process call. More...
 
struct  tracktion::graph::detail::VisitNodesWithRecord
 
struct  tracktion::graph::detail::VisitNodesWithRecordBFS
 

Namespaces

namespace  tracktion
 

Enumerations

enum class  tracktion::TransformResult { none , tracktion::connectionsMade , tracktion::nodesDeleted }
 Enum to signify the result of the transform function. More...
 
enum class  tracktion::ClearBuffers { tracktion::no , tracktion::yes }
 
enum class  tracktion::AllocateAudioBuffer { tracktion::no , tracktion::yes }
 
enum class  tracktion::VertexOrdering {
  preordering , postordering , reversePreordering , reversePostordering ,
  bfsPreordering , bfsReversePreordering
}
 Specifies the ordering algorithm. More...
 

Functions

template<typename NodeType , typename... Args>
std::unique_ptr< Nodetracktion::makeNode (Args &&... args)
 Creates a node of the given type and returns it as the base Node class.
 
bool tracktion::operator< (NodeAndID n1, NodeAndID n2)
 Compares two NodeAndIDs.
 
bool tracktion::operator== (NodeAndID n1, NodeAndID n2)
 Compares two NodeAndIDs.
 
std::unique_ptr< NodeGraphtracktion::createNodeGraph (std::unique_ptr< Node >)
 Transforms a Node and then returns a NodeGraph of it ready to be initialised.
 
template<typename Visitor >
void tracktion::visitNodes (Node &, Visitor &&, bool preordering)
 Should call the visitor for any direct inputs to the node exactly once.
 
template<typename Visitor >
void tracktion::visitNodes (Node &node, Visitor &&visitor, bool preordering)
 Should call the visitor for any direct inputs to the node exactly once.
 
template<typename Visitor >
void tracktion::visitNodesBFS (Node &node, Visitor &&visitor)
 
std::vector< Node * > tracktion::getNodes (Node &node, VertexOrdering vertexOrdering)
 Returns all the nodes in a Node graph in the order given by vertexOrdering.
 
void tracktion::addNodesRecursive (std::vector< NodeAndID > &nodeMap, Node &n)
 
std::vector< NodeAndIDtracktion::createNodeMap (const std::vector< Node * > &nodes)
 
std::unique_ptr< NodeGraphtracktion::createNodeGraph (std::unique_ptr< Node > rootNode)
 Transforms a Node and then returns a NodeGraph of it ready to be initialised.
 

Class Documentation

◆ tracktion::graph::Node::AudioAndMidiBuffer

struct tracktion::graph::Node::AudioAndMidiBuffer

Contains the buffers for a processing operation.

Definition at line 245 of file tracktion_Node.h.

Class Members
ChannelArrayView< float > audio
MidiMessageArray & midi

◆ tracktion::graph::Node::ProcessContext

struct tracktion::graph::Node::ProcessContext

Struct to describe a single iteration of a process call.

Definition at line 302 of file tracktion_Node.h.

Class Members
AudioAndMidiBuffer buffers
FrameCount numSamples
Range< int64_t > referenceSampleRange