Forums > MaxMSP

Using sfplay~ to play a sequence of sound files

March 12, 2012 | 5:27 pm

Hello,

I successfully made a time lapse sound recorder that records 1 second of sound every 20 seconds.
The second part of my patch will require playback of the files once recorded.

I’m avoiding loading them into the buffer for efficiency –

The files are named:

1.aiff
2.aiff
3.aiff
4.aiff
…etc!

How can I achieve this? I’ve been trying to use a (counter) — (sprintf open %s.aif) — (sfplay~)
but no luck!

The files are located in the same folder –


March 12, 2012 | 5:34 pm

this is patch idea

Attachments:
  1. BASICPLAYER.maxpat

March 12, 2012 | 9:30 pm

Are they in your search path? Check the Max window to see if Max isn’t finding them (you’ll see a "can’t find file blahblah.aif" message).

You could also use the full path to the files in your sprintf message.


March 12, 2012 | 11:53 pm

@mateomrqz

I have a bunch of other stuff going on in the patch @ the post link below, but the core elements of what you want are there too. Maybe you can hack pieces of what I have together into something useable.

http://cycling74.com/forums/topic.php?id=38185

The patch is at the top.

Good luck!


Viewing 4 posts - 1 through 4 (of 4 total)