Re: [Tutor] Python won't play .wav file

2005-05-26 Thread Alan G
> And if I'm on Linux or programing for Mac? Sadly sound is one of those things that tends to be system dependant. There is a Sun audio module somewhere too... On the Mac I believe its a Quicktime thing using the MacPython libraries. The good news is that I think PyGame provides a platform inde

Re: [Tutor] Python won't play .wav file

2005-05-25 Thread Lee Harr
>>Strangely... I do not believe the wave module is meant to actually >>_play_ a wav file. It looks to me like it is only intended to read and >>parse the file for meta information. >> >>You could try passing the name of the file to another program >>via os.system, or you could use pygame. > >Ok

Re: [Tutor] Python won't play .wav file

2005-05-25 Thread Joseph Quigley
Hi, I'm replying to you both... At 03:16 PM 5/24/2005, you wrote: >Strangely... I do not believe the wave module is meant to actually >_play_ a wav file. It looks to me like it is only intended to read and >parse the file for meta information. > >You could try passing the name of the file to anoth

Re: [Tutor] Python won't play wav file

2005-05-24 Thread Alan G
Joseph, I don't know if this will help or not, but some observations: > def manipulate(): > manipulate = raw_input("Type 'help' for help\nManipulate>> ") > if manipulate == "play": > w.tell() > elif manipulate == "back()": > main_menu() You expect the user to typ

Re: [Tutor] Python won't play wav file

2005-05-24 Thread Max Noel
On May 24, 2005, at 02:49, Joseph Quigley wrote: > ... to play a .wav music file. I tried w.play() but got an error that > module has no attribute 'play'. > What do I use to get it to play? > Thanks, The wave module is meant to read, write and manipulate (transform, filter, whatever) WAV

Re: [Tutor] Python won't play wav file

2005-05-24 Thread Kent Johnson
Lee Harr wrote: >>I can't get: >> >>import wave as w >> > > > >>... to play a .wav music file. I tried w.play() but got an error that >>module has no attribute 'play'. >>What do I use to get it to play? > > > > Strangely... I do not believe the wave module is meant to actually > _play_ a wav

Re: [Tutor] Python won't play wav file

2005-05-24 Thread Lee Harr
>I can't get: > >import wave as w > >... to play a .wav music file. I tried w.play() but got an error that >module has no attribute 'play'. >What do I use to get it to play? Strangely... I do not believe the wave module is meant to actually _play_ a wav file. It looks to me like it is only inte

[Tutor] Python won't play wav file

2005-05-24 Thread Joseph Quigley
I can't get: import wave as w def manipulate(): manipulate = raw_input("Type 'help' for help\nManipulate>> ") if manipulate == "play": w.tell() elif manipulate == "back()": main_menu() def open(): while True: file_name = raw_input("Open: ")