Skip to content

Conversation

@prayerie
Copy link

@prayerie prayerie commented Nov 15, 2025

Uses the existing trim icon to crop a sample using delPart twice (or once if the trim end is also the end of the sample). Also fills the space in nicely.

2025-11-15-225457_255x383_scrot

closes #46



if (startsample == endsample) return;
smp->delPart(1, startsample);
Copy link
Collaborator

@asiekierka asiekierka Nov 19, 2025

Choose a reason for hiding this comment

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

Why 1 and not 0? Why startsample and not startsample - 1?

Copy link
Collaborator

Choose a reason for hiding this comment

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

(Plus, an if (startSample > 0) smp->delPart(0, startsample - 1); makes more sense to me.)

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.

Sample trimming (0xtob/#22)

2 participants