[chuck-users] code reusability

Michael Heuer heuermh at gmail.com
Fri Jun 11 09:53:31 EDT 2010


Thomas Girod wrote:

> I'm currently working on a chuck project that is progressively
> increasing in size. Some parts of this project are already quite
> generic, and I will probably use them in other projects later (namely,
> an interface to communicate with the novation's monome ripoff).
>
> So I start to wonder: how can I organize my code for easy reuse ? What
> are the options / good practices to write less monolithic chuck code ?
> Is it possible to write something that could behave as a library ?

LiCK is such a library

http://github.com/heuermh/lick

The import mechanism is not ideal though, there is an import.ck script
that imports all the other classes with Machine.add calls in the right
order.

$ chuck --loop &
$ chuck + import.ck
$ chuck + myChuckScript.ck

   michael


More information about the chuck-users mailing list