Sample Linker

Because I’m lazy and didn’t feel like creating an audio montage in a wave editor, I created a Csound utility that plays multiple audio files in a row, much like a playlist in iTunes. And it automates much of the grunt work, so one doesn’t have to type in and keep track of a bunch of start and stop times.

Source Code: sample_linker.csd

Listen @ SoundCloud

First, about the music. The drum loops aren’t mine; They belong to BT. These samples are released under Creative Commons, and are part of the OLPC Sample Library. You’ll need to download the BT sample pack to run today’s file without modification.

Let’s get a look look at the relevant portion of the score:

i $Sample 0 1 "120 Scratchim.wav"
i $Sample 0 1 "120 KarmaTonic.wav"
i $Sample 0 1 "120 Fast Satellite.wav"
i $Sample 0 1 "120 KarmaTonic.wav"
i $Sample 0 1 "120 Fast Satellite.wav"
i $Sample 0 1 "120 Scratchim.wav"
i $Sample 0 1 "120 Drive the Bouncer.wav"
i $Sample 0 1 "120 Drive the Bouncer.wav"

Notice that the start times for each loop is set to zero. Though when you listen to the example, the loops are played serially, rather than mixed together. And even though the durations are set to 1 second, each sample runs its course. This is because the instruments use a bit of logic to automatically arrange the samples so they play one after the other, in the order which they are listed in the score, with their full durations.

Comments are closed.