sfrecord~ err -1 – can't make file
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."
----------begin_max5_patcher---------- 676.3ocyV00SaCCE84zeEVQh25nwNMkDdahIMoIwSn8z.gbSbSMJwNx1gQGh 8ae12zVJPaVHhFwK1xejaN2y45i8ii77mKefo8Qmi9Exy6wQddvTtI7VO1yu j9PZAUCay2HyyKX9iaVRTWJqMELCrHd8rUTS5RtH+VEK0zD7nfSCFiHwXnKX SK5l0eBOChtb9ceAi2D8lPaVUwZBhOWXC2Ma+KJZIyvT2xDz4EvdBdFWbwVX 4l6oQibMi6XZVxzZZ917zvdvz.vJl.cs+kzTKVj5kmO4mZlRO4GTsTL4axz5 Rlvnmbgrrp1hMzk0ZdJpRIuyxEZDUjgRsqIEv1tRVKxrLE5BtJsfM4pK99Ro 1tPtqKL9TJew09aPQAWvRseA.Ex6UBvwgMZPhqKLADgPx9EgnCpAOK.KjBiv JAvG8UEmV3uyJZ9efUv1+v9TEROTEA62Vv8FQQuvlkRU1ee2kkMbwZJYFtsx xvCxHZdtvl6eP7B9CjWpT1pzEH8JGcffZpS3tZp2MQgShcjCN5Lna5YsQUjf id0SuXo5x4L09ScxgScBFNoLapqMpUqKRqNWiQ9yoh7tPAs4sMvEQUJl0yKC 4b95qseH37DOsMtK4iqlAeZTRDN9riLyX8+WUNWVzSVY8YonjVuLj74kVNzc jG8KG6KgG.cQM9733Cv3QCCiSNZ97mnOQ2WJJl.cyZ0eGGO7TDDW3EPu54pP t3l+k7lVVqR2fpMOqD8b5jwzFtfZ3RwNaJ7E6YIOKiI106Miqc1w.UDrWArq vIoCnwVIhveZPyvwMjNfF2wzgBNAcAOwClX0E54UX9XBGHy+e3IY3fSTWTKx vgGRWqd5CdZrEoUU2aunccLAnXu33NoxMb1XXHWzLDhnuhcOey9iF4h1Si9G DR6ynB -----------end_max5_patcher-----------
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 http://cycling74.com/forums/topic.php?id=16835
…. alternatively you could use record~ and buffer~ as suggested here
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!
No bothers man!