code: def detect_head(self, min_head_length=None, max_head_length=None):
          
          return self._detect(min_head_length, max_head_length, tail=False)
docs: Detect the audio head, returning its duration, in seconds.
  
          :param min_head_length: estimated minimum head length
          :type  min_head_length: :class:`~aeneas.exacttiming.TimeValue`
          :param max_head_length: estimated maximum head length
          :type  max_head_length: :class:`~aeneas.exacttiming.TimeValue`
          :rtype: :class:`~aeneas.exacttiming.TimeValue`
          :raises: TypeError: if one of the parameters is not ``None`` or a number
          :raises: ValueError: if one of the parameters is negative