Custom reactive audio animation
-
Hi, I'm new and creating my first plugin in hise.
I'm trying to create an animation that reacts to the playing sample of my plugin. I'm able to draw the animation, but getting the audio has been a chore. Essentially I'm trying to make a custom audio analyzer panel. In my interface script i'm drawing on a panel, but how do i get the audio coming from my sampler?
Some direction would be appreciated, thanks.
-
You can put a simple gain in your signal chain and then use
.getCurrentLevelfor your animation.https://docs.hise.audio/scripting/scripting-api/effect/index.html#getcurrentlevel
Update the animation with the panel's timer. 40ms are 25 fps what should be enough.
If you want to draw an analyser it is also possible to get this data with scriptnode. I can post some demo code when I'm back on my computer.
From the simple gain you'll only get volume data. No frequency data. For this you'll need the scriptnode analyser demo code.
-
@Oli-Ullmann Ok i get it!
I looked at the Scriptnode Visualisation 101 snippet. It shows how to use global cables. So for my animation, i'd like to split the signal maybe 6 ways, then bandpass each signal into a peak and then it's own global cable.I was looking through the filters and didn't see what i needed. I might need to use a highpass and a lowpass for each band?
The most important thing is, if i bandpass these how can i just "throw the signal away" when i'm done with it? I don't want to affect the signal since this is purely for visuals only.
-
@bwoogie Use a split node with two chains inside that will be your dry chain and your bands chain. In the band chain, insert another split with as many chains as you want bands inside. End that bands chain with a clear node so itβs not adding to the original dry chain signal of the outer split.
In all "chain bands" place a filter and a global cable -
Well I got it working but my project got overwritten by the snippet..



i absolutely hate hise's project management.