Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initial support for undo/redo #13

Merged
merged 6 commits into from
Sep 7, 2021
Merged

Add initial support for undo/redo #13

merged 6 commits into from
Sep 7, 2021

Conversation

mwylde
Copy link
Owner

@mwylde mwylde commented Sep 7, 2021

This PR adds support for undo/redo of certain operations on loopers:

  • Recording
  • Adding an overdub layer
  • Clearing a loooper

Currently undo stacks are maintained on a per-looper basis, and the UI buttons are configured to send to the current looper.

As undo/redo operation can change the looper length and state in unpredicatble ways, we can no longer reasonably track those separately in the frontend and backend. Now, they live solely in the backend and are shared with the frontend in a lock-free manner via Arc<Atomic<_>>.

@mwylde mwylde changed the title Add undo/redo Add initial support for undo/redo Sep 7, 2021
@mwylde mwylde merged commit a507ea1 into master Sep 7, 2021
@mwylde mwylde deleted the undo branch September 7, 2021 04:40
@mwylde mwylde mentioned this pull request Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant