Author Topic: PMusic - Procedural Music Generator  (Read 15245 times)

0 Members and 1 Guest are viewing this topic.

Offline Rhombicuboctahedron

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 437
  • Rating: +41/-6
    • View Profile
Re: PMusic - Procedural Music Generator
« Reply #15 on: May 03, 2013, 11:03:52 pm »
Awesome!
The only sad thing is that there are billions of songs, and some may get really good 100 seconds into it (I like 117 90 seconds into but others might not listen that long) and we will never know what is good
Also, try 497, 503 and 510

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: PMusic - Procedural Music Generator
« Reply #16 on: May 03, 2013, 11:53:57 pm »
13579 and 24680 sound cool.
I like milk.

Offline cooliojazz

  • Support Staff
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 619
  • Rating: +66/-9
  • I omnoms on your soul
    • View Profile
    • Unreal Phantasies
Re: PMusic - Procedural Music Generator
« Reply #17 on: May 04, 2013, 01:43:54 am »
Yeah, but isn't that kind of the cool thing about generated music at the same time? Someone who is willing to spend time listening can always find cool new things at every turn.

Watch as I change one tiny thing and every seed sounds completely different, MUAHAHAHAHAHA!!! Actually, not really, mostly this update just makes each seed a bit lower in pitch.
Major changes: Added a shuffle method which automatically increments the seed every 30 seconds, for those who quickly tire of the same seed. Added a bass part which plays quarter and eighth notes on the root of the chord, varied by octave. Added a drum checkbox for those who dislike the drums playing.
Minor things: Balanced parts a bit. The root note has a slightly smaller range of values. Made internal code more awesome.
New version is attached. Should I leave the old versions attached to the other posts in case someone likes the old versions better or something for some reason?
« Last Edit: May 04, 2013, 01:50:11 am by cooliojazz »
Spoiler For Random signess:
You can not beat my skills.
Trust me.
So don't even try.
And remember never to trust someone who says, "Trust me."

TI File Editor Progress: Remade in java like a boss. 50% we'll call it? IDK =P
Java Libraries: JIRC - 90% JTIF - 5%
TI Projects: Unreal Notator - -5000%
Nomcraft, a Bukkit mod
Some of the music I write can be found here | The Rest Should Be Here (Bandcamp)

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: PMusic - Procedural Music Generator
« Reply #18 on: May 04, 2013, 01:59:58 am »
This is pretty cool. Kind of fun mashing random numbers into it to see what it comes up with :P
327098723409872 Sounds interesting.

How big can a seed get? Guessing there's a max size because after enough numbers it doesn't change.
Vy'o'us pleorsdti thl'e gjaemue

Offline cooliojazz

  • Support Staff
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 619
  • Rating: +66/-9
  • I omnoms on your soul
    • View Profile
    • Unreal Phantasies
Re: PMusic - Procedural Music Generator
« Reply #19 on: May 04, 2013, 02:04:07 am »
haha, isn't it? And 9223372036854775807 (Long.MAX_SIZE) is the largest possible seed, though theoretically it should let you type in any size of number, it just might crash when you click change :P
Spoiler For Random signess:
You can not beat my skills.
Trust me.
So don't even try.
And remember never to trust someone who says, "Trust me."

TI File Editor Progress: Remade in java like a boss. 50% we'll call it? IDK =P
Java Libraries: JIRC - 90% JTIF - 5%
TI Projects: Unreal Notator - -5000%
Nomcraft, a Bukkit mod
Some of the music I write can be found here | The Rest Should Be Here (Bandcamp)

Offline Axenntio

  • LV3 Member (Next: 100)
  • ***
  • Posts: 40
  • Rating: +3/-0
    • View Profile
