-
Audio count
Hello fellow creators, it’s my first post here, I hope I’m not crossing any rule.
A little bit of context on what I’m trying to achieve:
I’m a music maker, and I’ve decided to create video templates for my music videos (a different template depending on if it’s a remix, or an original piece, etc). For one of my templates, I wanted to make a beat counter, so that I could change a rotation value by x degrees everytime there’s a beat (cumulatively).
Here’s what I’ve done so far:
– I’ve created a Spectrum layer, with an Audio Spectrum effect reacting to my audio, and a Scanner Layer with a small shape in it, that I use for getting alpha information via sampleImage();
– I’ve decided to use that instead of the AudioToKeyframes method, so that the template require less actions everytime I use it (just have to change audio, and not create the keyframes everytime, plus it lets more freedom to adapt the scanner to react to something else altogether than the kick via frequency targetting);
– I’m using a test layer with a few Sliders on it: a Base Slider, using the expression “time*10” to get its value, an Inc Slider which gets a fixed value for increasing/decreasing the rotation, and an Output Slider, with the following expression:
if(kick==1){x=base+inc;}else{x=base;}; x
(where kick is the value of sampleImage[3], and other variables point to similarly named sliders)
This slider is then used as the layer’s rotation value.
The trouble I’m having is that the rotation increase doesn’t stick, because of course, when the kick gets out of my scanner, the expression tells the engine to go back to base value.
So, I tried adapting Dan Ebbert’s Audio Beat Counter, but I don’t know if it’s the while loop iteration for the song’s duration, or if it’s the fact that I rely on scanImage, but the rendering of just that took forever. And that’s without all the other animations I’ve already done and hidden.
So, yeah, is there a way to actually increment the rotation value, without spending more than 2hrs rendering a 5min video of a text layer rotating with each kick? I’m sure it’s not a processing power issue, since I usually have no trouble working with AE and Ps and Ai open, multitasking on the visuals.
There’s got to be a simpler way, without using the audiotokeyframes way? I unfortunately can’t always separate the sounds I want my video to react to into different audiofiles for different audiotokeyframes triggers, using the spectrum+sampleImage method shows such flexibility that I’d rather stick with it.
Sorry for the excruciatingly long post, I went for details, let me know if that’s too much and I’ll shorten my next ones 🙂
P.S. By the way, a thousand thanks to Dan Ebbert for the real useful website and work, still available freely to this day. Dan, you’re the man.