Trying to get SFX playback working but for some reason even the simplest SFX are glitching out.
For example, exported from dmf2esf, I have this cursor sound (ran in -a mode to get an asm dump of what commands it's saving to the ESF file):
Code: Select all
dc.b $f8, $22, $00 ; Set FM register 34 to value 0
dc.b $e1 ; Lock channel FM 2
; Pattern $00, Row 0;
dc.b $41, $00 ; Set instrument for channel FM 2
dc.b $21, $00 ; Set volume for channel FM 2
dc.b $01, $93 ; Note A-4 on channel FM 2
; Pattern $00, Row 1;
dc.b $fe, $03 ; Delay
dc.b $01, $93 ; Note A-4 on channel FM 2
; Pattern $00, Row 2;
; Pattern $00, Row 3;
; Pattern $00, Row 4;
; Pattern $00, Row 5;
; Pattern $00, Row 6;
; Pattern $00, Row 7;
dc.b $fe, $12 ; Delay
dc.b $11 ; Note off channel FM 2
; Pattern $00, Row 8;
; Pattern $00, Row 9;
; Pattern $00, Row 10;
; Pattern $00, Row 11;
dc.b $fe, $0f ; Delay
dc.b $ff ; The End
This is not what happens.
What actually happens is that channel 2 plays the tone, but not all the way through (it's frequently cut short by BGM notes for some reason, even though channel locking should have taken care of that!), for some reason channel 1 ALSO plays a tone (and produces a rather irritating sound), and then channel 2 subsequently holds on to that sound effect's instrument until the next instrument change in the song.
On the other hand if I do not play any BGM at all, the sound effect plays as normal.
I'm fairly baffled by this, and have thus far sunk my entire day into figuring out how to get Echo working properly. Attached are the instrument files and ESF files I'm using here in case it helps
Anyone encounter anything like this while trying to integrate Echo?