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 4379 times)

Chris_24

  • Bay Watcher
    • View Profile
Re: Procedurally Generated Music
« Reply #15 on: August 13, 2011, 03:53:05 pm »

I've noticed with a lot of songs, there's a few common grouping patterns, and many times multiple layers of rhythm. If the rhythm (at any level) breaks down in a way you can't compensate for in your head, it's not as good.
I think I understand what you mean. I was thinking of adding a way of making multiple rhythms appear less 'busy' - essentially, notes would be more likely to start/end at the same time as other notes. This would make certain beats sound stronger, and simplify how the whole thing sounds together. Is that kind of what you meant?
Logged

Eagleon

  • Bay Watcher
    • View Profile
    • Soundcloud
Re: Procedurally Generated Music
« Reply #16 on: August 13, 2011, 07:16:57 pm »

This might help your rhythms
http://en.wikipedia.org/wiki/Syncopation
I more meant that the bars of a song follow a rhythm of their own, which can be changed a lot more comfortably than the timing itself, but which still get to people if it's changed too much or awkwardly. You can have two, or however many repetitions of a phrase, following a set theme, and then something changes, is added in or removed, and you can do something else with it. I've heard songs that sort of downshift the count of different phrases between sections, by balancing it out with a change in the following section. If you abandon the length of a phrase you get a more chaotic, expressive feel, like at the end of bitSet (or this if you couldn't stand to listen hehe) or with long solos.

I don't know what to call it at all, and it's probably something you already know about >.< But it's so similar to a rhythm (just on a larger scale, with phrases instead of beats) that I don't see why you couldn't consider it one and treat it as such.
Logged
Agora: open-source, next-gen online discussions with formal outcomes!
Music, Ballpoint
Support 100% Emigration, Everyone Walking Around Confused Forever 2044

Chris_24

  • Bay Watcher
    • View Profile
Re: Procedurally Generated Music
« Reply #17 on: August 14, 2011, 05:12:53 am »

Ah, I get exactly what you mean. That's the 'structure' part of my program doing it's work ;)
repetition of rhythms 'n' that ;)
Logged

Chris_24

  • Bay Watcher
    • View Profile
Re: Procedurally Generated Music
« Reply #18 on: August 17, 2011, 04:56:31 pm »

OK, I've programmed an exremely basic GUI for it, so you can generate and instantly hear the MIDI files it produces. This is my first time distributing a python program, this version should work for windows and *maybe* the other os-es. I'll check it on linux tomorrow.

http://dl.dropbox.com/u/10171005/ProGenMusic.exe

Next up: allowing you to change the currently hardcoded variables, and outputting more information about the song (scale, etc.) :)
Logged

Armok

  • Bay Watcher
  • God of Blood
    • View Profile
Re: Procedurally Generated Music
« Reply #19 on: August 17, 2011, 05:50:38 pm »

doesn't work. There is an error message but it closes down to fast for me to read it.
Logged
So says Armok, God of blood.
Sszsszssoo...
Sszsszssaaayysss...
III...

Chris_24

  • Bay Watcher
    • View Profile
Re: Procedurally Generated Music
« Reply #20 on: August 17, 2011, 06:06:34 pm »

Dammit. Thanks for telling me, I'll try to fix it in the morning :)
Logged

freeformschooler

  • Bay Watcher
    • View Profile
Re: Procedurally Generated Music
« Reply #21 on: August 17, 2011, 06:08:48 pm »

I will say a while ago when I tried this program it made me desire a soft, bulbous wall to send my fist through because some of the pieces sounded better than at least half of my recent mini-pieces.
Logged

Chris_24

  • Bay Watcher
    • View Profile
Re: Procedurally Generated Music
« Reply #22 on: August 17, 2011, 06:15:15 pm »

Armok: Just to check, do you have Python installed? I thought I'd bundled it so you wouldn't need it, but you may...
freeformschooler: Haha, well, thank you very much :)
Logged

