diff --git a/SampleLibrary.py b/SampleLibrary.py index d518fd475eb3bc30db0e5c0abad1e8674f18db5e..469d9cb50d0db02ff570905a924b86fde7e4f75b 100644 --- a/SampleLibrary.py +++ b/SampleLibrary.py @@ -97,12 +97,12 @@ def create_carrier(length: int, freq: float, fs: float): return sound -create_envelope.lowpass_filter: dict = {} -muffle_filter.filter: dict = {} +create_envelope.lowpass_filter = {} +muffle_filter.filter = {} class Filter: - N_TAPS: int = 256 + N_TAPS = 256 def __init__(self, cf: float, rng: Tuple[float, float], fs: float): self.centre_freq = cf @@ -157,9 +157,9 @@ class Sample: def time_scrambled(self, sound_in: np.ndarray=None): if sound_in is None: - sound: np.ndarray = self.raw.copy() + sound = self.raw.copy() else: - sound: np.ndarray = sound_in + sound = sound_in # t = np.arange(0, self.length_seconds, 1 / self.fs) blocks = [0, 4, 2, 1, 3, 5] rates = [0, 3, 0.2, 2, 0.5, 1.5]