electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » ChucK programming language
problems getting started with chuck
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [8 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
laurak



Joined: May 15, 2007
Posts: 4
Location: cambridge

PostPosted: Tue May 15, 2007 12:05 pm    Post subject: problems getting started with chuck Reply with quote  Mark this post and the followings unread

im using it on mac osx, and all i seem to get is permission denied.
this is what i have so far:

Last login: Tue May 15 19:53:46 on ttyp1
Welcome to Darwin!
laura-tolsons-computer:~ lauratolson$ /Users/lauratolson/Documents/uni\ work/Computing\ for\ audio/chuck-1.2.0.8-exe/bin/chuck
[chuck]: no input files... (try --help)
laura-tolsons-computer:~ lauratolson$ %>make osx-intel
-bash: fg: %: no such job
laura-tolsons-computer:~ lauratolson$ (use'./chuck' if chuck is not in your path)
-bash: use./chuck: No such file or directory
laura-tolsons-computer:~ lauratolson$ /Users/lauratolson/Documents/uni\ work/Computing\ for\ audio/chuck-1.2.0.8-exe/bin/chucKtest.rtf
-bash: /Users/lauratolson/Documents/uni work/Computing for audio/chuck-1.2.0.8-exe/bin/chucKtest.rtf: Permission denied
laura-tolsons-computer:~ lauratolson$


~Laura~
Back to top
View user's profile Send private message
Dr. Spankenstein



Joined: Mar 03, 2007
Posts: 136
Location: Cambridge
Audio files: 1

PostPosted: Tue May 15, 2007 2:50 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hi Laura

Open up the terminal window and login if necessary

Type this:

cd /Users/lauratolson/Documents/uni\ work/Computing\ for\ audio/chuck-1.2.0.8-exe/bin/

Now open a text editor and copy n paste this:

Blit s => dac; while(10::ms=>now) Math.fabs(Math.tan(now/samp))*10 => s.freq;

Now save the document but not as an RTF (TEST.ck) in the same path as the above folder. In fact if I remember correctly it should be any option apart from an rtf.

Go back to the terminal window and type

chuck TEST.ck

If you get some sound then all is good, if not let me know.

If you're still stuck then phone me tommorow as I'm off to bed now.

Rhys (If you hadnt guessed by now)

PS. Thats off the top of my head and I'm sleepy n dont have my mac with me.
Back to top
View user's profile Send private message
laurak



Joined: May 15, 2007
Posts: 4
Location: cambridge

PostPosted: Wed May 16, 2007 9:36 am    Post subject: Reply with quote  Mark this post and the followings unread

ok well i can only save as word format, RTH, HTML or word XML format and it doesnt seem to like RTH,HTML or word XML im guessing it wont like word since i dont have word.

and all the terminal is saying is no such file or directory

and command not found.

do you think its gonna be easier to do this on the pc laptop?

~Laura~
Back to top
View user's profile Send private message
laurak



Joined: May 15, 2007
Posts: 4
Location: cambridge

PostPosted: Wed May 16, 2007 9:41 am    Post subject: Reply with quote  Mark this post and the followings unread

ok so i realised one problem is because you have the file type so like i forgot to put .xml or .doc tried that and now im getting
-bash: syntax error near unexpected token `TEST.ck'

~Laura~
Back to top
View user's profile Send private message
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Wed May 16, 2007 9:50 am    Post subject: Reply with quote  Mark this post and the followings unread

This seems to be a very special kind of problem on a computer that's either Linux or OSX?

If file-extention is the issue; I don't think ChucK cares about it. You can save your code as test.txt and run "chuck test.txt" so I imagine you could run "chuck test.doc" as well *as long as there is only chuck code in the actual file*.

Another thing is that everything would be way easier if you could copy (cp) the executable to /usr/bin/ but if you have limited priviliges then that might be a issue because that's a dir for which you'll need root-level access.

_________________
Kassen
Back to top
View user's profile Send private message Send e-mail Visit poster's website
laurak



Joined: May 15, 2007
Posts: 4
Location: cambridge

PostPosted: Wed May 16, 2007 10:15 am    Post subject: Reply with quote  Mark this post and the followings unread

hmmm thanx, im gonna try it on my pc laptop as that runs on windows xp.

~Laura~
Back to top
View user's profile Send private message
Blue Hell
Site Admin


Joined: Apr 03, 2004
Posts: 20270
Location: The Netherlands, Enschede
Audio files: 143
G2 patch files: 318

PostPosted: Wed May 16, 2007 2:06 pm    Post subject: Reply with quote  Mark this post and the followings unread

To me this sounds like the text editor used is not a text editor but a word processor ... when it saves something as a word document it'll probably do that in some word format as well, meaning a lot of extra markup info gets packed into the file. RTF, the same, XML the same, etc. Using some basic text editor should solve that.

But maybe I read it wrong ...

_________________
Jan
Back to top
View user's profile Send private message Visit poster's website
disablek



Joined: May 11, 2007
Posts: 10
Location: disablekville

PostPosted: Thu May 17, 2007 7:58 pm    Post subject: Reply with quote  Mark this post and the followings unread

jrjrjrjrjr

Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [8 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » ChucK programming language
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
AmbiphonicDSP

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use