How to export stems with the exact pattern length?

Sorry…but I’m new here. Is there a way/workaround to export pattern stems to the exact length of the pattern without any tails. Do I need to set off notes? Or will that crop the pattern to that exact step?