tracktion-engine
3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications
« « « Anklang Documentation
Loading...
Searching...
No Matches
tracktion_engine
playback
graph
tracktion_TrackMidiInputDeviceNode.h
Go to the documentation of this file.
1
/*
2
,--. ,--. ,--. ,--.
3
,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2024
4
'-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
5
| | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
6
`---' `--' `--`--'`---'`--'`--' `---' `--' `---' `--''--' www.tracktion.com
7
8
Tracktion Engine uses a GPL/commercial licence - see LICENCE.md for details.
9
*/
10
11
namespace
tracktion
{
inline
namespace
engine
12
{
13
17
class
TrackMidiInputDeviceNode
final :
public
tracktion::graph::Node
,
18
private
TracktionEngineNode
19
{
20
public
:
21
TrackMidiInputDeviceNode
(
MidiInputDevice
&,
std::unique_ptr<Node>
,
ProcessState
&,
22
bool
copyInputsToOutputs);
23
24
std::vector<Node*>
getDirectInputNodes
()
override
;
25
tracktion::graph::NodeProperties
getNodeProperties
()
override
;
26
void
prepareToPlay
(
const
tracktion::graph::PlaybackInitialisationInfo
&)
override
;
27
bool
isReadyToProcess
()
override
;
28
void
process
(
ProcessContext
&)
override
;
29
30
private
:
31
//==============================================================================
32
MidiInputDevice
& midiInputDevice;
33
std::unique_ptr<Node>
input;
34
double
offsetSeconds = 0.0;
35
const
bool
copyInputsToOutputs =
false
;
36
};
37
38
}}
// namespace tracktion { inline namespace engine
tracktion::engine::MidiInputDevice
Definition
tracktion_MidiInputDevice.h:19
tracktion::engine::TrackMidiInputDeviceNode
A Node that takes MIDI from the output of a track and sends it to its corresponding InputDevice.
Definition
tracktion_TrackMidiInputDeviceNode.h:19
tracktion::engine::TrackMidiInputDeviceNode::isReadyToProcess
bool isReadyToProcess() override
Should return true when this node is ready to be processed.
Definition
tracktion_TrackMidiInputDeviceNode.cpp:44
tracktion::engine::TrackMidiInputDeviceNode::prepareToPlay
void prepareToPlay(const tracktion::graph::PlaybackInitialisationInfo &) override
Called once before playback begins for each node.
Definition
tracktion_TrackMidiInputDeviceNode.cpp:39
tracktion::engine::TrackMidiInputDeviceNode::process
void process(ProcessContext &) override
Called when the node is to be processed.
Definition
tracktion_TrackMidiInputDeviceNode.cpp:49
tracktion::engine::TrackMidiInputDeviceNode::getNodeProperties
tracktion::graph::NodeProperties getNodeProperties() override
Should return the properties of the node.
Definition
tracktion_TrackMidiInputDeviceNode.cpp:34
tracktion::engine::TrackMidiInputDeviceNode::getDirectInputNodes
std::vector< Node * > getDirectInputNodes() override
Should return all the inputs directly feeding in to this node.
Definition
tracktion_TrackMidiInputDeviceNode.cpp:29
tracktion::engine::TracktionEngineNode
Base class for Nodes that provides information about the current process call.
Definition
tracktion_TracktionEngineNode.h:100
tracktion::graph::Node
Main graph Node processor class.
Definition
tracktion_Node.h:217
tracktion::graph::Node::ProcessContext
Struct to describe a single iteration of a process call.
Definition
tracktion_Node.h:303
tracktion
Definition
tracktion_AudioReader.h:23
tracktion::engine::ProcessState
Holds the state of a process call.
Definition
tracktion_TracktionEngineNode.h:20
tracktion::graph::NodeProperties
Holds some really basic properties of a node.
Definition
tracktion_Node.h:152
tracktion::graph::PlaybackInitialisationInfo
Passed into Nodes when they are being initialised, to give them useful contextual information that th...
Definition
tracktion_Node.h:140
std::unique_ptr
std::vector
« « « Anklang Documentation