Skip to content

Fix sample track playback in pattern editor#8375

Open
Itreza2 wants to merge 3 commits into
LMMS:masterfrom
Itreza2:pattern-sample-playback
Open

Fix sample track playback in pattern editor#8375
Itreza2 wants to merge 3 commits into
LMMS:masterfrom
Itreza2:pattern-sample-playback

Conversation

@Itreza2
Copy link
Copy Markdown
Contributor

@Itreza2 Itreza2 commented May 8, 2026

closes #4422
(this issue is tagged as enhancement, but I really see this as a bug fix)

Allow playback of a sample clip in the pattern editor to start at any position and not only at t=0 as it is currently the case.
This also ensure that the sample is played each loop, which is currently very inconsistent.

@bratpeki bratpeki self-assigned this May 20, 2026
@bratpeki bratpeki added the bug label May 20, 2026
Copy link
Copy Markdown
Member

@bratpeki bratpeki left a comment

Choose a reason for hiding this comment

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

Approved for both code and testing!

Comment thread src/tracks/SampleTrack.cpp Outdated
@yohannd1
Copy link
Copy Markdown
Contributor

yohannd1 commented May 20, 2026

Tested and it seems to work fine! Demo vid:

2026-05-20.15-51-35.mp4

I've found a bug which might be fixed by 8369 already is handled by #8369: when the beat is too large, the sample doesn't play after that point.

On this PR:

2026-05-20.15-51-51.mp4

Applying 8369's changes on top of this, the behavior is the same, but the clip length is actually taken into account visually and it can be seen that the sample stops:

image

Co-authored-by: Yohanan <23298480+yohannd1@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Playing Sample Track inside BB Track does not always work

3 participants