ChucKu

From CCRMA Wiki

(Difference between revisions)
Jump to: navigation, search
 
(12 intermediate revisions not shown)
Line 1: Line 1:
-
'''Chucku''', haiku in ChucK
+
=== Homepages ===
-
<br><br>
+
Visit the official homepages for [http://chuck.cs.princeton.edu/ ChucK] and [http://slork.stanford.edu/ Stanford Laptop Orchestra (SLOrk)]
-
* like a [http://en.wikipedia.org/wiki/Haiku haiku], a ''chucku'' should contain exactly 3 lines of code (each less than 80 characters)<br>
+
 
-
* each chucku should generate sound<br>
+
 
 +
=== What is a ChucKu? ===
 +
* like a [http://en.wikipedia.org/wiki/Haiku haiku], a ''ChucKu'' should contain exactly 3 lines of code (each less than 80 characters)<br>
 +
* each ChucKu should generate sound<br>
* 5/7/5 pattern optional, but try to make the code "pretty"<br>
* 5/7/5 pattern optional, but try to make the code "pretty"<br>
-
* check out [http://electro-music.com/forum/topic-13512.html one line chuck crazy] to see similarly compact examples<br>
+
* check out [http://electro-music.com/forum/topic-13512.html one line ChucK crazy] to see similarly compact examples<br>
-
* the chucku's should be standalone (i.e., no external audio or chuck files)<br>
+
* the ChucKu should be standalone (i.e., no external audio or ChucK files)<br>
<br><br>
<br><br>
 +
'''Saturnine''' - Chris Warren
 +
 +
SawOsc a [100]; int j; while (1) { !j => j; for( int i; i < 100; i++ ) <br>
 +
{Std.rand2f( 90, 1600 ) => a[i].freq; a[i] => dac; <br>
 +
.3 * j => a[i].gain; Std.rand2f( .04, .1 )::second => now;} .7::second => now;} <br>
-
SqrOsc a  => JCRev b => Chorus c => dac => Delay d =>  a; .17 => b.mix;<br>
 
-
while (1) { Std.rand2( 160, 7100 ) => a.freq => float e; <br>
 
-
2 => a.sync; e * .000062 => c.modFreq; e * .4::samp => d.delay => now;}<br>
 
 +
'''Safety Glass''' - Chris Warren
 +
SqrOsc a  => JCRev b => Chorus c => dac => Delay d =>  a; .17 => b.mix; <br>
 +
2 => a.sync; while (1) { Std.rand2( 160, 7100 ) => a.freq => float e;  <br>
 +
e * .000062 => c.modFreq; e * .4::samp => d.delay => now;} <br>
-
SawOsc a [100]; <br>
+
[[Category: Projects]]
-
while (1) {for( int i; i < 100; i++ ) {Std.rand2f( 90, 1600 ) => a[i].freq;<br>
+
-
a[i] => dac; .3 => a[i].gain; Std.rand2f( .04, .1 )::second => now;}} <br>
+

Current revision as of 04:09, 28 April 2008

Homepages

Visit the official homepages for ChucK and Stanford Laptop Orchestra (SLOrk)


What is a ChucKu?

  • like a haiku, a ChucKu should contain exactly 3 lines of code (each less than 80 characters)
  • each ChucKu should generate sound
  • 5/7/5 pattern optional, but try to make the code "pretty"
  • check out one line ChucK crazy to see similarly compact examples
  • the ChucKu should be standalone (i.e., no external audio or ChucK files)




Saturnine - Chris Warren

SawOsc a [100]; int j; while (1) { !j => j; for( int i; i < 100; i++ )
{Std.rand2f( 90, 1600 ) => a[i].freq; a[i] => dac;
.3 * j => a[i].gain; Std.rand2f( .04, .1 )::second => now;} .7::second => now;}


Safety Glass - Chris Warren

SqrOsc a => JCRev b => Chorus c => dac => Delay d => a; .17 => b.mix;
2 => a.sync; while (1) { Std.rand2( 160, 7100 ) => a.freq => float e;
e * .000062 => c.modFreq; e * .4::samp => d.delay => now;}

Personal tools