spessasynth_core documentation
    Preparing search index...

    Class DefaultXGSystemEffectAbstract

    The default implementation for XGSystemEffectBlock.

    System effects are global and have a send level for each channel, always adding wet output into them.

    Hierarchy (View Summary)

    Implements

    Index
    • Initializes the new XG effect block.

      Parameters

      • effectMap: Map<number, DefaultXGEffectProcessorConstructor>

        The map of all effect constructors to initialize.

      • fallbackProcessor: DefaultXGEffectProcessorConstructor

        The fallback processor in case the real processor is missing.

      • defaultType: number

        The default effect type.

      • sampleRate: number

        The sample rate, in Hertz.

      • maxBufferSize: number

        The maximum buffer size the synthesizer can render at once. Attempting to .process() more samples than this will result in an error.

      • variation: boolean

        True for the variation and insertion blocks.

      Returns DefaultXGSystemEffect

    pan: number = 64

    The stereo panning of this effect. 1 is hard left, 64 is center, 127 is hard right.

    processor: DefaultXGEffectProcessor

    The currently used processor.

    return: number = 64

    The return (level) of the effect. 0 is silence (-Inf dB), 64 is normal (0 dB) and 127 is double the volume (+6 dB).

    • Mixes the staged wet output into the system effect destination, applying return and pan.

      Parameters

      • outputLeft: Float32Array

        The left output buffer.

      • outputRight: Float32Array

        The right output buffer.

      • startIndex: number

        The index to start mixing at into the output buffers.

      • sampleCount: number

        The amount of samples to mix.

      Returns void