From 8a15962d05cdf94c923e740c6b1cba7da3c06cfc Mon Sep 17 00:00:00 2001 From: fincs Date: Fri, 15 Jul 2011 17:55:25 +0200 Subject: [PATCH] Fix note dropping bug... I hope. --- README.md | 2 +- arm7/source/sseq.arm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 894d1e8..cd0734d 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ How to build To do ----- -- The channel allocation system sometimes drops notes where the official code doesn't. +- Note dropping bug appears to be gone... I hope. - Some SSEQ commands are not implemented yet (modulation, portamento, pitch sweep): please help! Thanks to: diff --git a/arm7/source/sseq.arm.c b/arm7/source/sseq.arm.c index 4ffed71..39bbff4 100644 --- a/arm7/source/sseq.arm.c +++ b/arm7/source/sseq.arm.c @@ -123,7 +123,7 @@ int ds_freechn2(int prio) if (!SCHANNEL_ACTIVE(i) && ADSR_ch[i].state != ADSR_START) return i; for(i = 0; i < 16; i ++) - if (ADSR_ch[i].ampl < (-75*128) && ADSR_ch[i].state == ADSR_RELEASE) + if (ADSR_ch[i].state == ADSR_RELEASE) return i; for(i = 0; i < 16; i ++) if (ADSR_ch[i].prio < prio)