r _Web.log

tag: programming


SuperCollider UGen templates for Xcode

K http://www.erase.net/projects/sc_xcode/

Tired of doing search-and-replace on the SuperCollider distribution code when developing unit generators, I figured it was about time that some kosher Xcode templates existed for the purpose. And lo, here they are.

Features a standard audio/control rate UGen, plus a version which performs dynamic memory management and thus requires a destructor function.

Hackpact 2009/09/#19: Arc spring (Processing)

[icon] arc.zip

An absence from technology turned out to be less amenable to hacking than hoped; even with the presence of an iPhone, concocting half-baked hacks to twitpic from a Dorset field was less appealing in practice than in theory. Apologies, therefore, for the break in hackpact programming. Service hereby resumes.

arc spring Today's hack is a small Processing sketch to simulate objects moving around on a spring-like arc around a central point. It's a simple implementation of Hooke's law plus trigonometry, but creates pleasantly natural-looking dynamics which are useful, in my case, to spin camera angles around a point with some damping.

This is more rapid work-in-progress for PEAL, appearing at the Sonic Arts Expo in Leeds very shortly.

Hackpact 2009/09/#2: Modal Processing SVG sketch for PEAL

peal-draft.01.jpg

For this year's Sound And Music Expo, taking place imminently in Leeds, I'm developing the interactive visual elements for Peal, a virtual bell tower realized with lasers, LEDs, surround sound and projection. Lewis and Nick of Monomatic have asked me to transform Malcolm Garrett's vector-based design work into a responsive application that somehow ties together the various elements of bellringing (time, communality, musicality, circularity) into an animated projection, reflecting the current state of the virtual bells as well as providing live scores to established sets of changes.

Lots of concepts to take on board, not least dealing with scalable vector graphics (SVG) in Processing, which is what I've been doing today. The idea is that the application is multi-modal -- switching between contexts based a combination of the time of day and the signalling from the electronics that make up the physical part of the installation -- and so must be able to fade gracefully between different display states.

I might well shoe-horn at least one more Peal-related dev session into the hackpact.

Hackpact, September 2009

Over the next 30 days, I'm participating in what has been termed a hackpact, a notion suggested by Alex a few days ago and immediately adopted by a decent group of others.

The concept is simple: create something and publicly document it, each day for a month. It's a kind of distributed cousin of Thing-A-Day, though inspired by a quite different sort of practice.

I'll thus be posting daily with an image and a paragraph or so on whatever I have produced. Many things should be created from scratch; some will be works in progress, and others will be (unashamedly) cleaning up and publishing the jumble of half-finished work that languish around various hard disks.

I've also created a personal Twitter profile for the purpose, where I'll be posting daily with the #hackpact tag. Alternatively, follow this list of hackpact-tagged blog posts.