Category Archives: Processing

Sound Byte: Beat Generator

Probably the coolest Sound Byte yet, this one will generate drum beats based on probabilities for each sixteenth note in a measure. The sound-set is basic: kick, snare, hat, plus a chime loop that is overlaid for a little melodic flavor. You can tweak the probability of all the steps independently, or just click a button to set them all to new random values. Two “modes” allow you to specify whether you want the kick and snare to ever play at the same time and some simple rules are used to determine the amplitude of each note. I considered putting in panning of some kind, but decided it could go in a later iteration. I may do a bassline generator along the same lines at some point. Check it out!


The boombox dude hanging out on a platform.

I’ve been working on a music game on and off for the past month for the TIGSource A Game By Its Cover compo. It’s inspired by this fake game cartridge:

You control a character in a 2D side-scrolling world and collect Jams, which you can then play to build up a sweet tune. There are other boombox dudes in the world who will jam with you when you are playing what they want to hear. The goal is to simply collect all the jams in the level and then just jam out with them.



Amanda Williams – Environment Art
Damien Di Fede – Music, Design, Programming
Kevin Bennett – Music, SFX
Oscar Garza – Animation
Sean McIntosh – Environment Art, Character Design

Sound Byte: Microtalk Tune

I recently gave a 5 minute “microtalk” about Minim at an Austin IGDA event and included in it a couple examples using the new UGen framework. In fact, I wrote the presentation in Processing, but I don’t think it is really interesting enough to post the entire application. Instead, I pulled out the song I programmed for it as a standalone sketch. Check it out.

Sound Byte: Loop Chopper

This Sound Byte gives you sliders to control the parameters of a GranulateSteady UGen, which allows you chop up a sound as it plays. I’ve created a loop from the song Again and Again by The Bird and The Bee, which will hopefully get annoying enough that you’ll want to chop it into indiscernibility. The buttons along the side let you set the range of the sliders from quite small, to a full second.

Minim in the Wild.

From the pingbacks, a post about 3D Soundclash:

In February 2010, the Red Bull Music Academy prompted Warp Records and Ninja Tune for a Soundclash on a 3D sound system, staged in the Loading Bay of the Royal Albert Hall. FIELD developed a generative real-time application especially for this event, which motion designers Quayola and Thomas Traum used to design and perform soundreactive visuals for the sets of Plaid, Clark, Mira Calix and many more.

Further down in the article it mentions that the application was built with Processing and uses Minim for the “sound interaction”.

Sound Bytes: Oscil as a looping sampler

Eventually, we plan to add a UGen to Minim that will allow you to control the generating speed of any other UGen, but that got me thinking about how you might do something similar with existing components. So, I struck upon the idea of using an Oscil as a looping sampler by using an audio file as the Waveform and setting the frequency of the Oscil to be very low. The fun thing about this is that if you set the Oscil to a negative frequency, the sound will play in reverse. Additionally, I thought it’d be fun to be able to automate the changing of the frequency by having an LFO control the frequency of each Oscil (left and right channels of the original audio file). So here’s a sketch that lets you play with this setup:

Screenshot of the sample_oscil sketch.

Sound Byte: Mass-Spring-Damper System

I’m picking my way through Real Sound Synthesis for Interactive Applications by Perry R. Cook (one of the authors of the STK) and decided to start making small apps to demonstrate the different kinds of synthesis he covers in the book. This first one let’s you set the variables of a mass-spring-damper system and then trigger it, which is exactly the same as setting the coefficients of a two-pole IIR filter and sending an impulse into it (as it turns out). Check it:

Sceenshot of the mass-spring-damper applet.

Minim 2.1.0 BETA

I am happy to announce the arrival of Minim 2.1.0 BETA.

This is a beta build of the next release, which contains the new UGen framework developed by myself and Anderson Mills through his project at Numediart. There are still a few loose ends to clean up, primarily documentation related, but we expect to have everything wrapped by the end of June. Until then, feel free to give this build a whirl and see how you like the new real-time synthesis capabilities made possible by the UGen framework.

At this time, all of the documentation is in the form of Javadocs, which are included with the download. I hope that you find the docs for the UGen framework clear enough to get started. If not, there are also quite a few new examples included in the download that demonstrate how to use many of the UGens and how to programmatically sequence sound.

To install this release, you will simply unzip the archive into a folder named libraries in your sketch folder. This folder may already exist if you’ve installed other libraries not included with the Processing download; create the folder if it doesn’t exist. By installing this release in your sketchbook’s libraries folder, you will make Processing use this release instead of the release included with Processing. All of your existing sketches should still work. If you find one that doesn’t, please create an Issue on Github.

Have fun!

Minim Manual Updated.

Reas kicked me in the ass (via e-mail), so I updated the Minim Manual to reflect the Minim 2.0 API. I need to give a shout-out to Urban Giraffe for their WordPress plug-in Sniplets. This enabled me to pull all of the examples in the Manual directly from the online examples. This means that any time I update the online examples, they will be immediately reflected in the Manual. Rock, rock on, says I.

I’m pretty sure that I didn’t leave anything out, but if you spot any omissions, mistakes, or poorly written explanations, please let me know! I will endeavor to fix the problem as quickly as possible.

Also worth mentioning in this post is that Processing 1.0 is out! I can’t say I contributed much to its release, but its imminent release is what got me to finally cleanup and release Minim 2.0. One exciting detail I don’t think I’ve mentioned is that Minim is now one of the libraries that comes with the Processing download. I am very honored to have my library so closely tied to such an awesome project and I hope that people find working with Minim as easy as it is to work with the core Processing API.