def chroma(self): """ Compute the 12-ET chroma vector from this spectrum """ return Pitch.chroma(self)
def calc_frequency(audio): frames = audio.frames(1024) spectra = frames[0].spectrum() frequency = Pitch.getFrequency(spectra) return frequency