pouët.net

Go to bottom

Procedural Ambient

category: general [glöplog]
Quote:
I'm using XAudio2, maybe you should update your DirectX. Might also only work on Vista/Win7, can't test it on XP atm, sorry.

You do realize that as of Windows 6 and directx 10 direct-audio is pretty much depreciated.

Also, even if someone has dx 11, they have to "update" their DX, especially with some of these tiny demos, because there is a tendency to reference a specific version/typelib revision (dx3D10_39.dll, dx3D9_28.dll).

Also, it is not working for me, and I have vista...

Also also also, especially with ATI, it may be outputting over HDMI instead of the soundcard or onboard audio; or in general when there are multiple audio devices.
added on the 2009-12-10 04:34:56 by QUINTIX QUINTIX
I managed procedural "sound". I'd hate to call it music, in http://www.pouet.net/prod.php?which=24951 . Code is here http://in4k.untergrund.net/index.php?title=About_Hive. The idea is to add a constant value to an int and count the number of bits in the int and nuse this as the note to output. The resulting integer sequence is surprisingly fractal in nature.
added on the 2009-12-10 08:00:38 by auld auld
Ah the pattern is procedural not the notes which are just old midi.
added on the 2009-12-10 08:01:25 by auld auld
Count the number of bits set to 1 in the integer ... oh too early...
added on the 2009-12-10 08:10:08 by auld auld
Quintix: Yes, I know, that's why I'm usind XAudio2, which is from the XNA Framework (included in DirectX). The deprecated module is "DirectSound".
added on the 2009-12-10 08:46:50 by xTr1m xTr1m
Quintix: It'd be cool if you could disable those extra sound devices and test it again. That'd be helpful for debugging.
Auld: Will check those out tonight! :)
added on the 2009-12-10 08:50:04 by xTr1m xTr1m
I think this has a lot of potential, been listening to this for a few long minutes now and it would definitely make my rotating cubes "look better" ;)

Let's see how long I can work with this in my ears...
added on the 2009-12-10 09:09:24 by nulstein nulstein
i think the hard part about making procedural music is letting the code decide "what sounds good". if you tell the code what sounds good, i.e. certain drum patterns might sound good - and let the code decide on the bpm and the instruments - then you would be closer to success :-)

atleast, that's what i recall from my studies on multimedia aestethics and digital audio.

you could also do music the way aphex twin did it. i can't really recall the song name,but at some point there was a tune where the histogram was a picture of the ugly-aphex-twin.
so, what i'm saying is that you should pre-program a set of patterns and let the code decide on instruments, notes and speed :-)
I made a very simple procedural ambient generator for pouet.net/prod.php?which=19483. I cannot recall the exact internals but it involves inserting sequences of bursts of noise into delay lines that have filtered taps that feedback in to the delay line.
added on the 2009-12-10 10:36:34 by bruce bruce
Quote:
I think this has a lot of potential, been listening to this for a few long minutes now and it would definitely make my rotating cubes "look better" ;)

Let's see how long I can work with this in my ears...

Cheers! I also had it running for at least half an hour without really getting annoyed by it. I'm not sure how much more work I can put into this, but I'd surely like to make the sounds a bit less primitive.
added on the 2009-12-10 13:04:12 by xTr1m xTr1m
Hey, a chance to plug a 9 year old piece of software once again... Did you know that with libv2 1.5 you can send midi notes to the synth pretty easily? Just so you know in case you don't want to waste time on a synth backend when experimenting ;)
added on the 2009-12-10 13:25:52 by kb_ kb_
Hey kebby, I thought of using v2, but I didn't in the end because I want this to be 4k capable if it gets good. But for rapid prototyping I guess it'll be better using v2. Too bad that I can't pump my data to 4klang.
added on the 2009-12-10 14:04:12 by xTr1m xTr1m
I'm BACK!!!

Anyways, disabling sound over hdmi did nothing.
In fact, looks like the program gets stuck in an infinite loop on my system (it takes up %100 of a hardware thread on my P4, after allocating 100mb of memory...)

Ran fine on my father's system and my laptop.
More details pending.
added on the 2009-12-13 09:24:36 by QUINTIX QUINTIX
Any news?
added on the 2009-12-16 12:25:37 by xTr1m xTr1m
if i'm ever going to do procedural music again, i'm going to make a scriptable vst host. problem with any random music generator that i've encountered is simply that the sound is shit - after all, it's some homecooked synth and not some guy's €50.000,- studio. i guess that a good way to fix that is to make a vst host, hook up a good set of synths and samples and effect for a particular genre (or have a good musician do so), with only a certain set of parameters that can be varied.

then, a coder can script notes and parameter values in whatever way he wishes. i.e. do some sort of randomized genetic algorithm to distill a beat pattern from a small set of pre-cooked beat patterns, maybe do some harmonics code for melody patterns, generate some long-stretching envelopes as input to other code blocks for progression, etc. would be fun to try out.

of course you'll end up with a random song that sounds pretty much the same for a long while, but then again half the electronic genres are like that :-)
added on the 2009-12-16 12:53:38 by skrebbel skrebbel
Quote:
then, a coder can script notes and parameter values in whatever way he wishes.


Isn't that what 4k music coding is all about?
added on the 2009-12-16 14:33:57 by trc_wm trc_wm
Quote:
then, a coder can script notes and parameter values in whatever way he wishes.


Isn't that what 4k music coding is all about?
added on the 2009-12-16 14:33:58 by trc_wm trc_wm
Skrebbel, this shit is called max4live or something. Or maybe even supercollider.

added on the 2009-12-16 14:50:27 by _-_-__ _-_-__
I guess you guys all have heard about the sc140 project by now, so I won't post it.
added on the 2009-12-16 14:50:55 by _-_-__ _-_-__
Skrebbel: Good point, but I think the question is even more fundamental - why would we want randomly generated "music"? Isn't the music supposed to come from somewhere, to say something - say, from the artist that created it?
added on the 2009-12-16 15:37:59 by gloom gloom
gloom: procedural music doesn't imply that there's no artist, no?
added on the 2009-12-16 15:42:37 by kusma kusma
I can say at this point all my test systems have Vista SP2, the latest directx (all the appropriate xaudio#_#.dll). However my personal desktop does not use realtek. It has a VIA Envy24 PCI addon board. (The integrated sound died, so that is disabled from the bios). I think both my laptop and my father's computer has realtek.
added on the 2009-12-16 16:03:30 by QUINTIX QUINTIX
and procedural music does not imply random.
added on the 2009-12-16 17:18:06 by _-_-__ _-_-__
kusma/knos: No, that is indeed true. I guess I just have a hard time seeing what exactly is procedural about it - if we're talking simply waveform generation then procedural music have existed for decades, but if we're talking about letting an algorithm take charge of the notes and song progression, well, then the artist aspect of the music generation becomes diminished, doesn't it?
added on the 2009-12-16 19:47:37 by gloom gloom

login

Go to top