Get Audio from File Chooser?

Discussion and feedback on Construct 2

Post » Sat Dec 10, 2016 1:13 am

I'm making an audio visualizer: https://ibin.co/34q0EXKVKX3g.png

I want to be able to choose audio with the file chooser, and it would play the song and visualize it. I've searched for a way to do this but there doesn't seem to be one. If I was able to choose the file, save it into the music or sounds folder, then play it from URL or something that would work. It is not possible for me to do this, however, because of limitations with C2.

I'm wondering if there is any way to do this, or if not, potentially add the ability to do this to Construct. By the way, it must be the Audio object. I have seen that it's possible to play audio by choosing a video file, but the Audio object has the FFT sample, which I need to visualize.

Any help would be greatly appreciated! Thank you for your time.
B
27
S
6
G
5
Posts: 18
Reputation: 3,967

Post » Sat Dec 10, 2016 1:47 pm

B
108
S
26
G
271
Posts: 4,471
Reputation: 151,777

Post » Sun Dec 11, 2016 1:46 am

Does it only do waveform? I'm using spectrum.
B
27
S
6
G
5
Posts: 18
Reputation: 3,967

Post » Sun Dec 11, 2016 2:46 am

@LoneVox

It supports waveform or spectrum(FFT) both, like official audio does.
B
108
S
26
G
271
Posts: 4,471
Reputation: 151,777

Post » Sun Dec 11, 2016 3:27 am

How do I change it to spectrum? In the capx you have it set to waveform and I'm not sure how to change it.
Last edited by LoneVox on Sun Dec 11, 2016 3:30 am, edited 1 time in total.
B
27
S
6
G
5
Posts: 18
Reputation: 3,967

Post » Sun Dec 11, 2016 3:29 am

LoneVox wrote:Does it only do waveform? I'm using spectrum.



spectrum? can u explain that?

im interested more cause it sounds like are 2 separated things, but it might be either ur confusing either im out of loop.

spectrum from my knowledge is the audio spectrum which is the range humans hear... but wont make a difference on a visual audio waveform representation since its basically the same thing as waveform.... isn't it?


can you show what your using as a spectrum with the audio plugin? im just curious on your approach.
B
76
S
22
G
69
Posts: 1,353
Reputation: 43,833

Post » Sun Dec 11, 2016 3:48 am

I kinda get how an audio spectrum works. You can use a method of analyzing data called a Fast Fourier Transform (FFT), which converts an input for a point in time, into a frequency. I hope that's what it is :? . You don't really need to know how it works to understand what you can do with it. For audio you would get the waveform and apply an FFT to it, and you get an audio spectrum. So all it's doing is changing the input data. Waveform is raw audio.
B
27
S
6
G
5
Posts: 18
Reputation: 3,967

Post » Sun Dec 11, 2016 4:32 am

LoneVox wrote:I kinda get how an audio spectrum works. You can use a method of analyzing data called a Fast Fourier Transform (FFT), which converts an input for a point in time, into a frequency. I hope that's what it is :? . You don't really need to know how it works to understand what you can do with it. For audio you would get the waveform and apply an FFT to it, and you get an audio spectrum. So all it's doing is changing the input data. Waveform is raw audio.


ah ok so you where just using the basic audio analyser effect basically as i was ... nothing different. awesome :)
B
76
S
22
G
69
Posts: 1,353
Reputation: 43,833

Post » Sun Dec 11, 2016 4:44 am

gamecorpstudio wrote:ah ok so you where just using the basic audio analyser effect basically as i was ... nothing different. awesome :)


Yeah :) . What are you using it for? I can help you out if you are making a bar visualizer. Or any other thing.
B
27
S
6
G
5
Posts: 18
Reputation: 3,967

Post » Sun Dec 11, 2016 4:58 am

LoneVox wrote:
gamecorpstudio wrote:ah ok so you where just using the basic audio analyser effect basically as i was ... nothing different. awesome :)


Yeah :) . What are you using it for? I can help you out if you are making a bar visualizer. Or any other thing.


i was thinking you found another way for smoothing out the beat detection, like getting the right values for bass and high pitched notes.

like comparing which data is a snare and which is a bass drop, but im guessing if ur using the audio analyser u wold use the general flow and get almost the same results, as i did which are not perfect... not atleast as i want them.


but ur more then welcome if u want to help or see what im doing :D il send u a capx in pm.
B
76
S
22
G
69
Posts: 1,353
Reputation: 43,833

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 10 guests