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."
What gives??? The open dialog works just fine.
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 https://cycling74.com/forums/saving-a-filename-in-sfrecord
.... alternatively you could use record~ and buffer~ as suggested here
https://cycling74.com/forums/sfrecord-error-cant-open-file-for-async-access-err-32
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!
Jason
No bothers man!