TracktionEngine
Loading...
Searching...
No Matches
MusicalContextWrapper Class Reference

#include <tracktion_ARAWrapperInterfaces.h>

Public Member Functions

 MusicalContextWrapper (ARADocument &doc)
 ~MusicalContextWrapper ()
void update (ARAContentUpdateFlags flags=kARAContentUpdateEverythingChanged)
SizedStruct< ARA_STRUCT_MEMBER(ARAMusicalContextProperties, color)> getMusicalContextProperties ()

Static Public Member Functions

static ARAQuarterPosition beatsToQuarters (Edit &ed, BeatPosition beat)
 Converts an edit beat position to ARA quarter notes.
static ARABool ARA_CALL isMusicalContextContentAvailable (ARAContentAccessControllerHostRef editRef, ARAMusicalContextHostRef, ARAContentType type)
static ARAContentGrade ARA_CALL getMusicalContextContentGrade (ARAContentAccessControllerHostRef, ARAMusicalContextHostRef, ARAContentType)
static ARAContentReaderHostRef ARA_CALL createMusicalContextContentReader (ARAContentAccessControllerHostRef controllerHostRef, ARAMusicalContextHostRef, ARAContentType type, const ARAContentTimeRange *range)
static ARABool ARA_CALL isAudioSourceContentAvailable (ARAContentAccessControllerHostRef, ARAAudioSourceHostRef, ARAContentType)
static ARAContentGrade ARA_CALL getAudioSourceContentGrade (ARAContentAccessControllerHostRef, ARAAudioSourceHostRef, ARAContentType)
static ARAContentReaderHostRef ARA_CALL createAudioSourceContentReader (ARAContentAccessControllerHostRef, ARAAudioSourceHostRef, ARAContentType, const ARAContentTimeRange *)
static ARAInt32 ARA_CALL getContentReaderEventCount (ARAContentAccessControllerHostRef, ARAContentReaderHostRef contentReaderRef)
static const void *ARA_CALL getContentReaderDataForEvent (ARAContentAccessControllerHostRef, ARAContentReaderHostRef contentReaderRef, ARAInt32 eventIndex)
static void ARA_CALL destroyContentReader (ARAContentAccessControllerHostRef, ARAContentReaderHostRef contentReaderRef)

Public Attributes

ARADocument & document
ARAMusicalContextRef musicalContextRef = {}

Constructor & Destructor Documentation

◆ MusicalContextWrapper()

MusicalContextWrapper::MusicalContextWrapper ( ARADocument & doc)

References CRASH_TRACER, and document.

◆ ~MusicalContextWrapper()

MusicalContextWrapper::~MusicalContextWrapper ( )

Member Function Documentation

◆ update()

void MusicalContextWrapper::update ( ARAContentUpdateFlags flags = kARAContentUpdateEverythingChanged)

◆ beatsToQuarters()

ARAQuarterPosition MusicalContextWrapper::beatsToQuarters ( Edit & ed,
BeatPosition beat )
static

Converts an edit beat position to ARA quarter notes.

NB: a tracktion beat is the time-signature denominator note, which is only a quarter note in x/4 signatures - ARA positions must always be in quarters.

◆ getMusicalContextProperties()

SizedStruct< ARA_STRUCT_MEMBER(ARAMusicalContextProperties, color)> MusicalContextWrapper::getMusicalContextProperties ( )

◆ isMusicalContextContentAvailable()

ARABool ARA_CALL MusicalContextWrapper::isMusicalContextContentAvailable ( ARAContentAccessControllerHostRef editRef,
ARAMusicalContextHostRef ,
ARAContentType type )
static

◆ getMusicalContextContentGrade()

ARAContentGrade ARA_CALL MusicalContextWrapper::getMusicalContextContentGrade ( ARAContentAccessControllerHostRef ,
ARAMusicalContextHostRef ,
ARAContentType  )
static

◆ createMusicalContextContentReader()

ARAContentReaderHostRef ARA_CALL MusicalContextWrapper::createMusicalContextContentReader ( ARAContentAccessControllerHostRef controllerHostRef,
ARAMusicalContextHostRef ,
ARAContentType type,
const ARAContentTimeRange * range )
static

◆ isAudioSourceContentAvailable()

ARABool ARA_CALL MusicalContextWrapper::isAudioSourceContentAvailable ( ARAContentAccessControllerHostRef ,
ARAAudioSourceHostRef ,
ARAContentType  )
static

◆ getAudioSourceContentGrade()

ARAContentGrade ARA_CALL MusicalContextWrapper::getAudioSourceContentGrade ( ARAContentAccessControllerHostRef ,
ARAAudioSourceHostRef ,
ARAContentType  )
static

◆ createAudioSourceContentReader()

ARAContentReaderHostRef ARA_CALL MusicalContextWrapper::createAudioSourceContentReader ( ARAContentAccessControllerHostRef ,
ARAAudioSourceHostRef ,
ARAContentType ,
const ARAContentTimeRange *  )
static

◆ getContentReaderEventCount()

ARAInt32 ARA_CALL MusicalContextWrapper::getContentReaderEventCount ( ARAContentAccessControllerHostRef ,
ARAContentReaderHostRef contentReaderRef )
static

References CRASH_TRACER.

◆ getContentReaderDataForEvent()

const void *ARA_CALL MusicalContextWrapper::getContentReaderDataForEvent ( ARAContentAccessControllerHostRef ,
ARAContentReaderHostRef contentReaderRef,
ARAInt32 eventIndex )
static

References CRASH_TRACER.

◆ destroyContentReader()

void ARA_CALL MusicalContextWrapper::destroyContentReader ( ARAContentAccessControllerHostRef ,
ARAContentReaderHostRef contentReaderRef )
static

References CRASH_TRACER.

Member Data Documentation

◆ document

ARADocument& MusicalContextWrapper::document

◆ musicalContextRef

ARAMusicalContextRef MusicalContextWrapper::musicalContextRef = {}

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