Trim Note to Remove Overlaps for Adjacent \
Shortens a note to prevent _interference_ with other notes. A simple example would be a note being played for an entire beat plus a bit more. When converting these notes to a score you could get interesting forms of ties and rests. This cleans thing up so the notation (and potentially _voice stealing_ from a MIDI device) will be clear and concise.
Resize notes in the Piano Roll Editor in Logic Pro — Apple Support
There are a number of commands in the Edit > Trim submenu in the Piano Roll Editor menu bar to change the length of selected notes, in relation to notes surrounding or overlapping them. They can be very useful for tidying up the start and end points of notes.