Jump to content

Song seems to desync no matter what I do


Roosterton
 Share

Recommended Posts

Hi,

I've already inserted a few songs into my ROMhack with no issues, but for some reason this one seems to desync as it loops. I read in some guides that I should try adding "[" and "]" labels to where I want it to loop, which I've done, and to add rests so that all the tracks end at the same time, which I've done, but it still seems to desync despite these fixes. It's only a single track (out of four) which is getting out of sync, and it's always that same track. Wondering if anyone else has encountered this or knows of more solutions that I'm missing.

This is for FE8 if that makes a difference. Here's the .s file for the song: (Track 4 is the one that desyncs)

Quote

    .include "MPlayDef.s"

    .equ    song5_grp, voicegroup000
    .equ    song5_pri, 10
    .equ    song5_rev, 0
    .equ    song5_mvl, 127
    .equ    song5_key, 0
    .equ    song5_tbs, 1
    .equ    song5_exg, 0
    .equ    song5_cmp, 1

    .section .rodata
    .global    song5
    .align    2


@**************** Track 1 (Midi-Chn.0) ****************@

song5_001:
@ 000   ----------------------------------------
Label_0_0105B904:
 .byte   TEMPO , 60*song5_tbs/2
 .byte   TEMPO , 60*song5_tbs/2
 .byte   TEMPO , 60*song5_tbs/2
 .byte   TEMPO , 60*song5_tbs/2
 .byte   VOICE , 19
 .byte   VOL , 90*song5_mvl/mxv
 .byte   N24 ,Fs3 ,v126
 .byte   N24 ,Cs3
 .byte   W24
 .byte   Cs4
 .byte   N24 ,An3
 .byte   W24
 .byte   N48 ,Bn3
 .byte   N48 ,Gs3
 .byte   W48
@ 001   ----------------------------------------
Label_0_0105B91D:
 .byte   N24 ,Gs3 ,v126
 .byte   N24 ,Dn3
 .byte   W24
 .byte   Bn3
 .byte   N24 ,Fn3
 .byte   W24
 .byte   N48 ,As3
 .byte   N48 ,En3
 .byte   W48
 .byte   PEND 
@ 002   ----------------------------------------
 .byte   N24 ,Fs3 ,v126
 .byte   N24 ,Cs3
 .byte   W24
 .byte   N12 ,Gs3
 .byte   W12
 .byte   An3
 .byte   W12
 .byte   Bn3
 .byte   N12 ,En3
 .byte   W12
 .byte   An3
 .byte   W12
 .byte   Gs3
 .byte   N12 ,Dn3
 .byte   W12
 .byte   Fs3
 .byte   W12
@ 003   ----------------------------------------
 .byte   N24 ,Fn3
 .byte   N24 ,Cs3
 .byte   W24
 .byte   Gs3
 .byte   W24
 .byte   N48 ,Cs3
 .byte   N48 ,Bn2
 .byte   N48 ,Gs2
 .byte   W48
@ 004   ----------------------------------------
 .byte   N24 ,Fs3
 .byte   N24 ,Cs3
 .byte   W24
 .byte   N24 ,Cs4 ,v126
 .byte   N24 ,An3
 .byte   W24
 .byte   N48 ,Bn3
 .byte   N48 ,Gs3
 .byte   W48
 .byte   PATT
  .word Label_0_0105B91D
@ 005   ----------------------------------------
 .byte   N24 ,Fs3 ,v126
 .byte   N24 ,Bn2
 .byte   W24
 .byte   N12 ,Gs3
 .byte   N12 ,Cs3
 .byte   W12
 .byte   An3
 .byte   N12 ,Dn3
 .byte   W12
 .byte   Bn3
 .byte   N12 ,Cs3
 .byte   W12
 .byte   An3
 .byte   N12 ,Bn2
 .byte   W12
 .byte   Gs3
 .byte   N12 ,An2
 .byte   W12
 .byte   Fs3
 .byte   N12 ,Gs2
 .byte   W12
@ 006   ----------------------------------------
 .byte   N24 ,Fn3
 .byte   N24 ,Cs3
 .byte   W24
 .byte   Gs3
 .byte   W24
 .byte   N48 ,Bn3
 .byte   N48 ,Fn3
 .byte   N48 ,Cs3
 .byte   W48
