Re: chuck-users Digest, Vol 7, Issue 11
This feels like a real simple problem, but I can not suss it out. In the chuck archive:
chuck D:\Chuck\examples\otf_06.ck (using otf_06.ck here because it doesn't require external sound files)
Julian Sorrel tacitdynamite at yahoo.com Wed Jan 25 17:05:25 EST 2006 wrote: this works fine - I hear Chuck playing the file. When I try chuck D:\Chuck\examples\otf_07.ck the result is [chuck](via sndbuf): cannot stat file 'data/snare.wav' ... even though, again, that file can be found in "dir D:\Chuck \examples\data" ...
This was on an XP machine, but I am getting the same result on my mac and linux boxes. If I put in the full path these sndbuf objects function fine, but if I use a relative address such as "../data/ foo.wav" I get the "cannot stat file 'data/foo.wav' What is the obvious error that I am making? Also, stat? Is that supposed to be start? tocs_backwards Scot Gresham-Lancaster ¸,ø¤º°`°º¤ø¸,ø¤º°`°º¤ø http://o-art.org/Scot podcast: http://feeds.feedburner.com/blogspot/scotgl blog: http://scotgl.blogspot.com/ " Well, I let it play itself as much as I can, but if it doesn't, then I interfere. " David Tudor
Scot Gresham-Lancaster;
This was on an XP machine, but I am getting the same result on my mac and linux boxes. If I put in the full path these sndbuf objects function fine, but if I use a relative address such as "../data/ foo.wav" I get the "cannot stat file 'data/foo.wav' What is the obvious error that I am making?
I think the file-names are relative but it seems to me that they aren't relative to the dir where the file that calls them is in; I think they are relative to the dir where ChucK was called from which may be another location entirely. I'd be in favour of switching that around if at all possible. Hope that at least explains? Yours, Kas.
yes, I think that ChucK works with the current directory as its
starting point for looking for these files. If you change your working
directory to the same place where the 'otf' files are before you run
them, everything should work fine on all platforms.
Mike
On 2/17/06, Kassen Oud
Scot Gresham-Lancaster;
This was on an XP machine, but I am getting the same result on my mac and linux boxes. If I put in the full path these sndbuf objects function fine, but if I use a relative address such as "../data/ foo.wav" I get the "cannot stat file 'data/foo.wav' What is the obvious error that I am making?
I think the file-names are relative but it seems to me that they aren't relative to the dir where the file that calls them is in; I think they are relative to the dir where ChucK was called from which may be another location entirely.
I'd be in favour of switching that around if at all possible.
Hope that at least explains?
Yours, Kas. _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Help the Environment, Plant a Bush back in Texas!
participants (3)
-
Kassen Oud
-
Mike McGonagle
-
Scot Gresham-Lancaster