We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello!
I did not find anything where I can set up some kind of Snap to grid, e.g. for snapping to half / full or whatever-fraction-of-grid steps.
If this is true and I did not overlook something, I would have a small addition for PianoRollNoteView I could add as a PR.
PianoRollNoteView
Also if you don't mind, can you add the "hacktoberfest" topic to the repo? I'd like to participate with that PR :)
Add a method that "clamps" the value to a given fraction inside of the existing snap(...) method.
snap(...)
e.g. when clamped(n.start, 0.25) is used, it would snap to 0, 0.25, 0.5, 0.75 and 1 (and so on).
clamped(n.start, 0.25)
This also nicely works with the preview rectangle shown when dragging around.
I searched for an existing implementation in the package but did not find anything.
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Hello!
I did not find anything where I can set up some kind of Snap to grid, e.g. for snapping to half / full or whatever-fraction-of-grid steps.
If this is true and I did not overlook something, I would have a small addition for
PianoRollNoteView
I could add as a PR.Also if you don't mind, can you add the "hacktoberfest" topic to the repo? I'd like to participate with that PR :)
Proposed Solution
Add a method that "clamps" the value to a given fraction inside of the existing
snap(...)
method.e.g. when
clamped(n.start, 0.25)
is used, it would snap to 0, 0.25, 0.5, 0.75 and 1 (and so on).This also nicely works with the preview rectangle shown when dragging around.
Describe Alternatives You've Considered
I searched for an existing implementation in the package but did not find anything.
Additional Context
No response
The text was updated successfully, but these errors were encountered: