mwg API
    Preparing search index...

    Interface MidiNoteEvent

    A Standard MIDI File (SMF) reader plus a player that voices each note through audio.synthesizeTone - .mid is a small, patent-free, well-documented event format, so reading one is ordinary format engineering, and playback needed exactly the instrument item 120's waveform synth already supplies: a crude but real, entirely generated-not-borrowed one, closer to a chiptune cover than a sampled orchestra.

    Beyond notes and tempo the reader keeps program changes, bank select and channel controllers (volume, expression, pan, sustain, the RPG Maker loop marker) and pitch bend, and each scheduled note carries the channel voice in effect when it starts, so a sampled renderer can pick the right instrument at the right level.

    interface MidiNoteEvent {
        channel: number;
        note: number;
        tick: number;
        type: "noteOn" | "noteOff";
        velocity: number;
    }
    Index
    channel: number
    note: number
    tick: number
    type: "noteOn" | "noteOff"
    velocity: number