Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Looping sound by markers

  • Steve Roberts

    January 1, 2006 at 6:22 pm

    You could try this:

    1. Add markers (* on the numeric keypad) to the footage layer, indicating where each footstep occurs
    2. Apply time remapping to your “single-footstep” audio layer.
    3. Extend the out-point of the audio layer to the end of the comp.
    4. Convert the second keyframe to a hold keyframe (right-click on the keyframe and select “toggle hold keyframe”)
    5. Move one frame to the right and scrub the time-remap value (drag the value with the mouse) so it reads 0. This will “rewind” the playback of your sound to the beginning.
    6. Select these 3 keyframes and Copy them.
    7. Move to the next frame where the footstep occurs and Paste the 3 keyframes. Do a RAM preview to test.
    8. If it works, go ahead and Paste the 3 keyframes where each footstep occurs (at each marker).

    I just tried this, so it works. 🙂

    If the footstep sound is too long for the time available between footsteps, you may need to create 2 footstep audio layers: one for the left foot, and one for the right foot.

    Good luck, and Happy New Year!
    Steve

  • Filip Vandueren

    January 1, 2006 at 9:37 pm

    Here’s the expression-way:

    1. Add markers (* on the numeric keypad) to the footage layer, indicating where each footstep occurs
    2. Apply time remapping to your “single-footstep” audio layer.
    3. Extend the out-point of the audio layer to the end of the comp.

    4. Give the time-remapping property of the sound-layer this expression:

    l=thisLayer; // change this to the layer that has the markers. just select 'thisLayer' and then pickwhip to the layer.

    t=0; i=0;

    if (l.marker.numKeys) {
    m=l.marker.nearestKey(time);
    i = m.index-((m.time>time) ? 1 : 0);
    t= (i==0 ? 0 : l.marker.key(i).time);
    }
    if (i>0) {
    time-t;
    }

    That should do the trick.
    If you actually apply the markers to the Audio-layer, you don’t need to change the first line of the expression.

  • Filip Vandueren

    January 2, 2006 at 12:41 am

    Just a quick repost, because the comment in line 1 wrapped after posting: that would have given errors.

    to recap:
    use this code on the audiolayer,
    if you have the markers on another layer, change the first line.


    l=thisLayer;
    t=0; i=0;

    if (l.marker.numKeys) {
    m=l.marker.nearestKey(time);
    i = m.index-((m.time>time) ? 1 : 0);
    t= (i==0 ? 0 : l.marker.key(i).time);
    }
    if (i>0) {
    time-t;
    }

    Steve’s suggestion of using 2 different footsteps is a good idea BTW.

  • Mike Clasby

    January 3, 2006 at 8:58 pm

    Wow, that is great stuff, thanks mucho.

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