jdn

… purveyor of funky beats and assorted electric treats …

How To: Algorithmic Music with Ruby, Reaktor, and OSC

Posted on | November 20, 2009 | 2 Comments

The basic idea is to use a sim­ple OSC library avail­able for Ruby to code inter­est­ing music, and have Native Instru­ments’ Reak­tor serve as the sound engine. Tadayoshi Fun­aba has an excel­lent site includ­ing all sorts of inter­est­ing Ruby mod­ules.  I grabbed the osc.rb mod­ule and had fun with it.

I’m giv­ing a brief pre­sen­ta­tion at the Bay Area Com­puter Music Tech­nol­ogy Group (BAr­C­MuT) meet-up tomor­row, un-officially as part of Ruby­Conf 2009 here in San Francisco.

Here’s a link with down­loads and code from my talk.  It should be all you need to get started, if you have a sys­tem capa­ble of run­ning Ruby, and a copy of Reak­tor 5+ (this should work with the demo ver­sion too).

Ruby mono sequence example:

reaktorOscMonoSequences-192 MP3

Ruby poly­phonic drums example:

reaktorOscPolyphonicDrums-192 MP3

Leave a com­ment below if you have any ques­tions, or cool discoveries!

oscMenu

Comments

2 Responses to “How To: Algorithmic Music with Ruby, Reaktor, and OSC”

  1. Strohan
    December 7th, 2009 @ 8:20 pm

    how excit­ing! Are there any audio exam­ples of music cre­ated this way to lis­ten to?

  2. jdn
    February 22nd, 2010 @ 5:35 am

    Hi Beau, I finally added audio exam­ples to this blog post. The source func­tions used for each of these is in the down­load link for the talk.

Leave a Reply