flight of the cattri
for those who need to be refreshed, the Cattri = my linux cluster.Â currently, it’s four old-ish computers i got for free, connected with a router, which communicate with each other (and anyone on the wireless network) over OpenSoundControl (UDP) and SSH.Â the name comes from the Pali word for the Four Noble Truths in Buddhism, literally “the four”.Â each computer is named after one of the Noble Truths.Â i use these computers to make music.
last semester, i composed a piece for the cattri called “Sanction of the Victim“, and implemented a few proofs-of-concept.Â eventually i performed it atÂ Diapason artÂ spaceÂ for a crowd consisting mostly of my classmates.Â if you’d like more in-depth documentation, feel free to dig around in my blog archives.Â there have been lots of versions of this composition.Â the basic idea is that there are two systems, like species of organisms, let’s say, living on a single network, sharing its resources.Â one organism likes to band together into herds, and those herds tend to band together into meta-herds, and so fourth.Â these are represented in sound as a pitch constellation, played by a virtual instrument that resembles the Gamelan, but in only the most extended sense.Â it also sounds a bit like a drippy shower head.Â the other organism spreads virally, using up network resources and eventually disabling the router.Â it exploits minute differences in the timing across the network.Â this beast sounds a bit like a furious tremolo on a rubber band orchestra.Â when i performed the piece, after i infected the network with the virus, i got up and theatrically unplugged each computer from the router, performing a kind of quarantine.Â if you caught the reference from the title, it is a case of “Belkin Shrugged”.
in addition to relating to my thesis, this composition is significant because i will be performing a revised version of this piece at the SuperCollider symposium on April 10.Â until recently, i had been focusing a lot of my efforts on the flocking algorithm that directs the pitch constellation.Â there was also an issue with representing the positional data of the flocks with the pitch constellation, which i solved using a hyperbolic wave terrain (see terrains– they’re pretty!).Â each of these tests i ran on my blazingly fast macbook pro.Â when i first tried to implement the flocks on Dukkha (“the reality of suffering”), often the first “remote” location i test things on, it pretty much started emitting smoke.Â …ok that’s an exaggeration, but it was bad!
i spent the next few days trying to make the algorithm more zippy.Â i overhauled the synthesis functions and got them under control.Â initially i had wanted each note to ring out for a period inversely proportional to its frequency, so lower notes would last longer.Â when this was implemented, the fact that each note brought with it more cpu overhead became a serious problem.Â to solve this, i ended up using a physical modeling approach where each ‘note’ is triggered by a similar excitation signal– basically enveloped pink noise– and the different notes are really the result of a ringing filter, simulating a resonant body, like a bell or drum.Â this way, i raised the overhead for the whole system, but decreased the cpu spikes that would occur if many notes overlapped, since the excitation signals are very short.
once the synthesis functions were more efficient, i tried to tighten up the logic that triggered them.Â the problem was the flocking algorithm itself.Â no matter how i sliced it, or which scheduler i used, nothing was happy.Â the fact of the matter is that using my implementation and hardware, a flock of 40 automatons is simply too much to handle per cpu.Â i realize that i could use a kd-tree structure or something similar to divide up the space into smaller quadrants, but that is for a later revision.Â for now, the problem has been solved by distributing the pitch constellation across the cluster with a good deal of redundancy.Â i let each cpu handle a constellation of 13 flocking pitch-creatures, giving me 12 pitches that are doubled.Â i mapped these out to make sure they are not in reinforcing sections of the octave.Â since each cpu will have representations of the other cpu’s average positions and headings to flock with, i am not concerned with the computational tradeoff.
then came the problem of distributing the flocks across the network.Â i had gone through a lot of testing to ensure that a model of the process would work between my macbook and Dukkha.Â because much of SuperCollider is an interpreted environment, working on many computers at once can be somewhat troublesome.Â it’s hard to remember exactly what you have going on in each environment on the network.Â it’s like trying to keep track of four different conversations at once.Â a lot of networked music solutions i’ve seen in SuperCollider, Chuck, and PD do not address this problem, since the common assumption is that each computer is manned by a different performer.Â i have developed a tool to extend the supercollider environment so that it is readily distributed on my hardware.Â i made no real efforts to generalize it, since my needs are my own, but in reality it would not take very much to use it on other distributed SuperCollider setups.Â even with this tool, i was running into problems with addressing multiple computers simultaneously and transcribing the event into a reasonably easy to interpret notation.Â i resolved this problem– and thus arrived at code that lets my Cattri flock together– by further extending this tool.Â now, i can make transcriptions of code that gets sent to each computer, with notes on which computers received the code.Â i realize now that as a performer of “SoV”, my instrument is not only the Cattri itself but the tool i created to interface into it, so a static representation of the code that runs the piece in the abstract is not enough to allow for simple realizations.Â for a notation to work properly, it must be something that takes into account instructions for me as well as my cybernetic extensions.Â in other words, i am now a firm believer in documentation.Â of course, eventually it is conceivable that i could condense this notation into instructions for my laptop to conduct the piece, without my direction at all.
so i have some documentation videos and sound recordings, but i’m afraid i’ll have to wait to release them until after the 10th.