Skip to main content
Participant
Jan 11, 2017 4:50 AM UTC
Answered

Convert Audio to Keyframes Not Accurate

Hello, I'm a music producer and I'm trying to sync parts of my visualizer to parts my song, specifically the drums. So I exported the kick and snare track and converted that to keyframes, expecting the keyframes to spike at the transients. However, in the space between the drums the keyframes hover around 30% even though there is complete silence at that point in the audio file. The transients also only peak at around 50%, even though they reach 0dbfs in the audio file. Why is this and is there a way to fix it?

-GlitchMaster

This topic is closed to new replies. Start a new post to keep the conversation going.
GlitchMasterCorrect answer
Participant
Jan 11, 2017 6:46 AM UTC

Wait! I figured it out, converting the audio to keyframes converted all the audio in the composition into keyframes, not just the trigger. All I had to do was mute the song then convert the trigger!

-GlitchMaster

6 replies

Mylenium
Legend
Jan 11, 2017 6:23 AM UTC

You have a wrong understanding how this works. This simply converts the overall amplitude within the frequency range, not specific "hits" or whatever. Unless your hits are exactly one sample long at a maximum amplitude of 100% and also happen to be exactly at the correct time position, they will never max out. The rest doesn't really matter. One would simply remap/ multiply or whatever the values in the expression that actually uses them. This is a common workflow.

Mylenium

Translate
GlitchMasterAuthorCorrect answer
Participant
Jan 11, 2017 6:46 AM UTC

Wait! I figured it out, converting the audio to keyframes converted all the audio in the composition into keyframes, not just the trigger. All I had to do was mute the song then convert the trigger!

-GlitchMaster

Translate
Melankaya
Known Participant
Dec 21, 2023 10:17 AM UTC

You should look into expressions. That's the effective way to use Audio to Keyframes.

In CC 2017 you should see values for Both channels of about 11 or 12 for zero DB if you look at the graph editor.

I'm not sure what you are driving or where you are getting 50% but here's how you write an expression that takes everything from 49.9 and below to zero and everything from 59 and above to 100 that you could apply to the scale of a layer. Just using the audio to keyframe values will not produce a quick on and off. This expression basically sets everything below 49.9 to zero and everything from 50 and above to one hundred.

t = thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider");

s = linear(t, 49.9, 50, 0, 100);

[s, s]

With this particular clip I decided that 4.62 was my switch point buy looking at the graph editor.

So the expression to switch an audio layer on and off every time that the audio crossed above 4.62 that the layer would scale to 100%. I set the upper value to 6 to give the scale a little motion.

t = thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider");

s = linear(t, 4.62, 6, 0, 100);

[s, s]


Is there any chance you could point me to a youtube tutorial on how to do this from scratch, pretty please? Its exactly what I need

Translate
@ m e l a n k a y a