Another very old SuperCollider class I never got around to publish. It's called Pfork and makes it possible to blend or fade out patterns in other ways than plain [volume] crossfading. It was originally written for the installation Intelligent Street (in SC2) where it was used as a way of creating new music styles from a mix of multiple other styles.
Here's one example of slowly zeroing out amplitudes in a 16 step pattern. frac is a value slowly changing from 1.0 to 0.0 and indicates how many values to zero out. The fork pattern is [3, 1, 2, 0]. This pattern decides which indices to zero out and in which order. So here index 3 is first in the fork pattern and will thereby be seen as the least important in the original pattern. All indices 3 will be zeroed out first. After that all indices 1 and so on. The last indices zeroed out (i.e. kept until frac is almost 0.0) are the indices 0 - ie the first beat out of 4 in the original amplitude step pattern.
This ASCII printout should help visualise what is happening...
Two SuperCollider classes I wrote long ago (Nov. 2008) after a technique described by Godfried Toussaint in his paper 'The Euclidean Algorithm Generates Traditional Musical Rhythms'www-cgrl.cs.mcgill.ca/~godfried/publications/banff.pdf
Also, see ruinwesen.com/blog?id=216 for another implementation with some great demos. And Bjorn Westergard has a SuperCollider demo (archive.org).
Lots of typical patterns in say techno music can be described like this using only two numbers (relation).
Bjorklund is now available as a SuperCollider quark. Install it via the following commands...
Quarks.install("Bjorklund");
//and recompile
Below is some example SuperCollider code with resulting output as MP3. The hihat plays a 9/16 rhythm throughout and the snare plays 3 different ones... 5/8, 15/16 and 3/8.
My latest controller. I'll premiere it this Friday (23 July 2010) at the bring-your-own-laptop event at staalplaat. It includes a light sensor, 2 touch sensors, some big switches and lots of knobs for control. It is also wireless and runs off either a 9V battery or a 9-14V wall adapter. The controller data is picked up by redWirelessMaster and is then read by the computer via a serial port.
Firmware, parts list and schematics attached below. A SuperCollider class for interpreting the data is also included.
Flickr photostream from the build process. I took out most of these beautiful old electronics and replaced it with my own circuit board. Only kept the front end interface with the nice knobs.
Updates:
101109: minor updates
130122: SuperCollider GUI class updated and new help files and MIDI control (via a nanoKontroll).
7 short screencasts with code examples showing how to connect SuperCollider with MaxMSP/Pd/Processing (etc) using the OpenObject quark.
Download the example code here... www.subnet.at/content/supercollider-tutorials-0
2006 I fiddled with some simple drawing routines in SuperCollider. (swiki.hfbk-hamburg.de:8888/MusicTechnology/833). Now I've added matching (?) sound synthesis and some slight modifications to the drawing code. There are 7 parameters that are used to both generate the picture and the sound. Normally the parameters are randomised but it is possible to copy&paste a good sounding/looking set of parameters into the code to get the same drawing back.
I bought the klinkenstecker 3.5mm 4pol for €2,40 from Segor. The capsule microphone I had laying around. Sorry, no data or idea where I got it. The whole thing is very simple to build and the sound is totally all right. Now I can record into the iPod Touch and run apps like RjDj and SuperCollider with audio input.