sfrecord~ err -1 – can't make file

Jun 20, 2012 at 12:00pm

sfrecord~ err -1 – can't make file

Hi all,
I’m trying to make a patch where a file with the name “ghost%i.aif” is created and recorded into an sfrecord~ object where %i is a random integer.

I’m using sprintf to format the message as described in the sprintf help file.

I can make the files apparently (?) as their zero-kb placeholders are appearing, correctly formatted, into the correct filepath.

But I get this error message in the Max window:

“can’t make file Macintosh:/Users/Jason/Documents/Computer Music projects and components/Sounding Circle/SCGhosts/ghost%i.aif, err -1.”

– Pasted Max Patch, click to expand. –

What gives??? The open dialog works just fine.

Jun 20, 2012 at 5:21pm

Are you sure that you not accidently trying to open more then one filename at once, or change the filename after sending sfrecord an open message but not actually recorded anything perhaps? These are the only ways I’ve been able to replicate your problem. When I just open your patch, choose a filename, record a sample, and then repeat it works grand…

similar topic here

…. alternatively you could use record~ and buffer~ as suggested here

Jun 20, 2012 at 9:24pm

Interestingly, a restart of Max 6 solved the problem (should always be the first step I guess). But it was weird that the same problem was happening in Max 5 when I tried opening the patch in there too.

I’ll keep an eye on changes and update if any other problems come up…thanks for the reply, chubby!


Jun 21, 2012 at 10:06am

No bothers man!


You must be logged in to reply to this topic.