light2OSC
— music << camera << expression
2017 by Till Bovermann
Use a camera as a light sensor array. Configured for use with SuperCollider’s’ scsynth
, writing directly to its first control buses.
light2osc
samples incoming video into equal sized rects, computes their brightness, calculates difference values between two areas, and spits them out as an OSC message.
See the calculated values popping up in scsynth by running
s.boot;
s.scope(8, 0, rate: \control);
Start SuperCollider and light2OSC
and control a simple sound like this
{Splay.ar(SinOsc.ar(200 + (100 * In.kr(0, 4)))}
Download it at github.
![](/projects/light2osc/media/slides/light2osc_udpScreenSnapz001_hue3f74cc730753e91a42261fadb67e86a_144627_800x600_fill_q75_box_smart1.jpg.pagespeed.ce.uuGOkuzjuu.jpg)