Re: [pygame] Does PyGame support Ogg Vorbis OOTB?

2008-03-29 Thread ����������
I've written a tutorial on sound with pygame.

You can find it at http://takira.freehosting.net/

Feel free to extend it or whatever.

Also at the same page you can find the PyMP program
which  aims to play sound files the pygame way. It
should be useful.

Now for the *.ogg files, they sure are playable in
Linux and Windows.

Good luck with your tutorial.
Takis



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ



Re: [pygame] Does PyGame support Ogg Vorbis OOTB?

2008-03-29 Thread FT

Hi!

I had asked before but centered it on recording and was given the page
for the mixer but no record features. The burning onto CD is resolved and
works fine but do we have a way to translate wav to OGG?

I would like to know if someone has written a module to convert formats
into other formats?

I have not gone to the tutorial page mentioned below yet, but would like
to know since OGG files are much smaller then wav files.

Bruce

Subject: Re: [pygame] Does PyGame support Ogg Vorbis OOTB?


I've written a tutorial on sound with pygame.

You can find it at http://takira.freehosting.net/

Feel free to extend it or whatever.

Also at the same page you can find the PyMP program
which  aims to play sound files the pygame way. It
should be useful.

Now for the *.ogg files, they sure are playable in
Linux and Windows.

Good luck with your tutorial.
Takis






Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


--
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1348 - Release Date: 3/28/2008
10:58 AM




[pygame] hi, what is it? oh pygame 1.8 is released.

2008-03-29 Thread René Dudfield
Dear you,

I was walking down the street the other day and pygame 1.8 was
accidentally released.

oops.

Well anyway.  Have a nice day.  http://pygame.org/whatsnew.shtml
http://pygame.org/


* pygame.mask for pixel perfect collision detection
* pygame.scrap for clipboard support
* new and improved sprite groups, including layers, automatically
selecting fastest update mode, and blend modes...
* blending support for filling and blitting surfaces
* saving surfaces as jpeg and png
* buffer access for Surface and Sound objects
* numpy support for pygame.surfarray and pygame.pixelarray
* PixelArray, which can be used instead of numpy - without the dependency.

* lots of stuff really... but those are some of the nice things.

chairs,


ps. Balloons and robots are cool.
pps.  Does anyone else like the smell of feshly cut grass... like when
grass is mowed?  Or the feeling of freshly cut grass between your
toes?


Re: [pygame] hi, what is it? oh pygame 1.8 is released.

2008-03-29 Thread PyMike
Hey,
Yay! Finally pygame 1.8 is out :)
One problem is the docs are not complete on the sprite module. It doesn't
have any documentation on LayeredUpdates, DirtySprites, etc.

On Sat, Mar 29, 2008 at 8:42 AM, René Dudfield [EMAIL PROTECTED] wrote:

 Dear you,

 I was walking down the street the other day and pygame 1.8 was
 accidentally released.

 oops.

 Well anyway.  Have a nice day.  http://pygame.org/whatsnew.shtml
 http://pygame.org/


* pygame.mask for pixel perfect collision detection
* pygame.scrap for clipboard support
* new and improved sprite groups, including layers, automatically
 selecting fastest update mode, and blend modes...
* blending support for filling and blitting surfaces
* saving surfaces as jpeg and png
* buffer access for Surface and Sound objects
* numpy support for pygame.surfarray and pygame.pixelarray
* PixelArray, which can be used instead of numpy - without the
 dependency.

* lots of stuff really... but those are some of the nice things.

 chairs,


 ps. Balloons and robots are cool.
 pps.  Does anyone else like the smell of feshly cut grass... like when
 grass is mowed?  Or the feeling of freshly cut grass between your
 toes?




-- 
- pymike (pymike.blogspot.com)


Re: [pygame] hi, what is it? oh pygame 1.8 is released.

2008-03-29 Thread René Dudfield
ah, yes. oops.  Thanks for spotting that.

The new sprite stuff is documented with doc strings, and an example.
If you try the testsprite example you'll hopefully see much improved
performance :)

Try out:
python testsprite.py -FastRenderGroup

However the new sprite stuff isn't in the html documentation... oops.
I'll fix that soon.  For now just look at the example, and the doc
strings.

cheers,
*raises glass*


