Vinyl
    Preparing search index...

    Interface LoudnessNormalizationController

    Handles loudness normalization by applying gain adjustments based on track loudness metadata.

    interface LoudnessNormalizationController {
        gain: number;
        logPrefix: string;
        clear(): void;
        dispatch<K extends "change">(
            type: K,
            event: LoudnessNormalizationControllerEventMap[K],
        ): void;
        hasAnyListeners(): boolean;
        hasListeners(type: "change"): boolean;
        on<K extends "change">(
            type: K,
            handler: EventHandler<LoudnessNormalizationControllerEventMap[K]>,
            options?: SignalOptions,
        ): Unsubscribe;
        setTrackLoudness(value: null | number): void;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    gain: number

    Loudness gain adjustment value.

    logPrefix: string

    A string prefix for all log statements made by this target.

    Methods

    • Clears this object.

      Returns void

    • Dispatches an event.

      Type Parameters

      • K extends "change"

      Parameters

      • type: K

        The key of the event within EventMap

      • event: LoudnessNormalizationControllerEventMap[K]

        If the passed event is read-only, then it may be re-used/cached. Otherwise, it should be a new event object every dispatch. If no target property is set on the event, the target will be set to this host.

      Returns void

    • Returns true if the event host has any listeners.

      Returns boolean

    • Returns true if the event host has any listeners for the given type.

      Parameters

      • type: "change"

      Returns boolean

    • Sets the current track's loudness level in LUFS, for the current track played.

      Parameters

      • value: null | number

      Returns void