Repository navigation
feat(looper): fixed loop length in bars - #246
Merged
Merged
Conversation
A Length setting (Free, 1, 2, 4 or 8 bars) ends the first recording by itself on the last bar line, and the loop plays at once. The bars count from the first recorded beat, after the count-in. A length that does not fit the 30 s at the tempo is shortened to the longest one that fits. Closes #245
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #245
Adds a Length setting to the looper: Free, 1, 2, 4 or 8 bars.
What it does
The 30 s limit
The + key stops at the longest length that fits in 30 s at the current tempo and time signature.
If a tempo or time signature change later makes the chosen length too long, the recording gets the longest length that still fits, or Free when not even one bar fits.
The stored setting is not changed: the chosen length comes back once it fits again.
The page always shows the length the next recording will get.
UI
Tests
Unit tests in
audio::looperfor the bar length math, the end on the exact sample, the count-in, the 30 s cap and its fallback, keys pressed during a fixed recording, overdubs keeping the length, and old sessions loading as Free.cargo fmt, clippy (default and minimal features) andcargo testpass locally. Checked the page in a headless run at 800 × 480.User guide: the matching change for openrig-doc (tuner-looper page) follows separately.