MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / _chirp

Function _chirp

tests/scripts/test_csv2wav.py:45–49  ·  view source on GitHub ↗
(rate, seconds, f0=200.0, f1=2000.0)

Source from the content-addressed store, hash-verified

43
44
45def _chirp(rate, seconds, f0=200.0, f1=2000.0):
46 n = int(rate * seconds)
47 t = np.arange(n) / float(rate)
48 k = (f1 - f0) / seconds
49 return np.sin(2.0 * np.pi * (f0 * t + 0.5 * k * t * t))
50
51
52def test_clean_roundtrip_scores_high(tmp_path):

Calls

no outgoing calls

Tested by

no test coverage detected