Difference between revisions of "ChucK/Programs"

From CSWiki
Jump to: navigation, search
Line 29: Line 29:
 
* [[ChucK/Programs/Dinky]] : Dinky class/driver : Ge Wang
 
* [[ChucK/Programs/Dinky]] : Dinky class/driver : Ge Wang
 
* [[ChucK/Bad_VOSIM.ck]] : quick and dirty vosim : no one
 
* [[ChucK/Bad_VOSIM.ck]] : quick and dirty vosim : no one
 +
  
 
== Larger pieces ==
 
== Larger pieces ==

Revision as of 19:52, 21 February 2006

ChucK Programs

This is THE place to share your programs.

You can uploading programs and images using this link:

To see the list of uploads:

Or, you may choose to make a new page containing the code, which you can link from this page like this:

  • ChucK/foo.ck : (enter description) : author
  • feel free put explanations on the code pages
  • NOTE: In your code listings, remember to put a space before every line in the code, including empty lines - otherwise the wiki will render the code into multiple blocks. here is an example that works.

For a multi-part program, or for larger pieces, you may want to create a new page that describes the program/piece and links to the components. here is an example of a multi-part program page.


Related Links


Standalone Programs


Larger pieces

  • ChucK 12-bar blues : A drum beat and a 12-bar blues standard : Rasmus Kaj
    • hihat.ck : the hihat program (with commented out syntax error) : Gary Williams
    • kick.ck : the kick drum program (with commented out syntax error) : Gary Williams
    • snare.ck : the snare drum program (with commetned out syntax error) : Gary Williams
    • baseloop.ck : the base loop program : Gary Williams
    • The current version of Frankenstein didn't allow dividing a float by a dur, so I just commented the divide op and substituted a simple assign, which may not be what Rasmus was aiming at -- I'm not sure it positions to the end of the sndbuf correctly. -- Gary
      • All I was aiming for is that the sound should not be heard when loading, but only when I "tell it to start". Maybe there is some better way of doing that? -- Rasmus
        • To not let sndbuf play until triggered, set .play or .rate to 0.0 (0.0 => s.rate) and set it to 1.0 when you want to start. -- Ge
          • Another method is to do mysndbuf.samples() => mysndbuf.pos; right after you load a sample. --art

Wish List

What sample programs would you like to see?

  • Symphonic orchestra
  • Techno / Industrial