Afternoon Dust


Sunset-Sunrise, part 1

Sunset, 9 July is a piece of music programmed by me and performed by the sunset on 9th July 2014. The sunset used a light sensor to interface with software synthesizers and modify some of their variables in real-time. This was enabled using code from my previous SuperCollider post.

Controlling SuperCollider using an Arduino sensor

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.