Etterna 0.74.4
Loading...
Searching...
No Matches
Static Public Member Functions | Static Public Attributes | List of all members
AdjustSync Class Reference

Allows for adjusting the sync of a song. More...

#include <AdjustSync.h>

Static Public Member Functions

static void ResetOriginalSyncData ()
 
static void ResetAutosync ()
 
static auto IsSyncDataChanged () -> bool
 
static void SaveSyncChanges ()
 
static void RevertSyncChanges ()
 
static void HandleAutosync (float fNoteOffBySeconds, float fStepTime)
 
static void AutosyncOffset ()
 
static void GetSyncChangeTextGlobal (std::vector< std::string > &vsAddTo)
 
static void GetSyncChangeTextSong (std::vector< std::string > &vsAddTo)
 

Static Public Attributes

static std::vector< TimingDatas_vpTimingDataOriginal
 The original TimingData before adjustments were made.
 
static float s_fGlobalOffsetSecondsOriginal = 0.0f
 
static const int OFFSET_SAMPLE_COUNT = 24
 The minimum number of steps to hit for syncing purposes.
 
static float s_fAutosyncOffset [OFFSET_SAMPLE_COUNT]
 
static int s_iAutosyncOffsetSample = 0
 
static float s_fStandardDeviation = 0.0f
 

Detailed Description

Allows for adjusting the sync of a song.

This class defines two ways of adjusting the sync of a song. The first adjusts only the offset, "on the fly". It can adjust either the song itself or the machine. The other style adjusts both the BPM and the offset of the song, but it needs more data.

Member Data Documentation

◆ s_vpTimingDataOriginal

std::vector< TimingData > AdjustSync::s_vpTimingDataOriginal
static

The original TimingData before adjustments were made.

This is designed to work with Split Timing.


The documentation for this class was generated from the following files: