electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks GalleryGallery 
 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
command line chucK for a newbie
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [4 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
barrychabala



Joined: Jul 15, 2008
Posts: 2
Location: New Jersey

PostPosted: Tue Jul 15, 2008 9:56 pm    Post subject: command line chucK for a newbie Reply with quote  Mark this post and the followings unread

im new to chuck - hi all. i am able to chuck shreds with the audicle & miniaudicle, but command line is giving me problems. i can chuck a shred directly but if i chuck --loop, i cant get anything to run. and, being new to terminal (OSX 10.4.11) can someone explain " %> " at the start of every line in the documentation? is that the prompt that is suppose to be there or do you type that? when i type that i get this - "-bash: fg: %: no such job". any help would be greatly appreciated!
Back to top
View user's profile Send private message
Kassen
Janitor
Janitor


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

PostPosted: Wed Jul 16, 2008 1:40 am    Post subject: Re: command line chucK for a newbie Reply with quote  Mark this post and the followings unread

barrychabala wrote:
im new to chuck - hi all.


Hi, Barry!

Quote:
i am able to chuck shreds with the audicle & miniaudicle, but command line is giving me problems. i can chuck a shred directly but if i chuck --loop, i cant get anything to run.


Yes, that's right. "chuck --loop" won't return you to the prompt. At that stage you can open a second terminal (bash) window and you type "chuck + my_file.ck" there. This adds that file to the virtual machine you just set up. This means you have one window where chuck runs and reports on anything that happened (the first) and another window where you can give commands like adding and removing shreds.

Quote:
and, being new to terminal (OSX 10.4.11) can someone explain " %> " at the start of every line in the documentation? is that the prompt that is suppose to be there or do you type that? when i type that i get this - "-bash: fg: %: no such job". any help would be greatly appreciated!


The "%>" is just the prompt, it means you can give commands, on my Linux box here the bash prompt is a "$>", when you log in as root (to do administration) it'll likely look different, for example "#>". This is perfectly normal and nothing to worry about.

I found you a manual; http://www.ss64.com/osx/
Useful commands for chucking;
ls (lists the contents of a directory)
cd (change working directory)
rm (delete a file)
cp (copy a file)
pico (gets you a small and simple txt editor)

That's probably most of what you need for chucking.

_________________
Modern technology offers an endless field day to any deviant strains in our personalities. --J.G.Ballard
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ilSignorCarlo



Joined: Sep 17, 2007
Posts: 27
Location: Bologna

PostPosted: Wed Jul 16, 2008 1:48 am    Post subject: Re: command line chucK for a newbie Reply with quote  Mark this post and the followings unread

barrychabala wrote:
i can chuck a shred directly but if i chuck --loop, i cant get anything to run.


The command "chuck --loop" make ChucK running and waiting for you to add shreds. You can do it by opening another terminal window and then adding from ther with:

chuck + foo.ck (supposing you have a foo.ck file)

You can also put ChucK in background, letting you to use just one window. You have to use the same command, but with the & at the end, so:

chuck --loop &

I've never tried this on a Mac, but it should work.


Quote:
and, being new to terminal (OSX 10.4.11) can someone explain " %> " at the start of every line in the documentation?


I think it represents a general prompt shell.
Anyway you can type "chuck --shell" to enter the ChucK shell. From here you add shreds just typing:

+ foo.ck

I think the "loop" mode is better Very Happy

_________________
Self-referential phrases, like this one, are not so funny or good for a forum signature.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
barrychabala



Joined: Jul 15, 2008
Posts: 2
Location: New Jersey

PostPosted: Wed Jul 16, 2008 4:57 am    Post subject: Reply with quote  Mark this post and the followings unread

hey guys, thanks very much...big help!
_________________
www.barrychabala.com
www.myspace.com/barrychabala
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 [4 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

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, 2004, 2005, 2006 and 2007 by electro-music.com