mwg API
    Preparing search index...

    Interface SoundFont

    The samples behind a SoundFont file: one call per note returns the layered voices for its bank, program, key and velocity. A game ships its own file (parsed here) and hands the result wherever samples are needed; nothing here fetches or picks one.

    interface SoundFont {
        presetCount: number;
        hasPreset(bank: number, program: number): boolean;
        voices(
            bank: number,
            program: number,
            key: number,
            velocity: number,
        ): SoundFontVoice[];
    }
    Index
    presetCount: number
    • Parameters

      • bank: number
      • program: number

      Returns boolean