We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From examples of documentation,
import numpy as np framerate = 44100 t = np.linspace(0,5,framerate*5) data = np.sin(2np.pi220t) + np.sin(2np.pi224t) Audio(data, rate=framerate) <IPython.lib.display.Audio object>
Since np.linspace DOES include STOP parameter, in above example the array t has different frames per second.
The framerate is FRAME PER SECOND, so it sholud be changed like
import numpy as np framerate = 44100 t = np.linspace(0,5,framerate*5,endpoint=False) data = np.sin(2np.pi220t) + np.sin(2np.pi224t) Audio(data, rate=framerate) <IPython.lib.display.Audio object>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
From examples of documentation,
import numpy as np
framerate = 44100
t = np.linspace(0,5,framerate*5)
data = np.sin(2np.pi220t) + np.sin(2np.pi224t)
Audio(data, rate=framerate)
<IPython.lib.display.Audio object>
Since np.linspace DOES include STOP parameter, in above example the array t has different frames per second.
The framerate is FRAME PER SECOND, so it sholud be changed like
import numpy as np
framerate = 44100
t = np.linspace(0,5,framerate*5,endpoint=False)
data = np.sin(2np.pi220t) + np.sin(2np.pi224t)
Audio(data, rate=framerate)
<IPython.lib.display.Audio object>
The text was updated successfully, but these errors were encountered: