<html><div style='background-color:'><DIV>Hi all,</DIV>
<DIV>I'm having problems getting the wave module to work.  I tried this, and you can see what happened:</DIV>
<DIV>>>> from wave import * #import the wave module<BR>>>> q=wave.open('gemstorm.mid','r') #open gemstorm.mid in read mode<BR>Traceback (most recent call last):<BR>  File "<pyshell#1>", line 1, in ?<BR>    q=wave.open('gemstorm.mid','r') #open gemstorm.mid in read mode<BR>NameError: name 'wave' is not defined</DIV>
<DIV> </DIV>
<DIV>I also tried this:</DIV>
<DIV>>>> from wave import *<BR>>>> open('gemstorm.wav','r')<BR>Traceback (most recent call last):<BR>  File "<pyshell#5>", line 1, in ?<BR>    open('gemstorm.wav','r')<BR>  File "D:\PYTHON21\lib\wave.py", line 483, in open<BR>    return Wave_read(f)<BR>  File "D:\PYTHON21\lib\wave.py", line 162, in __init__<BR>    self.initfp(f)<BR>  File "D:\PYTHON21\lib\wave.py", line 130, in initfp<BR>    raise Error, 'file does not start with RIFF id'<BR>Error: file does not start with RIFF id</DIV>
<DIV> </DIV>
<DIV>How can I fix this?  I would like to know what a RIFF id is, also.  If you can, please post any code that would help me.</DIV>
<DIV>Thanks a lot!</DIV>
<DIV>Seth Ainsley</DIV></div><br clear=all><hr>MSN Photos is the easiest way to share and print your photos: <a href='http://g.msn.com/1HM1ENCA/c156??PI=44318'>Click Here</a><br></html>