CCIn – SuperCollider MIDI Tool
Sunday, December 5th, 2010When working with analog synth, the most comfortable thing is, that there is mostly a knob for every parameter you can modify. Text based audio-programming languages like SuperCollider seem to be the complete opposite in this case.
To create a sine signal you write:
{SinOsc.ar(440, 0, 0.2)}.play;
If you want to change this oscillator’s frequency, the trouble begins.. You need to type in values like 300 Hz or 800 Hz. Assigning MIDI Controllers can be a solution. That’s why I began to write an extension which makes assigning MIDI CC-Controllers as easy and quick as possible.
{SinOsc.ar(CCIn.kr(0,1,\freq), 0, 0.2)}.play;
That’s it! Now your MIDI-device with MIDI-Ch.1 and CC-Num 02 is assigned to this oscillators frequency argument. CCIn is available as Quark in Supercollider. Just type “Quarks.gui;” and follow the installation steps.
{SinOsc.ar(CCIn.kr(0,[1, 2, 3, 4, 5, 6, 7, 8],\freq), 0, 0.2)}.play; // this gives you 8 oscillators and 8 knobs to control them!
I’d like to thank the SuperCollider community (especially Florian, Alberto and Fredrik) for their support on this project. This video shows the creative athmosphere at Berlin’s monday SuperCollider meetings, where the last bugs were fixed and some fancy features like multichannel-expansion became added by colaborative coding.