[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SIGMusic] lights api
- To: sigmusic-l <sigmusic-l@xxxxxxxxxxxx>
- Subject: [SIGMusic] lights api
- From: RJ Marsan <rjmarsan@xxxxxxxxx>
- Date: Mon, 5 Mar 2012 02:14:49 -0600
- Authentication-results: mr.google.com; spf=pass (google.com: domain of rjmarsan@xxxxxxxxx designates 10.224.204.67 as permitted sender) smtp.mail=rjmarsan@xxxxxxxxx; dkim=pass header.i=rjmarsan@xxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=qPoigyK2CYmIWxXuMvVFZayMzEZCbhZJOR9pEklvzCg=; b=lrTwly9Qdunlx5KeYuVbdAJuyxKEeMoDmWzTqODeKHSuNvTeLnOuPHoInVFoerlKgo ygs0CFS+t+3rqEwMq77Cjbt2uqIv+zQfFKAH6J1OamtgwmuSy7rNPf541OQ0p4mJT2RI uY4hnQy2ZWuRQCRDAjtOqIHfZiAexzQUoGeyAaVp7AqTAmF/H42FqTmZKKMTTJ74czMd ryDrvDiuQ4cxzzVOuUqPMIaW5QylASUJYq/XRyOdj5N0n+CPaqxACaPBLmCFzTaP5ZwI nFpIhwfBNNUUQ1dKZCNvVg1QyxboiUdxqM1p95WTSYMyKBSQY7OhpyDK9hx54vztq2+5 bN3g==
for all those this concerns:
the lights api is complete, and dead simple:
public void sendLightArray(int[][] colors) {
where colors = an array of int[3] where each int is from 0-1023 (no
checking is done, be responsible kids). it sends it off to OSC. I
wrote an accompanying Processing sketch to listen to the OSC and draw
the results in a line (or change it to whatever you want). The
python to send it to the actual arduino lights from OSC is already
written as well, and added to the repo for good measure.
looking forward to some awesome animations.
--rj