sfrecord~ 'open' syntax


    Apr 03 2006 | 10:06 am
    Hi all,
    I'm a bit rusty with Max, It's been a while.
    Can anyone tell me what I am doing wrong in this method of constructing an 'open' message for sfrecord~ ?
    It doesn't like the way the path is specified.
    Thanks
    Steve
    ----

    • Apr 03 2006 | 10:43 am
      It works for me. As long as there are no spaces in the path provided by [opendialog]. You should add quote around the string you construct, something like [sprintf open "%s%s%ld.aiff" aiff]
      This is not related to sfrecord's open syntax, but to file pathes syntax in Max.
      p
    • Apr 03 2006 | 10:53 am
      Thankyou Patrick,
      It was indeed spaces in the path, the quotes fixed it.
      It's annoying making the same mistakes I made 3 years ago ;)
      Steve
    • Apr 03 2006 | 11:14 am
      On 3-Apr-2006, at 12:06, Steven Taylor wrote:
      > Can anyone tell me what I am doing wrong in this method of > constructing an 'open' message for sfrecord~ ?
      You need to tosymbol the path, particularly if it includes blanks.
      Something like this (new-style text format, use New From Clipboard)
      -------------- http://www.bek.no/~pcastine/Litter/ ------------- Peter Castine +--> Litter Power & Litter Bundle for Jitter
      iCE: Sequencing, Recording & |home | chez nous| Interface Building for |bei uns | i nostri| Max/MSP Extremely cool http://www.castine.de http://www.dspaudio.com/
    • Apr 03 2006 | 11:30 am
      On 3-Apr-2006, at 12:43, Patrick Delges wrote:
      > You should add quote around the string you construct, something > like [sprintf open "%s%s%ld.aiff" aiff]
      Which promptly breaks as soon as there are no blanks in the path.
      You should *not* use quote marks for this reason. Use tosymbol and it will work correctly no matter what you throw at it.
      -------------- http://www.bek.no/~pcastine/Litter/ ------------- Peter Castine +--> Litter Power & Litter Bundle for Jitter
      iCE: Sequencing, Recording & |home | chez nous| Interface Building for |bei uns | i nostri| Max/MSP Extremely cool http://www.castine.de http://www.dspaudio.com/