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

Start int

Start of the loop, in MIDI ticks.

End int

End of the loop, in MIDI ticks.

Type Midi.LoopType

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.

Properties

End

End of the loop, in MIDI ticks.

public int End { get; init; }

Property Value

int

Start

Start of the loop, in MIDI ticks.

public int Start { get; init; }

Property Value

int

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; }

Property Value

Midi.LoopType