XSound - v4.0.10
    Preparing search index...

    Class EnvelopeGenerator

    This private class is for Envelope Generator.

    Implements

    Index

    Constructors

    Properties

    MIN_GAIN: number = 1e-3

    Methods

    • This method clears variables for managing instance of GainNode.

      Parameters

      • disconnected: boolean

        This argument is in order to determine whether disconnect AudioNode.

      Returns void

      This is returned for method chain.

    • This method gets instance of GainNode for Envelope Generator.

      Parameters

      • index: number

        This argument is index of array that contains instance of GainNode for Envelope Generator.

      Returns null | GainNode

      This is returned as instance of GainNode for Envelope Generator.

    • This method gets or sets parameters for envelope generator. This method is overloaded for type interface and type check.

      Parameters

      • params: "state"

        This argument is string if getter. Otherwise, setter.

      Returns boolean

      Return value is parameter for envelope generator if getter. Otherwise, return value is for method chain.

    • This method gets or sets parameters for envelope generator. This method is overloaded for type interface and type check.

      Parameters

      • params: "attack"

        This argument is string if getter. Otherwise, setter.

      Returns number

      Return value is parameter for envelope generator if getter. Otherwise, return value is for method chain.

    • This method gets or sets parameters for envelope generator. This method is overloaded for type interface and type check.

      Parameters

      • params: "decay"

        This argument is string if getter. Otherwise, setter.

      Returns number

      Return value is parameter for envelope generator if getter. Otherwise, return value is for method chain.

    • This method gets or sets parameters for envelope generator. This method is overloaded for type interface and type check.

      Parameters

      • params: "sustain"

        This argument is string if getter. Otherwise, setter.

      Returns number

      Return value is parameter for envelope generator if getter. Otherwise, return value is for method chain.

    • This method gets or sets parameters for envelope generator. This method is overloaded for type interface and type check.

      Parameters

      • params: "release"

        This argument is string if getter. Otherwise, setter.

      Returns number

      Return value is parameter for envelope generator if getter. Otherwise, return value is for method chain.

    • This method gets or sets parameters for envelope generator. This method is overloaded for type interface and type check.

      Parameters

      Returns EnvelopeGenerator

      Return value is parameter for envelope generator if getter. Otherwise, return value is for method chain.

    • This method determines whether the all of gain schedulings have ended.

      Returns boolean

      If the all of gain schedulings have ended, this value is true. Otherwise, this value is false.

    • This method connects instance of AudioNode.

      Parameters

      • index: number

        This argument is in order to select instance of GainNode that is Envelope Generator.

      • input: null | AudioNode

        This argument is instance of AudioNode as input.

      • output: null | AudioNode

        This argument is instance of AudioNode as output.

      Returns void

    • This method sets instance of GainNode for Envelope Generator.

      Parameters

      • index: number

        This argument is index of array that contains instance of GainNode for Envelope Generator.

      Returns void

      This is returned for method chain.

    • This method changes gain (Attack or Decay or Sustain -> Release).

      Parameters

      • stopTime: number

        This argument is start time of Release.

      • OptionaluseCurve: boolean

        This argument is to use different methods. The default value is false.

      Returns void