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

    Interface IChoiceParameter

    Describes a choice or integer-based parameter object, exposing the additional functionality to set the choice by a particular value if it exists among the choices from the original configuration.

    interface IChoiceParameter {
        config: IChoiceParameterConfig;
        type: Choice;
        getValue(): number;
        resetValue(source?: ParameterChangeSource): void;
        setChoiceByValue(
            value: string | number,
            source?: ParameterChangeSource,
        ): void;
        setValue(value: number, source?: ParameterChangeSource): void;
        subscribe(listener: ParameterListener<number>): () => void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    The particular configuration of this parameter.

    type: Choice

    The particular parameter type of this parameter.

    Methods