unreal.MusicTimerManager

class unreal.MusicTimerManager(outer: Object | None = None, name: Name | str = 'None')

Bases: Object

Music Timer Manager

C++ Source:

  • Plugin: Harmonix

  • Module: HarmonixMetasound

  • File: MusicTimerManager.h

bp_add_timer(timer_interval, start_time, timebase, looping, timer_delegate) MusicTimerHandle

Adds a musical timer.

Parameters:
  • timer_interval (MusicTimeInterval) – Interval configuration for the timer.

  • start_time (MusicTimestamp) – Start time. You can use the Quantize function below to snap to interval boundaries.

  • timebase (CalibratedMusicTimebase) – Timebase used to evaluate the timer.

  • looping (bool) – Whether the timer should loop.

  • timer_delegate (OnMusicalTimerExecute) – Delegate executed when the timer fires.

Return type:

MusicTimerHandle

pause_timer(handle, pause) None

Pause Timer

Parameters:
quantize(music_clock, time, quantization_interval, direction) MusicTimestamp

Quantize

Parameters:
Return type:

MusicTimestamp

remove_timer(handle) None

Remove Timer

Parameters:

handle (MusicTimerHandle)