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.
-
@bwoogie bruhhhh. You definitely did it wrong, but thats not totally your fault because nobody explained to you. I've done this before, thankfully not far into my build so it wasnt so devastating but It did suck.
@Christoph-Hart I think there should be a warning of some sort of 'where' or 'what' is happening to the snippet if the user tries to import. Options could be 'interface' or 'user-defined script editor' would be a cool choice option window.
-
@Chazrox said in Custom reactive audio animation:
I think there should be a warning of some sort of 'where' or 'what' is happening to the snippet if the user tries to import.
It shows this when you attempt to load a snippet and you already have a project open.

-
@d-healey I know that now, but to a new user that didnt mean "clear the project" because it took time to learn what 'preset' meant in HISE ide.
-
@Chazrox It doesn't clear the project, it clears the preset. But yeah the wording is confusing since there are two different things called presets in HISE.
-
@d-healey Yeah pretty much just a scary thing unless you know. haha.
-
i opened it in a new instance of hise, not in my project... but the auto saves even saved in my project. i don't know if it was still using my projects folder, apparently it was. i've turned auto save off now.
-
@bwoogie said in Custom reactive audio animation:
i opened it in a new instance of hise, not in my project.
A new instance of HISE automatically opens the last project - but doesn't open a preset. The autosave will write to that project, but it won't save over the xml file unless you manually save it.
-
@d-healey i guess that explains it. my project crashed before i saved it. anyways, it wont be too hard to restart. just annoying.