[chuck-users] Trouble with Machine.add() and paths on Windows; listing loaded shreds
gogogo at unm.edu
Thu Oct 31 12:15:18 EDT 2013
I did install cygwin but I haven't gotten far enough to start using it because I was able to use the following in The miniAudicle:
This works on both my 32 bit and 64 bit machines:
Machine.add("/program files (x86)/chuck/libs/lick-master/BinaryFunction.ck");
I will explore cygwin more -- for some reason I've been resistant to installing it despite the fact that I am fairly comfortable with the (linux) command line.
Out of curiosity, what editor are you using to edit your ChucK files?
Thanks for your help!
From: Michael Heuer [mailto:heuermh at gmail.com]
Sent: Wednesday, October 30, 2013 12:28 PM
To: ChucK Users Mailing List
Subject: Re: [chuck-users] Trouble with Machine.add() and paths on Windows; listing loaded shreds
I have the best luck with Windows under cygwin
It resolves some of the unix vs. dos path issues, for me at least. I then open two cygwin terminal windows and run
$ cd lick
$ chuck --loop
in one and
$ cd lick
$ chuck + import.ck
$ chuck + examples/foo.ck (or whatever chuck script actually makes the music)
in the other. Machine.add() resolves the file from the current directory that ChucK is running in.
The first window will show the files that are loaded via import.ck.
[chuck](VM): sporking incoming shred: 244 (SubGen.ck)...
[chuck](VM): sporking incoming shred: 245 (SeptSubGen.ck)...
"LiCK imported." : (string)
[chuck](VM): sporking incoming shred: 1 (foo.ck)...
Hope this helps.
On Wed, Oct 30, 2013 at 1:12 PM, Gregorio Gomez <gogogo at unm.edu> wrote:
> Hi, everybody:
> I'm new here. I'm really intrigued with ChucK and I'm looking forward to working with it.
> I am having one problem. I've taken a look at the list archives, and the forum, but the fixes I've seen there haven't worked for me. If there's something there that I overlooked, I apologize. Please feel free to point me in the right direction.
> Basically, I'm having some trouble including the LiCK library, but my questions are more about Machine's add() method.
> Here's an example of what's not working:
> Machine.add("c:\\Program Files
> And the errors:
> [chuck]: unrecognized escape sequence: \P
> [chuck]: malformed filename with argument list...
> My questions:
> When Machine.add's argument is a relative path like this:
> or this:
> what's the path relative to?
> What's the correct way to use absolute paths in Windows?
> What's the correct delimiter for paths in Windows?
> Is it possible to get Machine to list loaded shreds?
> I'm running:
> Windows 7
> miniAudicle 1.3.0
> ChucK 220.127.116.11
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
More information about the chuck-users