Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects repeating the same sound in the same keyframe

  • repeating the same sound in the same keyframe

    Posted by Richard Tkachuck on February 6, 2017 at 8:23 pm

    I want to have the same sound (1-2 seconds in length) repeated at different erratic intervals to fit with the illustrated action. (Might be a gunshot, door slam, bird tweet, whatever). I can make this work with individual key frames for each sound, but this take up a lot of real estate on my work space if the sound is repeated, say, 10 times or so. Can I stimulate this action using one keyframe? Would rather not continually edit a single audio file, but rather insert multiple copies of the same sound put into one key frame. ( I did not know how to search for this in the archives. How might I have done this. Don’t want to be a newbie and clutter the list space.)
    Richard

    Kevin Camp replied 9 years, 6 months ago 2 Members · 1 Reply
  • 1 Reply
  • Kevin Camp

    February 6, 2017 at 11:16 pm

    if you are looking to repeat a sound within the same audio layer, you could use time remapping to repeat it, and you could trigger that repeat with a layer marker….

    enable time remapping for the audio layer, and try this expression for time remap:
    n = 0;
    if ( marker.numKeys > 0 ) {
    n = marker.nearestKey( time ).index;
    if ( marker.key( n ).time > time ) {
    n--;
    }
    }

    if ( n == 0 ) {
    0;
    } else {
    time - marker.key( n ).time;
    }

    then add some layer markers to that layer when you want to trigger the sound.

    if you wanted to try and go further, i think you could have an audio pre-comp with many sounds in it (each butted front-to-end) and then a layer that would have named markers (like gun shot, bird chirp, etc.) for the start of each sound.

    then you could bring that audio comp into the main comp, enable time remapping and use a more complicated expression (found here at motionscript.com), then add a marker with the name of the sound that you want to trigger (guns shot, bird chirp, etc.) when you want the sound to play….

    Kevin Camp
    Art Director
    KCPQ, KZJO & KRCW

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