cr.nimble.dsp.signals.chirp_centered

cr.nimble.dsp.signals.chirp_centered(fs, T, fc, bw, initial_phase=0)[source]

Generates a frequency sweep from low to high over time defined by central frequency and bandwidth.

Parameters
  • fs (float) – Sample rate of signal in Hz.

  • T (float) – Period of the signal in seconds.

  • fc (float) – Central frequency of chirp in Hz.

  • bw (float) – Bandwidth (end frequency - start frequency) of chirp in Hz.

  • initial_phase (float) – phase at t=0 in radians, default is 0.

Returns

A tuple comprising (i) an array of time values in seconds and (ii) an array of signal values

Adapted from https://udel.edu/~mm/gr/chirp.py