Dec. 21st, 2009

rbandrews: (Default)
I've got the Piemaker working a lot better now.

ChucK (I'm going to stop using the capital K) is a weird little language. With some more development, it could be beautiful. The way it works is, you start up a Chuck VM, and then add scripts to it, which can broadcast events to each other / the outside world.

Surprisingly, it has no way to talk to pipes, even stdin or stdout (well, it has stdout, but without stdin it's not too useful). So I did what I should have done originally and used OSC, which is like MIDI but newer and better designed and simpler.

So, Piemaker works like this: you start it on a port (like 8000). It kicks off a Chuck script that waits for the Piemaker to send an OSC message (sending OSC from Ruby is easy) and then sends a MIDI message containing the same data to the Launchpad. I'll be able to get input the same way, receive events from the Launchpad and shoot them over OSC back to the Piemaker.

This morning I was trying to do this with a separate Chuck process for each message, which rapidly turned into a fork bomb when I tried to animate something (see, this morning, the only way I knew to get data into Chuck was with command line args).

So now I've the the boring part: writing an API to wrap their low-level Launchpad protocol. Already I can set the color of buttons and even bulk-load the entire screen in just a few messages. Next is double-buffering (which the Launchpad actually supports on the device) and then some kind of animation, then input, then Connect 4.
rbandrews: (Default)
I went to Houston last weekend, since Cassie and I are going on vacation immediately after real Christmas, and I wanted to exchange stuff with my parents.

My uncle, known for awesome presents, got me this: side view front view.

There's even a switch on the bottom, I bet you know what for.

It's just about the most useless, and yet awesome and nerdy, thing I've ever seen. Weighs a hefty amount too, because the body is all metal. This was my first fandom, and I'm happy to be able to say: my desk toy is better than yours.

(I'll make another post about more Christmas stuff after, you know, Christmas)

Profile

rbandrews: (Default)
rbandrews

July 2024

S M T W T F S
 123456
78910111213
14151617181920
212223242526 27
28293031   

Style Credit

Page generated Jul. 6th, 2025 02:23 pm
Powered by Dreamwidth Studios

Expand Cut Tags

No cut tags