spessasynth_core documentation
    Preparing search index...

    Interface XGEffectBlock

    This is the base for all Yamaha XG effect interfaces.

    It represents a single effect block.

    There are 4 effect blocks types in XG:

    • Reverb
    • Chorus
    • Variation
    • Insertion
    interface XGEffectBlock {
        applySnapshot(snapshot: XGEffectBlockSnapshot): void;
        getSnapshot(): XGEffectBlockSnapshot;
        getType(): number;
        reset(): void;
        setParameter(param: number, value: number): void;
        setType(type: number): void;
    }

    Hierarchy (View Summary)

    Implemented by

    Index
    • Sets the type of the processor. Per XG spec, BASIC EFFECT (LSB = 0) should be used if the exact match is missing.

      Type change should reset the parameters. Fallback behavior (no BASIC EFFECT) is up to the implementation.

      Parameters

      • type: number

        The 16-bit type value to use.

      Returns void