##// END OF EJS Templates
Minor fixes in display.Audio documentation
Jan S. (Milania1) -
Show More
@@ -33,9 +33,9 b' class Audio(DisplayObject):'
33 * Bytestring containing raw PCM data or
33 * Bytestring containing raw PCM data or
34 * URL pointing to a file on the web.
34 * URL pointing to a file on the web.
35
35
36 If the array option is used the waveform will be normalized.
36 If the array option is used, the waveform will be normalized.
37
37
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
39 dependent.
39 dependent.
40 url : unicode
40 url : unicode
41 A URL to download the data from.
41 A URL to download the data from.
@@ -63,7 +63,7 b' class Audio(DisplayObject):'
63 import numpy as np
63 import numpy as np
64 framerate = 44100
64 framerate = 44100
65 t = np.linspace(0,5,framerate*5)
65 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)
67 Audio(data,rate=framerate)
67 Audio(data,rate=framerate)
68
68
69 # Can also do stereo or more channels
69 # Can also do stereo or more channels
General Comments 0
You need to be logged in to leave comments. Login now