@bbx-audio/nectar
    Preparing search index...

    Interface IParameterManager

    Describes functionality to manage our parameters in various aspects, including initialization, cleanup, and simple getter methods.

    interface IParameterManager {
        cleanup(): void;
        getParameter<T extends ParameterType>(
            id: string,
        ): undefined | ParameterFromType<T>;
        getParameters(): Record<string, Parameter>;
        hasParameter(id: string): boolean;
        initializeParameters(): Promise<void>;
        registerParameter<T extends ParameterType>(
            config: ParameterConfigFromType<T>,
        ): ParameterFromType<T>;
        removeParameter(id: string): void;
        resetParameters(source?: ParameterChangeSource): void;
    }

    Implemented by

    Index

    Methods

    • Checks whether there is a parameter with the given ID.

      Parameters

      • id: string

      Returns boolean

    • Loads and initializes parameters from data embedded in the backend.

      CAUTION: You MUST define the "getParametersJsonData" native function in the backend code that initializes the juce::WebBrowserComponent.

      Returns Promise<void>

    • Removes the parameter with the given ID if it exists.

      Parameters

      • id: string

      Returns void