Willfor

  • Bay Watcher
  • The great magmaman adventurer. I do it for hugs.
    • View Profile
Re: Procedurally Generated Music
« Reply #23 on: August 17, 2011, 06:49:31 pm »

- My take on Output 10.

Track 1 was run through a white noise synth, and placed under heavy effects to create an eerie background. Track 2 was run through an analog synth emulator, and run through EQ and Flanger. Track 3 was run through a dulcimer synth, and then run through EQ, Delay, and then Chorus. Track 4 was run through FL Slayer, and then run through EQ and Reverb. Mixed to allow the various instruments to shine in their areas, but please allow for personal preference.
Logged
In the wells of livestock vans with shells and garden sands /
Iron mixed with oxygen as per the laws of chemistry and chance /
A shape was roughly human, it was only roughly human /
Apparition eyes / Apparition eyes / Knock, apparition, knock / Eyes, apparition eyes /

Hawkfrost

  • Bay Watcher
  • It's way too late to stop.
    • View Profile
Re: Procedurally Generated Music
« Reply #24 on: August 18, 2011, 12:49:45 am »

Same issue as Armok, the error says "This probably means Tcl hasn't been installed properly".
It also mentions "No module named pygame._view".

I have Python 2.6 installed.
Logged

Armok

  • Bay Watcher
  • God of Blood
    • View Profile
Re: Procedurally Generated Music
« Reply #25 on: August 18, 2011, 07:40:29 am »

Yea, I do have python, but pygame hasn't been working.
Logged
So says Armok, God of blood.
Sszsszssoo...
Sszsszssaaayysss...
III...

Hawkfrost

  • Bay Watcher
  • It's way too late to stop.
    • View Profile
Re: Procedurally Generated Music
« Reply #26 on: August 18, 2011, 05:06:29 pm »

Yea, I do have python, but pygame hasn't been working.

It might be a problem related to 64-bit systems, which pygame seems to have issues with sometimes.
Logged

Armok

  • Bay Watcher
  • God of Blood
    • View Profile
Re: Procedurally Generated Music
« Reply #27 on: August 18, 2011, 06:17:36 pm »

Pretty sure mine is 32 bit. And it worked a year or so ago.
Logged
So says Armok, God of blood.
Sszsszssoo...
Sszsszssaaayysss...
III...

Chris_24

  • Bay Watcher
    • View Profile
Re: Procedurally Generated Music
« Reply #28 on: August 19, 2011, 05:26:59 pm »

Okay, I tried again. This time it's just the python source code, so you'll have to download and install python, and pygame. Download links are in the readme.

http://dl.dropbox.com/u/10171005/Procedural%20Music.zip

When you run the "Procedural Music.py", it should bring up a simple GUI, where you can generate new tracks. It should then generate a MIDI file in the Procedural Music folder, and play it (on my computer, it's with a piano-esque synth, I assume it's the same on them all). I'm expecting this to be pretty bug-ridden, since it's my first time distributing a python program, so my apologies in advance, for that.

EDIT: There already seem to be a couple of bugs; a) it shouldn't display the console window, b) you seem to have to close the GUI window twice before the program exits. Can anyone confirm these?

Also, I'm working on linux, so it's likely more unstable on windows.
« Last Edit: August 19, 2011, 05:29:16 pm by Chris_24 »
Logged

Hawkfrost

  • Bay Watcher
  • It's way too late to stop.
    • View Profile
Re: Procedurally Generated Music
« Reply #29 on: August 19, 2011, 07:04:56 pm »

EDIT: There already seem to be a couple of bugs; a) it shouldn't display the console window, b) you seem to have to close the GUI window twice before the program exits. Can anyone confirm these?

Also, I'm working on linux, so it's likely more unstable on windows.

Yes to both bugs, but the program works fine.
It comes up with some cool stuff.
Logged
Pages: 1 [2] 3