

I also assume you have some means of sending MIDI messages. I will assume you already know something about Processing and have it installed. Here's a video of what it looks like when all is assembled: That repo includes the Processing code covered here, the graphics used by the sketch, and a version of a track by Neurogami, "A Temporary Lattice." Parts of it will look somewhat different from what is shown here because it kept evolving as this was written. The complete source code can be found on Neurogami's GitHub. However, all this should help in understanding the bigger picture. This article is ostensibly about writing code to drive a Processing sketch from a MIDI stream, but along the way it touches on creating a configuration class for Processing, ways to structure code for the draw loop, dynamically calling methods given some text, and organizing code when you are still largely experimenting.Īs happens when writing about code, the code evolved during the writing, so in some ways it's something like a travelogue, with some minor detours and false turns on the way to the final destination.


This means you can use a music program such as Renoise or Ableton Live to control a Processing sketch both in time to music and on-the-fly. The MIDI messages can come from not just some standard MIDI keyboard, but from other applications.Įven better: Your sketch is not limited to listening to only one MIDI source.
RENOISE SCALE FINDER GENERATOR
Processing is perhaps best known as a generator of sound and graphics, but your sketches cannot only create MIDI messages but listen for them as well.
