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
Properties
MPQN
public int MPQN { get; init; }
Property Value
Tempo
New tempo in BPM.
public double Tempo { get; }
Property Value
Ticks
MIDI ticks of the change, absolute value from the start of the MIDI file.
public int Ticks { get; init; }
Property Value
Methods
ToMPQN(int)
Convert bpm to MPQN
public static double ToMPQN(int bpm)
Parameters
bpmint