spessasynth_core documentation
    Preparing search index...

    Class Modulator

    This class represents a single modulator (map from a source to a given synthesis parameter).

    Index
    destination: GeneratorType

    The destination generator for this modulator. This is the target parameter that will be changed.

    primarySource: ModulatorSource

    The primary source of this modulator.

    secondarySource: ModulatorSource

    The secondary source of this modulator.

    transformAmount: number = 0

    The transform amount for this modulator. This is the multiplier of the transformation.

    transformType: ModulatorTransformType = 0

    The transform type for this modulator. Usually no operation is performed.

    • Checks if the pair of modulators is identical (in SF2 terms)

      Parameters

      • mod1: Modulator

        Modulator 1 to compare.

      • mod2: Modulator

        Modulator 2 to compare.

      • checkAmount: boolean = false

        If the amount should be checked too. SF2 specification compares everything except amount.

      Returns boolean

      True if the two modulators are identical.