I am trying to make a beat pad, for that I need to be able to play many sounds together, playing them together isnt the problem. What I cant figure out is how I can store the sounds played overlapped with eachother. For example, if I play a kick, snare then kick and snare and then along with it (in usison) I play a guitar chord, how do I do that? This is the code I've written but it just adds the kick after the snare. I want them to play together
f = open ('Kick1.mp3', 'rb')
file = f.read()
f.close()
f = open ('Snare1.mp3', 'rb')
file1 = f.read()
file3 = file1 + file
x = open ('Kick3.mp3', 'ab')
x.write(file3)