Struct Midi.MidiLoop
- Namespace
- SpessaSharp.MIDI
- Assembly
- SpessaSharp.dll
public readonly record struct Midi.MidiLoop : IEquatable<Midi.MidiLoop>
- Implements
- Inherited Members
Constructors
MidiLoop(int, int, LoopType)
public MidiLoop(int Start, int End, Midi.LoopType Type)
Parameters
StartintStart of the loop, in MIDI ticks.
EndintEnd of the loop, in MIDI ticks.
TypeMidi.LoopTypeThe type of the loop detected:
- Soft - The playback will immediately jump to the loop start pointer without any further processing.
- Hard - The playback will quickly process all messages from
the start of the file to ensure that synthesizer is in the correct state.
This is the default behavior.
Soft loop types are enabled for Touhou and GameMaker loop points.
- Soft - The playback will immediately jump to the loop start pointer without any further processing.
Properties
End
End of the loop, in MIDI ticks.
public int End { get; init; }
Property Value
Start
Start of the loop, in MIDI ticks.
public int Start { get; init; }
Property Value
Type
The type of the loop detected:
- Soft - The playback will immediately jump to the loop start pointer without any further processing.
- Hard - The playback will quickly process all messages from
the start of the file to ensure that synthesizer is in the correct state.
This is the default behavior.
Soft loop types are enabled for Touhou and GameMaker loop points.
public Midi.LoopType Type { get; init; }