Max, MIDI Learn, CellDNA

I’ll be at Cycling ’74′s Expo ’74 this weekend, and part of what I’m showing at the “science fair” is how I integrate hardware into the upcoming release of Cell and CellDNA. I’ve done a ton of work to make MIDI much more flexible and useful in Cell and CellDNA, even allowing for user-editable templates for popular controllers. So far, I have all of our controllers (Ohm, block, OhmRGB, and Code) and the popular APC20 and APC40 integrated, complete with multi-color LED feedback. Because almost every function in Cell and CellDNA can be controlled with MIDI now, you could even build a custom DIY controller that works exactly the way you want
The best way to show a program, however, is to share the code. (Besides, registration for Expo ’74 is closed, and it’s not a public event!) So here’s a stripped down version of the Max 5 patching and javascript that I use to create MIDI learn and MIDI templates in CellDNA.
You can use these files to integrate MIDI into patches and interfaces in Max, and free yourself of a lot of messy patching and conversions. The javascript also saves and reads JSON files that store your MIDI settings for your patch. It’s pretty simple, yet provides a lot of advanced capability to your programs in Max/MSP. The zip file contains 3 files: a Max patch that demonstrates how to use it, a javascript that handles MIDI and conversion of MIDI into messages for your patch, and a JSON_parse.js that is used by the patch to read and write JSON files. This goes into Max’s “jsextensions” folder (Max5/Cycling ’74/jsextensions).
(Oh, and if you are wondering about the image above, it’s the logo for the original Expo ’74 that occurred in Spokane Washington in 1974, at a time when “Max” was a smart guy at Bell Labs doing early computer music experiments. No disrespect to Cycling ’74, but that logo is way cooler!)






