It’s that feeling again, that nameless anxiety, the squeeze of the shoulders and tightness of the neck, the shallow breathing: shouldn’t I be doing something? Starting a campaign. Joining a political party. Writing erudite polemical rants for The Guardian. Almost anything other than what I’m doing now, in fact. Which is sitting on the sofa, listening to music.
I’ve been experimenting with controlling SuperCollider using Arduino sensors, and since it was hard to find accurate documentation of this on the web I decided to write up some of my own.
The sad news is that I could only get this procedure to work on a Linux system, though Mac users should also be able to make use of it. The code relies on the SerialPort class, which currently seems to have trouble recognising Windows serial port addresses.
Here’s what you will need:
- SuperCollider running on Mac OSX or Linux (I used version 3.6)
- The ArduinoSMS quark
- Arduino board with suitable analogue sensor
For the process of installing quarks in SuperCollider, refer to the documentation. For setting up your Arduino board and sensor, see the ‘Basics > AnalogSerialRead’ and ‘Analog > Calibration’ examples included with the Arduino software.