[PD] loading wave file and playing based on samples in wav file

Rick T ratulloch at gmail.com
Tue Jul 24 13:09:16 CEST 2012

Greetings All

I'm trying to load two 1 second mono wave files on a left and a right
channel but have my midi controller control where the wav file starts
playing/looping dynamically.  An example would be if I want to have the
channel start playing at 4000 samples it would start .5 seconds into the
wav file.  I need to have it be this accurate (based on samples) because
I'm testing the effects of phases and this way I can calculate the phases
very accurately between the wave files.  Can PD increment by samples?

Some of my thoughts where to load the wav files into an array and have the
midi controller control where the array starts to play and loop that
section. Is this possible, any examples?  If not can someone recommend
another program or another way.

What I'm trying to accomplish
1) Have a mono wave file on a left channel and right channel
2) Use my midi controller to change the start location of where the wav
file will start based on the number of samples in the wav file

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20120724/ed2246a0/attachment.htm>

More information about the Pd-list mailing list