@ 007   ----------------------------------------
 .byte   N12 ,Fs3
 .byte   N12 ,Cs3
 .byte   W12
 .byte   Fn3
 .byte   W12
 .byte   Fs3
 .byte   W12
 .byte   Gs3
 .byte   W12
 .byte   N48 ,An3
 .byte   W48
@ 008   ----------------------------------------
 .byte   N12 ,Gs3
 .byte   N12 ,Dn3
 .byte   W12
 .byte   Fs3
 .byte   W12
 .byte   Gs3
 .byte   W12
 .byte   An3
 .byte   W12
 .byte   N24 ,Bn3
 .byte   N24 ,Bn2
 .byte   W24
 .byte   Fs3
 .byte   W24
@ 009   ----------------------------------------
 .byte   N48
 .byte   N48 ,Dn3
 .byte   N48 ,An2
 .byte   W48
 .byte   N24 ,Gs3
 .byte   W24
 .byte   Fs3
 .byte   W24
@ 010   ----------------------------------------
 .byte   N48 ,Gs3
 .byte   N48 ,Bn2
 .byte   N48 ,En3
 .byte   W48
 .byte   N24
 .byte   W24
 .byte   N12 ,An2
 .byte   W12
 .byte   Bn2
 .byte   W12
@ 011   ----------------------------------------
 .byte   N96 ,Gs2
 .byte   N96 ,Cs2
 .byte   N96 ,Cs3
 .byte   W24
 .byte   N24 ,Bn3
 .byte   W24
 .byte   An3
 .byte   W24
 .byte   Gs3
 .byte   W24
@ 012   ----------------------------------------
 .byte   Bn2
 .byte   N24 ,Fs2
 .byte   N24 ,Cs2
 .byte   W24
 .byte   Gs3
 .byte   W24
 .byte   Cs4
 .byte   W24
 .byte   Gs3
 .byte   W24
@ 013   ----------------------------------------
 .byte   GOTO
  .word Label_0_0105B904
@ 014   ----------------------------------------
 .byte   W48
 .byte   FINE

@**************** Track 2 (Midi-Chn.1) ****************@

song5_002:
@ 000   ----------------------------------------
Label_1_0105B9F0:
 .byte   TEMPO , 60*song5_tbs/2
 .byte   TEMPO , 60*song5_tbs/2
 .byte   TEMPO , 60*song5_tbs/2
 .byte   TEMPO , 60*song5_tbs/2
 .byte   VOICE , 6
 .byte   VOL , 90*song5_mvl/mxv
 .byte   N12 ,Fs2 ,v126
 .byte   W12
 .byte   An2
 .byte   W12
 .byte   Cs3
 .byte   W12
 .byte   Fs3
 .byte   W12
 .byte   N24 ,An3
 .byte   W24
 .byte   Fs3
 .byte   W24
@ 001   ----------------------------------------
Label_1_0105BA09:
 .byte   N12 ,Dn3 ,v126
 .byte   W12
 .byte   Cs3
 .byte   W12
 .byte   Bn2
 .byte   W12
 .byte   Dn3
 .byte   W12
 .byte   N24 ,Cs3
 .byte   N24 ,As2
 .byte   W24
 .byte   Cs2
 .byte   W24
 .byte   PEND 
@ 002   ----------------------------------------
Label_1_0105BA1B:
 .byte   N12 ,Fs2 ,v126
 .byte   W12
 .byte   An2
 .byte   W12
 .byte   En3
 .byte   W12
 .byte   Dn3
 .byte   W12
 .byte   N24 ,Cs3
 .byte   W24
 .byte   Cs3
 .byte   N24 ,An2
 .byte   W24
 .byte   PEND 
@ 003   ----------------------------------------
 .byte   N24 ,Cs3 ,v126
 .byte   N24 ,Gs2
 .byte   W48
 .byte   Bn2
 .byte   N24 ,Fn2
 .byte   W48
@ 004   ----------------------------------------
 .byte   N12 ,Fs2
 .byte   W12
 .byte   N12 ,An2 ,v126
 .byte   W12
 .byte   Cs3
 .byte   W12
 .byte   Fs3
 .byte   W12
 .byte   N24 ,An3
 .byte   W24
 .byte   Fs3
 .byte   W24
 .byte   PATT
  .word Label_1_0105BA09
 .byte   PATT
  .word Label_1_0105BA1B
@ 005   ----------------------------------------
 .byte   N24 ,Cs3 ,v126
 .byte   N24 ,Gs2
 .byte   W48
 .byte   Fn3
 .byte   N24 ,Bn2
 .byte   W96