Re: PMusic - Procedural Music Generator
« Reply #20 on: May 06, 2013, 10:27:20 am »
Very good sound d*0*b
You can try to make a midi export :o
We select how pattern we want and he automaticaly export in .mid
(Hard isn't it ? :p)

Offline cooliojazz

  • Support Staff
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 619
  • Rating: +66/-9
  • I omnoms on your soul
    • View Profile
    • Unreal Phantasies
Re: PMusic - Procedural Music Generator
« Reply #21 on: May 08, 2013, 01:06:52 am »
Not terribly actually :P I was already using midi to play the notes, so I just needed to redirect them to a file. I was already planning on doing that, but you hurried that to the foremost task haha. New version!


New stuff
-There are now modes. Instead of choosing chords 1-6, it will either choose chords 1-5 (Major mode; 3 major, 2 minor), 2-6 (Minor mode; 2 major, 3 minor) , or 3-7 (Combo mode; 2 major, 2 minor, 1 diminished). This makes it more likely for a song to have a more definite feel. The mode of the current seed is displayed in the title bar.

-Midi exporting! When the Midi Export checkbox is checked, every time you change the seed, all the notes played since last time you changed the seed are exported in midi format to the file "[seed].mid" where seed is the current seed. This may seem a bit weird, to only save when changing seeds, but for simple automatic exporting from an infinite source, it only makes sense to save when the source changes :P (Or stream the data, but psh, who writes those kinds of systems ;) Seriously though, diong this would require me to not abuse the built in midi file writer, which im not ready to move away from quite yet.)

-Lots of minor things about how exactly it changes seeds which you probably won't notice unless you are very closely paying attention XD

New version attached!

NOTICE: I am 100% not responsible for the huge amount of files that will be generated if you turn on both exporting and shuffle and leave it running for an hour (That would generate ~120 files for those curious). *Cooliojazz runs*
« Last Edit: May 08, 2013, 01:08:19 am by cooliojazz »
Spoiler For Random signess:
You can not beat my skills.
Trust me.
So don't even try.
And remember never to trust someone who says, "Trust me."

TI File Editor Progress: Remade in java like a boss. 50% we'll call it? IDK =P
Java Libraries: JIRC - 90% JTIF - 5%
TI Projects: Unreal Notator - -5000%
Nomcraft, a Bukkit mod
Some of the music I write can be found here | The Rest Should Be Here (Bandcamp)

Offline MGOS

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +95/-0
    • View Profile
Re: PMusic - Procedural Music Generator
« Reply #22 on: May 08, 2013, 10:51:06 am »
This program is awesome! I thought of making something similar for android which detects the bpm you're running and auto-generates some music for jogging.
1789 sounds really nice :)

Offline Axenntio

  • LV3 Member (Next: 100)
  • ***
  • Posts: 40
  • Rating: +3/-0
    • View Profile
Re: PMusic - Procedural Music Generator
« Reply #23 on: May 08, 2013, 11:59:21 am »
Yea MIDI File !
This program is very awesome !
And the generating sound very cool !

Ear !
I use the midi file into FL Studio and I've add instrument with de same notes.
« Last Edit: May 08, 2013, 12:11:42 pm by Axenntio »

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: PMusic - Procedural Music Generator
« Reply #24 on: May 09, 2013, 03:17:28 am »
New version doesn't run for me, in either 6 or 7 :/  The window opens and has the fields and everything, it just doesn't play.
Spoiler For terminal output:
[email protected]:~/Music$ java -jar PMusic.jar
Exception in thread "main" java.lang.NoSuchMethodError: javax.sound.midi.MetaMessage.<init>(I[BI)V
   at com.up.pmus.Main.changeSeed(Main.java:260)
   at com.up.pmus.Main.setupStuff(Main.java:235)
   at com.up.pmus.Main.main(Main.java:51)
Edit: verbose paste from irc http://pastebin.com/tnaAZCWg
« Last Edit: May 09, 2013, 02:51:29 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55931
  • Rating: +3153/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: PMusic - Procedural Music Generator
« Reply #25 on: June 07, 2013, 10:44:38 pm »
Darn that is quite interesting. Some seeds gives some rather good results, such as 8000.

If there are some epically sounding songs that can be generated with this program, this program could almost be used in a video game for generating soundtrack :P
« Last Edit: June 07, 2013, 10:46:22 pm by DJ Omnimaga »