(rate, seconds, f0=200.0, f1=2000.0)
| 43 | |
| 44 | |
| 45 | def _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 | |
| 52 | def test_clean_roundtrip_scores_high(tmp_path): |
no outgoing calls
no test coverage detected