
    -i                     V    d dl mZ d dlmZ d dlmZ e G d de                      ZdS )    )	dataclass)Clip)Effectc                   @    e Zd ZU dZdZeed<   dZeed<   dedefdZ	dS )MultiplySpeeda   Returns a clip playing the current clip but at a speed multiplied by ``factor``.

    Instead of factor one can indicate the desired ``final_duration`` of the clip, and
    the factor will be automatically computed. The same effect is applied to the clip's
    audio and mask if any.
    Nfactorfinal_durationclipreturnc                       j         rd|j        z   j         z   _        |                     fdddg          }|j        %|                    d|j        z   j        z            }|S )zApply the effect to the clip.g      ?c                     j         | z  S )N)r   )tselfs    \/var/www/html/speakWrite/venv/lib/python3.11/site-packages/moviepy/video/fx/MultiplySpeed.py<lambda>z%MultiplySpeed.apply.<locals>.<lambda>   s    dkAo     maskaudio)apply_to)r	   durationr   time_transformwith_duration)r   r
   new_clips   `  r   applyzMultiplySpeed.apply   s     	D-0CCDK&&%%%%0A ' 
 
 =$--cDM.ADK.OPPHr   )
__name__
__module____qualname____doc__r   float__annotations__r	   r   r    r   r   r   r      sd           FE NE   $ 4      r   r   N)dataclassesr   moviepy.Clipr   moviepy.Effectr   r   r!   r   r   <module>r%      s{    ! ! ! ! ! !       ! ! ! ! ! !     F     r   