[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Screeching, Howling Garbage in One Ear pygame.sndarray



On Fri, 2006-05-05 at 20:33 -0700, andrew baker wrote:
> Hey, thanks for the fast response.
> 
> Pete, I can't even get yours to run at the moment:

>     samples[:] = mono[:, Numeric.NewAxis]
> ValueError: matrices are not aligned for copy


I'm running Numeric 24.2. I know there is a syntax for this that works
in other Numeric versions, but I had to poke a bit to get this line
working. I'm actually surprised this is different between Numeric
versions.

If worse comes to worse, you can always bump it up into two lines.
    samples[:,0] = mono
    samples[:,1] = mono