Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 [3]

Author Topic: Procedurally Generated Music  (Read 4378 times)

Chris_24

  • Bay Watcher
    • View Profile
Re: Procedurally Generated Music
« Reply #30 on: August 20, 2011, 06:29:55 am »

Great, now I know it works, I'll try and fix up those bugs and add the ability to change hard-coded variables :)
Oh, and I haven't cleaned up the source code in any way for ages, so I wouldn't look too closely at it :P
Logged

Chris_24

  • Bay Watcher
    • View Profile
Re: Procedurally Generated Music
« Reply #31 on: August 25, 2011, 05:55:49 am »

Here's the latest update. Same deal as last time: you need Python installed (2.7, preferably), Pygame and Tkinter (usually shipped with Python). Install links in the readme.txt. Just unzip the file, then run "Procedural Music.pyw" with python. There's a new file, "config.txt", where you can edit the various variables that control what's generated (there's not currently a lot of explanation in that file, but you can have fun playing with numbers anyway ;) ).

The main changes here are a) you can now edit variables yourself and b) pressing "Generate New File" keeps generating 12 bar phrases, which follow on from one another. They'll be produced as "ouput1.mid", "output2.mid" etc., in the root branch of that folder. (ie. "Procedural Music", not "procedural_music"). Currently there's a short pause between each file, as it generates the next one. Ideally this would have been changed, but I'm going to Leeds Festival today, and I wanted to release this before then.

I hope this works for you all :)
http://dl.dropbox.com/u/10171005/Procedural%20Music.zip

btw, my current config.txt settings are by no means the best, if you can find something that produces better results (quite easy, I'd imagine), I will include your file in my next version.
« Last Edit: August 25, 2011, 05:59:21 am by Chris_24 »
Logged

Chris_24

  • Bay Watcher
    • View Profile
Re: Procedurally Generated Music
« Reply #32 on: September 07, 2011, 09:52:12 am »

OK, I just uploaded a new version (this time, you shouldn't need anything extra to run it). It generates 5x12 bar phrases, with each new 12 bar part having one voice change. Check the original post for the download link.
Logged

Eagleon

  • Bay Watcher
    • View Profile
    • Soundcloud
Re: Procedurally Generated Music
« Reply #33 on: September 07, 2011, 01:50:24 pm »

I get this on a fresh install. Seems like it's looking for stuff in my python directory still, maybe a problem with imports defaulting to a python installation first or something where it should be the other way around (local directory). Dunno.
Quote
C:\Procedural Music\Procedural Music.exe\procedural_music\generate.py:167: Runti
meWarning: use mixer: DLL load failed: The specified module could not be found.
(ImportError: DLL load failed: The specified module could not be found.)
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in __call__
    return self.func(*args)
  File "procedural_music\gui.py", line 15, in <lambda>
  File "procedural_music\generate.py", line 167, in __init__
  File "C:\Python27\lib\site-packages\pygame\__init__.py", line 70, in __getattr
__
    self.warn()
NotImplementedError: mixer module not available
(ImportError: DLL load failed: The specified module could not be found.)
Logged
Agora: open-source, next-gen online discussions with formal outcomes!
Music, Ballpoint
Support 100% Emigration, Everyone Walking Around Confused Forever 2044

Ultimuh

  • Bay Watcher
  • BOOM! Avatar gone! (for now)
    • View Profile
Re: Procedurally Generated Music
« Reply #34 on: September 07, 2011, 01:56:11 pm »

I get this on a fresh install. Seems like it's looking for stuff in my python directory still, maybe a problem with imports defaulting to a python installation first or something where it should be the other way around (local directory). Dunno.
Quote
C:\Procedural Music\Procedural Music.exe\procedural_music\generate.py:167: Runti
meWarning: use mixer: DLL load failed: The specified module could not be found.
(ImportError: DLL load failed: The specified module could not be found.)
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in __call__
    return self.func(*args)
  File "procedural_music\gui.py", line 15, in <lambda>
  File "procedural_music\generate.py", line 167, in __init__
  File "C:\Python27\lib\site-packages\pygame\__init__.py", line 70, in __getattr
__
    self.warn()
NotImplementedError: mixer module not available
(ImportError: DLL load failed: The specified module could not be found.)

Same thing happens to me..
Logged

Chris_24

  • Bay Watcher
    • View Profile
Re: Procedurally Generated Music
« Reply #35 on: September 08, 2011, 01:56:23 am »

Ah, OK. Sorry about that, guys. I'll get it sorted ASAP - thanks for the help :)
Logged

Svampapa

  • Bay Watcher
    • View Profile
Re: Procedurally Generated Music
« Reply #36 on: September 21, 2011, 12:47:33 am »

!!!science!!!

Radioactive orchestra

Weirdly fun. For a few minutes.
Logged

Chris_24

  • Bay Watcher
    • View Profile
Re: Procedurally Generated Music
« Reply #37 on: September 22, 2011, 11:31:42 am »

Here we go. Sorry again for all the buggy uploads I've made, but this one works:
http://dl.dropbox.com/u/10171005/Procedural_Music.zip

Download, unzip and run "Procedural Music.exe". Pressing "Generate Music" creates (or overwrites) "output.mid", which you should then be able to play, or load into a soft-synth and edit. Quality of output obviously can vary a lot :)

First post has been updated as well.
Logged
Pages: 1 2 [3]