Slashdot Mirror


Cellular Automata and Music Using Java

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."

115 comments

  1. DNA Music by A3thling · · Score: 5, Informative

    Lets hope it sounds better than DNA music. That was tried a while ago and was horrible.

    --
    Josh
    1. Re:DNA Music by fresh27 · · Score: 4, Funny

      at the very least, let's hope it's better than jessica simpson/christina/britney music. this is a little less formulaic, so i suppose it's on the right track.

      --
      http://ipod.fresh27.net/
    2. Re:DNA Music by wash23 · · Score: 5, Interesting

      DNA music sounded horrible but it was an interesting novelty. With the right kind of encoding scheme you could probably make something that sounded nice. A friend and I once experimented with fractal music (literally) by writing a script to generate the mandelbrot set in a format that was readable by an amiga-based tracker (OCTAMED). The number-of-iterations (color) value was mapped to pitch and instrument. It was neat because it not only sounded pretty interesting (he tweaked the way the numeric value was mapped to instrument and pitch), but you could also watch the mandelbrot pattern scrolling past in ASCII-form when you hit play. Fun diversion for an afternoon anyway.

    3. Re:DNA Music by SirSlud · · Score: 1

      Based in mathematics? I'm pretty sure it'd be extremely formulaic.

      --
      "Old man yells at systemd"
    4. Re:DNA Music by nateb · · Score: 3, Funny

      It probably sounds better than Spam Radio, at least.

      --
      -- Nate
    5. Re:DNA Music by fresh27 · · Score: 1

      it was a joke sir...

      --
      http://ipod.fresh27.net/
    6. Re:DNA Music by linzeal · · Score: 2, Interesting

      At least provide a link to DNA music, weird stuff for sure but I actually liked some, Fractal, stuff.

    7. Re:DNA Music by DiscoOnTheSide · · Score: 1, Funny

      yeah, but would you rather look at the three of them or a fractal? :)

      --
      Viva La Revolucion! Buy a Mac!
    8. Re:DNA Music by simcop2387 · · Score: 4, Funny

      hey due to the complexity of fractals its entirely possible to find a pair of breasts in the mandlebrot fractal, i'm writing a thesis on it and hope to find them some day.

    9. Re:DNA Music by Crizp · · Score: 1

      Thanks. Now I have to clean out my keyboard, as I sprayed my morning coffee all over I laughed so hard! And the top 10 lists... "never send spam. it is bad" yup...

    10. Re:DNA Music by Billly+Gates · · Score: 2, Interesting
      " Lets hope it sounds better than DNA music. That was tried a while ago and was horrible."

      no shit.

    11. Re:DNA Music by carnivore302 · · Score: 1

      I actually included fractal music in a game I wrote for the commodore 64 way back in 1984. The game was called Attack of the Galactic Gorillas. I know this risks the chance of getting modded up as funny, but it is actually true!

      As an aside, the music sounded horrible back then as well.

      --
      Please login to access my lawn
  2. Interesting, but what are the benefits of Java? by RobPiano · · Score: 4, Interesting

    I really love this stuff and I'm just finishing my master's in music technology (go figure..). This isn't the first time I've seen CA in music. I know for sure of a cell examples in Max/MSP, PD (Pure Data), and Common Music.

    I don't see any real benefits for doing this kind of task in java. It's very nice having another option, but are there any reasons to use this software over the other very good options? I am much more excited about the possibilities with ChucK.

    1. Re:Interesting, but what are the benefits of Java? by Goalie_Ca · · Score: 1

      Well they "try" to make you "catch" a tune!

      --

      ----
      Go canucks, habs, and sens!
    2. Re:Interesting, but what are the benefits of Java? by Anonymous Coward · · Score: 0

      Not to mention the various versions for Csound, including Chaosynth.

    3. Re:Interesting, but what are the benefits of Java? by RZ-1 · · Score: 1

      Java provides a wide range of APIs to work with for math, networking and graphics. Cross platform support. The JSyn Plugin provides a great synthesis package for making sound, and it can be used with various web browsers. (Linux support is in its early stages.) Here are a range JSyn examples including more algorithmically generated music in Java.

  3. No Control by mphase · · Score: 3, Interesting

    It's nice and all but I don't see how there is any real control of the product. Like most other computer generated music it is must fiddled with until something pleasing accidently resulted, right? I probably just missed something.

  4. sounds like an arstechnica performance... by mrgreenfur · · Score: 5, Interesting

    a teacher/performer/artist/programmer at my school did a performance at arstechnica called 'cell phone symphony' where he used the audiences cell phones to make music! Each person sat in one chair, mapped to a grid on his computer. They got special phone connections with the phone company to dial a lot at once. They got a big projector to projet over the audience, and had a spotlight (of sorts, from the projector) pop up on someone when their phone rang. The whole audience watched via a big mirror.

    heres the wired article.

  5. Forget music! by AKAImBatman · · Score: 5, Interesting

    I've got old skool sound effects right here. The whole game fit in 4K, even won the 4K Java Game programming contest.

    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.

  6. In related news... by k4_pacific · · Score: 4, Funny

    The RIAA announced today that they will be using this technology to phase out recording artists altogether. CDs will still cost $16.99, though.

    --
    Unknown host pong.
  7. ugh by parcel · · Score: 3, Funny

    so, computer generated music sounds like... well... computer generated music.

    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? ;)

    1. Re:ugh by Vireo · · Score: 2, Funny
      As the author of the article says:
      As with much good music, you need to listen to it a few times before you can appreciate it fully.
  8. Orwell was right! by k4_pacific · · Score: 5, Interesting

    Could it be?

    "Here were produced ... sentimental songs which were composed entirely by mechanical means on a special kind of kaleidoscope known as a versificator." --Orwell's '1984'

    --
    Unknown host pong.
    1. Re:Orwell was right! by loyalsonofrutgers · · Score: 1

      The mechanical part was just metaphor. There's no functional difference between having a computer generate "bread and circus" than having a team of people do it.

    2. Re:Orwell was right! by Xeth · · Score: 1
      Most. Accurate. Writer. Ever.

      Seriously though, that makes him what, 50 and 2?

      --
      If your theory is different from practice, then your theory is wrong.
  9. Fractal music by VAXGeek · · Score: 5, Informative

    If you like that, try this: Fractmus 2000 (win32)

    --
    this sig limit is too small to put anything good h
    1. Re:Fractal music by Evil+Grinn · · Score: 2, Interesting

      Fractal, schmactal. Hacked-2-Basics lets you "play" a VT100 like a musical intrument, with sounds derived from things like the Linux kernel and DOOM.WAD interpreted as 8-bit mono PCM samples. Uses pure write(2) to /dev/dsp. Written to run on computers so low-end that a musician can set fire to them onstage.

      Yes, I'm blabbering about my own musical project but so is everyone else on this story.

  10. Visual Music by rexguo · · Score: 4, Interesting

    Interesting, though I used Java to visualize 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.

    --
    www.rexguo.com - Technologist + Designer
    1. Re:Visual Music by rexguo · · Score: 4, Informative

      Also, the short write-up we handed out during the exhibition can be found here.

      --
      www.rexguo.com - Technologist + Designer
    2. Re:Visual Music by NichG · · Score: 1

      I've messed around with generating music by a method based on l-systems (which is really just a language for describing recursive patterns). You can get nice semi-random results because it takes large sequences which themselves 'make sense' to the ear (that is, some human composed the sequence) and then strings them together in ways that eventually repeat, but offset a few notes, giving a sense of theme (that pattern you heard at the beginning shows up at the end again). I wonder what those generated songs would look like under this visualize algorithm, and if there'd be a way to find the l-system that corresponds to the structure of a particular song.

  11. Awesome... by grub · · 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...

    --
    Trolling is a art,
  12. For the same reason that lots of things are nice.. by bcore · · Score: 2, Insightful

    ..to code in Java: There are very nice libraries that take care of the plumbing for you and help you write clean code faster. In this case, the library in question is jMusic.

    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.

  13. midi file indicates CA skil 1 year piano student by auburnate · · Score: 3, Funny

    All one has to do is click the midi link to realize that the tinkering of a first year piano student could easily be mistaken for a celluar automata.

  14. KeyKit by jbum · · Score: 4, Informative

    My personal preference for coding this kind of thing:

    KeyKit, an awk-like language designed specifically for manipulating MIDI data.

    http://nosuch.com/keykit/

  15. Mods vs MIDI by thedogcow · · Score: 0

    Remember .mod files? I always thought mods were better than midi because mods usually had some sort of voice while midis were usually solely instrumental.

    --
    Yes! I listen to NYC Speedcore and do math at 3AM. I suggest you try it too.
    1. Re:Mods vs MIDI by falzer · · Score: 2, Informative

      I don't know about the state of mods (and friends) these days, but at least earlier on midi had much better polyphony and finer time control compared to mods. And lots of music hardware speaks midi.

    2. Re:Mods vs MIDI by Orne · · Score: 2, Informative

      Today it does... But think about when it first appeared... The .mod (.s3m, .xm, etc) format was a bridge between .mid and .wav formats... in MIDI, you have a pure music score, and you rely on the local hardware to decode the song and make it sound realistic. A Waveform is pure audio output, with no track structure to indicate which instrument is supposed to play when, it's just an amalgum of all the frequencies together. Back in 1987 only the Amiga had multivoice sound, and you didn't have all this fancy on-board sound banks. You were supposed to buy a dedicated card for MIDI, or external hardware. Later for IBM PCs, your joystick port was expected to serially connect to a MIDI device that could play the music... which is why it's also called a Roland MPU-401 port.

      The Module format allows you to create a song in pseudo-sheet music form, while it also stores the audio samples for the tracks in the file itself... The song sounds just as good on an 8-bit audio card without a MIDI decoder, as it does on today's 32-bit cards with practically a symphony of samples in ROM. Yes, you were limited to music beats in 1/64th of a measure, and Yes, early .mod formats were 4 voices (now 64), but Modules still fill a niche.

      Ah, information. We can see from this history that the SoundBlaster had their own form of synthesized music in 1989 (OPL2), and didn't support General MIDI until SoundBlaster 16 in 1992.

  16. err excuse me... by MrBigInThePants · · Score: 1

    Did I miss something...

    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 article that was distinctly average here on slashdot.

    1. Re:err excuse me... by benna · · Score: 1

      While it may not sound like the kind of music people make that doens't have to be the point. Some of these are pretty interesting to listen to. Try listening to rule110.midi. That being said rule110 reminds me of some of philip glass's work.

      --
      "It is not how things are in the world that is mystical, but that it exists." -Ludwig Wittgenstein
    2. Re:err excuse me... by JayBlalock · · Score: 1
      Agreed. I have a pretty good grasp on 20th-Cen composition, and the frightning thing is that some of those pieces are better than some avante garde stuff I've listened to.

      Granted, that probably says more about the composers (*cough*cage*cough*) than cellular automata.

      --
      Bush: He's Liberal in all the wrong ways.
    3. Re:err excuse me... by MrBigInThePants · · Score: 1

      I think you missed the point.

      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??

    4. Re:err excuse me... by MrBigInThePants · · Score: 2, Insightful

      Listened to 110 again and still I hold true to my statements.

      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.

  17. Dot matrix music by wash23 · · Score: 4, Interesting

    Okay, this risks being called a bit off topic, but it's so cool (and reasonably relevant) that it has to be mentioned. Dot matrix printer music by this group The User has been around for awhile. It's not algorithmic music, but by printing strings of characters simultaneously to different dot matrix printers they make some pretty interesting sounding stuff.

    1. Re:Dot matrix music by Marillion · · Score: 1

      I know that Peter Gabriel once sampled a dot matrix printer his song Intruder. He added all kinds of processesing, but the dox matrix sound is unmistakable.

      --
      This is a boring sig
  18. Automatous Monk by Anonymous Coward · · Score: 0, Funny

    Tell me when it starts believing things for me...

    %diety bless Douglas Adams

  19. Music using weighted random Markov strings... by Anonymous Coward · · Score: 5, Interesting

    ...might be interesting. Play a note at random, choose a note based on the weighted probability of the next note in a corpus of music, then use the first two notes to figure out the weighted probability of the third, and so on.

    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.

    1. Re:Music using weighted random Markov strings... by k4_pacific · · Score: 2, Funny

      No, its like this:

      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.

      --
      Unknown host pong.
    2. Re:Music using weighted random Markov strings... by GoatJuggler · · Score: 2, Funny

      Wow. I have no idea what you just said, but it reminded me of the Hit Song Science program which is the music industry software that predicts whether a tune is going to be a "hit" or a "miss"

      Appropriately enough for this thread, this article 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 development software to get rich.

    3. Re:Music using weighted random Markov strings... by Knos · · Score: 1

      It will still sound random because you are only generating "familiarity" locally. To make an enjoyable piece you probably have to have another more high level structure.

      --
      . . . . . . . .. . . . . . . .
      may u!sh 2 sm!le at dz!z bad nn.!m!tat!ion
    4. Re:Music using weighted random Markov strings... by Kainaw · · Score: 1

      An alternative to Markov strings would be using a Pink (aka 1/f or Zipfian) distribution. There have been hundreds of studies that show nature follows such a distribution. I've read some that show bird calls follow the same distribution. If the assumption that nature is pleasing is correct, then pleasing music would have the same distribution. So, you can create your string the same way, say you have 122132 and you want the next one. A 2 will make it more balanced in the Pink sort of way. You can keep stretching the string out and adding whatever note keeps the distribution at the optimal level.

      --
      The previous comment is purposely vague and generalized, but all of the facts are completely true.
    5. Re:Music using weighted random Markov strings... by Anonymous Coward · · Score: 0

      This has been done, and quite successfully, I might add. Rick Taube, a professor at University of Illinois wrote a work for Yamaha disklavier based on a variable-length Markov process analysis of "Amazing Grace". The result is a piano work that starts as a vaguely familiar cloud of sound and slowly resolves closer and closer to a recognizable tune. Just as it is about to play the original, it starts to fade back into obscurity.

      Incidentally, Rick is the creator of Common Music, a LISP-based algorithmic composition language that is extremely well thought out. It was mentioned in an earlier post

      C

    6. Re:Music using weighted random Markov strings... by soliptic · · Score: 1
      It was done at least 16 years ago.

      I quote from an essay 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 composer, while other parts are decided by given probabilities. Naturally, this was not born of digital technology, or even electroacoustic music in general, but has a far-longer history dating back to Mozart's dice game (k.294d), for example. However, since computers are such exceptional 'number-crunchers' capable of tracking large numbers of probabilities, they have facilitated the evolution, from Stochasticism, of a new form: 'interactive composition'. Christopher Yavelow's essay 'Composition or Improvisation? Only the computer knows!' - whose title illustrates the way in which digital technology can blur the line between the two spheres in new ways - looked at various methods of of interactive composition available in 1988. These included 'Jam Factory', which used Markov chains, looking back n steps to base the decision on what to do next upon what had gone before. Somewhat different was 'M', descibed as "conduction an orchestra of ideas and transformational processes rather than humans playing instruments".

  20. douglas adams by golgafrincham · · Score: 5, Interesting

    damn, this man was insightful. he wrote about an internet-like structure describing the network of the h2g2 book, but he did also describe (at a very detailed level) how to create and use this kind of sound "tools" in his "dirk gently" novels.

    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".

    --
    beer as in "free beer"
    1. Re:douglas adams by TeknoHog · · Score: 1
      do you wanna know where the matrix authors stole the idea of these human-driven fighting robots?

      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.

      --
      Escher was the first MC and Giger invented the HR department.
  21. Who owns the copyright? by El+Mulo · · Score: 5, Interesting

    Who owns the copyright of the computer generated music? The programer? The user? The machine?

    1. Re:Who owns the copyright? by noelo · · Score: 2, Funny

      the RIAA...consider yourself busted....

    2. Re:Who owns the copyright? by Anonymous Coward · · Score: 1, Informative

      IANAL, but here's how I understand it:

      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 a program that outputs random MIDI notes .. the output is copyright by the person whose efforts created the output .. the operator/musician/whatever.

      I remember an interview with Autechre (they are a popular electronic music duo that often uses algorithms and programs like Max/MSP to create their music). They said they wish they could sell their programs instead of selling static albums, but they didn't want to because the copyright would belong to the person running the program, who could then just record it and sell the CDs.

    3. Re:Who owns the copyright? by Anonymous Coward · · Score: 0

      I do

    4. Re:Who owns the copyright? by Mostly+a+lurker · · Score: 1
      If it was produced on a UNIX-like operating system (probably including Windows 2000/XP) then all rights surely accrue to SCO as it is clearly a derivative work.

      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.

    5. Re:Who owns the copyright? by Anonymous Coward · · Score: 0
      Unless a substantial part of the copyrighted program is included in the output.

      You forget software licenses as well. All software has them these days and they override a lot of defaults.

  22. Re:For the same reason that lots of things are nic by paulbd · · Score: 3, Informative

    jmusic has nothing on the facilities offered by the programs mentioned in the parent. PD is an incredible environment for experimental music composition.

  23. Re:Fractal music (Java Applet) by Anonymous Coward · · Score: 2, Interesting

    I while ago I did my own experimenting with Java generated fractal audio. I took a different approach - using the fractal data to produce raw samples rather than MIDI notes.
    I wrote it up at this page: http://homepages.paradise.net.nz/~andrew-1/fractal /

    (you will need a recent JVM from SUN to use the applet)

  24. from the my-favourite-artist-is-3.14159265.. dept. by Samah · · Score: 3, Informative

    After following some links, here's some cool human-assisted mathematically-generated music:
    http://www.geocities.com/vienna/9349/

    The first prime number and pi midi files are awesome ;)

    Might hafta wait til tomorrow tho - looks like the guy's geocities account got /.'d already =)

    --
    Homonyms are fun!
    You're driving your car, but they're riding their bikes there.
  25. Something similar by Anonymous Coward · · Score: 0

    http://sjsu.rudyrucker.com/~karl.schramm/applet/

  26. Oog. by DoraLives · · Score: 1, Insightful
    As with much bad music, you can listen to it all you want and it still sounds awful.

    I suppose it's all in the ear of the beholder or something. Ah well.

    --
    Is it fascism yet?
    1. Re:Oog. by benna · · Score: 0

      I think this could be really interesting to listen to high.

      --
      "It is not how things are in the world that is mystical, but that it exists." -Ludwig Wittgenstein
  27. Computer Music by Sanat · · Score: 2, Interesting

    This reminds me of the CDC computer that played classical music utilizing the speaker in the console via program loops, also

    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.

    --
    And in the end, the love you take is equal to the love you make
  28. Re:I see... by Samah · · Score: 1

    At uni a couple years back my mates and I found this one temp file on the solaris server in /var/tmp that made a rather awesome repetitive tune. Seriously we all used to play it and it'd get stuck in your head so bad :)

    cat /var/tmp > $AUDIODEV

    =)

    --
    Homonyms are fun!
    You're driving your car, but they're riding their bikes there.
  29. jMusic by thanjee · · Score: 4, Interesting

    Wow - my best friend is one of the developers of jMusic! It is an open source music synthesis and composition package written in java. You can download the latest version from sourceforge.
    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 :)

    --
    Saying your OS is the best because more people use it is like saying MacDonalds make the best food
    1. Re:jMusic by Anonymous Coward · · Score: 0

      if jMusic is as good as jMascis, count me in! Dinosaur Jr rock.

  30. Interesting and all by nate+nice · · Score: 3, Interesting

    This is cool, but I'm guessing the results won't be very...well, great. Theoretically you could construct every bit pattern for say, 1 MB - 5 MB, capturing the typical encoding of an MP3. Then, you select each byte pattern that sounds good. You would in fact "create" every song that has ever been encoded into MP3 format between 1 and 5 MB. The only problem with this is you are creating more byte patterns than there are protons in the universe, so this is of course practically impossible. It doesn't stop with music either. Anything that can be encoded digitally can be "created" this way. Obviously this cannot happen, not with what we know of anyways, so it's pointless. But it is interesting none the less to think that everything you see, hear, use etc in the realm of digitazion can be created with a simple NFA or graph set to take each "path" and then decode what's viable, etc. Perhaps I should create this algorithm and claim all information withen a certain byte range, sueing for copyright infringment anytime something is created on a computer, as my algorithm has created it already. It's interesting to think about how we get to "create" a finite path in a DFA or byte graph that really already exists, but we need to "find" it.

    --
    "If you are a dreamer, a wisher, a liar, A hope-er, a pray-er, a magic bean buyer ..."
    1. Re:Interesting and all by vidarh · · Score: 1
      Thank you for stating the obvious.

      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.

    2. Re:Interesting and all by nate+nice · · Score: 1
      Thank you for stating the obvious


      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 tolerable to humans


      I've heard many groups on the radio that could probably use this program then. :)

      --
      "If you are a dreamer, a wisher, a liar, A hope-er, a pray-er, a magic bean buyer ..."
  31. Copyright by News+for+nerds · · Score: 1

    I can imagine Darl McBride runs it day and night to make and release a "music compilation CD" that consists of 100,000,000 different music patterns and develops a patern comparison program to sue some upcoming musician.

    Seriously, heard it, 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"?

  32. good ole SimEarth by Rubel · · Score: 1

    The terrain-mapped music in that game didn't sound totally awful.

  33. Re:from the my-favourite-artist-is-3.14159265.. de by Samah · · Score: 1

    Hmm seems to be working now...

    --
    Homonyms are fun!
    You're driving your car, but they're riding their bikes there.
  34. Castlevania... by stephenisu · · Score: 1, Funny

    It's a hoax, this is obviously music from a bossfight in one of the castlevania games..

    OK not really, but listen to it!

    --
    Sigs? We don't need no stinking sigs!
  35. Play on words? by tritone · · Score: 1

    Autonomous Monk sounds like a forced play on words on the name of jazz great Thelonius Monk, though I doubt that he would have thought much of the resulting music.

    1. Re:Play on words? by thdexter · · Score: 1

      Clearly it is. On that note, I just finished my first year at the University of Idaho (incidentally, it has the only music college named after a jazz musician--Lionel Hampton, who moved to the town it's in, Moscow, Idaho and helped with the university a lot)... me and some music major friends put together a jazz trio called Theophilus Monk, since I lived in the Donald R. Theophilus Residence Hall Tower. So, marginally more clever. :)

      --
      I'm on a road shaped like a figure eight; I'm going nowhere but I'm guaranteed to be late.
  36. Staff software engineer? by Number44 · · Score: 4, Informative

    I'm puzzled why the poster referred to the title of the guy as "Staff Software Engineer" as if it's something special at IBM. Not to denigrate the work he's done, but 'staff engineer' is not worth mentioning. In context as seen from an IBM Engineers perspective (I'm also staff, fwiw) it's pretty funny that you would even include it. Here's the ranks for those that might care:

    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.

  37. Java vs. specialty languages by jtheory · · Score: 5, Interesting
    It's not the capabilities of jMusic or the Java Sound API that led them to Java. If you just balance a list of capabilities in the musical realm, there are plenty of specialty languages and environments -- i.e., MAX, PD, ChucK, and so on -- that have greater built-in capabilities, because they are languages or scripting engines focussed only on music. That's also the downside of those languages, though; they are specialty languages.

    In '97-'98 I wrote a bunch of music theory training programs for the Music department at my school (they eventually became this website), 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 that suggest why they chose Java for their project:
    Programming in jMusic is programming in Java, not in a meta-language or scripting environment. This means that the full power and cross platform independence of Java is maintained, it also means that the more you know about Java programming the more useful jMusic will be to you. Learning jMusic can be a fun way to gain Java programming skills while focusing on making music.

    [...]Because jMusic has full access to the Java language and support structures, your jMusic work can be as extensive as Java allows (and that is VERY extensive).
    There are more hints at this in the intro of the article, as well.
    --
    There are only 10 types of people: those who understand decimal, those who don't, and, uh, 8 other types I forget.
  38. Please learn how to make links. by Anonymous Coward · · Score: 0
    Please learn how to make links.
    <a href="http://jmusic.ci.qut.edu.au">the jMusic web site</a>
    yields: the jMusic web site
  39. Please learn how to make links. by Anonymous Coward · · Score: 0
    Please learn how to make links.
    <a href=" http://sjsu.rudyrucker.com/~karl.schramm/applet/"> Something similar</a>
    yields: Something similar
  40. Re:Perfect. by Anonymous Coward · · Score: 1, Funny

    I thought you might have had a point, up until I saw the Tori Amos bit. That can be generated by kicking a cat in the nuts.

  41. Please learn how to make links. by Anonymous Coward · · Score: 0
    Please learn how to make links.
    <a href="http://www.doctornerve.org/">Dr. Nerve!</a>
    yields: Dr. Nerve!
  42. Please learn how to make links. by Anonymous Coward · · Score: 0
    Please learn how to make links.
    <a href="http://nosuch.com/keykit/">KeyKit</a& g t;
    yields: KeyKit
  43. Meta Math Music by quantumpunk · · Score: 2, Informative
    Some other interesting music made with math can be found at metamath.org where they made midi tracks based on mathematical proofs. Some of them sound pretty cool. Here is the link: Metamath.org/mpegif/mmmusic

    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 of the proof tree as the proof is constructed by the proof verifier. A fast higher note is produced for each step in the construction of a formula. A sustained lower note is produced when the formula is matched to a previous theorem or earlier proof step, to result in a new proof step (which corresponds to a proof step displayed on the Metamath Proof Explorer page that shows the theorem's proof).

    --
    All science is either physics or stamp collecting. Ernest Rutherford (1871-1937)
  44. Koan: an alternative music engine approach by peteatslashdot · · Score: 2, Interesting

    I'd suggest that interested folks check-out http://www.sseyo.com to see a completely different approach to creating generative music, using SSEYO's Koan music engine, which is actually aimed at deploying mobile devices. The site lets Windows users download a plugin/Active X that allows you to listen to some of the interactive sounds/music, and play with the demos, including the awesome "Do The Space Shake" :)

  45. Grammidity by LarsWestergren · · Score: 4, Interesting

    Another program (written in Java incidentally) which among other things generate music: Grammidity

    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.

    --

    Being bitter is drinking poison and hoping someone else will die

  46. Which Douglas Adams book ... by da5idnetlimit.com · · Score: 1

    where the "hero" created a software to render companies earning report into music, and had it as their best selling soft and main revenue source - just after the software to create spending justifiction that was licensed to various governemental agencies ....

    damn memory ! anyone can contribute their 2 cents and help me upgrade ?

    --
    It takes 40+ muscles to frown, but only four to extend your arm and bitchslap the motherfucker
    1. Re:Which Douglas Adams book ... by revscat · · Score: 2, Interesting

      I think it was Dirk Gently...

  47. how long? by Anonymous Coward · · Score: 0

    before i can tell it to play something i know? or ask it to
    play some skeeneerd?

  48. Using Java for music? by stuntpope · · Score: 1

    Then we can expect all the compositions to be adagios? ;)

  49. Music from Visuals by persaud · · Score: 1

    See Musitives , which uses Java to generate music from pictures.

  50. Re:For the same reason that lots of things are nic by MadAhab · · Score: 1

    The question is: can the cellular automata still be alive when Java is dead?

    --
    Expanding a vast wasteland since 1996.
  51. Not sure what it will sound like, but . . . by Anonymous Coward · · Score: 0

    I'll bet the tempo will be adagio.

  52. music is about stories by johnrpenner · · Score: 1

    The universe is made of stories, not atoms.
    (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 of
    empathy of points of view -- our lives are composed of stories.

    in the happy and the sad, in the alternation of major
    and minor notes, the making and leaving of spaces,
    in the harmony and disonance, sympathy of feelings
    aroused by the experiences in story of our lives gives
    rise to stories in the expression of music.

    music - like fairy tales - doesn't tell the story in a realistic
    photographic form, but tells the story from the emotional aspect.
    empathetic sympathy and identification with ones own story and
    life experience within the sequence of notes gives rise to
    enjoyment of a song.

    while algorithms provide a structure that is used by
    musicians in telling their stories, good music comes from
    the expression of these experiences, and the greatest
    musicians were able to do this with the greatest eloquence.

    an algorithmic pattern may certainly be the producer of
    a sequence of notes in time -- in which one can find
    more or less musical pleasure depending on what one
    brings to it -- yet without a life history of experience to
    inform these notes with stories -- the music is left dead
    and lifeless -- the facade of song -- a charade of music;
    and that is true of any music that isn't played with FEELING
    behind it.

    All one's life is music, if one touches the notes rightly, and in time.
    (John Ruskin)

  53. AI music from the Amiga by maokh · · Score: 2, Interesting
    Back in the day, there was a weird program for the Amiga computer called "Algoplayer". This program used some crazy AI code to generate random MOD-like songs, based on a seed number. Of course, the genre is techno/house!

    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://www.maokhian.com/music/

  54. This isn't new by Walter+Wart · · Score: 2, Informative

    Algorithmic music systems go back at least as far as Mozart. Composers made up algorithms to generate tunes with some sort of randomization (e.g. dice) to make key decisions.

    --
    The man who never alters his opinion is like the stagnant water and breeds Reptiles of the Mind -- William Blake
    1. Re:This isn't new by voodoo1man · · Score: 1

      There are probably better books written on the subject, but I've read Jamie Kassler's Music, Science, Philosophy: Models in the Universe of Thought, which deals extensively with automatic music generation in the past several hundred years. There have indeed been dice-based, rule-based and wind-up based music generation systems going all the way back to the 16th century, and the basic ideas stem all the way from Plato.

      --

      In the great CONS chain of life, you can either be the CAR or be in the CDR.

  55. algorithmic jazz in da house by 0divide · · Score: 1

    Meant to post this earlier--there is a site featuring some pretty cool "algorithmic jazz" pieces by John Clavin here

    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.

    --
    ---mike