Apple's latest update for Logic Pro on both Macs and iPads introduces a new feature called “Flashback Capture”, which saves your takes even if you forget to press record. This feature is designed to work for both MIDI and traditional audio recording sources, rescuing perfect takes that might have otherwise been lost.
Logic Pro “Flashback mode” records takes even if you forget.
https://www.theverge.com/news/675741/apple-logic-pro-flashback-capture