On Sun, Mar 30, 2008 at 1:44 AM, PyMike [EMAIL PROTECTED] wrote:
 Hey,
 Yay! Finally pygame 1.8 is out :)
 One problem is the docs are not complete on the sprite module. It doesn't
 have any documentation on LayeredUpdates, DirtySprites, etc.



  On Sat, Mar 29, 2008 at 8:42 AM, René Dudfield [EMAIL PROTECTED] wrote:
  Dear you,
 
  I was walking down the street the other day and pygame 1.8 was
  accidentally released.
 
  oops.
 
  Well anyway.  Have a nice day.  http://pygame.org/whatsnew.shtml
  http://pygame.org/
 
 
 * pygame.mask for pixel perfect collision detection
 * pygame.scrap for clipboard support
 * new and improved sprite groups, including layers, automatically
  selecting fastest update mode, and blend modes...
 * blending support for filling and blitting surfaces
 * saving surfaces as jpeg and png
 * buffer access for Surface and Sound objects
 * numpy support for pygame.surfarray and pygame.pixelarray
 * PixelArray, which can be used instead of numpy - without the
 dependency.
 
 * lots of stuff really... but those are some of the nice things.
 
  chairs,
 
 
  ps. Balloons and robots are cool.
  pps.  Does anyone else like the smell of feshly cut grass... like when
  grass is mowed?  Or the feeling of freshly cut grass between your
  toes?
 



 --
 - pymike (pymike.blogspot.com)


Re: [pygame] hoe to create the RoundRect ?

2008-03-29 Thread Ian Mallett
I you wanted to not have a filled rectangle, you could render this to a
surface, with the center in black, set the surface's colorkey to black, and
render the surface to your main surface.  Currently, this must be done by
the user, but I could change it so it does it automatically.


Re: [pygame] hi, what is it? oh pygame 1.8 is released.

2008-03-29 Thread Patrick Mullen
Great job!  Wow, this is going to make the choice of pyglet or pygame
for pyweek that much more interesting ;)


Re: [pygame] hi, what is it? oh pygame 1.8 is released.

