Re: Gen patch-a-day

Forums > Gen > Gen patch-a-day
Feb 20 2012 | 2:27 pm

We haven’t seen much of the codebox during our patch-a-day tour of the Gen objects, so I thought I’d pitch one into the mix.

As you know, I’m particularly partial to the Navier-Stokes equation – from the days when I wrote my first Pluggo tutorial on the old Pluggo KnaveStories plug-in to my last Vizzie module. So I’d like to introduce you to the Navier-Stokes Trio.

No, it’s not the smokin’ jazz unit that has filled the gap in my grieving heart left by the sudden death of Esbjörn Svensson, but rather a set of three gen~ patches that map a progression of Gen patching to produce an audio-rate version of the classic Max chaos external based on Richard Dudas’ original ChaosCollection and (more recently) Andre Sier’s updated port of them (What? You don’t have them? Click here right now).

The trio implements a Navier-Stokes equation in three slightly different dialects of gen~ – one that uses common gen~ operators (NS-operator), a version that has the Gen expr operator doing a little more of the heavy lifting (NS-expr), and a final codebox-based version that includes some inner bells and whistles (internal autoscaling!).

These three patches are all implementations of the same calculation (you’ll find ’em inside the patch itself), so I hope you can get a sense of the progression of the patch.


P.S. I’d like to add a shout-out to my colleague Graham Wakefield on this one – he took a look at my original codebox workout and showed me how to include history operators inside the codebox and how to embed the autoscaling. (He also had some helpful suggestings about replacing my sah operators with the ? operator, too). He remains one of my heroes, and I owe him another pint.


Subscribe to the Cycling ’74 Weekly Newsletter

Let us tell you about notable Max projects, obscure facts, and creative media artists of all kinds.

* indicates required