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.
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.
Ah the pattern is procedural not the notes which are just old midi.
Count the number of bits set to 1 in the integer ... oh too early...
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".
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! :)
Auld: Will check those out tonight! :)
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...
Let's see how long I can work with this in my ears...
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.
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.
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.
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 ;)
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.
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.
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.
Any news?
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 :-)
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 :-)
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?
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?
Skrebbel, this shit is called max4live or something. Or maybe even supercollider.
I guess you guys all have heard about the sc140 project by now, so I won't post it.
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?
gloom: procedural music doesn't imply that there's no artist, no?
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.
and procedural music does not imply random.
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?