
    W|h                     H    S SK Jr  S SKJr  S SKJr  \ " S S\5      5       rg)    )	dataclass)Clip)Effectc                   H    \ rS rSr% SrSr\\S'   Sr\\S'   S\	S\	4S jr
S	rg)
MultiplySpeed   a  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                   ^  T R                   (       a!  SUR                  -  T R                   -  T l        UR                  U 4S jSS/S9nUR                  b+  UR	                  SUR                  -  T R                  -  5      nU$ )zApply the effect to the clip.g      ?c                 "   > TR                   U -  $ )Nr	   )tselfs    X/home/james-whalen/.local/lib/python3.13/site-packages/moviepy/video/fx/MultiplySpeed.py<lambda>%MultiplySpeed.apply.<locals>.<lambda>   s    dkkAo    maskaudio)apply_to)r
   durationr	   time_transformwith_duration)r   r   new_clips   `  r   applyMultiplySpeed.apply   sy    -0C0CCDK&&%0A ' 
 ==$--cDMM.ADKK.OPHr   r   )__name__
__module____qualname____firstlineno____doc__r	   float__annotations__r
   r   r   __static_attributes__ r   r   r   r      s0     FE NE $ 4 r   r   N)dataclassesr   moviepy.Clipr   moviepy.Effectr   r   r'   r   r   <module>r+      s)    !  ! F  r   