Strudel audio reactive, get values from audio output

Hi everyone! Do you know of any function in Strudel that allows you to obtain audio data to create custom audio reactive graphics, something similar to what "scope()" does, but to be able to affect any other DOM element on the page with javascript or p5.js. Regards!

2 Likes

you can use .analyze(id) to let strudel create a Web Audio AnalyserNode in analysers[id] , which you can use to draw anything you want. Check out the tscope function in scope.mjs for an example. Here's a minimal example on how to get the latest fft data within an animation frame:

open the console to see the log
the fft function lets you change the fftSize of the analyser

4 Likes

Thank you very much dear Felix, it is exactly what I need.
Warmest, Ivan

1 Like