Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › HOW TO EVALUATE NODES OF AUDIO AMPLITUDE IN AFTER EFFECTS?

  • HOW TO EVALUATE NODES OF AUDIO AMPLITUDE IN AFTER EFFECTS?

    Posted by Chouhdry Atif on January 1, 2021 at 2:06 am

    Hello everyone, Happy new year to all of you 🙂

    I am working on a project which is includes something as an audio visualizer. I want an expression which counts the higher and lower node of the AUDIO AMPLITUDE layer, of course I can go and manually check from graph section of AUDIO AMPLITUDE layer but I want to universalize it. I mean no matter what song I put it automatically creates those nodes and then I can link the files to this layer so that they only react to higher nodes.

    Thank you everyone.

    Filip Vandueren replied 5 years, 8 months ago 2 Members · 1 Reply
  • 1 Reply
  • Filip Vandueren

    January 3, 2021 at 5:08 pm

    Simply go through all the keyframes and keep a tally.

    For example on a point control (convenient, because you can have the minimum on [0] and the maximum on [1] of the point in 1 control)

    posterizeTime(0);

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

    min_val = Number.POSITIVE_INFINITY;

    max_val = Number.NEGATIVE_INFINITY;

    for (k=1; k<=prop.numKeys; k++) {

    val = prop.key(k).value;

    if (val>max_val) { max_val=val }

    if (val<min_val) { min_val=val }

    }

    [min_val, max_val]

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy