Skip to content

Make Tiny Notes Easier to Move#8386

Merged
regulus79 merged 5 commits into
LMMS:masterfrom
regulus79:dynamic-note-resize-grip
May 15, 2026
Merged

Make Tiny Notes Easier to Move#8386
regulus79 merged 5 commits into
LMMS:masterfrom
regulus79:dynamic-note-resize-grip

Conversation

@regulus79
Copy link
Copy Markdown
Member

Essentially the same fix as #8385, but for notes in the Piano Roll.

Before:

2026-05-13.14-13-01.mp4

After:

2026-05-13.14-09-29.mp4

Comment thread src/gui/editors/PianoRoll.cpp Outdated
// clicked at the "tail" of the note?
if( pos_ticks * m_ppb / TimePos::ticksPerBar() >
m_currentNote->endPos() * m_ppb / TimePos::ticksPerBar() - RESIZE_AREA_WIDTH
if(x + m_currentPosition * m_ppb / TimePos::ticksPerBar() >
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

FYI I changed this from comparing the mouse position in ticks to comparing the mouse position in pixels, since at high zoom levels, ticks get very wide, and they don't provide enough resolution.

Comment thread include/PianoRoll.h Outdated
Comment thread src/gui/editors/PianoRoll.cpp Outdated
Comment thread src/gui/editors/PianoRoll.cpp Outdated
Comment thread src/gui/editors/PianoRoll.cpp Outdated
}


int PianoRoll::resizeGripWidth(tick_t noteLength) const
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Given how this is used, you could probably change the parameter to const Note& note and then call note.length() inside this function. That would make call sites a little nicer.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done in 49c6026

regulus79 and others added 2 commits May 14, 2026 16:56
Co-authored-by: Dalton Messmer <messmer.dalton@gmail.com>
@rubiefawn rubiefawn added enhancement gui needs testing This pull request needs more testing labels May 15, 2026
@regulus79 regulus79 merged commit 89f83b0 into LMMS:master May 15, 2026
11 checks passed
@rubiefawn rubiefawn removed the needs testing This pull request needs more testing label May 15, 2026
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