
    i                         d dl ZddZy)    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 )z Finds the period, in seconds of an audioclip.
    
    The beat is then given by bpm = 60/T

    t_min and _tmax are bounds for the returned value, t_res
    is the numerical precision
    g      ?   full)modeNr   )
intfpsnparrayiter_chunkssummean	correlatelenargmax)	aclipt_mint_maxt_res	chunksizechunk_durationcvcorrss	            V/var/www/html/eduruby.in/venv/lib/python3.12/site-packages/moviepy/audio/tools/cuts.pyfind_audio_periodr      s     E%))O$I]599,N
!!),.11a4**, . 	/A	!&&(
ALLAf-s1vgh7E&'E
$3u^#$%&'E#eN"
#
$%"))E***.s   C )g?r   g{Gz?)numpyr	   r        r   <module>r      s    +r   