audioflux.chirp

audioflux.chirp(fmin, fmax, duration, samplate=32000, phi=None, method='logarithmic')

chirp signal

The chirp sweeps from frequency fmin to fmax (in Hz).

Parameters
fmin: float

initial frequency

fmax: float

final frequency

duration: float

output duration in seconds.

samplate: int

desired sampling rate of the output signal

phi: float, optional

Phase offset, in radians.

If None, use 1 / 2 * -np.pi.

method: str

linear, quadratic, logarithmic, hyperbolic

See: scipy.signal.chirp

Returns
out: np.ndarray [shape=(duration*samplate, )]

chirp single array