U
    a+dx                     @   s$   d dl Zd dlmZ edd ZdS )    N)audio_video_fxc                    s    fdd}| j |ddS )z} Return an audio (or video) clip that is first mute, then the
        sound arrives progressively over ``duration`` seconds. c                    s`   | |}t |r4td|   d}t ||g}n$t d|   d}t ||gj}|| S )Ng      ?   )npZisscalarminarrayZminimumZvstackT)ZgftZgftZfactorduration A/tmp/pip-unpacked-wheel-0yp4gafk/moviepy/audio/fx/audio_fadein.pyfading   s    
zaudio_fadein.<locals>.fadingT)Zkeep_duration)fl)Zclipr
   r   r   r	   r   audio_fadein   s    
r   )Znumpyr   Zmoviepy.decoratorsr   r   r   r   r   r   <module>   s   