@ 006   ----------------------------------------
 .byte   An3
 .byte   N24 ,En3
 .byte   W24
 .byte   Ds3
 .byte   N24 ,Fs3
 .byte   W24
 .byte   En3
 .byte   N24 ,Bn2
 .byte   W48
@ 007   ----------------------------------------
 .byte   Fn3
 .byte   N24 ,Cs3
 .byte   W24
 .byte   Ds3
 .byte   N24 ,Fn3
 .byte   W24
 .byte   Fs3
 .byte   N24 ,An2
 .byte   W96
@ 008   ----------------------------------------
 .byte   En4
 .byte   N24 ,Gs3
 .byte   W96
@ 009   ----------------------------------------
 .byte   Gs3
 .byte   N24 ,Cs4
 .byte   W96
@ 010   ----------------------------------------
 .byte   Cs4
 .byte   N24 ,Fn3
 .byte   W96
@ 011   ----------------------------------------
 .byte   GOTO
  .word Label_1_0105B9F0
@ 012   ----------------------------------------
 .byte   W48
 .byte   FINE

@**************** Track 3 (Midi-Chn.2) ****************@

song5_003:
@ 000   ----------------------------------------
Label_2_0105BA88:
 .byte   TEMPO , 60*song5_tbs/2
 .byte   TEMPO , 60*song5_tbs/2
 .byte   TEMPO , 60*song5_tbs/2
 .byte   TEMPO , 60*song5_tbs/2
 .byte   VOICE , 73
 .byte   VOL , 90*song5_mvl/mxv
 .byte   W96
@ 001   ----------------------------------------
 .byte   W92
 .byte   W90
@ 002   ----------------------------------------
 .byte   W56
 .byte   W02
 .byte   N12 ,An3 ,v126
 .byte   W12
 .byte   Gs3
 .byte   W12
 .byte   Fs3
 .byte   W12
 .byte   Fn3
 .byte   W12
@ 003   ----------------------------------------
 .byte   W96
@ 004   ----------------------------------------
 .byte   W92
 .byte   W90
@ 005   ----------------------------------------
 .byte   W88
 .byte   W84
@ 006   ----------------------------------------
 .byte   W80
 .byte   W78
@ 007   ----------------------------------------
 .byte   W76
 .byte   W72
@ 008   ----------------------------------------
 .byte   W68
 .byte   W66
@ 009   ----------------------------------------
 .byte   W64
 .byte   W06
 .byte   GOTO
  .word Label_2_0105BA88
@ 010   ----------------------------------------
 .byte   W48
 .byte   FINE

@**************** Track 4 (Midi-Chn.3) ****************@

song5_004:
@ 000   ----------------------------------------
Label_3_0105BAB8:
 .byte   TEMPO , 60*song5_tbs/2
 .byte   TEMPO , 60*song5_tbs/2
 .byte   TEMPO , 60*song5_tbs/2
 .byte   TEMPO , 60*song5_tbs/2
 .byte   VOICE , 46
 .byte   VOL , 90*song5_mvl/mxv
 .byte   W96
@ 001   ----------------------------------------
 .byte   W92
 .byte   W90
@ 002   ----------------------------------------
 .byte   W88
 .byte   W18
@ 003   ----------------------------------------
 .byte   N12 ,Fs2 ,v126
 .byte   W12
 .byte   N12 ,Cs2 ,v126
 .byte   W12
 .byte   Fs2
 .byte   W12
 .byte   Cs2
 .byte   W12
 .byte   An2
 .byte   W12
 .byte   Cs2
 .byte   W12
 .byte   An2
 .byte   W12
 .byte   Cs2
 .byte   W12
@ 004   ----------------------------------------
 .byte   Fn2
 .byte   W12
 .byte   Cs2
 .byte   W12
 .byte   Fn2
 .byte   W12
 .byte   Cs2
 .byte   W12
 .byte   Fs2
 .byte   W12
 .byte   Cs2
 .byte   W12
 .byte   Fs2
 .byte   W12
 .byte   En2
 .byte   W12
@ 005   ----------------------------------------
 .byte   Dn2
 .byte   W12
 .byte   An1
 .byte   W12
 .byte   Dn2
 .byte   W12
 .byte   An1
 .byte   W12
 .byte   Gs1
 .byte   W12
 .byte   An1
 .byte   W12
 .byte   Gs1
 .byte   W12
 .byte   Fs1
 .byte   W12
