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

« « « Anklang Documentation
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
tracktion_TimeRange.h File Reference
#include "tracktion_Time.h"

Go to the source code of this file.

Classes

struct  tracktion::core::RangeType< PositionType >
 Describes a range of two positions with a duration separating them. More...
 
struct  std::hash< tracktion::TimeRange >
 
struct  std::hash< tracktion::BeatRange >
 

Namespaces

namespace  tracktion
 

Typedefs

using tracktion::TimeRange = RangeType< TimePosition >
 A RangeType based on real time (i.e.
 
using tracktion::BeatRange = RangeType< BeatPosition >
 A RangeType based on beats.
 

Functions

juce::Range< int64_ttracktion::toSamples (TimeRange, double sampleRate)
 Converts a TimeRange to a range of samples.
 
TimeRange tracktion::timeRangeFromSamples (juce::Range< int64_t > sampleRange, double sampleRate)
 Creates a TimeRange from a range of samples.
 
template<typename SourceRangeType >
TimeRange tracktion::timeRangeFromSeconds (SourceRangeType)
 Creates a TimeRange from a range of seconds.
 
template<typename PositionType >
bool tracktion::operator== (const RangeType< PositionType > &, const RangeType< PositionType > &)
 Compares two ranges to check if they are equal.
 
template<typename PositionType >
bool tracktion::operator!= (const RangeType< PositionType > &, const RangeType< PositionType > &)
 Compares two ranges to check if they are not equal.
 
template<typename PositionType >
RangeType< PositionType > tracktion::operator+ (const RangeType< PositionType > &, typename RangeType< PositionType >::Duration)
 Adds a duration to a range, moving it forwards.
 
template<typename PositionType >
RangeType< PositionType > tracktion::operator- (const RangeType< PositionType > &, typename RangeType< PositionType >::Duration)
 Subtracts a duration to a range, moving it backwards.
 
template<typename PositionType >
RangeType< PositionType > tracktion::withEndExtended (RangeType< PositionType > &, typename RangeType< PositionType >::Duration)
 Adds an amount to the end of the range and returns a new range.
 
template<typename PositionType >
PositionType tracktion::fromUnderlyingType (double)
 
template<>
TimePosition tracktion::fromUnderlyingType< TimePosition > (double t)
 
template<>
TimeDuration tracktion::fromUnderlyingType< TimeDuration > (double t)
 
double tracktion::toUnderlyingType (TimePosition t)
 
double tracktion::toUnderlyingType (TimeDuration t)
 
template<>
BeatPosition tracktion::fromUnderlyingType< BeatPosition > (double t)
 
template<>
BeatDuration tracktion::fromUnderlyingType< BeatDuration > (double t)
 
double tracktion::toUnderlyingType (BeatPosition t)
 
double tracktion::toUnderlyingType (BeatDuration t)
 
TimeRange tracktion::timeRangeFromSamples (juce::Range< int64_t > r, double sampleRate)
 Creates a TimeRange from a range of samples.
 
template<typename SourceRangeType >
TimeRange tracktion::timeRangeFromSeconds (SourceRangeType r)
 Creates a TimeRange from a range of seconds.
 
juce::Range< int64_ttracktion::toSamples (TimeRange r, double sampleRate)
 Converts a TimeRange to a range of samples.
 
template<typename PositionType >
bool tracktion::operator== (const RangeType< PositionType > &r1, const RangeType< PositionType > &r2)
 Compares two ranges to check if they are equal.
 
template<typename PositionType >
bool tracktion::operator!= (const RangeType< PositionType > &r1, const RangeType< PositionType > &r2)
 Compares two ranges to check if they are not equal.
 
template<typename PositionType >
RangeType< PositionType > tracktion::operator+ (const RangeType< PositionType > &r, typename RangeType< PositionType >::Duration d)
 Adds a duration to a range, moving it forwards.
 
template<typename PositionType >
RangeType< PositionType > tracktion::operator- (const RangeType< PositionType > &r, typename RangeType< PositionType >::Duration d)
 Subtracts a duration to a range, moving it backwards.
 
template<typename PositionType >
RangeType< PositionType > tracktion::withEndExtended (RangeType< PositionType > &r, typename RangeType< PositionType >::Duration d)
 Adds an amount to the end of the range and returns a new range.
 
template<typename RangeType , std::enable_if_t< std::is_same_v< TimeRange, RangeType >||std::is_same_v< BeatRange, RangeType >, bool > = true>
std::string tracktion::to_string (RangeType range)
 
std::ostreamtracktion::operator<< (std::ostream &os, const TimeRange &r)
 
std::ostreamtracktion::operator<< (std::ostream &os, const BeatRange &r)