Right now I'm trying to build some softsynths in Python, but it hasn't been working out. It's PyMedia that I'm using. Here's what the document says, and what I've been doing.
Code:
import time
import wave
import pymedia.audio.sound as sound
f= wave.open( ' Sound files for drum machine here', 'rb' )
sampleRate= f.getframerate()
channels= f.getnchannels()
format= sound.AFMT_S16_LE
snd= sound.Output( sampleRate, channels, format )
s= f.readframes( 300000 )
snd.play( s )
Error happens here:
Code:
import pymedia.audio.sound as sound
All attempts to use pymedia.audio.sound have failed. Anyone every had this problem, or should I just use Pygame instead?