Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Minim - playing two wav files at the same time

$
0
0

I was testing out trying to play two wav files at the same time. They were the same length, and they were the same loop (one just had been processed with some reverb). I wanted to see what it might be like to play both files at the same time.

groove = minim.loadFile("groove2.wav", 512);
groovewet = minim.loadFile("groove2wet.wav", 512);
groove.loop(); // not synced well
groovewet.loop();

When I ran the sketch, it wasn't guaranteed to play at the same time. I think that they looped fine, but I'm not sure to be honest. My goal is to play multiple wav files of the same length at the same time, like a multitrack. I know there is a sampler example, though that's for smaller files. I'm wondering if there is a simple way to accomplish this. Some examples of what I'd like to do is shifting volume from one wav file to the other.


Viewing all articles
Browse latest Browse all 2896

Trending Articles