def filterOutHarmonics(self, frequencies, f0_candidate):

        # If an integer frequency is a multiple of another frequency
        # then it is its harmonic. This constant was found empirically.
        REMAINDER_THRESHOLD = 0.2

        def is_multiple(f, f0):
            return abs(round(f / f0) - f / f0) < REMAINDER_THRESHOLD

        return [f for f in frequencies if not is_multiple(f, f0_candidate)]
Given frequencies and an f0 candidate remove
dataset/ETHPy150Open Agerrr/Automated_Music_Transcription/first_peaks_method.py/MIDI_Detector.filterOutHarmonics