unreal.HarmonixMusicAsset¶
- class unreal.HarmonixMusicAsset(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
ObjectUHarmonixMusicAsset An implementation of the pure virtual IMusicalAsset interface that will act as a base class for UHarmonixMetasoundMusicAsset and UHarmonixWaveMusicAsset. As such, it can return an FMusicHandle when it is asked to PrepareToPlay or Play.
C++ Source:
Plugin: Harmonix
Module: HarmonixMetasound
File: HarmonixMusicAsset.h
Editor Properties: (see get_editor_property/set_editor_property)
midi_song_map(MidiFile): [Read-Write]
- play(playback_context, on_component=None, from_seconds=0.000000, become_authoritative_clock=False, register_as_tagged_clock=['None'], is_audition=False) MusicHandle¶
Play
- Parameters:
playback_context (Object)
on_component (AudioComponent)
from_seconds (float)
become_authoritative_clock (bool)
register_as_tagged_clock (GameplayTag)
is_audition (bool)
- Return type:
- prepare_to_play(playback_context, on_component=None, from_seconds=0.000000, become_authoritative_clock=False, register_as_tagged_clock=['None'], is_audition=False) MusicHandle¶
Prepare to Play
- Parameters:
playback_context (Object)
on_component (AudioComponent)
from_seconds (float)
become_authoritative_clock (bool)
register_as_tagged_clock (GameplayTag)
is_audition (bool)
- Return type: