Re: [pygame] SWMixer released

2008-07-15 Thread René Dudfield
very cool! Looking forward to trying it out.

[pygame] SWMixer released

2008-07-15 Thread Nathan Whitehead
I would like to announce the release of SWMixer, an advanced software mixer for sound playback and recording. It is written entirely in python. It uses NumPy array operations for fast performance and PyAudio for audio playback and recording. At the moment it is fairly untested. It works well on

Re: [pygame] Obtain actual volume of sample being played

2008-07-15 Thread Greg Ewing
Wyatt Olson wrote: I would want to be able to return an approximation of the actual dB value at the given time. This is getting into the realm of signal processing, and is outside the scope of an audio output library, whose purpose is just to produce sound, not analyse it. I think you'll have

Re: [pygame] pygame 1.8.1rc2 release candidate 2 released.

2008-07-15 Thread Lenard Lindstrom
Hi everyone, I have updated the Windows installers and document bundle at my site, http://www3.telus.net/len_l/pygame/ , to revision 1502. Everything passes the unit tests, both with and without subprocesses enabled. 38402fa61caa7da36a5625ef21e2a35c *pygame-1.8.1b02.win32-py2.4.msi d9a16cac

Re: [pygame] Obtain actual volume of sample being played

2008-07-15 Thread Wyatt Olson
Sweet! I will play around with this. Cheers Forrest Voight wrote: sound = pygame.mixer.Sound('x.wav') array = pygame.sndarray.samples(sound) On Tue, Jul 15, 2008 at 3:16 PM, Wyatt Olson <[EMAIL PROTECTED]> wrote: How do you access the sndarray for a sound loaded from a .wav sample? From

Re: [pygame] arraydemo.py broken

2008-07-15 Thread Lenard Lindstrom
As it is arraydemo.py is trying to import pygame and failing because the package has been renamed. Reinstall pygame 1.8.1. This will create a new, clean, /usr/lib/python2.5/site-packages/pygame. Lenard Knapp wrote: I renamed that dir and tried arraydemo.py and get: Traceback (most recent ca

Re: [pygame] Obtain actual volume of sample being played

2008-07-15 Thread Forrest Voight
sound = pygame.mixer.Sound('x.wav') array = pygame.sndarray.samples(sound) On Tue, Jul 15, 2008 at 3:16 PM, Wyatt Olson <[EMAIL PROTECTED]> wrote: > How do you access the sndarray for a sound loaded from a .wav sample? From > what I can tell, you can either create a Sound object from a .wav file

Re: [pygame] Obtain actual volume of sample being played

2008-07-15 Thread Wyatt Olson
How do you access the sndarray for a sound loaded from a .wav sample? From what I can tell, you can either create a Sound object from a .wav file, or from a sndarray object, but I don't see how you can access the backing sndarray from a .wav Sound... Sorry if I am missing something obvious.

Re: [pygame] Obtain actual volume of sample being played

2008-07-15 Thread Forrest Voight
You could access a sndarray and average the current portion of it. You could probably even use numpy to do a fourier transform on it. On Tue, Jul 15, 2008 at 12:26 PM, Wyatt Olson <[EMAIL PROTECTED]> wrote: > Hello, > > Does anyone know if it is possible to obtain the actual volume of the sample

[pygame] Obtain actual volume of sample being played

2008-07-15 Thread Wyatt Olson
Hello, Does anyone know if it is possible to obtain the actual volume of the sample being played at a given moment? This is not the same as getting the volume level which was set earlier, on either the sample or the channel. For instance, assume that I am playing a sample which starts at low

Re: [pygame] [PATCH] fix incorrect behavior and performance in mask.get_bounding_rects()

2008-07-15 Thread René Dudfield
hi, I think we'll add all of your patches after 1.8.1 is released this weekend. Nicholas and I wrote some tests for Mask.get_bounding_rects, and transform.threshold... However I think it's a bit late to test them properly still, and might as well add them to pygame 1.9 starting this weekend. c

[pygame] pygame 1.8.1rc2 release candidate 2 released.

2008-07-15 Thread René Dudfield
Hello, pygame 1.8.1rc2 was marked in subversion. What's new can be found here: http://pygame.org/whatsnew.shtml http://rene.f0o.com/~rene/stuff/pygame-1.8.1rc2.zip 1.7MB 93bec2814c823c5339ce66bf0b495160 http://rene.f0o.com/~rene/stuff/pygame-1.8.1rc2.tar.gz 1.5MB 96c4028346d3f485018e28

[pygame] pygame mini sprint this weekend... releasing 1.8.1 and talking about 1.9 features.

2008-07-15 Thread René Dudfield
hello, if anyone feels like it, there will be an online mini sprint in #pygame this saturday working on pygame stuff... http://pygame.org/wiki/todo http://www.worldtimeserver.com/convert_time_in_AU-VIC.aspx?y=2008&mo=7&d=19&h=6&mn=0 It'd be cool to try and release 1.8.1 this weekend, as well as

Re: [pygame] image-loading path

2008-07-15 Thread Olaf Nowacki
thanks a lot everybody! my path was not quite right i finaly found out (thanks to os.path.abspath). the whole problem arose because i want to move my project to a package (there are way to many files now for 1 folder). i thought quite a while about and now want to use this structure: [project] |-

Re: [pygame] arraydemo.py broken

2008-07-15 Thread Knapp
I renamed that dir and tried arraydemo.py and get: Traceback (most recent call last): File "arraydemo.py", line 13, in raise ImportError, 'Error Importing Pygame/surfarray or Numeric' ImportError: Error Importing Pygame/surfarray or Numeric Looks like things are going well with the debuggi