def calcDistance(self, freq1, freq2):

        difference = abs(freq1 - freq2)
        log = math.log((freq1 + freq2) / 2)
        return difference / log
Flush of file like objects. In this case, wait until all data
dataset/ETHPy150Open Agerrr/Automated_Music_Transcription/first_peaks_method.py/MIDI_Detector.calcDistance--crossover with--dataset/ETHPy150Open pyserial/pyserial/serial/serialwin32.py/Serial.flush