Sound Visualization

New releases and general discussions.

Post » Thu Oct 09, 2008 1:56 pm

[quote="BROO":2ih9xns1]If XAudio2 would have "get pointer to buffer" expression, then everything should be all right. And if you're going to make 0..20kHz in few bars like in Winamp, you'll have to sum/average parts of array.[/quote:2ih9xns1]

BROO: What are the minus frequencies representing :o? I don't quite get why does the function return those also.


I just began to wonder if it is possible to combine the frequencies afterwards and input them back to XAudio2 :D. I was thinking some kind of controllable equalizer...
B
3
S
2
G
5
Posts: 263
Reputation: 2,201

Post » Thu Oct 09, 2008 2:10 pm

I don't have that much theorethical knowledge, but I know that negative frequencies don't have representation in real world, althought they're part of it. If you think about electrical stuff alternating current: it has its Real and Imaginary part. Only te Real part is useful, but they both are vital to describe the current.

Similar situation is with FFT. Normally FFT algorithms does output array of Complex Numbers (this conversion I shown in 3 posts above is shortcut: Real->Complex conversion and Complex.Abs() conversion put together). You can do IFFT (Inverted FFT) only when giving output array of Complex Numbers containing both positive and negative frequencies.

To put it simply: negative frequencies aren't useful for you, but when trying to get FFT^-1 function, you need them.

[quote:30aw7lup]I just began to wonder if it is possible to combine the frequencies afterwards and input them back to XAudio2 :D. I was thinking some kind of controllable equalizer...[/quote:30aw7lup]
IFFT would theorethically do that (available in FFTW as well). Anyway I haven't seen anybody implementing such functionality.

Edit:
...Well actually Winamp's Eqaualizer does something like this ^^.
B
6
S
3
G
6
Posts: 219
Reputation: 3,013

Post » Thu Oct 09, 2008 3:21 pm

[quote="Drasa":byjh77g9]I just began to wonder if it is possible to combine the frequencies afterwards and input them back to XAudio2 :D. I was thinking some kind of controllable equalizer...[/quote:byjh77g9]
There is a built-in four-band equalizer in the XAudio2 SDK, but I haven't got round to adding any effects to XAudio2 yet. Do you think I should add it?
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Thu Oct 09, 2008 4:39 pm

Well I think that basic equalizing would be cool effect, and very useful for mood changes in the background voices/music. If it isn't huge trouble to add, go ahead! At least I would appreciate it :)
B
3
S
2
G
5
Posts: 263
Reputation: 2,201

Previous

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 6 guests