[chuck-users] expanding paths

Atte Andre Jensen atte.jensen at gmail.com
Wed Sep 30 03:35:02 EDT 2009


Hi

Consider the following:

"~/music/samples/seq/beats/bar_matched/spending.wav" => sample;
//"/home/atte/music/samples/seq/beats/bar_matched/spending.wav" => sample;
SndBuf s => dac;
s.read(sample);

This will yield an error

[chuck](via SndBuf): cannot stat file 
'~/music/samples/seq/beats/bar_matched/spending.wav'...

It seems chuck doesn't like the tilde (~), which on linux (I suppose osx 
too) is standard for "the current users home directory" in my case 
"/home/atte/. Are there any good advise for solving this in .ck-code or 
should I see if I could hack it in the source?

-- 
Atte

http://atte.dk   http://modlys.dk   http://virb.com/atte


More information about the chuck-users mailing list