Struct Midi.TempoChange

Namespace
SpessaSharp.MIDI
Assembly
SpessaSharp.dll
public readonly record struct Midi.TempoChange : IEquatable<Midi.TempoChange>
Implements
Inherited Members

Constructors

TempoChange(int, int)

public TempoChange(int Ticks, int MPQN)

Parameters

Ticks int

MIDI ticks of the change, absolute value from the start of the MIDI file.

MPQN int

Properties

MPQN

public int MPQN { get; init; }

Property Value

int

Tempo

New tempo in BPM.

public double Tempo { get; }

Property Value

double

Ticks

MIDI ticks of the change, absolute value from the start of the MIDI file.

public int Ticks { get; init; }

Property Value

int

Methods

ToMPQN(int)

Convert bpm to MPQN

public static double ToMPQN(int bpm)

Parameters

bpm int

Returns

double