Unclapping music

So I have begun trying to learn chuck again.

To do it, I took alex maclean’s advice to the letter:

…my best advice when looking for inspiration is to listen to your favorite pieces of music. Listen to the structure behind a piece and think about how you might write an algorithm to create that structure…

(From Hacking perl in nightclubs)

And that’s what I came up with:
Steve reich's

Clapping music is a piece by steve reich in which two performers repeat a simple pattern clapping their hands, with a little shifting every eight repetitions (for a better explanation see the wikipedia entry or watch a video).

The structure is so simple that I thought It would be a good starting point for a chuck exercise… And that’s what I did. Each “clapper” is on a stereo channel. The shifting occurs every 4th repetition.

See the code

Hear the result

Credits:

Score image taken from crownpoint

Claps sound taken from freesound (thanks noisecollector).

tags:

5 Responses to “Unclapping music”

  1. 020200 Says:

    Interesting thing, but why should I use Chuck when I can have maxMSP or PureData? Just curious…

  2. jesús gollonet Says:

    well, you shouldn’t.

    I think it is a matter of tastes and of which programming paradigm you’re more comfortable with.

    I, for example, have been wanting to learn max/msp for long before there was a windows version. When they released it, I was really really happy, but having tried it many times since then, I’ve come to realize that I’m much more comfortable with textual programming than with the patch-based one, so for now I’ll go for chuck.

  3. 020200 Says:

    Yes, I see this. A had lots of discussion on visual programming vs. textual with collegues upon that. I think I really am a patching guy, just love the flow and quick results…

  4. Hola, mundo. » Blog Archive » On ChucK, Terry Riley, Jim Bumgardner and emulating old masters through code Says:

    […] So this morning I found that someone had already done an idea which I had been thinking of for some time (probably since I did the Steve Reich’s Clapping Music version in ChucK): […]

  5. Gasten Says:

    I really like the tight time controllign system in chuck. That was the biggest obsticle in PD for me.

    But they are all (pd, max/msp, chuck supercollider, etc (csound)) just different tools for the (more or less) same result. Give it a shot. If you don’t like it, you don’t need to.

Leave a Reply