Namespace: ramp

syngen.audio.ramp

Provides utility methods for ramping AudioParams.

Source:

Methods

(static) curve(audioParam, curve, durationopt)

Ramps audioParam to the values in curve over duration seconds.

Parameters:
Name Type Attributes Default Description
audioParam AudioParam
curve Array.<Number>
duration Number <optional>
syngen.const.zeroTime
Source:

(static) exponential(audioParam, value, durationopt)

Exponentially ramps audioParam to value over duration seconds.

Parameters:
Name Type Attributes Default Description
audioParam AudioParam
value Number
duration Number <optional>
syngen.const.zeroTime
Source:

(static) hold(audioParam)

Holds audioParam at its current time and cancels future values. This is a polyfill for AudioParam.cancelAndHoldAtTime().

Parameters:
Name Type Description
audioParam AudioParam
Source:

(static) linear(audioParam, value, durationopt)

Linearly ramps audioParam to value over duration seconds.

Parameters:
Name Type Attributes Default Description
audioParam AudioParam
value Number
duration Number <optional>
syngen.const.zeroTime
Source:

(static) set(audioParam, value)

Sets audioParam to value without pops or clicks. The duration depends on the average frame rate.

Parameters:
Name Type Description
audioParam AudioParam
value Number
Source:
See: