def loudest_time(self, start=0, duration=0):
        if duration == 0:
            duration = self.sound.nframes
        self.current_frame = start
        arr = self.read_frames(duration)
        # get the frame of the maximum amplitude
        # different names for the same thing...
        # max_amp_sample = a.argmax(axis=0)[a.max(axis=0).argmax()]
        max_amp_sample = int(np.floor(arr.argmax()/2)) + start
        return max_amp_sample
Ask the user to select a function
dataset/ETHPy150Open ucbvislab/radiotool/radiotool/composer/track.py/Track.loudest_time--crossover with--dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/ChooseFunction