Chirp
signal.chirp
Sine whose frequency rises linearly from f0 at t = 0 to f1 at t = T and stays at f1 afterwards.
Ports
| Name | Domain | Direction |
|---|---|---|
y | signal | out |
Parameters
| Name | Unit | Default | Range | Description |
|---|---|---|---|---|
k | 1 | 1 | Amplitude | |
f0 | Hz | 0.1 | 0 to ∞ | Start frequency |
f1 | Hz | 10 | 0 to ∞ | End frequency |
T | s | 10 | 0 to ∞ | Duration of the sweep |
Equations
y = k * sin(2 * pi * (if time < T then f0 * time + (f1 - f0) * time^2 / (2 * T) else (f0 + f1) * T / 2 + f1 * (time - T)))