-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Don't fill notes that overlap slightly #7569
base: master
Are you sure you want to change the base?
Conversation
How do other DAWs fill notes? Trying to make sure that this is the expected behavior. |
@@ -766,6 +770,79 @@ void PianoRoll::fitNoteLengths(bool fill) | |||
} | |||
|
|||
|
|||
|
|||
bool fillGapsBetweenNotesInVector( |
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.
bool fillGapsBetweenNotesInVector( | |
static bool fillGapsBetweenNotesInVector( |
This could be static since it's only used in this translation unit.
// TODO remove the code for fill=true | ||
// it has been replaced by fillGapsBetweenNotes() | ||
bool fill = false; | ||
|
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.
Would it make sense to also remove the old code as part of this PR?
If a note overlaps the next by a hair, pressing shift+F will fill it all the way across the other note. That's annoying.
This PR fixes that by only filling overlapping notes if the overlap by more than 50%