-
-
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
Added Metronome context menu #6119
base: master
Are you sure you want to change the base?
Conversation
PlayHandle( TypeSamplePlayHandle ), | ||
m_sampleBuffer( sharedObject::ref( sampleBuffer ) ), | ||
m_doneMayReturnTrue( true ), | ||
m_frame( 0 ), | ||
m_ownAudioPort( ownAudioPort ), | ||
m_defaultVolumeModel( DefaultVolume, MinVolume, MaxVolume, 1 ), | ||
m_defaultVolumeModel( DefaultVolume, MinVolume, MaxVolume, 1 ), | ||
m_volumeModel( &m_defaultVolumeModel ), |
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.
cannot find usage of m_volumeModel, has this become obsolete?
🤖 Hey, I'm @LmmsBot from github.com/lmms/bot and I made downloads for this pull request, click me to make them magically appear! 🎩
Linux
Windows
macOS🤖{"platform_name_to_artifacts": {"Linux": [{"artifact": {"title": {"title": "(AppImage)", "platform_name": "Linux"}, "link": {"link": "https://14507-15778896-gh.circle-artifacts.com/0/lmms-1.3.0-alpha.1.134%2Bgaaee174-linux-x86_64.AppImage"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/14507?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}], "Windows": [{"artifact": {"title": {"title": "32-bit", "platform_name": "Windows"}, "link": {"link": "https://14508-15778896-gh.circle-artifacts.com/0/lmms-1.3.0-alpha.1.134%2Bgaaee17407-mingw-win32.exe"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/14508?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}, {"artifact": {"title": {"title": "64-bit", "platform_name": "Windows"}, "link": {"link": "https://14510-15778896-gh.circle-artifacts.com/0/lmms-1.3.0-alpha.1.134%2Bgaaee17407-mingw-win64.exe"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/14510?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}, {"artifact": {"title": {"title": "32-bit", "platform_name": "Windows"}, "link": {"link": "https://ci.appveyor.com/api/buildjobs/xxa3ikfa11319ptg/artifacts/build/lmms-1.3.0-alpha-msvc2017-win32.exe"}}, "build_link": "https://ci.appveyor.com/project/Lukas-W/lmms/builds/40289950"}, {"artifact": {"title": {"title": "64-bit", "platform_name": "Windows"}, "link": {"link": "https://ci.appveyor.com/api/buildjobs/oa55ax4fkbqglemn/artifacts/build/lmms-1.3.0-alpha-msvc2017-win64.exe"}}, "build_link": "https://ci.appveyor.com/project/Lukas-W/lmms/builds/40289950"}], "macOS": [{"artifact": {"title": {"title": "", "platform_name": "macOS"}, "link": {"link": "https://14509-15778896-gh.circle-artifacts.com/0/lmms-1.3.0-alpha.1.134%2Bgaaee17407-mac10.14.dmg"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/14509?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}]}, "commit_sha": "1c32653db321467b0e083913fdb29075ef70f448"} |
I found a bug in the metronome context menu behaviour. Do I report it here or on the main tracker? |
@Monospace-V What problem is it? Have you searched the issues? We have quite a few bugs reported for the metronome. |
The problem is specifically with the behaviour of metronome context menu, and I've copied out the format of a bug report and filled it in: Metronome context menu remaining open in some casesBug SummaryWhen triggered by certain user behaviour, the metronome context menu can remain open and move to the background as a separate window. The context menu cannot be opened again until it is returned to the foreground and interacted with. Sometimes, the window can even remain open after LMMS is closed. Steps to reproduce
Expected behaviorMetronome context menu should close when not in foreground. Actual behaviorContext menu remains open as another separate window. In my case, it was possible for me to close LMMS and the context menu remains open even after closing unless interacted with. Screenshot(Video) RFecHtk8Z6.mp4Affected LMMS versions(The one downloaded from this pull request) |
Ok, got it. That belongs here. |
@Monospace-V thanks for having an eye on it, I didn't try that out. However I 'm having difficulties reproducing it, especially step 2. I cannot figure out, how not to interact with the context menu as it intentionally already closes once I move the cursor away from the menu-area. For me I may either interact with the controls in the menu or it closes the window. As this internally goes back to a Qt feature, could it be an outdated lib or is this really a thing specifically for Windows? |
My VM won't even run the AppImage, so I can't tell. |
Ok I managed to reproduce it, let me see |
…en requested and forced closing the menu on exiting LMMS
…en requested and forced closing the menu on exiting LMMS
67f8531
to
80fc225
Compare
Fixed on your side too @Monospace-V ? |
Where do I download it? I do not have the necessary tools or skillset to compile. |
@Monospace-V He meant the new binaries found here: #6119 (comment) |
Why not do it using QMenu and QWidgetAction, instead of opening a new window? Then you wouldn't need to manually close it when focus is lost. And maybe use Knob and LcdSpinBox to make it look more LMMS themed? PS we need 3/4. |
@Monospace-V you can get it by clicking "Show all checks" > "Details" below this message. |
Thanks, Alex! However, it does close when LMMS is closed. |
I updated the design to something that fits a little more into the concept, taking into account @allejok96 's QMenu hint, it's true I like it a little better (from design and coding perspective) I generally would be happy to finalize the frontend, so I'm open for any remarks. |
Also it seems like we're lacking a common color definition, as the implementations I saw always come with a local numeric assignment, correct or where can I find the right color definition? |
Yep thanks for pointing out, my opinion is, this is acceptable. As it either gets closed on main application exit or the user is getting forced to make a decision if he doesn't want to get annoyed by an opened menu |
Agreed. |
|
FYI Possible fix for the flaky metronome sounds #6149 |
I'm just guessing here but using Knob.h or AutomatableSlider.h (vertical only?) would give it the correct style by default. Style is defined in data/themes/default/style.css. |
I've notice some issues:
|
This PR adds additional settings to the Metronome, previously discussed here
This PR does not fix the timing issue #4038