Re: Newbie SWMixer / numpy help - AssertionError

2009-02-08 Thread Peter Chant
Robert Kern wrote: > >snd = swmixer.Sound(data=tone_data) > > Well, sort of. You probably need to scale your data and convert it to > int16 format. It's currently in floating point format. Done and working, thanks. As "file" was not needed for file="test.wav" I assumed the data prefix for

Re: Newbie SWMixer / numpy help - AssertionError

2009-02-07 Thread Robert Kern
On 2009-02-07 08:46, Peter Chant wrote: Hello, I'm a bit of a python newby. I want to play and record sound simultaneously. SWMixer seems able to do this but the examples use WAV files. I'm trying to play a test tone. Can anyone give me a steer as to why this fails? Looking at the SWMixer

Newbie SWMixer / numpy help - AssertionError

2009-02-07 Thread Peter Chant
Hello, I'm a bit of a python newby. I want to play and record sound simultaneously. SWMixer seems able to do this but the examples use WAV files. I'm trying to play a test tone. Can anyone give me a steer as to why this fails? import sys import swmixer import numpy swmixer.init(samplerate=4

Re: numpy help

2006-11-03 Thread Robert Kern
Chris Smith wrote: > Howdy, > > I'm a college student and for one of we are writing programs to > numerically compute the parameters of antenna arrays. I decided to use > Python to code up my programs. Up to now I haven't had a problem, > however we have a problem set where we are creating a large

Re: numpy help

2006-11-03 Thread Chris Smith
robert wrote: > Chris Smith wrote: > >>Howdy, >> >>I'm a college student and for one of we are writing programs to >>numerically compute the parameters of antenna arrays. I decided to use >>Python to code up my programs. Up to now I haven't had a problem, >>however we have a problem set where we a

Re: numpy help

2006-11-03 Thread robert
Chris Smith wrote: > Howdy, > > I'm a college student and for one of we are writing programs to > numerically compute the parameters of antenna arrays. I decided to use > Python to code up my programs. Up to now I haven't had a problem, > however we have a problem set where we are creating a large

numpy help

2006-11-03 Thread Chris Smith
Howdy, I'm a college student and for one of we are writing programs to numerically compute the parameters of antenna arrays. I decided to use Python to code up my programs. Up to now I haven't had a problem, however we have a problem set where we are creating a large matrix and finding it's inver