def getDistances(self, freqs):

        distances =  {(freqs[i], freqs[j]): self.calcDistance(freqs[i], freqs[j])
                        for (i, j) in product(range(len(freqs)), repeat=2)}
        distances = {freq_pair: dist for freq_pair, dist in distances.iteritems() if dist < 2.0}
        return distances
Returns a list of distances between each frequency.
dataset/ETHPy150Open Agerrr/Automated_Music_Transcription/first_peaks_method.py/MIDI_Detector.getDistances