sfrecord~ record into subfolder

MaMe's icon

Hello everyone

I use Max5 since 2 days and I want to record a sound file with sfrecord~ in a relative folder of my patch (ex : ./audio/record_1/file.wave)
I use sprintf to do this automatically for several recordings but it isn't my problem.

It does not work with a message like: [open ./audio/record_1/file.wave wave)
The file is created in the root folder of my patch ...

I am accustomed to using Puredata and I did not this problem ...
What should I do?

Thank you in advance !...


Rob Ramirez's icon

to access folders relative to your main patch use the thispatcher object with sprintf. the following patch fills up a umenu with the contents of a folder at the same level as your patch. you have to save the patch to disk first, and rename "your_folder" to whatever your folder name is.

Max Patch
Copy patch and select New From Clipboard in Max.

MaMe's icon

I use OSX Leopard, I have no problem with an absolute address . But with an relative is impossible for me.
Robert, I cannot open your file with max5, what do I do?

Many thanks !


Rob Ramirez's icon

File -> New From Clipboard ?

MaMe's icon

Thank you Robert I solved my problem by reading your path as a text file!
Attach this mail, the solution to my problem for max5, if it can help other novice ...

MaMe's icon

Ah yes ! is better like that !

thank you again !