[chuck-users] report on my first livecoding gig

Kassen signal.automatique at gmail.com
Mon Jun 4 05:26:24 EDT 2007


On 6/2/07, Loscha <loscha at gmail.com> wrote:
>
> I'd love to see your code, Kassan.



As promissed, a version of that bassline for your enjoyment. Copying for
educational purposes permitted, permission for public performance also
granted but only in modified form ( ;¬) ). No waranties, no refunds.
------------------
//the Blit's waveform will reset sometimes if the Blit is modulated,
creating a click,
//the JCRev turns those into pleasant sounds but they realy
// need those gains or there will be terrible clipping distortion.
//I quite like the sound this one makes in this form.

Blit b => JCRev r => dac;
.5 => b.gain;
.5 => r.gain;

40 => int foo;
int bar;

while(1)
  {
  for(1 => int n; n < 5; n++)
    {
    n => b.harmonics;
    0.25::second => now;
    }
  //very simple algorithem to create the melody.
  //i'd like to hear about other or better tricks, anyone?
  //tweak the numbers for variations
  (++bar % 5) +=> foo;
  if(foo > 43) 40 => foo;
  Std.mtof(foo) => b.freq;
  }
---------------

I contrasted this against some randomised sound made by the Shakers, of
which I sporked multiple versions, then added one or two shreds of Shakers
with the PRCRev for contrast. This'll give you some pleasant (to me) mellow
techno-ish stuff very quickly with enough parameters to tweak and have fun
with.

Nothing especially clever here but it has a good ratio of fun per line of
code.

Happy tweaking!
Kas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20070604/e8aae679/attachment.htm 


More information about the chuck-users mailing list