def make_dct(self): """Computes the DCT of this wave. """ N = len(self.ys) hs = scipy.fftpack.dct(self.ys, type=2) fs = (0.5 + np.arange(N)) / 2 return Dct(hs, fs, self.framerate)