(self)
| 116 | self.stft.hop_length = self.hop_length * fs // self.default_fs |
| 117 | |
| 118 | def _get_window_func(self): |
| 119 | window_func = getattr(torch, f"{self.window}_window") |
| 120 | window = window_func(self.win_length) |
| 121 | n_pad_left = (self.n_fft - window.shape[0]) // 2 |
| 122 | n_pad_right = self.n_fft - window.shape[0] - n_pad_left # noqa |
| 123 | return window |
| 124 | |
| 125 | def spec_back(self, spec): |
| 126 | if self.spec_transform_type == "exponent": |
no outgoing calls
no test coverage detected