(self, x)
| 344 | return (x - self.spec_min) / (self.spec_max - self.spec_min) * 2 - 1 |
| 345 | |
| 346 | def denorm_spec(self, x): |
| 347 | return (x + 1) / 2 * (self.spec_max - self.spec_min) + self.spec_min |
| 348 | |
| 349 | def cwt2f0_norm(self, cwt_spec, mean, std, mel2ph): |
| 350 | return self.fs2.cwt2f0_norm(cwt_spec, mean, std, mel2ph) |