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

Fix Clip Creation Quantization in Song Editor #7763

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

regulus79
Copy link
Contributor

When you click to add a clip on a track in the Song Editor, it adds it quantized to the previous bar, no matter what the snap size is set to. Similarly, when dragging a sample from the sidebar onto a sample track, the sample clip is created quantized to the last bar, ignoring the snap size.

This PR addresses this issue by adding proper quantization based on the song editor snap size (also subtracting half of the snap size so that it always rounds down).

Copy link
Collaborator

@qnebra qnebra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quickly tested by drag & dropping samples from sidebar and adding elements. Unless there is some sneaky bug hiding, it works like it should do.

@rubiefawn
Copy link
Contributor

Also tested, looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants