docs: def frame_to_sample(self, frame_index):
          """
          Return a tuple containing the indices of the sample which are the first sample and the end (exclusive)
          of the frame with the given index.
          """
          start = frame_index * self.hop_size
          end = start + self.frame_size
          return start, end