Skip to content

Feature / Add support for affecting-all kit rows while in the sound editor by holding Affect-Entire button - #3425

Merged
seangoodvibes merged 29 commits into
SynthstromAudible:communityfrom
soymonitus:monitus/affect_entire_params
Mar 24, 2025
Merged

seangoodvibes merged 29 commits into
SynthstromAudible:communityfrom
soymonitus:monitus/affect_entire_params

Conversation

@soymonitus

@soymonitus soymonitus commented Feb 28, 2025 •

Copy link
Copy Markdown
Collaborator

Just like what happens with Sample Mode, Reverse, Pitch/Speed... we want to be able to batch change all kit rows at the same time. This works by holding the affect-entire button (it will flash indicating that this action is available for this parameter), and when you edit the parameter, it will apply the same value to all kit rows within the current clip.
All Sound parameters are implemented except for Oscillator Type and patch cables.
Additional features: batch editing a param for all kit rows while record engaged will record automation for all rows!

Considerations:

  • Although adding support for all patched and unpatched params at once is just a handful of lines of code (I hooked my code in the same place as midi follow feedback does), I could not come up with a way to reduce code for the other non-automatable params, as each has its own custom logic.
  • Here is a comparison in binary size of current community vs this PR:
    Community: 1,581,892 bytes
    This PR: 1,585,772 bytes

Things this feature will enable:

  • Quickly change any parameter for all rows like Delay Sync, because we dub fans all love dotted eights
  • Come up with happy accidents by batch changing some parameter more aimed at sound design
  • Use it as a performance tool: suddenly enable/disable arpeggiator, or increase some arp randomizer amount for all rows, or tighten the sound by decreasing the decay of all envelopes 1's.
  • Transpose all rows by semitones (different than Master Transpose)

@github-actions

github-actions Bot commented Feb 28, 2025 •

Copy link
Copy Markdown
Contributor

Test Results

111 tests  ±0   111 ✅ ±0   0s ⏱️ -1s
 17 suites ±0     0 💤 ±0 
 17 files   ±0     0 ❌ ±0 

Results for commit c86d21c. ± Comparison against base commit c2b2add.

♻️ This comment has been updated with latest results.

@seangoodvibes
seangoodvibes marked this pull request as draft March 1, 2025 17:40
@soymonitus soymonitus changed the title [Draft] Feature / Add support for affecting-all kit rows while in the sound editor by holding Affect-Entire button Feature / Add support for affecting-all kit rows while in the sound editor by holding Affect-Entire button Mar 2, 2025
@soymonitus
soymonitus marked this pull request as ready for review March 2, 2025 22:47
@soymonitus

Copy link
Copy Markdown
Collaborator Author

Ready for review

@soymonitus soymonitus left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@stellar-aria Added comments to my own PR to explain some things. Basically what this huge PR is about is to take all parameters of a sound and add to them the same if-else that sample reverse, or sample repeat mode already had, that is, check if we are in a kit and holding affect-entire, then do the edit to all rows, and if not, then just edit the selected row. The only complexity here is that some parameters executed some additional logic before or after editing the parameter (for example LFOs: they resync the lfos after editing them), so I had to carefully do the same pre/post logic for all kit rows

using Selection::Selection;
void readCurrentValue() override { this->setValue(soundEditor.currentArpSettings->chordTypeIndex); }

bool usesAffectEntire() override { return true; }

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This is the virtual method used to tell the sound editor that this parameter supports holding affect-entire button when in kit to do batch edits. The line
bool usesAffectEntire() override { return true; }
has been added to all parameters that have been modified in this PR, to make them batch-edit-enabled

}

// If affect-entire button held, do whole kit
if (currentUIMode == UI_MODE_HOLDING_AFFECT_ENTIRE_IN_SOUND_EDITOR && soundEditor.editingKitRow()) {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

You will find in all the parameters that have been edited in this PR that a new if-else condition is added, mimicking the ones which were already there in the code for sample/reverse.h and sample/repeat.h for example. Basically this is:

if (currentUIMode == UI_MODE_HOLDING_AFFECT_ENTIRE_IN_SOUND_EDITOR && soundEditor.editingKitRow()) {
    // Loop through all kit rows and apply the change to each one (only if they meet the requirements stated by isRelevant)
} else {
    // Just edit the current selected row
}

}
}

ModelStackWithThreeMainThings* getModelStackFromSoundDrum(void* memory, SoundDrum* soundDrum) {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

A new utility method has been added to be able to get a modelstack from a sounddrum kit row, to avoid code repetition

// If was off, or is now becoming off...
if (soundEditor.currentArpSettings->mode == ArpMode::OFF || current_value == ArpMode::OFF) {
if (getCurrentClip()->isActiveOnOutput() && !soundEditor.editingKitAffectEntire()) {
kit->cutAllSound();

@soymonitus soymonitus Mar 10, 2025 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Some parameters execute additional logic when edited. In this case, when the arp mode was changed just for one row, it called currentSound->unassignAllVoices() (or maybe named killAllVoices now that Stellar-Aria made a refactor) , so here when batch editing all arp modes of all kit rows, we have to do the same. Luckily there is already a method in kit that cuts all voices for all rows so we don't have to call unassignAllVoices per row.

Same logic applies to other parameters, if there is some extra work to do before or after editing the parameter, we have to do the equivalent but for all the rows

}
virtual uint64_t getCompressorValue() = 0;
virtual void setCompressorValue(q31_t value) = 0;
virtual void setCompressorValue(q31_t value, RMSFeedbackCompressor* compressor) = 0;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Use a specific compressor instead of the one from selected kit row, so this method is more flexible and we can use it for the batch edit of other rows

}
void setMode(int32_t value) const {
void setMode(int32_t value) const { setModeForModControllable(value, soundEditor.currentModControllable); }
void setModeForModControllable(int32_t value, ModControllableAudio* modControllable) const {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Same here as with compressor, modify it so we can edit any modControllable and not only the one from selected kit row

&& soundEditor.currentSource->oscType == OscType::SAMPLE) {
(static_cast<MultisampleRange*>(soundEditor.currentMultiRange))->sampleHolder.transpose = transpose;
(static_cast<MultisampleRange*>(soundEditor.currentMultiRange))->sampleHolder.setCents(cents);
// If affect-entire button held, do whole kit

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The transpose parameters were actually the most complex parameters to make compatible with batch-edit, because you have to carefully take the multsample range and whatnot. But anyway not a big deal after all.

seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
seangoodvibes pushed a commit to seangoodvibes/DelugeFirmware that referenced this pull request Jan 26, 2026
…ditor by holding Affect-Entire button (SynthstromAudible#3425)

* wip

* wip

* wip

* wip

* wip

* wip

* format

* wip

* wip

* cleanup

* wip

* wip

* docs

* transpose osc

* fix

* fix

* transpose

* fix doc typos

* Allow to keep holding affect-entire while you navigate to other menu items

* Fix
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