-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix quantization in the effect engine (metronome effect) #13636
Merged
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
27baedd
Skip copy if source is equal the destination the copy is unnecessary …
daschuer 77cdbac
Rename beat_fraction to beat_fraction_buffer_end to clarify that the …
daschuer 92ffa72
Avoid unnecessary seconds round-trip in GroupFeatureState
daschuer 22b7c29
Remove unused include
daschuer 808c09c
GroupFeatureState: std::optional
daschuer c0cbd6a
Add scratch_rate to GroupFeatureState to allow to quantize effects du…
daschuer 8454cce
Fix quantization with the metronome effect. It was one buffer off.
daschuer 6c67cd8
Introduce m_actual_speed with is what the scalers actually did.
daschuer 885e9ef
Don't snap "beat_next" and "beat_prev" to the nearest beat. This was …
daschuer 8ea3457
Fix the metronome effect during scratching using scratch_rate.
daschuer c3f084d
Don't use std::optional::value introduced in macOS 10.13
daschuer e5ff7f3
default GroupFeatureState ctor
daschuer 1fecf39
Improve readability in meronomeeffect.cpp
daschuer 11af751
Fix use of GroupFeatureState in LoudnessContourEffect
daschuer 9293b51
refactor: move metronome sampledata into separate translation unit
Swiftb0y 5e74ec6
Fix metronome without a sync enabled
daschuer 26d3029
Avoid to fade in the metronome effect, because this would mangle the …
daschuer 2081952
Combine frames and scratch_rate into one optional because they are al…
daschuer f019874
refactor: use higher-level `std::span` based logic
Swiftb0y File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the changes here are really hard to follow because they mix offset and timing calculations with buffer indexing (mixing levels of abstraction) and thus I'm neither confident about the reliability nor safety of the code...
Do you think its feasible to reorganize it a little so its easier to understand?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tried to fix that by calculate everything in frames. Maybe I was not too successful or comments are missing.
Can you give some hints what can be improved?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will rework it a little and open a PR to your branch ASAP.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please take a look daschuer#97