TopDown Engine  v4.2
MoreMountains.Tools.Beat Class Reference

Public Types

enum  Modes {
  Modes.Raw, Modes.Normalized, Modes.BufferedRaw, Modes.BufferedNormalized,
  Modes.Amplitude, Modes.NormalizedAmplitude, Modes.AmplitudeBuffered, Modes.NormalizedAmplitudeBuffered
}
 
enum  BeatValueModes { BeatValueModes.Remapped, BeatValueModes.Live }
 

Public Member Functions

void InitializeIfNeeded (int id, int bandID)
 

Public Attributes

string Name = "Beat"
 
Modes Mode = Modes.BufferedNormalized
 
BeatValueModes BeatValueMode = BeatValueModes.Remapped
 
Color BeatColor = Color.cyan
 
int BandID = 0
 
float Threshold = 0.5f
 
float MinimumTimeBetweenBeats = 0.25f
 
float RemappedAttack = 0.05f
 
float RemappedDecay = 0.2f
 
bool BeatThisFrame
 
float CurrentValue
 
float _previousValue
 
float _lastBeatAt
 
float _lastBeatValue
 
bool _initialized = false
 
UnityEvent OnBeat
 

Member Enumeration Documentation

◆ BeatValueModes

Enumerator
Remapped 
Live 

◆ Modes

Enumerator
Raw 
Normalized 
BufferedRaw 
BufferedNormalized 
Amplitude 
NormalizedAmplitude 
AmplitudeBuffered 
NormalizedAmplitudeBuffered 

Member Function Documentation

◆ InitializeIfNeeded()

void MoreMountains.Tools.Beat.InitializeIfNeeded ( int  id,
int  bandID 
)

Member Data Documentation

◆ _initialized

bool MoreMountains.Tools.Beat._initialized = false

◆ _lastBeatAt

float MoreMountains.Tools.Beat._lastBeatAt

◆ _lastBeatValue

float MoreMountains.Tools.Beat._lastBeatValue

◆ _previousValue

float MoreMountains.Tools.Beat._previousValue

◆ BandID

int MoreMountains.Tools.Beat.BandID = 0

◆ BeatColor

Color MoreMountains.Tools.Beat.BeatColor = Color.cyan

◆ BeatThisFrame

bool MoreMountains.Tools.Beat.BeatThisFrame

◆ BeatValueMode

BeatValueModes MoreMountains.Tools.Beat.BeatValueMode = BeatValueModes.Remapped

◆ CurrentValue

float MoreMountains.Tools.Beat.CurrentValue

◆ MinimumTimeBetweenBeats

float MoreMountains.Tools.Beat.MinimumTimeBetweenBeats = 0.25f

◆ Mode

Modes MoreMountains.Tools.Beat.Mode = Modes.BufferedNormalized

◆ Name

string MoreMountains.Tools.Beat.Name = "Beat"

◆ OnBeat

UnityEvent MoreMountains.Tools.Beat.OnBeat

◆ RemappedAttack

float MoreMountains.Tools.Beat.RemappedAttack = 0.05f

◆ RemappedDecay

float MoreMountains.Tools.Beat.RemappedDecay = 0.2f

◆ Threshold

float MoreMountains.Tools.Beat.Threshold = 0.5f

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