mirror of
https://github.com/LMMS/lmms.git
synced 2026-05-16 10:46:39 -04:00
This PR modifies how the Detuning tool works in the piano roll to let the user modify the automation curve right on the notes. This is actually fairly simple, as automation clips already contain the functions for dragging and removing points like in the Automation Editor. So essentially all that's being done is calculating the relative pos of the mouse to the nearest note, and setting the drag value in the automation clip to that position and key. You can still access the old automation editor version by shift-click messmerd asked if the code could be made general for any future note parameter besides detuning, in preparation for CLAP per-note parameter automation. I have refactored the relevant functions to accept an enum type for the kind of note parameter, although currently only detuning is supported. --------- Co-authored-by: Sotonye Atemie <sakertooth@gmail.com> Co-authored-by: Sotonye Atemie <satemiej@gmail.com> Co-authored-by: szeli1 <143485814+szeli1@users.noreply.github.com>
6.0 KiB
6.0 KiB