Forums > MaxMSP

Path formatting for sfrecord~

November 22, 2013 | 3:49 am

I can’t quite get my head round this. I’m trying to make a patch which takes a sound file and slices it up into sections of n length in ms. The playback side is working, but I’m trying to work out how to format the messages for sfrecord~ to create a new file with every slice, to a particular path.

I’ve got it sending messages like this to sfrecord~:

open Macintosh HD:/Users/MDurham/Desktop/Test/truax1.wav wave

Then a toggle starts and stops the recording, and I’m getting and elapsed time signal from sfrecord~ but no file.

I think it’s something to do with the path formatting, maybe the spaces? The sfrecord~ helpfile does not make it very clear.

Thanks in advance, can post the patch if it helps.


November 22, 2013 | 4:16 am

Ok, I just figured it out.

For anyone else in this situation, you need to use the conformpath object (see the helpfile)

So:

open /Users/MDurham/Desktop/Test/truax1.wav wave

is the correct format.


November 22, 2013 | 4:49 am

Incidentally, I found this out by way of the ‘see also’ section from the helpfile of another of the ‘path’ formatting objects. I find that this is a really useful way of solving problems – looking at related objects, so perhaps sfrecord~ or any other objects where you can specify a path should have conformpath in their ‘see also’ sections of the helpfile.

Just a thought….


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