Skip to content

ChartTiming

namespace Griff.Modules.Rhythm;
public struct ChartTiming

When a chart’s beats are: the tempo in beats a minute, the beats in a bar and how many seconds into the song its first beat (beat 0) is, as the lanes’ BeatClock counts them.

public int BeatsPerBar { get; init; }
public static ChartTiming Default { get; }

120 beats a minute in 4/4 from the very start.

public double Offset { get; init; }
public int PerBar { get; }

Beats in a bar, at least 1.

public double SecondsPerBeat { get; }

Seconds a beat lasts.

public double Tempo { get; init; }
public double BeatAt(double seconds)

The beat (with its fraction) seconds into the song.

public void Deconstruct(out double Tempo, out int BeatsPerBar, out double Offset)
public override bool Equals(object obj)
public bool Equals(ChartTiming other)
public override int GetHashCode()
public double SecondsAt(double beat)

How many seconds into the song beat is.

public override string ToString()