unreal.MidiSongPos

class unreal.MidiSongPos(seconds_from_bar_one: float = 0.0, seconds_including_count_in: float = 0.0, time_sig_numerator: int = 0, time_sig_denominator: int = 0, tempo: float = 0.0, bars_including_count_in: float = 0.0, beats_including_count_in: float = 0.0, beat_type: MusicalBeatType = Ellipsis, timestamp: MusicTimestamp = Ellipsis)

Bases: StructBase

Position within a song (midi info)

C++ Source:

  • Plugin: Harmonix

  • Module: HarmonixMidi

  • File: MidiSongPos.h

Editor Properties: (see get_editor_property/set_editor_property)

  • bars_including_count_in (float): [Read-Write]

  • beat_type (MusicalBeatType): [Read-Write] total beats from the beginning of the song.

  • beats_including_count_in (float): [Read-Write] total bars from the beginning of the song.

  • seconds_from_bar_one (float): [Read-Write]

  • seconds_including_count_in (float): [Read-Write] total seconds from bar 1 beat 1. (negative for count-in and/or pickup bars)

  • tempo (float): [Read-Write]

  • time_sig_denominator (int32): [Read-Write]

  • time_sig_numerator (int32): [Read-Write] total seconds from the beginning of the musical content (ie. includes all count-in and pickup bars)

  • timestamp (MusicTimestamp): [Read-Write]

property bars_including_count_in: float

[Read-Only]

Type:

(float)

property beat_type: MusicalBeatType

[Read-Only] total beats from the beginning of the song.

Type:

(MusicalBeatType)

property beats_including_count_in: float

[Read-Only] total bars from the beginning of the song.

Type:

(float)

property seconds_from_bar_one: float

[Read-Only]

Type:

(float)

property seconds_including_count_in: float

[Read-Only] total seconds from bar 1 beat 1. (negative for count-in and/or pickup bars)

Type:

(float)

property tempo: float

[Read-Only]

Type:

(float)

property time_sig_denominator: int

[Read-Only]

Type:

(int32)

property time_sig_numerator: int

[Read-Only] total seconds from the beginning of the musical content (ie. includes all count-in and pickup bars)

Type:

(int32)

property timestamp: MusicTimestamp

[Read-Only]

Type:

(MusicTimestamp)