Repository navigation
Lemon Drum Sampler: reopened projects play each pad its own sample - #473
Open
ItsAlphaNeon wants to merge 2 commits into
Open
ItsAlphaNeon wants to merge 2 commits into
ItsAlphaNeon wants to merge 2 commits into
Conversation
The host gives the plugin one sample file per layer in state order, the empty pads' layers included, but rebuilding the kit counted only the layers that hold a sample. After a project was reopened (the only time the host fills that list) the k-th sounding layer opened the file of the k-th layer overall, so pads played another pad's sample or nothing. The kit now finds a layer's file from its pad's first layer plus its own place. Regression tests in the plugin (state round trip, every pad's sample and level) and in the session (the real reopen path). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
plugins/lemon-drum-sampler.md§1 already describes (one entry per layer, in state order).Fixes #467
Stacked on #472 (that branch is merged in). When this was opened, #472's Linux job had failed on an unrelated timing test,
dropout_log::tests::a_hold_tells_running_from_waiting. The next PR in the stack makes that test robust.Test plan
lemon-drum-samplertesta_reopened_kit_plays_each_pad_its_own_sample: samples on pads 5, 2 and 10 go through save and reopen the way the host does it. Each pad holds its own sample and plays at that sample's level. It fails before the fix.os-sessiontestdrums::tests::a_reopened_kit_plays_each_pad_its_own_sample: the real reopen path (plugin_state, thencreate_with), with two pads whose samples are 4x apart in level. It fails before the fix.cargo test --workspace --lockedon Windows, with Activate hosted plugins before restoring their saved state #472 merged in: 2713 passed, 0 failed.🤖 Generated with Claude Code