On Thu, Mar 5, 2009 at 8:38 PM, Mr Gerard Kelly
wrote:
> I am trying to convert something using the old Numeric module to the numpy
> module.
>
> This is the code so far::
>
> from __future__ import division
>
> import pygame, time, random, pygame.sndarray
> sample_rate = 44100
>
> from numpy imp
I am trying to convert something using the old Numeric module to the numpy
module.
This is the code so far::
from __future__ import division
import pygame, time, random, pygame.sndarray
sample_rate = 44100
from numpy import *
def sine_array(hz,peak,n_samples=sample_rate):
length=sample_rate