Skip to main content
Known Participant
September 1, 2018
Answered

Particles opacity react to audio AE

  • September 1, 2018
  • 3 replies
  • 2568 views

Hello, I have a little problem and I can not figure out how to do this effect, i want to make the particles(downloaded from youtube, not made in AE) to react to the audio(audio amplitude), like when the song units are down, the particles to stay at 30% opacity, something like this, and when the units are up, the opacity to stay at 100%. The same thing like here:  BOXINLION - Now (ft. Lexie) [Lyrics] - YouTube (min 0:50).

Thank you!

    This topic has been closed for replies.
    Correct answer Kyle Hamrick

    Sorry, I think you actually responded between the time I first opened this thread and when I submitted my response.

    The linear function might be helpful here. In the opacity property of your particle layer (or within the particle effect you're using, depending on the exact look you're after), try adding this expression:

    audio = pickwhip this to the "Both Channels" value of your created Audio Amplitude ;
    audioMin = make this the minimum value of the audio amplitude you want the expression to "see" ;
    audioMax = make this the maximum value of the audio amplitude you want the expression to "see" ;
    opacityMin = 30;
    opacityMax = 100;

    linear ( audio, audioMin, audioMax, opacityMin, opacityMax)

    This will align the values more precisely, so when the audio dips to whatever the minimum value is (we'll say 0, for the sake of discussion here), the opacity will be 30. When it hits the maximum level (just scrub through the timeline and see where it looks like it's maxing out), it'll be 100.

    Let me know if this doesn't seem to be what you're after.

    3 replies

    Kyle Hamrick
    Community Expert
    Community Expert
    September 2, 2018

    Can you share some screenshots of what you're trying to do?
    This expression works correctly when applied to an Opacity property. Are you applying it to a property with more than one value, like Position, Scale, etc.?

    AndrewL32Author
    Known Participant
    September 2, 2018

    Here is: Imgur: The magic of the Internet

    For the Particles I dont use any effect, just the opacity.

    I'm using some effects like position, scale but for the text. Which is in a pre-compose group.

    Kyle Hamrick
    Community Expert
    Community Expert
    September 2, 2018

    Well, I'm not sure what you're encountering here. I copy/pasted the exact expression from your post, and it works correctly.

    Are you applying your particle effect to this .wmv? Or just using that for testing purposes?

    Kyle Hamrick
    Community Expert
    Community Expert
    September 1, 2018

    On your audio layer, you can right-click > Keyframe Assistant > Convert Audio to Keyframes.
    This will give you a numerical value for the left/right/combined channels' amplitudes. You can use these values to drive any property you like using expressions (easily done via the new property pickwhip, if you're in the latest version of AE). Depending on the look you're after, you may need to add a little math to get the exact look you want. We can help you fine-tune a bit if you get stuck.

    Agree with Mylenium that there should be quite a few tutorials out there on this and similar techniques.

    AndrewL32Author
    Known Participant
    September 1, 2018

    I explained before (for Mylenium), I know the basics and I watched at many videos on Youtube for the 'audio reaction', but i think that i need some help at the math, as you mentioned.

    Thanks for the help btw guys!

    Kyle Hamrick
    Community Expert
    Kyle HamrickCommunity ExpertCorrect answer
    Community Expert
    September 1, 2018

    Sorry, I think you actually responded between the time I first opened this thread and when I submitted my response.

    The linear function might be helpful here. In the opacity property of your particle layer (or within the particle effect you're using, depending on the exact look you're after), try adding this expression:

    audio = pickwhip this to the "Both Channels" value of your created Audio Amplitude ;
    audioMin = make this the minimum value of the audio amplitude you want the expression to "see" ;
    audioMax = make this the maximum value of the audio amplitude you want the expression to "see" ;
    opacityMin = 30;
    opacityMax = 100;

    linear ( audio, audioMin, audioMax, opacityMin, opacityMax)

    This will align the values more precisely, so when the audio dips to whatever the minimum value is (we'll say 0, for the sake of discussion here), the opacity will be 30. When it hits the maximum level (just scrub through the timeline and see where it looks like it's maxing out), it'll be 100.

    Let me know if this doesn't seem to be what you're after.

    Mylenium
    Legend
    September 1, 2018

    Look up any "audio reaction" tutorial and apply the principles to the layer's opacity.

    Mylenium

    AndrewL32Author
    Known Participant
    September 1, 2018

    I already tried that, and unfortunetly it works but a little bit.

    I set the opacity of the particles video to 30%, after that I typed in the expresion field '30+' and connected the opacity to slider.

    This isn't the result wich i want.