Skip to content

refactor rename-uis, allow naming CV clips as well - #3183

Merged
sapphire-arches merged 2 commits into
SynthstromAudible:communityfrom
nikodemus:pr-refactor-rename-uis
Jan 2, 2025
Merged

refactor rename-uis, allow naming CV clips as well#3183
sapphire-arches merged 2 commits into
SynthstromAudible:communityfrom
nikodemus:pr-refactor-rename-uis

Conversation

@nikodemus

Copy link
Copy Markdown
Collaborator
  • allow deleting names (by replacing them with empty) for all but drums

  • consolidate shared code in RenameUI class: subclasses implement only a couple of methods to specialize their behaviour

  • ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut machinery

  • shrinks the binary by just a hair, but shrinks, not grows!

@github-actions

github-actions Bot commented Dec 30, 2024

Copy link
Copy Markdown
Contributor

Test Results

106 tests  ±0   106 ✅ ±0   0s ⏱️ ±0s
 16 suites ±0     0 💤 ±0 
 16 files   ±0     0 ❌ ±0 

Results for commit 863eaf8. ± Comparison against base commit 89720ba.

♻️ This comment has been updated with latest results.

@nikodemus
nikodemus force-pushed the pr-refactor-rename-uis branch from ec1e87e to 332eba3 Compare December 30, 2024 20:30
Comment thread src/deluge/gui/ui/rename/rename_drum_ui.h Outdated
@sapphire-arches

Copy link
Copy Markdown
Collaborator

LGTM, though there's now a merge conflict.

nikodemus and others added 2 commits January 2, 2025 11:27
- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!
Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>
@nikodemus
nikodemus force-pushed the pr-refactor-rename-uis branch from 0ff058e to 863eaf8 Compare January 2, 2025 10:00
@nikodemus

Copy link
Copy Markdown
Collaborator Author

Updated, and found the same title_ -> title bug twice more. I've no idea how those passed my own testing... 😅

@sapphire-arches
sapphire-arches added this pull request to the merge queue Jan 2, 2025
Merged via the queue into SynthstromAudible:community with commit 0d55ca5 Jan 2, 2025
@nikodemus
nikodemus deleted the pr-refactor-rename-uis branch January 3, 2025 09:58
stellar-aria added a commit that referenced this pull request Jan 6, 2025
github-merge-queue Bot pushed a commit that referenced this pull request Jan 6, 2025
* Revert "refactor rename-uis, allow naming CV clips as well (#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 16, 2026
…#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 16, 2026
* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 16, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

add section number to clip names, copy clip names along with clips (SynthstromAudible#3195)

* use section numbers with clip names

- if clip has no name, display "Section: <section num>"

- if clip has a name, display "<section num>: <clip name>"

* copy clip names when duplicating clips

- append a number to the clip name if necessary to avoid duplicates
  on the same output; if the name already ends with a number, the
  existing number is incremented instead

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 16, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

add section number to clip names, copy clip names along with clips (SynthstromAudible#3195)

* use section numbers with clip names

- if clip has no name, display "Section: <section num>"

- if clip has a name, display "<section num>: <clip name>"

* copy clip names when duplicating clips

- append a number to the clip name if necessary to avoid duplicates
  on the same output; if the name already ends with a number, the
  existing number is incremented instead

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 16, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 16, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 16, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 16, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 16, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 16, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 16, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 17, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 17, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 17, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 17, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 17, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 17, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

reset the string to the  new value (SynthstromAudible#3315)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 17, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

reset the string to the  new value (SynthstromAudible#3315)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 17, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

reset the string to the  new value (SynthstromAudible#3315)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 17, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

reset the string to the  new value (SynthstromAudible#3315)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 17, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

reset the string to the  new value (SynthstromAudible#3315)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 17, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

reset the string to the  new value (SynthstromAudible#3315)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 17, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

reset the string to the  new value (SynthstromAudible#3315)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 17, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

reset the string to the  new value (SynthstromAudible#3315)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 17, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

reset the string to the  new value (SynthstromAudible#3315)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 17, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

reset the string to the  new value (SynthstromAudible#3315)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 17, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

reset the string to the  new value (SynthstromAudible#3315)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 17, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

reset the string to the  new value (SynthstromAudible#3315)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 17, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

reset the string to the  new value (SynthstromAudible#3315)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 17, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

reset the string to the  new value (SynthstromAudible#3315)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 17, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

reset the string to the  new value (SynthstromAudible#3315)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 18, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

reset the string to the  new value (SynthstromAudible#3315)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 18, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

reset the string to the  new value (SynthstromAudible#3315)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 18, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

reset the string to the  new value (SynthstromAudible#3315)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 18, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

reset the string to the  new value (SynthstromAudible#3315)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 18, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

reset the string to the  new value (SynthstromAudible#3315)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 18, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

reset the string to the  new value (SynthstromAudible#3315)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 18, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

reset the string to the  new value (SynthstromAudible#3315)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 18, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

reset the string to the  new value (SynthstromAudible#3315)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 18, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

reset the string to the  new value (SynthstromAudible#3315)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 18, 2026
refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)

* refactor rename-uis, allow naming CV clips as well

- allow deleting names (by replacing them with empty) for all but
  drums

- consolidate shared code in RenameUI class: subclasses implement
  only a couple of methods to specialize their behaviour

- ad-hoc dispatch in sound_editor.cpp replaced with normal shortcut
  machinery

- shrinks the binary by just a hair, but *shrinks*, not grows!

* fix initialization of RenameUIs

---------

Co-authored-by: Sapphire Koser <srkoser+GitHub@gmail.com>

Fix rename-UIs PR (SynthstromAudible#3218)

* Revert "refactor rename-uis, allow naming CV clips as well (SynthstromAudible#3183)"

This reverts commit 0d55ca5.

* Bugfix for rename-UIs PR

follow-up to loosening clip-naming restrictions (SynthstromAudible#3056)

- move Song::getClipFromName() to Output, so that we actually check
  the right thing -- previously if tracks 1 & 2 both have a clip named
  A, the check might find the clip from track 2, allowing a duplicate
  name on track 1.

Add some things to StringBuf (SynthstromAudible#3204)

reset the string to the  new value (SynthstromAudible#3315)

Co-Authored-By: Nikodemus Siivola <nikodemus@random-state.net>
Co-Authored-By: Katherine Whitlock <122173759+stellar-aria@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants