1

I was wondering how does one create a sliding waveform in After Effects? I know how to do a static one (since there is a simple effect for it) but I have no idea how to do a progressing one that slides from one side of the screen to the other one for as long as the audiotrack lasts.

Thanks in advance!

1

2 Answers 2

2

Simple. Get the waveform of your audio file (You could screenshot the audio file in a sound editor to do this). Animate it moving sideways.

Less simple: Bring the audio into your comp. Right click the audio layer and chose Animation Assistant>Convert audio to keyframes

enter image description here

Now use the keyframes to drive the scale, rotation, position etc of some elements of your comp. E.G. you could add a solid and apply this to the scale property:

[value[0], value[1]*thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider")]

That will multiply the vertical scale of the solid by the amplitude of the audio (both channels).

If you make an array of layers like the one above you can offset the time at which they read the audio level. You can use the valueAtTime() function to use each solid layer's index (the layer number) to add a two frame delay to each successive layer like this (two or more frames looks better than one frame, because a one-frame delay makes it look like you used method 1):

[value[0], value[1]*thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider").valueAtTime(time + index*thisComp.frameDuration)]

Pro tip: easily make a horizontal array of your solid layers by using this on the position property: [index*width*1.2 - width/2, thisComp.height/2] that will line up the layers horizontally with a small gap between each one. Remove the *1.2 bit to align them next to each other. Apply that expression to one layer and just keep duplicating till you've filled your screen.

Here's an example which I've pre-comped with an adjustment layer over the top to give graduated colour to the bars:

enter image description here

also, turn on motion blur, it'll look a lot betterer.

2
  • But wont I need tons of layers then? Anyways, cool idea. Thank you! :)
    – CrazyQwert
    Feb 14, 2016 at 16:42
  • Yes, (or you could use a shape layer with lots of shapes) . But by using the expressions the layers can be generated by duplicating the first layer repeatedly.
    – stib
    Feb 14, 2016 at 20:05
-2

The Trapcode Sound Keys plugin can do this quickly and easily. http://www.redgiant.com/products/trapcode-sound-keys/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.