Skip to content

Commit

Permalink
Improve example readability
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja committed Jan 16, 2021
1 parent f2e6597 commit 4c7dd93
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions moviepy/audio/AudioClip.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ class AudioClip(Clip):
>>> clip.preview()
>>> # Plays the note A in stereo (two sine waves of frequencies 440 and 880 Hz)
>>> clip = AudioClip(
... lambda t: np.array([np.sin(440 * 2 * np.pi * t),
... np.sin(880 * 2 * np.pi * t)]).T.copy(order="C"),
... duration=3, fps=44100
... )
>>> make_frame = lambda t: np.array([
... np.sin(440 * 2 * np.pi * t),
... np.sin(880 * 2 * np.pi * t)
... ]).T.copy(order="C")
>>> clip = AudioClip(make_frame, duration=3, fps=44100)
>>> clip.preview()
"""
Expand Down

0 comments on commit 4c7dd93

Please sign in to comment.