Adds automation flipping.

Implements #1289.
Perhaps this commit:  https://github.com/Spekular/Automation-Flip/commit/ddbf9cd26448ac4b779cf39aaeaf6c9ac650a52b