DlgTrackInfo: add editable tuning field - #16029
Conversation
|
Works good. Thank you. While it looks good from the layout aspect, I am just a bit torn about the place between Genre and Grouping. What are alternatives? For me it is good enough for a first version |
I got it. Row Input Right Col |
eab4a78 to
1e93999
Compare
Hmm, this is a bit tricky IMO. On the one hand, we currently have long text fields on the left and short num fields/stars/key on the right. Otoh, Tuning and the Offset label should better be in a row, ideally also close to Key. |
1e93999 to
dd96801
Compare
|
i have removed the extra (AI) comments although I kept some I though would be good. (Rebased to one commit) |
|
This is still using the old layout which is suboptimal IMO. |
That layout looks great to me. I'll implement it — Key, Tuning, and Offset all in one row below Grouping makes more sense. |
|
What's tricky about a QHBoxLayout in the second column? commit is here 84f5a8d7d2 |
|
Thanks! Got it working with a QHBoxLayout — used Expanding instead of Preferred for the size policy as it looked better. Will add a small spacer between Key and Tuning too. Introduced another bug in the process that I'm currently tracking down, will push once that's fixed. |
d76befd to
f147893
Compare
|
Implemented the layout changes you suggested. Also fixed two issues I noticed along the way — a merge conflict from my BPM lock PR (#16025), and a bug where the tuning spinbox always showed 400 Hz even for tracks with analysed tuning data. |
Update: ended up using right-alignment on the Tuning label instead of a spacer — IMO it looks better when the window is resized. |
|
Will add the spacer and fix the tabstops. On buddy — will check if the new labels need it.
Apologies for the unnecessary rebase — I had a merge conflict from my BPM lock PR and rebased to resolve it. What would have been the correct way to handle that without a full rebase? |
Added the spacer and updated the tabstops. On buddy — I checked and none of the existing labels in the file use shortcuts, so I don't think buddy relationships are needed for the new items. Let me know if you think otherwise |
If you rebased to resolve conflicts cuased by another PR: none I know of. |
Oh, okay. Then there's no need to add them in this PR. |
|
Will check the new commits tomorrow.. |
Good to know, thanks for the context on accessibility! Happy to help with that when the bug is filed. |
|
Great, no please squash the commits. |
Add a QDoubleSpinBox for entering the A4 tuning frequency (Hz) and a read-only label showing the offset from standard A440 tuning in cents to the Track Editor Summary tab. The user can enter a tuning value in Hz (400-480 Hz range) and the cents offset is computed and displayed automatically. The tuning is stored in the Keys object alongside the key data and persisted via the existing tuning_frequency_hz database column. Complements the tuning detection in PR mixxxdj#15817.
e1b041a to
8ad1378
Compare
Done, Squashed and Pushed |




Summary
Adds an editable tuning frequency field to the Track Editor (Properties) dialog.
Daniel suggested this on Zulip to complement the tuning detection in PR #15817.
What it does
QDoubleSpinBox(range 400-480 Hz) for A4 tuning frequencytuning_frequency_hzDB columnScreenshots
Before
After
After.Recording.mp4
Testing
Related: #15817