Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

jns (40)

AOL IM: GllyfLord (Add Buddy, Send Message)
Yahoo! ID: jnstowe (Add User, Send Message)

Jonathan is a programmer who works all over the place and now lives in London too.

Journal of jns (40)

Monday December 03, 2007
04:49 AM

LPW 2007: Doing music in Perl

[ #35033 ]

Saturdays LPW was all great fun and I think everyone enjoyed themselves. Thanks to the organizers and the generous sponsors for an event that will be remembered (or not depending on how long one spent in the pub afterward.)

Anyhow for anyone who might have missed my lightning talk or wasn't sitting in the front row and hence couldn't hear anything then I have put up a recreation of the output at WhenTheLouieBreaks

I say "recreation", but I simply used versions of the same programs I used modified to output to WAV files rather than directly to the soundcard and mixed these down in the wonderful Linux DAW Ardour. The only difference to what you would have heard is that there are some fades and the relative levels of the sounds have been tweaked: otherwise all the sounds there have been generated in Perl programs (with the obvious exception of the drums but the loop itself was performed by a Perl program.) Oh and due to feedback I omitted the Louie Louie samples as the reaction to them was somewhat, er, mixed :-)

In case you are interested to see exactly how this was achieved then the original programs are at: I haven't included the samples I used lest the BPI slap a writ on me.

I've got a few ideas about taking this stuff further, including creating an interface to enable output to the wonderful JACK and thus enabling it to be routed to, say, Ardour (or used as an insert therein,) Creating a "softsynth definition language" which builds the LADSPA networks for you, MIDI or OSC input for control of both notes and parameters and a more complete pure-perl sequencer. This all of course depends on my finding the tuits, but the idea is nice :-)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Really awesome, looks fun. :)

    I've had some kind of interest in generating music programmatically for at least 10 years, but it's one of those things that I never get around to. Plus it seems so complicated, and probably I'm not really creative enough. (Like with the thing Ardour, that looks like it would take a good bit of effort to learn.)

    (I made a Perl script a few years ago to play an Etude of Chopin's that I copied the notes from out of a book by Douglas Hofstadter. It only used the Linux console bel