Skip to content

Spectrogram context menu and spectral-delete shortcut#10465

Merged
saintmatthieu merged 33 commits intoaudacity:masterfrom
saintmatthieu:10190-spectral-edit-commands
Mar 17, 2026
Merged

Spectrogram context menu and spectral-delete shortcut#10465
saintmatthieu merged 33 commits intoaudacity:masterfrom
saintmatthieu:10190-spectral-edit-commands

Conversation

@saintmatthieu
Copy link
Copy Markdown
Contributor

@saintmatthieu saintmatthieu commented Mar 4, 2026

  • I signed CLA
  • The title of the pull request describes an issue it addresses
  • If changes are extensive, then there is a sequence of easily reviewable commits
  • Each commit's message describes its purpose and effects
  • There are no behavior changes unnecessary for the stated purpose of the PR

Recommended:

  • Each commit compiles and runs on my machine without known undesirable changes of behavior

QA:

  • Applying Nyquist effect doesn't create new clip (but it does for generators)
  • Generators (both nyquist and built-in) behave as expected when passing a duration that's not equal to the selection
  • Autobot test cases have been run

@saintmatthieu saintmatthieu self-assigned this Mar 4, 2026
@saintmatthieu saintmatthieu force-pushed the 10190-spectral-edit-commands branch from 94a4d27 to b9ff86c Compare March 4, 2026 13:32
@saintmatthieu saintmatthieu changed the title backup Spectrogram context menu and spectral-delete shortcut Mar 4, 2026
@saintmatthieu saintmatthieu marked this pull request as ready for review March 4, 2026 14:54
@saintmatthieu saintmatthieu requested a review from luapmartin March 4, 2026 14:55
@saintmatthieu saintmatthieu force-pushed the 10190-spectral-edit-commands branch 4 times, most recently from 49052de to f0d5ff5 Compare March 5, 2026 12:22
@saintmatthieu saintmatthieu force-pushed the 10190-spectral-edit-commands branch from bbe7de8 to cb0a085 Compare March 11, 2026 12:03
@saintmatthieu saintmatthieu force-pushed the 10190-spectral-edit-commands branch from cb0a085 to 10575ee Compare March 12, 2026 16:59
Comment on lines +1339 to 1352
const auto clipsAfter = SortedIntervalArray();
// If clips before and after have the same play start and end times, apply the IDs of the original clips:
if (clipsBefore.size() == clipsAfter.size()) {
for (size_t i = 0; i < clipsBefore.size(); ++i) {
if (clipsBefore[i]->GetPlayStartTime() != clipsAfter[i]->GetPlayStartTime()
|| clipsBefore[i]->GetPlayEndTime() != clipsAfter[i]->GetPlayEndTime()) {
return;
}
}
for (size_t i = 0; i < clipsBefore.size(); ++i) {
clipsAfter[i]->SetId(clipsBefore[i]->GetId());
}
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I guess it's ok with undo/redo right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think so, yes.

Copy link
Copy Markdown
Contributor

@luapmartin luapmartin left a comment

Choose a reason for hiding this comment

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

Approved, the last question would be that with such a dense feature and lot of little know-how here and there, would proper unit testing make sense to avoid (control) regressions?
I guess there is low hanging fruits in terms of basic operation that would cover a wide range of cases that QA wont have to venture on testing each and every time.

@github-project-automation github-project-automation bot moved this to Design - Todo in [AU4] Main Board Mar 13, 2026
@dozzzzer dozzzzer moved this from Design - Todo to In QA in [AU4] Main Board Mar 13, 2026
@dozzzzer dozzzzer self-assigned this Mar 13, 2026
@chinakov
Copy link
Copy Markdown
Contributor

Issues outlined in the QA checklist above have been fixed.

@chinakov chinakov moved this from In QA to Ready for Merge in [AU4] Main Board Mar 16, 2026
@chinakov chinakov moved this from Ready for Merge to In QA in [AU4] Main Board Mar 16, 2026
@dozzzzer dozzzzer moved this from In QA to In Progress in [AU4] Main Board Mar 16, 2026
@saintmatthieu saintmatthieu force-pushed the 10190-spectral-edit-commands branch from 10575ee to 0716864 Compare March 16, 2026 16:42
@saintmatthieu saintmatthieu moved this from In Progress to In QA in [AU4] Main Board Mar 16, 2026
@dozzzzer dozzzzer moved this from In QA to Ready for Merge in [AU4] Main Board Mar 17, 2026
saintmatthieu and others added 27 commits March 17, 2026 10:39
Instead, disable spectral effect actions when they would fail anyway.
@saintmatthieu saintmatthieu force-pushed the 10190-spectral-edit-commands branch from 0716864 to ff63b81 Compare March 17, 2026 09:39
@saintmatthieu saintmatthieu merged commit d0f8374 into audacity:master Mar 17, 2026
5 checks passed
@github-project-automation github-project-automation bot moved this from Ready for Merge to Done in [AU4] Main Board Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

4 participants