Skip to content

Commit bb6172e

Browse files
committed
Fix clips multiple channels
1 parent de8de83 commit bb6172e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/MidiKeyBoard.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -2554,10 +2554,9 @@ void XKeyBoard::clips_time(void *w_, void* user_data) noexcept{
25542554

25552555
for (int j = 0; j < 16; j++) {
25562556
for(std::vector<mamba::MidiEvent>::iterator i = xjmkb->xjack->rec.play[j].begin(); i != xjmkb->xjack->rec.play[j].end(); ++i) {
2557-
if (i == xjmkb->xjack->rec.play[j].begin()+m) {
2557+
if ((*i).absoluteTime && ((*i).absoluteTime == (*i).deltaTime)) {
25582558
if ((*i).deltaTime) (*i).deltaTime -= beat;
2559-
}
2560-
if ((*i).absoluteTime) (*i).absoluteTime -= beat;
2559+
} else if ((*i).absoluteTime) (*i).absoluteTime -= beat;
25612560
}
25622561
}
25632562

0 commit comments

Comments
 (0)