Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Automatic Music with Perl

by larsen (Parson)
on Mar 12, 2002 at 17:07 UTC ( #151249=CUFP: print w/replies, xml ) Need Help??

You certainly recall OeufMayo's Transcramble. I tried to apply the same technique to music. You can read about the results here: Automatic Music With Perl.

<milk> larsen, I am quite struck by them.. from listening to them you can tell they are meant to have musical structure, and they sound like they are intentionally musical, but they contain no coherent musical "thought"
<milk> if you know what I mean?
<milk> they are like a sentence which is grammatically correct, but has no meaning because it is nonsense

Some more points about this stuff...

  • Given a girl interested in modern music, Duchamp's art and so on, you could even try to impress her...
  • I think we have found the first real-life example of use of Tie::Hash::Cannabinol :))
  • You could try some kind of automatic jazz improvisation, feeding the program with a MIDI file containing a lot of scales and phrases.

Update: Here a direct link to the code.
Update: I received an interesting link about generative arts:

Replies are listed 'Best First'.
Re: Automatic Music with Perl
by Cody Pendant (Prior) on Mar 13, 2002 at 02:44 UTC
    I think this is wonderful. I love it when computers are used to produce art.

    The only thing that could make it better is if it ran endlessly.

    I was dreaming about this the other day.

    The idea was for an online, realtime composition engine, which would just output music endlessly, but there could also be the opportunity for user input, for instance if I could use a web interface to ask for "more rhythmic", "more random", "change key", and so on.

    ($_='jjjuuusssttt annootthhrer pppeeerrrlll haaaccckkeer')=~y/a-z//s;print;
Re: Automatic Music with Perl
by gellyfish (Monsignor) on Mar 17, 2002 at 11:37 UTC

    You might also want to peruse every once in a while ...


Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: CUFP [id://151249]
Approved by root
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2023-09-28 08:17 GMT
Find Nodes?
    Voting Booth?

    No recent polls found