Please refactor this to be:

    if center is None:
        center = self.playhead.to_sec()
    center_frac = (center - self._stamp_left) / stamp_interval