TracktionEngine
|
Base class for Nodes that provides information about the current process call. More...
#include <tracktion_TracktionEngineNode.h>
Public Member Functions | |
TracktionEngineNode (ProcessState &) | |
Creates a TracktionEngineNode. | |
virtual | ~TracktionEngineNode ()=default |
Destructor. | |
int | getNumSamples () const |
Returns the number of samples in the current process block. | |
double | getSampleRate () const |
Returns the sample rate of the current process block. | |
juce::Range< int64_t > | getTimelineSampleRange () const |
Returns the timeline sample range of the current process block. | |
TimeRange | getEditTimeRange () const |
Returns the edit time range of the current process block. | |
BeatRange | getEditBeatRange () const |
Returns the edit beat range of the current process block. | |
juce::Range< int64_t > | getReferenceSampleRange () const |
Returns the reference sample range (from the DeviceManager) of the current process block. | |
tempo::Key | getKey () const |
Returns the key of the current process block. | |
double | getPlaybackSpeedRatio () const |
Returns the playback speed ratio of the current process block. | |
std::optional< TimePosition > | getTimeOfNextChange () const |
May return the time of the next tempo or time sig change. | |
std::optional< BeatPosition > | getBeatOfNextChange () const |
May return the time of the next tempo or time sig change. | |
tracktion::graph::PlayHeadState & | getPlayHeadState () |
Returns the PlayHeadState in use. | |
tracktion::graph::PlayHead & | getPlayHead () |
Returns the PlayHead in use. | |
ProcessState & | getProcessState () |
Returns the ProcessState in use. | |
void | setProcessState (ProcessState &) |
Base class for Nodes that provides information about the current process call.
tracktion::engine::TracktionEngineNode::TracktionEngineNode | ( | ProcessState & | ) |
Creates a TracktionEngineNode.
|
virtualdefault |
Destructor.
int tracktion::engine::TracktionEngineNode::getNumSamples | ( | ) | const |
Returns the number of samples in the current process block.
References tracktion::engine::ProcessState::numSamples.
double tracktion::engine::TracktionEngineNode::getSampleRate | ( | ) | const |
Returns the sample rate of the current process block.
References tracktion::engine::ProcessState::sampleRate.
juce::Range< int64_t > tracktion::engine::TracktionEngineNode::getTimelineSampleRange | ( | ) | const |
Returns the timeline sample range of the current process block.
References tracktion::engine::ProcessState::timelineSampleRange.
TimeRange tracktion::engine::TracktionEngineNode::getEditTimeRange | ( | ) | const |
Returns the edit time range of the current process block.
References tracktion::engine::ProcessState::editTimeRange.
BeatRange tracktion::engine::TracktionEngineNode::getEditBeatRange | ( | ) | const |
Returns the edit beat range of the current process block.
References tracktion::engine::ProcessState::editBeatRange.
juce::Range< int64_t > tracktion::engine::TracktionEngineNode::getReferenceSampleRange | ( | ) | const |
Returns the reference sample range (from the DeviceManager) of the current process block.
References tracktion::engine::ProcessState::referenceSampleRange.
tempo::Key tracktion::engine::TracktionEngineNode::getKey | ( | ) | const |
Returns the key of the current process block.
double tracktion::engine::TracktionEngineNode::getPlaybackSpeedRatio | ( | ) | const |
Returns the playback speed ratio of the current process block.
std::optional< TimePosition > tracktion::engine::TracktionEngineNode::getTimeOfNextChange | ( | ) | const |
May return the time of the next tempo or time sig change.
std::optional< BeatPosition > tracktion::engine::TracktionEngineNode::getBeatOfNextChange | ( | ) | const |
May return the time of the next tempo or time sig change.
tracktion::graph::PlayHeadState & tracktion::engine::TracktionEngineNode::getPlayHeadState | ( | ) |
Returns the PlayHeadState in use.
References tracktion::engine::ProcessState::playHeadState.
Referenced by getPlayHead().
tracktion::graph::PlayHead & tracktion::engine::TracktionEngineNode::getPlayHead | ( | ) |
Returns the PlayHead in use.
References getPlayHeadState(), and tracktion::graph::PlayHeadState::playHead.
ProcessState & tracktion::engine::TracktionEngineNode::getProcessState | ( | ) |
Returns the ProcessState in use.
void tracktion::engine::TracktionEngineNode::setProcessState | ( | ProcessState & | ) |