Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio nodes FFT and IFFT #34

Open
artofmus opened this issue May 8, 2015 · 5 comments
Open

Audio nodes FFT and IFFT #34

artofmus opened this issue May 8, 2015 · 5 comments

Comments

@artofmus
Copy link

artofmus commented May 8, 2015

@geloescht do you have any ideas how to implement FFT and IFFT in HTML Audio nodes (simple interest))

@geloescht
Copy link
Contributor

Already works, see FFT (HTML5 Audio), used to be called Analyser. With IFFT I assume you mean synthesis , which should be possible by the "custom" setting of Oscillator, but I haven't looked into that yet.

@artofmus
Copy link
Author

artofmus commented May 8, 2015

I mean in audio rate. To make fft eq for example)

@geloescht
Copy link
Contributor

I don't know how an equaliser would be implemented with Web Audio. My first guess is using multiple BiquadFilters. Maybe there is also a way using and audio workers, but as they are not ready yet in browsers I won't look into that now. It seems to me like Analyser is not fit for that purpose. Please do your own research if you really need such an implementation.

@artofmus
Copy link
Author

artofmus commented May 8, 2015

I mean it would be cool if we could perform in VVVV.js such things as spectral delay shift stretch randomize etc.. It may be possible to do with ScriptProcessorNode inside processor.onaudioprocess function, but I do not know how best to do it mathematically. Here we encounter a tangle in channels (mono signal will have two channels for this process, one for real other for imag.). In general, it is somewhat problematic, but it would be great), I asked just because I was wondering, maybe you've already is working in this direction. 'll try to make something of it. If i have any success, I'll let you know.

@mikebelanger
Copy link

I've had some success doing FFT by using Tonejs. Have you thought about incorporating tonejs?

Here's the wrapper I used : https://tonejs.github.io/docs/#Analyser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants