Navigation
API > API/Plugins > API/Plugins/HarmonixMetasound > API/Plugins/HarmonixMetasound/UMusicClockComponent
Description
Returns the "classic" musical timestamp in the form Bar (int) & Beat (float). In this form...
- Bar 1, Beat 1.0 is the "beginning of the song" AFTER count-in/pickups
- Bar 0, Beat 1.0 would be one bar BEFORE the "beginning of the song"... eg. a bar of count-in or pickup.
- While Bar can be positive or negative, Beat is always >= 1.0 and is read as "beat in the bar". Again... '1' based!
| Name | GetCurrentTimestamp |
| Type | function |
| Header File | /Engine/Plugins/Runtime/Harmonix/Source/HarmonixMetasound/Public/HarmonixMetasound/Components/MusicClockComponent.h |
| Include Path | #include "HarmonixMetasound/Components/MusicClockComponent.h" |
| Source | /Engine/Plugins/Runtime/Harmonix/Source/HarmonixMetasound/Private/HarmonixMetasound/Components/MusicClockComponent.cpp |
UFUNCTION (BlueprintPure, Category="MusicClock")
FMusicTimestamp GetCurrentTimestamp
(
ECalibratedMusicTimebase Timebase
) const