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
My first steps with chuck and programming
Post new topic   Reply to topic Moderators: Kassen
Page 2 of 2 [29 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Goto page: Previous 1, 2
Author Message
ge



Joined: Aug 13, 2006
Posts: 105
Location: Palo Alto, CA

PostPosted: Wed Aug 30, 2006 12:41 am    Post subject: Reply with quote  Mark this post and the followings unread

kijjaz wrote:
when i chuck things..
___ => ___ => dac;
the manual says: When a patch is compiled, ChucK looks
at what is connected to the dac and as each sample is computed ChucK
looks through the network of Ugens and grabs the next sample.


so if i unchuck .. will the CPU load for the patch be freed?

In short, yes. Only UGen directly or implicited connected to the dac or blackhole will compute. So => and =< dynamically modifies the UGen graph and can have significant impact on CPU usage.

On of these days, we will attempt massive optimization. For now, we are still trying to get things working and right. As my teacher always said:

make it work
make it right
make it fast
make it small

Cool program, by the way!
Back to top
View user's profile Send private message Visit poster's website
kijjaz



Joined: Sep 20, 2004
Posts: 765
Location: bangkok, thailand
Audio files: 4

PostPosted: Thu Aug 31, 2006 10:25 am    Post subject: Reply with quote  Mark this post and the followings unread

i'm back with another newbie question again Cool
it's about virtual machine and public class.

when i add a shred that define a public class
(for example .. public class A { ... code ... } and so on..)
it remains in the virtual machine (i can create new object of A in other shreds)

(that's quite new for me coz this is my first time working with an object-oriented language -_-")

but what if i wanna change class A in real-time?
how do i remove public class?
coz when i run a shred with the A definition, it won't let me.
( it says: [xxx]:line(x): class/type 'A' is already defined in namespace 'global' )

thank you
- kijjaz
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
ge



Joined: Aug 13, 2006
Posts: 105
Location: Palo Alto, CA

PostPosted: Thu Aug 31, 2006 6:58 pm    Post subject: Reply with quote  Mark this post and the followings unread

kijjaz wrote:
[color=#114477]but what if i wanna change class A in real-time? how do i remove public class?

Hi!

Currently, once a class is in the VM and type system, it's there. You'd have to restart the VM to flush it out. The reason is that there might be instances of the class that expects consistency.

Now, we have been looking into ways of making classes updateable without breaking the type system. We hope to have a solution soon. For now, either subclass and change the behavior polymorphically, or restart the VM (certainly not always feasible, especially for on-the-fly programming). This is one of the areas we are planning to address.
Back to top
View user's profile Send private message Visit poster's website
kijjaz



Joined: Sep 20, 2004
Posts: 765
Location: bangkok, thailand
Audio files: 4

PostPosted: Fri Sep 01, 2006 12:22 am    Post subject: Reply with quote  Mark this post and the followings unread

oh thanks. Razz
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 2 of 2 [29 Posts]
View unread posts
View new posts in the last week
Goto page: Previous 1, 2
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


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