You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
data = 10*np.sin(np.arange(int(length * rate)) * float(frequency) * (math.pi * 2) / rate) # sine # np.random.uniform(-1,1,44100) # 44100 random samples between -1 and 1
else:
data = np.random.uniform(-1,1,int(length * rate)) # 44100 random samples between -1 and 1
else:
print "Please provide a filename and a function name (sine or rand)"