If the source files has a varying tempo then you'll need to tempo map it, if it's a constant tempo then you can use the Alt key and drag the end of the file to align with the beats.
[Linked Image - Only viewable when logged in]