Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 26283d8

Browse files
committed
Minor fixes in display.Audio documentation
1 parent 4d5e7d7 commit 26283d8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

IPython/lib/display.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ class Audio(DisplayObject):
3333
* Bytestring containing raw PCM data or
3434
* URL pointing to a file on the web.
3535
36-
If the array option is used the waveform will be normalized.
36+
If the array option is used, the waveform will be normalized.
3737
38-
If a filename or url is used the format support will be browser
38+
If a filename or url is used, the format support will be browser
3939
dependent.
4040
url : unicode
4141
A URL to download the data from.
@@ -63,7 +63,7 @@ class Audio(DisplayObject):
6363
import numpy as np
6464
framerate = 44100
6565
t = np.linspace(0,5,framerate*5)
66-
data = np.sin(2*np.pi*220*t) + np.sin(2*np.pi*224*t))
66+
data = np.sin(2*np.pi*220*t) + np.sin(2*np.pi*224*t)
6767
Audio(data,rate=framerate)
6868
6969
# Can also do stereo or more channels

0 commit comments

Comments
 (0)