Page 1 of 1

Any examples/advice on FFGL audio input for creating visualizers?

Posted: Sun Jun 06, 2021 19:15
by domegod
I saw from the release notes that "The FFGL plugin standard is updated to version 2.0. Plugins can now receive Audio FFT input to create audio visualizers."

However from looking around the repo, I cannot figure out how to use it.

I was able to get a parameter here:

Code: Select all

std::shared_ptr< ffglqs::ParamFFT > audiofft;
AddParam( audiofft = ffglqs::ParamFFT::Create("AudioFFT"));
I see that I now have an FFT with 2048 samples. However, when I check the values, they are all 0. Also, the calls I make to fns like GetBass(), GetVolume() etc. also return 0. Am I accessing the data wrong? Trying some expressions like

Code: Select all

this->audioParams[ audiofft ].GetBass()
audiofft->fftData[ 50 ]
Also tried using this directly in my frag shader like

Code: Select all

uniform float AudioFFT[2048];
but no luck there either.

I see my plugin & parameter in Resolume and I'm pretty sure that part is configured right - tried with both Composition and External audio. Just feeling pretty lost with the c++ side of things and haven't found any info when I search. Any help would be appreciated!

Re: Any examples/advice on FFGL audio input for creating visualizers?

Posted: Tue Jun 08, 2021 13:25
by Menno
I'm not sure about the ffglqs classes, but if you're able to use standard ffgl you could have a look at the particles example inside the ffgl repo. It creates an fft input and uses the values to control the number of particles that spawn for each bin. To see the effect in arena you need to play some audio in one layer and the plugin in another. Also the number of particles need to be raised, the plugin itself is kind of broken, but the information on how to use fft is there.

Re: Any examples/advice on FFGL audio input for creating visualizers?

Posted: Mon Aug 30, 2021 02:49
by ANimator
I agree that there should be more examples of how to use the FFT input in the examples. Having a simple EQ visualizer example in the docs would go a long way. Not sure why one wasn't included in https://github.com/flyingrub/ffgl/tree/more/ or https://github.com/resolume/ffgl. How are we supposed to make the most of our features if no docs are provided...

Would welcome anyone sharing any progress or demos they have.

Re: Any examples/advice on FFGL audio input for creating visualizers?

Posted: Tue Sep 14, 2021 16:54
by flyingrub
https://github.com/flyingrub/ffgl/blob/ ... ea.cpp#L64
There is an example for fft input in here :)