Difference between revisions of "Chugins"

From CCRMA Wiki
Jump to: navigation, search
(Created page with '== Chugins == First of all to test this out you need to build ChucK from source. You can get the source like so: $ svn checkout https://chuck-dev.stanford.edu/svn/chuck/trun…')
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Chugins ==
+
== How to make a Chugin ==
  
 
First of all to test this out you need to build ChucK from source. You
 
First of all to test this out you need to build ChucK from source. You
Line 16: Line 16:
 
     $ cd test/dl/Bitcrusher
 
     $ cd test/dl/Bitcrusher
 
     $ make -f makefile.linux
 
     $ make -f makefile.linux
    $ sudo make -f makefile.linux install
+
     $ ../../../chuck --chugin:Bitcrusher.chug Bitcrusher-test.ck
     $ ../../../chuck Bitcrusher-test.ck
+
  
 
(Substituting <code>makefile.osx</code> or <code>makefile.win32</code> as necessary)
 
(Substituting <code>makefile.osx</code> or <code>makefile.win32</code> as necessary)
Line 27: Line 26:
 
other than new ugens, as theres a whole lot more work involved to make
 
other than new ugens, as theres a whole lot more work involved to make
 
a useful framework for general purpose libraries.
 
a useful framework for general purpose libraries.
 +
 +
== External References ==
 +
 +
[https://ccrma.stanford.edu/~spencer/workfun/Chugens,%20Chubgraphs,%20ChuGins%20-%20ICMC2012.pdf The Chugin paper]  (submitted to ICMC 2012)
  
 
[[Category:ChucK]]
 
[[Category:ChucK]]

Latest revision as of 15:29, 23 February 2012

How to make a Chugin

First of all to test this out you need to build ChucK from source. You can get the source like so:

   $ svn checkout https://chuck-dev.stanford.edu/svn/chuck/trunk/src chuck

And then build:

   $ cd chuck
   $ make [osx | linux-jack | linux-alsa | win32]

(selecting your platform from one of those options)

So basically, there is a test chugin called "Bitcrusher" that I wrote as an example of how to write a chugin. You can use this as the starting point for new chugins.

   $ cd test/dl/Bitcrusher
   $ make -f makefile.linux
   $ ../../../chuck --chugin:Bitcrusher.chug Bitcrusher-test.ck

(Substituting makefile.osx or makefile.win32 as necessary)

You should hear a delayed version of the adc/mic input thats been decimated and artificially quantized to a low bitrate sample-format. You can use this as a framework to write any new chugins you are interested in. Right now we don't envision this being used for stuff other than new ugens, as theres a whole lot more work involved to make a useful framework for general purpose libraries.

External References

The Chugin paper (submitted to ICMC 2012)