Why is this happening?


    Apr 17 2008 | 3:13 pm
    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.

    • Apr 17 2008 | 3:17 pm
      Well I see that the attached file doesn't work so I'll just paste it here.
    • Apr 17 2008 | 3:20 pm
      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.
    • Apr 17 2008 | 4:01 pm
      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.
    • Apr 17 2008 | 4:03 pm
      That's perfect. Thank you very much.
    • Apr 17 2008 | 4:04 pm
      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.
    • Apr 18 2008 | 1:35 pm
      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