tusch and sequencer stop fix

This commit is contained in:
2024-04-10 12:58:30 +02:00
parent 3769b3eb05
commit 2f8e2937c1
3 changed files with 129 additions and 2 deletions

View File

@ -43,6 +43,8 @@ void sequencerExec(void *handle) {
}
melodies->sync -= 1;
melody->state = e_Sync;
} else if (melody->tones[melody->idx].length == e_L_HoldMark) {
melody->state = e_Hold;
} else if (melody->tones[melody->idx].length == e_L_StopMark) {
melody->state = e_Terminate;
} else {
@ -83,6 +85,8 @@ void sequencerExec(void *handle) {
melody->idx += 1;
melody->state = e_PlayTone;
break;
case e_Hold:
break;
case e_Terminate:
schDel(melodies->taskId);
break;