spessasynth_core documentation
    Preparing search index...

    Interface MIDILoop

    Represents a loop in a BasicMIDI sequence.

    interface MIDILoop {
        end: number;
        start: number;
        type: "hard" | "soft";
    }
    Index
    end: number

    End of the loop, in MIDI ticks.

    start: number

    Start of the loop, in MIDI ticks.

    type: "hard" | "soft"

    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.