Full STFT -> iSTFT pass: returns time-domain reconstruction. Same interface as your original code.
(self, x: torch.Tensor)
| 189 | return waveform |
| 190 | |
| 191 | def forward(self, x: torch.Tensor): |
| 192 | """ |
| 193 | Full STFT -> iSTFT pass: returns time-domain reconstruction. |
| 194 | Same interface as your original code. |
| 195 | """ |
| 196 | mag, phase = self.transform(x) |
| 197 | return self.inverse(mag, phase, length=x.shape[-1]) |