
    gp                         d Z ddlZddZy)z%Cutting utilities working with audio.    Nc                    t        || j                  z        }d|z  | j                  z  }t        j                  | j	                  |      D cg c]  }|dz  j                          c}      }||j                         z
  }t        j                  ||d      t        |       d }d|dt        ||z         d|t        ||z        d |t        j                  |      z  S c c}w )a+  Finds the period, in seconds of an audioclip.

    Parameters
    ----------

    min_time : float, optional
      Minimum bound for the returned value.

    max_time : float, optional
      Maximum bound for the returned value.

    time_resolution : float, optional
      Numerical precision.
    g      ?   full)modeNr   )
intfpsnparrayiter_chunkssummean	correlatelenargmax)	clipmin_timemax_timetime_resolution	chunksizechunk_durationchunkvcorrss	            a/var/www/it7/html/youtubeDownloader/venv/lib/python3.12/site-packages/moviepy/audio/tools/cuts.pyfind_audio_periodr      s     Odhh./I9_txx/N
0@0@0KLu5!8.."LMA	AFFHALLAF+SVGI6E./E
*C>)*+./E#h'
(
*+BIIe,,, Ms   C )g?r   g{Gz?)__doc__numpyr	   r        r   <module>r       s    + -r   