Csound Music mp3 Pack

Dr. Boulanger has put up a wondeful collection of Csound mp3s at Csounds.com.

Download 4csoundCompositions.zip (99.1 MB)

The pack comes with 20 songs, with everything from ambient to minimal to cheesy techno (that would be my piece) to synth-generated halloween sound fx.  All of the original source code is included in case you are curious to see what these compositions look like in their original state.

The Csound Blog is moving to Noisepages

Csound Dseq Drum Machine

In 2006, I started The Csound Blog, a site dedicated to all the quirky goodness of Csound. I haven’t touched it in years, but have been pondering starting it back up for quite some time.  I’ve decided to move forward with it, and I’m moving it over to Noisepages in the process.

Starting today, I will begin migrating the original posts to its new home here.  Then after that, the real fun begins.

The Csound Format Challenge

Csound Code

Is it possible to compose beautiful Csound code? Let’s find out. I hereby declare The Csound Format Challenge.

Though it may sound like a contest, I really consider this more as a friendly medium to explore and share various ways to write Csound code. In order to participate, all you have to do is to take the following unformatted CSD file, change it to your liking, and share it with the world:

formatChallenge.csd

Here’s my attempt:

JakesFormatAttempt.csd

There’s no right way or wrong way. No winner will be declared. Feel free to submit as many entries as you would like. Cheating is allowed, so if you see something you like from someone else’s work, incorporate it into you own examples.

And have fun!

Csound Journal Issue 9

Csound Journal Cover Art

James Hearon and Steven Yi have recently released Issue 9 of The Csound Journal. This just might be the strongest issue yet.

Beginning Csound @ NYC Resistor

Beginning Csound

Beginning Csound
July 28, 2008 @ NYC Resistor
1 Session, 3 hours, with personalized post-session project with instructor via email.
Cost $75

Csound is the most powerful computer music language in the world, with a direct lineage to Max Mathews’ original Music-N languages. The focus of this class will be a synthesis of three topics: The Csound language, synthesizer theory, and composing weird alien music.

Together, we will demystify the assembly-like syntax of the Csound language. We will cover the fundamentals of synthesizer theory, including: oscillators, filters, envelopes, amplifiers and modulation. Finally, we’ll tie it all together by composing sounds in the vein of classic Sci-Fi movies.

Taught by Jacob Joaquin (that’s me.) Click here to enroll.

Slipmat Pre-Alpha 0.01.0 Released

Slipmat 0.01.0

I just released a new Slipmat package at sourceforge. This latest version comes with three new examples, including one that uses a basic Java GUI. Four out of the five examples are now pre-rendered as CSDs for convenience. There are also a handful of new synth Modules to play with.

The documentation has been improved, including better Javadoc support. The Javadocs are not pre-rendered as to keep the size of the release to a minimum, so you’ll have to generate them yourself. Many IDEs, including NetBeans and Eclipse, will generate them for you.

There is also the PseudoTutorial example that gives a broad overview of the design of Slipmat and how to use it.

And in case you’re wondering, Slipmat is “A Java-based modular computer music library built on top of the Csound API.”

Introducing Slipmat for Java and Csound

Yesterday, I released the first public version of Slipmat, a Java-based modular computer music library built on top of the Csound API. You can download it at Sourceforge.

Let me back up a bit…

Ever since I started Csounding about a decade ago, I’ve heard people refer to the syntax of the Csound language as being very similar to that of Assembly on numerous occasions. I certainly see their point. Let’s face it, Csound is a Frankenstein of language, stitched together with duct tape and bubble gum. And like Frankenstein, it is both powerful, yet scary to those who judge it solely on its facade. Those who turn a blind eye to Csound’s frightening nature and learn to understand it for what it is are rewarded with an amazingly expressive computer music environment. Unfortunately, most people equate their first experience with ladling hot soup onto their laps. Did I mention Csound is afraid of fire?

Continuing with the Frankenstein metaphor a little longer, Slipmat is a Java abstraction layer that attempts to tame the monster. To teach it some manners and civility. If all goes well, Csound will be putting on the ritz in no time.

Let’s take a look at a simple Slipmat java program (included with the download.) The following plays every note in a 12 note octave between 440 and 880:

import com.thumbuki.slipmat.*;
import com.thumbuki.slipmat.module.*;

