Global

Methods

sweep(sequencenon-null, sampleRate, outputTypednullable) → {!Array.<number>|Float64Array}

Source:
Return the samples of a frequency sweep. The sweep may be divided in segments, each using a different waveform (or noise), and each with a start and end frequency.
Parameters:
Name Type Attributes Description
sequence Array.<Object.<string, (string|number)>> The sequence. Each item in the array must have the properties: start: Integer value, the start frequency of the segment. end: Integer value, the end frequency of the segment. time: Float value, the duration of the segment. 1 = 1 second. wave: String, "sine", "square", "triangle", "sawtooth" or "noise".
sampleRate number The sample rate.
outputTyped boolean <nullable>
True to return Float64Array, false for Array.
Returns:
Type
!Array.<number> | Float64Array