FQuartzMetronome

Class to track the passage of musical time, and allow subscribers to be notified when these musical events take place.

Choose your operating system:

Windows

macOS

Linux

References

Module

AudioMixer

Header

/Engine/Source/Runtime/AudioMixer/Public/Quartz/QuartzMetronome.h

Include

#include "Quartz/QuartzMetronome.h"

Syntax

class FQuartzMetronome

Remarks

Class to track the passage of musical time, and allow subscribers to be notified when these musical events take place.

Constructors

Name Description

Public function

FQuartzMetronome()

Ctor

Public function

FQuartzMetronome

(
    const FQuartzTimeSignature& InTime...
)

Destructors

Name Description

Public function

~FQuartzMetronome()

Dtor

Functions

Name Description

Public function Const

int32

 

GetFramesUntilBoundary

(
    FQuartzQuantizationBoundary InQuant...
)

Public function Const

FQuartzClock...

 

GetTickRate()

Public function Const

const FQuart...

 

GetTimeSignature()

Public function Const

double

 

GetTimeSinceStart()

Public function Const

FQuartzTrans...

 

GetTimeStamp()

Public function

void

 

ResetTransport()

Public function

void

 

SetSampleRate

(
    float InNewSampleRate
)

Public function

void

 

SetTickRate

(
    FQuartzClockTickRate InNewTickRate,
    int32 NumFramesLeft
)

Called by owning FQuartzClock

Public function

void

 

SetTimeSignature

(
    const FQuartzTimeSignature& InNewT...
)

Affects bars/beats values we send back to the game thread

Public function

void

 

SubscribeToAllTimeDivisions

(
    MetronomeCommandQueuePtr InListener...
)

Public function

void

 

SubscribeToTimeDivision

(
    MetronomeCommandQueuePtr InListener...,
    EQuartzCommandQuantization InQuanti...
)

Public function

void

 

Tick

(
    int32 InNumSamples,
    int32 FramesOfLatency
)

Called by owning FQuartzClock

Public function

void

 

UnsubscribeFromAllTimeDivisions

(
    MetronomeCommandQueuePtr InListener...
)

Public function

void

 

UnsubscribeFromTimeDivision

(
    MetronomeCommandQueuePtr InListener...,
    EQuartzCommandQuantization InQuanti...
)