2008-03-29 Thread Ian Mallett
In pygame.mask:
pygame.Mask((width, height) should be pygame.Mask((width, height))
And we need ways to add comments on all pages.


Re: [pygame] hi, what is it? oh pygame 1.8 is released.

2008-03-29 Thread Ian Mallett
Also,

*pygame.mask.pygame.mask.from_surface*
*Returns a Mask from the given surface.*
pygame.mask.from_surface(Surface, threshold = 127) - Mask

These functions don't seem to be consistent...


Re: [pygame] Does PyGame support Ogg Vorbis OOTB?

2008-03-29 Thread Brian Fisher
There are no current plans to add features for authoring sounds (i.e.
recording or saving audio files) to pygame

However you can do that stuff in python with PyMedia:
http://pymedia.org//features.html

If you just want to convert files to ogg without using python, oggenc
and oggdrop can do it (command-line and gui respectively):
http://www.rarewares.org/ogg.php


On Sat, Mar 29, 2008 at 5:21 AM, FT [EMAIL PROTECTED] wrote:

  Hi!

 I had asked before but centered it on recording and was given the page
  for the mixer but no record features. The burning onto CD is resolved and
  works fine but do we have a way to translate wav to OGG?

 I would like to know if someone has written a module to convert formats
  into other formats?



Re: [pygame] Does PyGame support Ogg Vorbis OOTB?

2008-03-29 Thread James Paige
On Sat, Mar 29, 2008 at 07:21:26AM -0500, FT wrote:
 
 Hi!
 
 I had asked before but centered it on recording and was given the page
 for the mixer but no record features. The burning onto CD is resolved and
 works fine but do we have a way to translate wav to OGG?
 
 I would like to know if someone has written a module to convert formats
 into other formats?
 
 I have not gone to the tutorial page mentioned below yet, but would like
 to know since OGG files are much smaller then wav files.
 
 Bruce
 

If you mean a way to convert wav to ogg inside a pythong program, then 
no, but if you are just talking about converting wav to ogg in general, 
yes, there are plenty of tools.

On Linux look for the oggenc program, which comes standard as part of 
the vorbis-tools

On windows you can use the graphical OggdropXPd from 
http://www.rarewares.org/ogg-oggdropxpd.php

And another good option is the SoX tool from http://sox.sourceforge.net/

And finally, if you want something really graphical, with editing and 
filtereffect capabilities too, The http://audacity.sourceforge.net/ 
sound recorder/editor can save/load both wav and ogg format. It runs on 
all three major platforms.

---
James Paige


Re: [pygame] Does PyGame support Ogg Vorbis OOTB?

2008-03-29 Thread Ian Mallett
I love Audacity!


Re: [pygame] hi, what is it? oh pygame 1.8 is released.

2008-03-29 Thread René Dudfield
ta,

I fixed up commenting on the docs again.

I'll have to fix the mask docs later... at some point the function
names seem to have been changed.

cheers,


On Sun, Mar 30, 2008 at 3:43 AM, Ian Mallett [EMAIL PROTECTED] wrote:
 In pygame.mask:
 pygame.Mask((width, height) should be pygame.Mask((width, height))
 And we need ways to add comments on all pages.



Re: [pygame] hi, what is it? oh pygame 1.8 is released.

2008-03-29 Thread Ian Mallett
Not on pygame.cursors, pygame.mask, pygame.movie, pygame.overlay,
pygame.scrap, pygame.surface...


Re: [pygame] hi, what is it? oh pygame 1.8 is released.

2008-03-29 Thread René Dudfield
maybe they are cached for you?  try shift refresh?

they seem to work here.

On Sun, Mar 30, 2008 at 4:04 AM, Ian Mallett [EMAIL PROTECTED] wrote:
 Not on pygame.cursors, pygame.mask, pygame.movie, pygame.overlay,
 pygame.scrap, pygame.surface...



Re: [pygame] hi, what is it? oh pygame 1.8 is released.

2008-03-29 Thread Ian Mallett
Hmm you're right.  Sorry.  I find it strange that some of the webpages had
comments, and some didn't though.


Re: [pygame] hi, what is it? oh pygame 1.8 is released.

2008-03-29 Thread Dan Krol
I was wondering which RC became the 1.8 release? I am looking at the
Mac installers linked from pygame's site (
http://rene.f0o.com/~rene/stuff/macosx/ ), and RC5 is the only 1.8
release given; is that the one that became the final 1.8?

Thanks,

Dan

On 3/29/08, Ian Mallett [EMAIL PROTECTED] wrote:
 Hmm you're right.  Sorry.  I find it strange that some of the webpages had
 comments, and some didn't though.



Re: [pygame] Does PyGame support Ogg Vorbis OOTB?

2008-03-29 Thread FT

Hi Ian,

Thanks, I downloaded it and saving some of my wav files as ogg. I wanted 
something that allowed me to easily convert all those huge wav files into 
something transportable and small.

Prior to you sending this I had found one other converter but not friendly 
to screen readers. This one does at least have a file menu, not just buttons on 
the screen that can only be reached by mouse clicks.

So I have what I need to convert my Battle Ship game to .ogg files. The 
game does do the game with 2 players or computer to play against. I have a 
level one and 2 for the computer and a third which will be hard to beat in a 
few hours. Then you will be able to select levels, but not yet.

Nice sound and voice for anyone to play, but no video, at least not in the 
near future.

Bruce



I love Audacity!



Re: [pygame] hi, what is it? oh pygame 1.8 is released.

2008-03-29 Thread Pete Shinners

René Dudfield wrote:

I was walking down the street the other day and pygame 1.8 was
accidentally released.


Nice work, Rene. Glad to see everything wrapped up so tidy.


[pygame] Mixer latency

2008-03-29 Thread Wyatt Olson

Hello all,

I am in the process of making a real time drum sequencer program, but I 
am experiencing some problems with using Pygame mixer.  There seems to 
be approximately a 100ms delay between issuing the sound.play() command 
and actually hearing the sound play.  To reach an acceptable level, I 
must decrease this to a maximum of about 10ms.


I have tried adjusting the buffer size, the number of sounds loaded, 
etc, to no avail.


I am running pygame 1.7.1 on OS X.


Does anyone have any suggestions on what I can try?

Thanks!



signature.asc
Description: OpenPGP digital signature