unreal.MusicalTickFunctionLibrary

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

Bases: BlueprintFunctionLibrary

Function library for converting Ticks to Beats and Beats to Ticks and other midi constants

C++ Source:

  • Plugin: Harmonix

  • Module: HarmonixMidi

  • File: MidiFunctionLibrary.h

classmethod beat_to_tick(quarter_note: float) float

deprecated: ‘beat_to_tick’ was renamed to ‘quarter_note_to_tick’.

classmethod get_quarter_notes_per_tick() float

Get Quarter Notes Per Tick

Return type:

float

classmethod get_ticks_per_beat() float

deprecated: ‘get_ticks_per_beat’ was renamed to ‘get_ticks_per_quarter_note’.

classmethod get_ticks_per_beat_int() int

deprecated: ‘get_ticks_per_beat_int’ was renamed to ‘get_ticks_per_quarter_note_int’.

classmethod get_ticks_per_quarter_note() float

Get Ticks Per Quarter Note

Return type:

float

classmethod get_ticks_per_quarter_note_int() int32

Get Ticks Per Quarter Note Int

Return type:

int32

classmethod quarter_note_to_tick(quarter_note) float

Quarter Note to Tick

Parameters:

quarter_note (float) –

Return type:

float

classmethod tick_to_beat(tick: float) float

deprecated: ‘tick_to_beat’ was renamed to ‘tick_to_quarter_note’.

classmethod tick_to_quarter_note(tick) float

Tick to Quarter Note

Parameters:

tick (float) –

Return type:

float