
    -i                     b    d dl mZ 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)audio_video_effect)Effectc                   P    e Zd ZU dZdZeed<   dZeed<   ede	de	fd            Z
dS )	MultiplyStereoVolumea^  For a stereo audioclip, this function enables to change the volume
    of the left and right channel separately (with the factors `left`
    and `right`). Makes a stereo audio clip in which the volume of left
    and right is controllable.

    Examples
    --------

    .. code:: python

        from moviepy import AudioFileClip
        music = AudioFileClip('music.ogg')
        # mutes left channel
        audio_r = music.with_effects([afx.MultiplyStereoVolume(left=0, right=1)])
        # halves audio volume
        audio_h = music.with_effects([afx.MultiplyStereoVolume(left=0.5, right=0.5)])
       leftrightclipreturnc                 8      fd}|                     |          S )zApply the effect to the clip.c                     | |          }t          |          dk    r|j        j        nj        z  }nNt          t          |d                             D ]+}|d d |fxx         |dz  dk    rj        nj        z  cc<   ,|S )Nr	   r      )lenr
   r   range)	get_frametframeiselfs       c/var/www/html/speakWrite/venv/lib/python3.11/site-packages/moviepy/audio/fx/MultiplyStereoVolume.pystereo_volumez1MultiplyStereoVolume.apply.<locals>.stereo_volume#   s    IaLLE5zzQdi&;Ks58}}-- K KA!!!Q$KKKA

499
JKKKKL    )	transform)r   r   r   s   `  r   applyzMultiplyStereoVolume.apply   s0    	 	 	 	 	 ~~m,,,r   N)__name__
__module____qualname____doc__r
   float__annotations__r   r   r   r    r   r   r   r      sl          $ D%OOOE5-$ -4 - - - - - -r   r   N)	dataclassesr   moviepy.Clipr   moviepy.decoratorsr   moviepy.Effectr   r   r#   r   r   <module>r(      s    ! ! ! ! ! !       1 1 1 1 1 1 ! ! ! ! ! ! #- #- #- #- #-6 #- #- #- #- #-r   