-
-
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
Project export window fixes #7724
Conversation
Interesting! I dived into my screen setup to see if I had done anything sketchy and as it turns out there was something that popped up. I had the screen set to max resolution which is higher than the real on board screen. So the graphic card and Qt has been working extra hours to keep up with my demands and reinterpret the screen. The funny thing is that the only glitch I've found so far was that one window in LMMS. Nothing else. I solved it on my side by setting the resolution to the built-in screen and that will work on my side. Considering that no other window glitches on the laptop with wrong setting, maybe there is a better way to draw that window, but I think for now the problem is on my side. If there is something that needs fixing it's for someone else.
Thanks for the review! |
cb0bb5e
to
6ebfb22
Compare
Reopened for the loop export fix. |
This is an odd PR because the history for it says a lot more than what it does. What I can read from the diff is that someone wanted to have segments looped more than 99 times. I'm not sure where this value was chosen from and I'm also not sure where 999 comes from. I see no reason to make this anything less than what the underlying model value supports. That said, no objections. |
Yes. It got messy as the original start of this PR was invalid and I choose to force push. Messy. Tempting to make a separate new PR instead. Loop lengthAt 99 maximum loops a one measure beats exported length is 3m 18s.
When I export a 1 measure loop 9999 times at 120 bpm it comes out at 3h 22m 53s. Should I open a new PR? |
Agreed.
Right because 4GB size limit, but that's only WAV. Other output formats would behave differently. I don't see a reason to set a limit.
Maybe I misunderstand.... What's wrong with this one? |
As per this comment:
I can make a cleaner one. |
Oh! No need for a new PR, it was more of a casual observation. |
I bumped the value to 9999 and exported an organ loop with random arpeggiator elements, filter sweep, and delay/reverb, over some five hours in both wav and ogg and it was glorious. I had a go at removing the loop count maximum completely but it would default to 99 anyway. It looks like some default value in Qt or at least not as something I can do anything about. Just bumping the maximum number of loops seem to me as an acceptable tradeoff. |
If there's nothing preventing it, should the max be the underlying model max? (e.g INT_MAX, UINT_MAX or whatever?) |
Yes, the default max for a QSpinBox in Qt Designer is indeed 99 (arbitrary default set by the tool). Same as our old max.
You would need to do that from on the c++ side and not in the Qt .ui file (xml) it's going to increase the complexity. This means that someone else need to fix this (which I'm perfectly fine with). It sounds like quite a bit of an overkill since now you can loop it for some fiver hours and if you need more, and off course there is people out there that do, there's always someone..., but in that case you can extend the pattern to be longer than one measure. We used to be limited to ~3 minutes and now it's ~6 or so hours. Good enough for me. ;) |
No, sorry, I didn't mean to suggest that we calculate it from C++, I meant to steal a sane value from C++. For example, if unsigned integer on 32-bit is a baseline, perhaps a value of |
OK. Grok says:
So... Sure about this... 🥲 |
We may not have enough time in our life to test out this value, but it makes sense (mathematically) works and doesn't crash, merging. |
K. I'll Squash/merge after the tests have run. |
Perfectly fine to just merge... |
Two small changes.
Edit: Only one fix left here. The increased number of loops on export.
1 - Fix a glitch in the project export window. Glitch visible with for instance FLAC export.2 - Increase number of max loops when exporting to 999. I need more. You also need more.
Edit: This issue was on my side and related to os selected screen size.

Buggy file format settings windowFixed
