def filterOutHarmonics(self, frequencies, f0_candidate):
        """
            Given frequencies and an f0 candidate remove
            all possible harmonics of this f0 candidate.
        """

        REMAINDER_THRESHOLD = 0.2   # If an integer frequency is a multiple of another frequency
                                    # then it is its harmonic. This constant was found empirically.
                                    # TODO: This constant may change for inharmonic frequencies!!!

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

        return [f for f in frequencies if not is_multiple(f, f0_candidate)]
dataset/ETHPy150Open Agerrr/Automated_Music_Transcription/least_squares_first_peaks_2.py/MIDI_Detector_Least_Squares_2.filterOutHarmonics/swapped operands of `/`