Why is this happening?
I'm working on a patch for recording samples. I wanted to be able to have spaces in the file name so I was using [sprintf "HardDrive:/Users/vze1mk7d/Desktop/%s %s.aif"] to accomplish this. The first %s would be the file name and the second %s would be the file number. This works fine while working on the patch. But every time I quit MaxMSP and reopen the patch, the backslashes in front of the quotes disappear which makes it impossible for [sfrecord~] to create the file. Maybe I'm doing something wrong so I included the file if that helps. Any help would be appreciated.
Well I see that the attached file doesn't work so I'll just paste it here.
Well I see that the backslashes didn't make it into my pasted version even though they were there when I copied it so now I am even more perplexed.
Hi.
Instead of using backslash and quotes, you should use "symout" option for sprintf, to be sure it outputs a symbol:
[sprintf symout myfolder%ld %s.aif] should work.
Ciao.
That's perfect. Thank you very much.
And I would avoid spaces in default filenames seeing the troubles they may cause if one is not attentive enough... but it's just my opinion.
gusanomaxlist schrieb:
> And I would avoid spaces in default filenames seeing the troubles
> they may cause if one is not attentive enough... but it's just my
> opinion.
My opinion is the opposite of that...
Never underestimate matters of aestehetics, and never compromise them
either...
That way you also force yourself to learn how to deal with it, which is
a good excersise...
Stefan
--
Stefan Tiedje------------x-------
--_____-----------|--------------
--(_|_ ----|-----|-----()-------
-- _|_)----|-----()--------------
----------()--------www.ccmix.com