Cellular Automata and Music Using Java 115
Justin Powell writes "Take computers, mathematics, and the Java Sound API, add in some Java code, and you've got a recipe for creating some uniquely fascinating music. IBM Staff Software Engineer Paul Reiners demonstrates how to implement some basic concepts of algorithmic music composition in the Java language. He presents code examples and resulting MIDI files generated by the Automatous Monk program, which uses the open source jMusic framework to compose music based on mathematical structures called cellular automata."
DNA Music (Score:5, Informative)
Re:DNA Music (Score:4, Funny)
Re:DNA Music (Score:2)
Re:DNA Music (Score:1)
Re:DNA Music (Score:2, Funny)
Re:DNA Music (Score:4, Funny)
Re:DNA Music (Score:5, Interesting)
Re:DNA Music (Score:1)
As an aside, the music sounded horrible back then as well.
Re:DNA Music (Score:3, Funny)
Re:DNA Music (Score:1)
Castlevania... (Score:2, Funny)
OK not really, but listen to it!
Re:DNA Music (Score:2, Interesting)
Re:DNA Music (Score:3, Interesting)
no shit [mp3.com].
Meta Math Music (Score:2, Informative)
From the site:
Mathematical Proofs Set to Music I added this web page just for fun. While looking at some proofs, it occurred to me that their structure resembled musical scores, so as an experiment I decided to see what they sounded like. Essentially, the musical notes correspond to the depth o
Which Douglas Adams book ... (Score:2)
damn memory ! anyone can contribute their 2 cents and help me upgrade ?
Re:Which Douglas Adams book ... (Score:3, Interesting)
Comment removed (Score:5, Interesting)
For the same reason that lots of things are nice.. (Score:3, Insightful)
I'm sure Chuck is awesome (it sure looks cool yet daunting), but as a java coder by day and a musician by night, I'm rather intrigued by jMusic myself.
Re:For the same reason that lots of things are nic (Score:4, Informative)
Re:For the same reason that lots of things are nic (Score:2)
Re:Interesting, but what are the benefits of Java? (Score:2)
Java vs. specialty languages (Score:5, Interesting)
In '97-'98 I wrote a bunch of music theory training programs for the Music department at my school (they eventually became this website [emusictheory.com]), and I tried out MAX first before I went with Java. MAX was far better equipped to handle the music-related requirements (anyone remember Java 1.0.2?). But with Java I could put my applets online, run them on any OS, and (biggest bonus) get some serious experience in a language that would get me my first job when I got out of college. Learning a new language to a level where you can tackle an ambitious project is a big investment. There are a lot of musicians and composers with day jobs as developers (like me) who want to be able to leverage what they already have, if feasible. And nowadays, Java has pretty good support for audio, as general-purpose languages go, so many projects wouldn't be giving up much to use Java.
Here are a few snippets from the jMusic website [qut.edu.au] that suggest why they chose Java for their project: There are more hints at this in the intro of the article, as well.
Re:Interesting, but what are the benefits of Java? (Score:1)
No Control (Score:4, Interesting)
sounds like an arstechnica performance... (Score:5, Interesting)
heres the wired article. [flong.com]
Forget music! (Score:5, Interesting)
It requires that you have Java installed in order to play. It doesn't work on Linux, tho. Sorry. Complain at Sun to get full screen mode working on Linux.
In related news... (Score:4, Funny)
ugh (Score:3, Funny)
or maybe like a four year old banging on a keyboard.
although, does that mean the program has intelligence equivalent with a four year old human?
Re:ugh (Score:3, Funny)
Oog. (Score:2, Insightful)
I suppose it's all in the ear of the beholder or something. Ah well.
Orwell was right! (Score:5, Interesting)
"Here were produced
Re:Orwell was right! (Score:1)
Re:Orwell was right! (Score:2)
Seriously though, that makes him what, 50 and 2?
Fractal music (Score:5, Informative)
Re:Fractal music (Java Applet) (Score:2, Interesting)
I wrote it up at this page: http://homepages.paradise.net.nz/~andrew-1/fracta
(you will need a recent JVM from SUN to use the applet)
Re:Fractal music (Score:3, Interesting)
Yes, I'm blabbering about my own musical project but so is everyone else on this story.
Visual Music (Score:5, Interesting)
Interesting, though I used Java to visualize [waterlogic.com.sg] symmetrical structures in the music of J.S.Bach. I used stereoscopic 3D (with OpenGL) and 4-channel 3D sound (with DirectSound3D) to 'virtually' present the 4-parts: Soprano, Alto, Tenor and Bass, flying around in 3D, not just visually, but aurally too. It was exhibited 2 years ago.
Re:Visual Music (Score:5, Informative)
Also, the short write-up we handed out during the exhibition can be found here [waterlogic.com.sg].
Re:Visual Music (Score:1)
Music from Visuals (Score:2)
Awesome... (Score:3, Funny)
I can't wait to hear these new Java-written MIDIs on Geocities pages, complete with leet spinning skulls and black background...
midi file indicates CA skil 1 year piano student (Score:3, Funny)
KeyKit (Score:5, Informative)
KeyKit, an awk-like language designed specifically for manipulating MIDI data.
http://nosuch.com/keykit/
Re:Mods vs MIDI (Score:2, Informative)
Re:Mods vs MIDI (Score:3, Informative)
err excuse me... (Score:1)
Mathematically based pattern gerenation mechanism applied to midi format produces repeating rhythmic sounds.
(don't forget the subjective addition: "that sound bloody terrible!!")
My god, this is so amazing...
Maybe if we hand tweak the pattern generation mechanism enough...we could get it sounding like... REAL MUSIC!!
Sorry, call me when you can approximate dance music, the most basic of rhythmic beats.
I apologise for the cynicism, third (or so) computer gen'ed music ar
Re:err excuse me... (Score:2)
Re:err excuse me... (Score:2)
Granted, that probably says more about the composers (*cough*cage*cough*) than cellular automata.
Re:err excuse me... (Score:1)
Of course any pattern based data processed to make a music file will sound like man-made music. Due to the hairy, university-trained composers out there, the only thing that defines most music is some sort of pattern!! (if even that)
So exactly what else does this show us, or is that it?? That was what I was trying to say.
I can take any number of pattern/fractal/etc data and produce stuff similar to this. What is your point exactly??
Re:err excuse me... (Score:2, Insightful)
It is simply an audio "visualisation" of pattern data. (pattern data taken to include things like fractals the repeat in interesting ways)
I don't want it to sound like man music, just some sort of sound that actually approximates something like music. Certain musicians specialise in creating random sounding music for various academic (one only hopes) purposes, but this is not what this is.
Dot matrix music (Score:4, Interesting)
Re:Dot matrix music (Score:2)
Music using weighted random Markov strings... (Score:5, Interesting)
Then if you go out four notes and only one note has any probability of being the fifth in that series, drop off notes from the beginning of the string until there is more than one possibility and continue. Something like:
1
12
123
1234
(note 5 always follows notes 1234, so drop the 1)
(1)2346
(1)23467
(note 8 always follows 23467, so drop 2, note 8 still follows 3467 so drop 3, then there is more than one possible note)
((1)23)4679 {etc}
Then the music would probably sound really familiar, but just about the time you catch on it segues into another pseudo-familiar tune.
Re:Music using weighted random Markov strings... (Score:3, Funny)
You go out two notes and calculate the weight based on the cosine of the third note. Divide that by the last note of a harmonic frequency. If the note in question is sharp or flat, divide by six and take the remainder. Omit every third note. After the sixth note, if the notes are in fact, collinear and not symmetric, you can reverse the cofactor matrix and restore the eigenvalues, but not without first calculating the modulus of the largest cubic divisor.
Re:Music using weighted random Markov strings... (Score:2, Funny)
Appropriately enough for this thread, this article [ananova.com] has a quote from Polyphonic HMI's chief executive Mike McCready "There are a limited number of mathematical formulas for hit songs. We don't know why."
Once they open-source those mathematical formulas that they've derived, then we can start using all the music devel
Re:Music using weighted random Markov strings... (Score:2)
Re:Music using weighted random Markov strings... (Score:2)
Re:Music using weighted random Markov strings... (Score:1)
I quote from an essay [dnbscene.com] I wrote at uni a couple of years ago (apologies for the closed format, heh):
Indeed, Holmes, discussing why computers have been so widely used for music, asserts that "the answer lies in the nature of music that has developed during the twentieth century... certain schools of composition [have] stressed a greater emphasis on the mathematics of music." One example is Stochasticism, whereby parts of the piece remain under the direct control of the comp
douglas adams (Score:5, Interesting)
i mean, just read what he wrote about computer interfaces in h2g2 (when ford is breaking into the hq). adams was damn smart and way more funny than clarke.
but did you know that adams did not invent this style of writing sf? read "the star diaries" by stanislaw lem. funny. uh... just read anything written by lem. you think clark or heinlein novels are great? just as an example, do you wanna know where the matrix authors stole the idea of these human-driven fighting robots? "The Invincible".
Re:douglas adams (Score:2)
Battletech! And you don't call them robots for they are 'mechs.
However, I agree with your points about Lem, whose writing is IMHO much more fun and much more SF than that of many 'famous' SF authors, including Adams.
Who owns the copyright? (Score:5, Interesting)
Re:Who owns the copyright? (Score:2, Funny)
Re:Who owns the copyright? (Score:1, Informative)
The person who generated the music has the copyright (not the programmer or the program).
Unless a substantial part of the copyrighted program is included in the output. For an extreme example, imagine a simple program that "generates" music by playing one of two MP3s, and the MP3s were copyrighted by the programmer. The output includes a substantial part of the original program, so in fact the output is copyrighted by the original programmer.
On the other end, imagine
Re:Who owns the copyright? (Score:2)
Furthermore, by posting links to a site containing SCO's IP (thereby encouraging people to play the midi files) slashdot is taking a serious risk of being SCO's next legal target.
from the my-favourite-artist-is-3.14159265.. dept. (Score:3, Informative)
http://www.geocities.com/vienna/9349/ [geocities.com]
The first prime number and pi midi files are awesome
Might hafta wait til tomorrow tho - looks like the guy's geocities account got
Re:from the my-favourite-artist-is-3.14159265.. de (Score:1)
Computer Music (Score:3, Interesting)
The card reader reading cards at the appropriate time
The tape drives rocking tapes and loading/unloading the heads
The disk drives clicking head carriage locking solenoids
The card punch punching a few cards in rhythm
The line printer printing the cadence
Listening to Mozart, Bach etc. was quite an experience in this manner. Unfortunately we did not have the source code.
Of course, back in those days we did however sit closer to the machine code than one typically does presently. So it was possible to list it and see how it did what it did.
The cpu timing cycles (core read & write) was accomplished with a delay line and sending a "0" pulse down the coil with various taps located at the appropriate distance to perform each timing step in order.
jMusic (Score:5, Interesting)
or you can get it from the jMusic web site:
http://jmusic.ci.qut.edu.au
jMusic has been used for many other very weird and wonderful things like elevator installations, and many electronic performances. It does heaps of stuff including Markov, gendyn, granular and particle synthesis, dance music and much more
Interesting and all (Score:4, Interesting)
Re:Interesting and all (Score:2)
The point of this work isn't to create random sounds, but to create music that sounds tolerable to humans. It's significantly different from just generating every possible sequence of bytes that make up a valid MP3 file or valid MIDI file.
Re:Interesting and all (Score:1)
Sure, it is obvious to anyone with some, or possibly no, computer science background but the post was mainly for those who don't understand this concept. I also find it rather interesting that anything you do on a computer is simply the construction of a finite bit pattern. It's simply beautiful. How human thought uses al these abstratcions to find these paths is amazing, etc.
The point of this work isn't to create random sounds, but to create music that sounds toler
Copyright (Score:2)
Seriously, heard it [ibm.com], and it sounds better than monkey punching keyboard as it has some rhythm and cycle, but still, calling it "music" is wild use of the word. What's the point of "Using Java"?
good ole SimEarth (Score:1)
Play on words? (Score:1)
Re:Play on words? (Score:2)
Staff software engineer? (Score:4, Informative)
Band 1-5: The non-technical types.
Band 6: "nothing" Engineer (new hires)
Band 7: Staff Engineer (basically, you get staff in your first few years at IBM unless you're a total moron, and if you DON'T make staff at some point they basically have to promote or fire you)
Band 8: Advisory Engineer (most IBM engineers spend the bulk of their career as advisory)
Band 9: Senior Engineer (the fastest I've seen senior made was 10 years, and it's typically 15+ before you get to senior)
Band 10: Senior Technical Staff Member or STSM (most engineers at IBM never make it this far)
Band 11: Distinguished Engineer (you have to walk on water and have saved entire villages from destruction to get to this, you basically do whatever you want with a huge budget and work on only the coolest stuff)
Band 12: IBM Fellow (you are the uber shiznit, report to the execs, and the world is your oyster)
Look at this as an insight into the workings of the hive mind at IBM. We are the borg, yada yada yada.
Koan: an alternative music engine approach (Score:2, Interesting)
Grammidity (Score:5, Interesting)
It works on the "evolve" principle where you "mate" two objects, and then let either the user or some algorithm decide which of the children are most successful and can evolve further.
Using Java for music? (Score:2)
music is about stories (Score:2)
(Muriel Rukeyser)
A song ain't nothin in the world but a story
just wrote with music to it. (Hank Williams Sr)
music is composed of notes and sounds, yet they are
the substance of expression, and not the music itself.
stories -- you love someone, they leave, you feel loss, pain, grief.
something happens, you're happy, joy, love - your father may
aggravate you, you have an argument, you try and listen,
you resolve it; you find a friend, you get along, because
AI music from the Amiga (Score:2, Interesting)
A few years back, I brushed the dust off of my old Amiga, powered it on, and recorded a few good songs produced from this generator.
I have posted several MP3's of sample output on this website, and some of it rivals some of the garbage coming out of the Dance Top 40 as of late.
http:/ [maokhian.com]
This isn't new (Score:2, Informative)
Re:This isn't new (Score:2)
algorithmic jazz in da house (Score:1)
http://www.algorithmicjazz.com/
The compositions (computer programs) are written in Java and use the Jsyn software engine. (Plug in available on the website)
Best quote:
"The soul of the machine is the collection of algorithms that give it life."
There are three pieces of varying complexity--mood music for sensitive robots, methinks.
Re:I see... (Score:1)
cat
=)
Re:Perfect. (Score:1, Funny)