code snippets Live-Coding ressources video visuals

vvvv + supercollider

This is a simple way to send an OSC message to VVVV.
In supercollider, I made an empty SynthDef called “osc” which i can live via Pbind.
Here is my prototype for a 2 channel video mixer with 4 post effects per channel.

Supercollider Code

(
~video = Pbind(
\instrument, \osc,
\left, 12,
\right, Pseq([1, 3, 5], inf),
\left_post1, 1,
\left_post2, 2,
\left_post3, 3,
\left_post4, 1,
\right_post1, 0,
\right_post2, 2,
\right_post3, 0,
\right_post4, 0,
\blend, 0,
\blendmode, 0,
\blendmode, 0,

\osc, Pfunc {|ev| n.sendMsg(“/left”, ev[\left]);
n.sendMsg(“/right”,ev[\right]);
n.sendMsg(“/left_post1”,ev[\left_post1]);
n.sendMsg(“/left_post2”,ev[\left_post2]);
n.sendMsg(“/left_post3”,ev[\left_post3]);
n.sendMsg(“/left_post4”,ev[\left_post4]);
n.sendMsg(“/right_post1”,ev[\right_post1]);
n.sendMsg(“/right_post2”,ev[\right_post2]);
n.sendMsg(“/right_post3”,ev[\right_post3]);
n.sendMsg(“/right_post4”,ev[\right_post4]);
n.sendMsg(“/blend”,ev[\blend]);

}
)
)

VVVV patch

A basic vvvv patch to receive osc data. Ports have to be configured accordingly in both sc & vvvv.

basic_receiver

Leave a Reply

Your email address will not be published. Required fields are marked *