public class SimpleExample {
    public static void main(String[] args) {
        SynthRack synthRack = new SynthRack(false);
        SinePerc sinePerc = new SinePerc();
        Output output = new Output();

        synthRack.addModule(sinePerc);
        synthRack.addModule(output);
        output.setInput(sinePerc.getOutput());
        
        for (int i = 0; i <= 12; i++)             sinePerc.playNote(i * 0.25, 0.9, 440 * Math.pow(2, i / 12.0));         synthRack.startCsound();                  try {             Thread.sleep(4000); /* Keep java running for four seconds */         }         catch(Exception ex) { }     } }

If we think of Slipmat as a high-level abstraction of Csound, which it is, then what happens behind the scenes is that Slipmat "compiles" Csound code, and then this code is fed to the Csound engine. This is sorta how Java produces bytecode that is executed by a Java Virtual Machine. The following is the code that is produced by the previous example:

<CsoundSynthesizer>
<CsOptions>
csound -d -A -odevaudio null.csd
</CsOptions>
<CsInstruments>
sr = 44100
kr = 4410
ksmps = 10
nchnls = 2

0dbfs = 1.0

gitable1 ftgen 1, 0, 8192, 10, 1.0

chn_a "chna0", 3

instr 1
aclear = 0.0
chnset aclear, "chna0"
endin

instr 2
a1 oscil p4, p5, gitable1
aenv linseg 0, p3 * 0.05, 1, p3 * 0.95, 0
a1 = a1 * aenv
chnmix a1, "chna0"
endin

instr 3
a1 chnget "chna0"
outs a1, a1
endin

</CsInstruments>
<CsScore>
i 2 0.0 0.125 0.9 440.0
i 2 0.25 0.125 0.9 466.1637615180899
i 2 0.5 0.125 0.9 493.8833012561241
i 2 0.75 0.125 0.9 523.2511306011972
i 2 1.0 0.125 0.9 554.3652619537442
i 2 1.25 0.125 0.9 587.3295358348151
i 2 1.5 0.125 0.9 622.2539674441618
i 2 1.75 0.125 0.9 659.2551138257398
i 2 2.0 0.125 0.9 698.4564628660078
i 2 2.25 0.125 0.9 739.9888454232689
i 2 2.5 0.125 0.9 783.9908719634986
i 2 2.75 0.125 0.9 830.6093951598903
i 2 3.0 0.125 0.9 880.0
i 1 0 -1.0
i 3 0.0 -1.0

</CsScore>
</CsoundSynthesizer>

I know what you're thinking... What the hell am I looking at? Truth is, this code is not meant for human consumption. A person who regularly writes Csound code can write code that is more clear than this. Even then, compared to Java-Slipmat code, it can look like chicken scratch. Or my handwriting.

Since Slipmat is more or less a Java library built on top of the Java-Csound API, this means all of Java's and whistles are now available to use in conjunction with Csound. Want a reliable cross-platform GUI? Give swing a try. Want to integrate Processing with you Csound? You can. Want a tool that automagically hides all the grunt work from you, such as assigning instr numbers, tables, chn software busses, etc? More than anything else in life (personally speaking.)

I should warn you... Slipmat is currently pre-alpha. Which means everything is in a state of flux, and there isn't anything that resembles a specification at this point. Methods and classes are guaranteed to change drastically over the next few months. Tutorials on the way...

Csound Journal Issue 8

Csound Journal Cover Art

The 8th issue of the Csound Journal is hot off the press.

OLPC donates 8.5+ Gigs of Samples

One Laptop Per Child

The OLPC has donated 8.5+ gigs of samples to the children of the world, and us. This library is licensed under the Creative Commons Attribution License. So feel free to start remixing.

From the official press release:

Several prestigious groups of musicians have donated their sound libraries to One Laptop per Child (OLPC), a non-profit organization focused on providing educational tools to help children in developing countries “learn learning.” The XO laptop’s unique user interface and applications enable children to create and share music, drawings, video, personal diaries and other things they make online with family and friends worldwide.

Leading musicians, colleges and companies making their sound libraries freely available on the XO laptop are: The Berklee College of Music in Boston, Berklee Music Synthesis alumni – including electronic music superstar BT, the international Csound Developer community, M-Audio and Digidesign (parts of Avid Technology, Inc.), and the Open Path Music group.

I want thank Dr. Richard Boulanger for all the time and effort he put into collecting and assembling such a vast and wonderful resource.

Here are my donated samples in three different sampling rates: baby talk plus eurorack, serge and csound synth sounds