@ 006   ----------------------------------------
 .byte   Fn1
 .byte   W12
 .byte   Gs1
 .byte   W12
 .byte   An1
 .byte   W12
 .byte   Bn1
 .byte   W12
 .byte   N48 ,Cs2
 .byte   W48
@ 007   ----------------------------------------
 .byte   N03 ,Fs4
 .byte   W03
 .byte   Cs4
 .byte   W09
 .byte   Fs4
 .byte   W03
 .byte   Cs4
 .byte   W09
 .byte   Gs4
 .byte   W03
 .byte   Cs4
 .byte   W09
 .byte   Gs4
 .byte   W03
 .byte   Cs4
 .byte   W09
 .byte   An4
 .byte   W03
 .byte   Cs4
 .byte   W03
 .byte   An4
 .byte   W03
 .byte   Gs4
 .byte   W03
 .byte   Cs4
 .byte   N12 ,Fs2
 .byte   W03
 .byte   N03 ,Gs4
 .byte   W03
 .byte   Fs4
 .byte   W03
 .byte   Cs4
 .byte   W03
 .byte   Fs4
 .byte   N12 ,An2
 .byte   W03
 .byte   N03 ,En4
 .byte   W03
 .byte   Cs4
 .byte   W03
 .byte   En4
 .byte   W03
 .byte   Dn4
 .byte   N12 ,Fs2
 .byte   W03
 .byte   N03 ,Bn3
 .byte   W03
 .byte   Cs4
 .byte   W03
 .byte   An3
 .byte   W03
@ 008   ----------------------------------------
 .byte   En4
 .byte   W03
 .byte   Bn3
 .byte   W09
 .byte   En4
 .byte   W03
 .byte   Bn3
 .byte   W09
 .byte   Fn4
 .byte   W03
 .byte   Bn3
 .byte   W09
 .byte   Gs4
 .byte   W03
 .byte   Cs4
 .byte   W09
 .byte   Gs4
 .byte   W03
 .byte   Cs4
 .byte   W03
 .byte   Fs4
 .byte   W03
 .byte   Cs4
 .byte   W03
 .byte   Fn4
 .byte   N12 ,Fs2
 .byte   W03
 .byte   N03 ,Fs4
 .byte   W03
 .byte   Gs4
 .byte   W03
 .byte   Cs4
 .byte   W03
 .byte   Dn4
 .byte   N12 ,Bn2
 .byte   W03
 .byte   N03 ,Fn4
 .byte   W03
 .byte   Fs4
 .byte   W03
 .byte   Bn3
 .byte   W03
 .byte   An3
 .byte   N12 ,Fs2
 .byte   W03
 .byte   N03 ,Bn3
 .byte   W03
 .byte   Cs4
 .byte   W03
 .byte   Fn4
 .byte   W03
@ 009   ----------------------------------------
 .byte   N96 ,An4
 .byte   W96
@ 010   ----------------------------------------
 .byte   Gs4
 .byte   W96
@ 011   ----------------------------------------
 .byte   Fn4
 .byte   W96
@ 012   ----------------------------------------
 .byte   N12 ,Cs4
 .byte   W12
 .byte   Dn4
 .byte   W12
 .byte   Cs4
 .byte   W12
 .byte   Dn4
 .byte   W12
 .byte   N06 ,Cs4
 .byte   W06
 .byte   Dn4
 .byte   W06
 .byte   N03 ,Cs4
 .byte   W03
 .byte   Dn4
 .byte   W03
 .byte   N01 ,Cs4
 .byte   W01
 .byte   Dn4
 .byte   W01
 .byte   Cs4
 .byte   W01
 .byte   Dn4
 .byte   W01
 .byte   Cs4
 .byte   W01
 .byte   Dn4
 .byte   W01
 .byte   N18 ,Cs4
 .byte   W21
 .byte   GOTO
  .word Label_3_0105BAB8
@ 013   ----------------------------------------
 .byte   W48
 .byte   FINE

@******************************************************@
    .align    2

song5:
    .byte    4    @ NumTrks
    .byte    0    @ NumBlks
    .byte    song5_pri    @ Priority
    .byte    song5_rev    @ Reverb.
    
    .word    song5_grp
    
    .word    song5_001
    .word    song5_002
    .word    song5_003
    .word    song5_004

    .end
 

 

Edited by Roosterton
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...