PathName + prepareForRecord

I was wondering what the syntax is for PathName and prepareForRecord?
I thought that as PathName(thisProcess.nowExecutingPath).parentPath worked for loading file paths, it would also work for preparing a recording. Clearly it doesn’t, but why, and what do I need to change?

BTW, I was trying something along these lines:

~path = PathName(thisProcess.nowExecutingPath).parentPath++"samples/";
s.prepareForRecord(~path++"samp.wav", 1);

The ~path looks a bit redundant, but it’s for there for the possibility of using elsewhere in my code.

Thanks in advance - joesh

Without testing, you probably need +/+ (inserts path separator) instead of ++.

hjh

1 Like