chuck_rational and chuck_performance_setup on github
ChucKers: By popular request, I've just created two ChucK specific "git repositories" that you can view, download and (if you are versed with git) create branches and update. One is a rational number package, that efficiently converts between floating point numbers and rational approximations (in the form of a/b, where a and b are integers). The other is the extensive setup I have used for live performance. One of the funner bits are: * lib/semaphore.ck, which can wait for an event or for a time, whichever comes first. * a comprehensive dispatch/observer message passing mechanism for distributing events. To get there: * https://github.com/rdpoor/chuck_rational * https://github.com/rdpoor/chuck_performance_setup Share and enjoy (code and comments, etc) - Rob
* https://github.com/rdpoor/chuck_performance_setup Share and enjoy (code and comments, etc)
wow, looks like a nice setup... and a huge chunk of code to discover...thanks... I think, this will answer many question before even asking them :-) Like the one I had some seconds before: "can I include a chuck file? or how can I import functions?". Your setup seems to import (public) classes only (which I already discovered recently). However, I didn't find a way to import global functions. Seems to be designed after the java way...
Harald:
Thank you. Re "global functions": I believe the ChucK approved method is to
declare them as static methods in the class of your choice. As an example,
see:
https://github.com/rdpoor/chuck_performance_setup/blob/master/lib/util.ck
(aka lib/util.ck) which defines a bunch of methods that I use throughout the
system.
- Rob
On Sun, Apr 10, 2011 at 13:07, Harald Gutsche
* https://github.com/rdpoor/chuck_performance_setup Share and enjoy (code and comments, etc)
wow, looks like a nice setup...
and a huge chunk of code to discover...thanks...
I think, this will answer many question before even asking them :-)
Like the one I had some seconds before: "can I include a chuck file? or how can I import functions?". Your setup seems to import (public) classes only (which I already discovered recently). However, I didn't find a way to import global functions. Seems to be designed after the java way... _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
participants (2)
-
Harald Gutsche
-
Robert Poor