kopia lustrzana https://github.com/erdewit/HiFiScan
Remove unused parameter
rodzic
bf36fc9dcb
commit
f1eec0941f
|
@ -234,8 +234,7 @@ def tone(f: float, secs: float, rate: int):
|
||||||
|
|
||||||
|
|
||||||
@lru_cache
|
@lru_cache
|
||||||
def geom_chirp(
|
def geom_chirp(f0: float, f1: float, secs: float, rate: int):
|
||||||
f0: float, f1: float, secs: float, rate: int, invert: bool = False):
|
|
||||||
"""
|
"""
|
||||||
Generate a geometric chirp (with an exponentially changing frequency).
|
Generate a geometric chirp (with an exponentially changing frequency).
|
||||||
|
|
||||||
|
@ -249,8 +248,6 @@ def geom_chirp(
|
||||||
|
|
||||||
t = np.arange(0, secs * rate) / rate
|
t = np.arange(0, secs * rate) / rate
|
||||||
chirp = np.sin(2 * np.pi * f0 * (k ** t - 1) / np.log(k))
|
chirp = np.sin(2 * np.pi * f0 * (k ** t - 1) / np.log(k))
|
||||||
if invert:
|
|
||||||
chirp = np.flip(chirp) / k ** t
|
|
||||||
return chirp
|
return chirp
|
||||||
|
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue