Merge pull request #215 from yenatch/master

dump the music again
This commit is contained in:
Bryan Bishop
2013-11-14 12:02:49 -08:00
111 changed files with 45566 additions and 45312 deletions

View File

@@ -1060,27 +1060,28 @@ ReadNoiseSample: ; e85af
; sample struct: ; sample struct:
; [wx] [yy] [zz] ; [wx] [yy] [zz]
; w: ? either 2 or 3 ; w: ? either 2 or 3
; x: ? 0-7 ; x: duration
; zzyy: pointer to sample data ; zz: intensity
; NOTE: these seem to have $4000 added to them later ; yy: frequency
; de = NoiseSampleAddress ; de = [NoiseSampleAddress]
ld hl, NoiseSampleAddress ld hl, NoiseSampleAddress
ld e, [hl] ld e, [hl]
inc hl inc hl
ld d, [hl] ld d, [hl]
; is it empty? ; is it empty?
ld a, e ld a, e
or d or d
jr z, .quit jr z, .quit
; get the noise sample
ld a, [de] ld a, [de]
inc de inc de
; are we done?
cp a, $ff cp $ff
jr z, .quit jr z, .quit
;
and a, $0f ; bottom nybble and $f
inc a inc a
ld [$c2a2], a ld [$c2a2], a
ld a, [de] ld a, [de]
@@ -1091,11 +1092,12 @@ ReadNoiseSample: ; e85af
ld [$c294], a ld [$c294], a
xor a xor a
ld [$c295], a ld [$c295], a
;
ld hl, NoiseSampleAddress ld hl, NoiseSampleAddress
ld [hl], e ld [hl], e
inc hl inc hl
ld [hl], d ld [hl], d
ld hl, Channel1NoteFlags - Channel1 ld hl, Channel1NoteFlags - Channel1
add hl, bc add hl, bc
set 4, [hl] set 4, [hl]
@@ -1113,7 +1115,7 @@ ParseMusic: ; e85e1
jr c, .readnote jr c, .readnote
; then it's a command ; then it's a command
.readcommand .readcommand
call ParseCommand call ParseMusicCommand
jr ParseMusic ; start over jr ParseMusic ; start over
.readnote .readnote
@@ -1319,7 +1321,7 @@ GetNoiseSample: ; e86c5
ret ret
; e870f ; e870f
ParseCommand ; e870f ParseMusicCommand: ; e870f
; reload command ; reload command
ld a, [CurMusicByte] ld a, [CurMusicByte]
; get command # ; get command #
@@ -1341,13 +1343,13 @@ MusicCommands: ; e8720
; pointer to each command in order ; pointer to each command in order
; octaves ; octaves
dw MusicD0 ; octave 8 dw MusicD0 ; octave 8
dw MusicD0 ; octave 7 dw MusicD1 ; octave 7
dw MusicD0 ; octave 6 dw MusicD2 ; octave 6
dw MusicD0 ; octave 5 dw MusicD3 ; octave 5
dw MusicD0 ; octave 4 dw MusicD4 ; octave 4
dw MusicD0 ; octave 3 dw MusicD5 ; octave 3
dw MusicD0 ; octave 2 dw MusicD6 ; octave 2
dw MusicD0 ; octave 1 dw MusicD7 ; octave 1
dw MusicD8 ; note length + intensity dw MusicD8 ; note length + intensity
dw MusicD9 ; set starting octave dw MusicD9 ; set starting octave
dw MusicDA ; tempo dw MusicDA ; tempo
@@ -1374,13 +1376,13 @@ MusicCommands: ; e8720
dw MusicEF ; stereo panning dw MusicEF ; stereo panning
dw MusicF0 ; sfx noise sampling dw MusicF0 ; sfx noise sampling
dw MusicF1 ; nothing dw MusicF1 ; nothing
dw MusicF1 ; nothing dw MusicF2 ; nothing
dw MusicF1 ; nothing dw MusicF3 ; nothing
dw MusicF1 ; nothing dw MusicF4 ; nothing
dw MusicF1 ; nothing dw MusicF5 ; nothing
dw MusicF1 ; nothing dw MusicF6 ; nothing
dw MusicF1 ; nothing dw MusicF7 ; nothing
dw MusicF1 ; nothing dw MusicF8 ; nothing
dw MusicF9 ; dw MusicF9 ;
dw MusicFA ; dw MusicFA ;
dw MusicFB ; dw MusicFB ;
@@ -1391,6 +1393,13 @@ MusicCommands: ; e8720
; e8780 ; e8780
MusicF1: ; e8780 MusicF1: ; e8780
MusicF2: ; e8780
MusicF3: ; e8780
MusicF4: ; e8780
MusicF5: ; e8780
MusicF6: ; e8780
MusicF7: ; e8780
MusicF8: ; e8780
ret ret
; e8781 ; e8781
@@ -1932,12 +1941,18 @@ MusicDA: ; e899a
; e89a6 ; e89a6
MusicD0: ; e89a6 MusicD0: ; e89a6
; used by d0-d7 MusicD1: ; e89a6
MusicD2: ; e89a6
MusicD3: ; e89a6
MusicD4: ; e89a6
MusicD5: ; e89a6
MusicD6: ; e89a6
MusicD7: ; e89a6
; set octave based on lo nybble of the command ; set octave based on lo nybble of the command
ld hl, Channel1Octave - Channel1 ld hl, Channel1Octave - Channel1
add hl, bc add hl, bc
ld a, [CurMusicByte] ; get current command ld a, [CurMusicByte]
and a, $07 and 7
ld [hl], a ld [hl], a
ret ret
; e89b1 ; e89b1

View File

@@ -1,73 +1,67 @@
_Music_AfterTheRivalFight: ; 0xf5127 Music_AfterTheRivalFight: ; f5127
db $c0 dbw $c0, Music_AfterTheRivalFight_Ch1
dw _Music_AfterTheRivalFight_Ch1 dbw $01, Music_AfterTheRivalFight_Ch2
db $01 dbw $02, Music_AfterTheRivalFight_Ch3
dw _Music_AfterTheRivalFight_Ch2 dbw $03, Music_AfterTheRivalFight_Ch4
db $02 ; f5133
dw _Music_AfterTheRivalFight_Ch3
db $03
dw _Music_AfterTheRivalFight_Ch4
; 0xf5133
_Music_AfterTheRivalFight_Ch1: ; 0xf5133
tempo $7000 Music_AfterTheRivalFight_Ch1: ; f5133
tempo 112
volume $77 volume $77
dutycycle $00 dutycycle $0
tone $0100 tone $0001
vibrato $08, $14 vibrato $8, $14
stereopanning $f0 stereopanning $f0
notetype $0c, $b2 notetype $c, $b2
octave2 octave 2
note $93 note G#, 3
note $93 note G#, 3
intensity $82 intensity $82
octave3 octave 3
note $91 note G#, 1
note $91 note G#, 1
note $91 note G#, 1
note $91 note G#, 1
loopchannel $00, $4fb1 ; end loopchannel 0, Music_AfterTheRivalFight_branch_f4fb1
; 0xf5153
_Music_AfterTheRivalFight_Ch2: ; 0xf5153 Music_AfterTheRivalFight_Ch2: ; f5153
dutycycle $01 dutycycle $1
vibrato $06, $35 vibrato $6, $35
stereopanning $0f stereopanning $f
notetype $0c, $c2 notetype $c, $c2
octave4 octave 4
note $93 note G#, 3
note $93 note G#, 3
intensity $a2 intensity $a2
note $91 note G#, 1
note $91 note G#, 1
note $91 note G#, 1
note $91 note G#, 1
loopchannel $00, $502e ; end loopchannel 0, Music_AfterTheRivalFight_branch_f502e
; 0xf516a
_Music_AfterTheRivalFight_Ch3: ; 0xf516a Music_AfterTheRivalFight_Ch3: ; f516a
notetype $0c, $28 notetype $c, $28
octave3 octave 3
note $41 note D#, 1
note $01 note __, 1
note $41 note D#, 1
note $01 note __, 1
note $91 note G#, 1
note $71 note F#, 1
note $61 note F_, 1
note $41 note D#, 1
loopchannel $00, $509d ; end loopchannel 0, Music_AfterTheRivalFight_branch_f509d
; 0xf517a
_Music_AfterTheRivalFight_Ch4: ; 0xf517a Music_AfterTheRivalFight_Ch4: ; f517a
togglenoise $03 togglenoise $3
stereopanning $0f stereopanning $f
notetype $0c notetype $c
note $33 note D_, 3
note $33 note D_, 3
note $41 note D#, 1
note $31 note D_, 1
note $31 note D_, 1
note $31 note D_, 1
loopchannel $00, $5118 ; end loopchannel 0, Music_AfterTheRivalFight_branch_f5118
; 0xf518a ; f518a

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,177 +1,181 @@
_Music_BugCatchingContestResults: ; 0xefb3e Music_ContestResults: ; efb3e
db $c0 dbw $c0, Music_ContestResults_Ch1
dw _Music_BugCatchingContestResults_Ch1 dbw $01, Music_ContestResults_Ch2
db $01 dbw $02, Music_ContestResults_Ch3
dw _Music_BugCatchingContestResults_Ch2 dbw $03, Music_ContestResults_Ch4
db $02 ; efb4a
dw _Music_BugCatchingContestResults_Ch3
db $03
dw _Music_BugCatchingContestResults_Ch4
; 0xefb4a
_Music_BugCatchingContestResults_Ch1: ; 0xefb4a
tempo $9000 Music_ContestResults_Ch1: ; efb4a
tempo 144
volume $77 volume $77
notetype $0c, $51 notetype $c, $51
note $01
octave2
note $80
note $02
note $80
note $02
note $80
note $02
note $80
note $00
note $01
note $a0
note $02
note $a0
note $02
note $a0
note $02
note $a0
note $00
note $01
note $a0
note $02
note $a0
note $02
note $a0
note $02
note $a0
note $00
note $01
note $c0
note $02
note $b0
note $02
note $a0
note $02
note $80
note $00
loopchannel $00, $7b52 ; end
; 0xefb7b
_Music_BugCatchingContestResults_Ch2: ; 0xefb7b Music_ContestResults_branch_efb52: ; efb52
notetype $0c, $61 note __, 1
octave2 octave 2
note $11 note G_, 0
octave3 note __, 2
note $50 note G_, 0
note $00 note __, 2
octave1 note G_, 0
note $81 note __, 2
octave3 note G_, 0
note $50 note __, 0
note $00 note __, 1
octave1 note A_, 0
note $a1 note __, 2
octave3 note A_, 0
note $50 note __, 2
note $00 note A_, 0
octave1 note __, 2
note $c1 note A_, 0
octave3 note __, 0
note $50 note __, 1
note $00 note A_, 0
octave2 note __, 2
note $31 note A_, 0
octave3 note __, 2
note $60 note A_, 0
note $00 note __, 2
octave1 note A_, 0
note $a1 note __, 0
octave3 note __, 1
note $60 note B_, 0
note $00 note __, 2
octave1 note A#, 0
note $c1 note __, 2
octave3 note A_, 0
note $60 note __, 2
note $00 note G_, 0
octave2 note __, 0
note $21 loopchannel 0, Music_ContestResults_branch_efb52
octave3
note $60
note $00
octave2
note $31
octave3
note $60
note $00
octave1
note $a1
octave3
note $60
note $00
loopchannel $02, $7ba6
octave2
note $81
octave3
note $80
note $00
octave2
note $31
octave3
note $70
note $00
octave2
note $81
octave3
note $60
note $00
octave2
note $31
octave3
note $30
note $00
loopchannel $00, $7b7e ; end
; 0xefbcc
_Music_BugCatchingContestResults_Ch3: ; 0xefbcc Music_ContestResults_Ch2: ; efb7b
vibrato $08, $24 notetype $c, $61
notetype $0c, $23
octave4
note $54
note $00
note $50
note $60
note $83
octave5
note $13
octave4
note $c7
note $a7
note $34
note $00
note $30
note $50
note $63
note $c3
note $a7
note $87
loopchannel $00, $7bd2 ; end
; 0xefbe9
_Music_BugCatchingContestResults_Ch4: ; 0xefbe9 Music_ContestResults_branch_efb7e: ; efb7e
togglenoise $04 octave 2
notetype $06 note C_, 1
note $23 octave 3
note $23 note E_, 0
note $21 note __, 0
note $21 octave 1
note $21 note G_, 1
note $21 octave 3
note $23 note E_, 0
note $23 note __, 0
note $80 octave 1
note $80 note A_, 1
note $80 octave 3
note $80 note E_, 0
note $80 note __, 0
note $80 octave 1
note $80 note B_, 1
note $80 octave 3
loopchannel $00, $7bed ; end note E_, 0
; 0xefc01 note __, 0
octave 2
note D_, 1
octave 3
note F_, 0
note __, 0
octave 1
note A_, 1
octave 3
note F_, 0
note __, 0
octave 1
note B_, 1
octave 3
note F_, 0
note __, 0
octave 2
note C#, 1
octave 3
note F_, 0
note __, 0
Music_ContestResults_branch_efba6: ; efba6
octave 2
note D_, 1
octave 3
note F_, 0
note __, 0
octave 1
note A_, 1
octave 3
note F_, 0
note __, 0
loopchannel 2, Music_ContestResults_branch_efba6
octave 2
note G_, 1
octave 3
note G_, 0
note __, 0
octave 2
note D_, 1
octave 3
note F#, 0
note __, 0
octave 2
note G_, 1
octave 3
note F_, 0
note __, 0
octave 2
note D_, 1
octave 3
note D_, 0
note __, 0
loopchannel 0, Music_ContestResults_branch_efb7e
Music_ContestResults_Ch3: ; efbcc
vibrato $8, $24
notetype $c, $23
Music_ContestResults_branch_efbd2: ; efbd2
octave 4
note E_, 4
note __, 0
note E_, 0
note F_, 0
note G_, 3
octave 5
note C_, 3
octave 4
note B_, 7
note A_, 7
note D_, 4
note __, 0
note D_, 0
note E_, 0
note F_, 3
note B_, 3
note A_, 7
note G_, 7
loopchannel 0, Music_ContestResults_branch_efbd2
Music_ContestResults_Ch4: ; efbe9
togglenoise $4
notetype $6
Music_ContestResults_branch_efbed: ; efbed
note C#, 3
note C#, 3
note C#, 1
note C#, 1
note C#, 1
note C#, 1
note C#, 3
note C#, 3
note G_, 0
note G_, 0
note G_, 0
note G_, 0
note G_, 0
note G_, 0
note G_, 0
note G_, 0
loopchannel 0, Music_ContestResults_branch_efbed
; efc01

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,182 +1,184 @@
_Music_DragonsDen: ; 0xeece8 Music_DragonsDen: ; eece8
db $c0 dbw $c0, Music_DragonsDen_Ch1
dw _Music_DragonsDen_Ch1 dbw $01, Music_DragonsDen_Ch2
db $01 dbw $02, Music_DragonsDen_Ch3
dw _Music_DragonsDen_Ch2 dbw $03, Music_DragonsDen_Ch4
db $02 ; eecf4
dw _Music_DragonsDen_Ch3
db $03
dw _Music_DragonsDen_Ch4
; 0xeecf4
_Music_DragonsDen_Ch1: ; 0xeecf4
tempo $9000 Music_DragonsDen_Ch1: ; eecf4
tempo 144
volume $77 volume $77
dutycycle $00 dutycycle $0
tone $0400 tone $0004
stereopanning $f0 stereopanning $f0
notetype $0c, $80 notetype $c, $80
callchannel _Music_DragonsDen_sub_0xeed1e
note $0f
callchannel _Music_DragonsDen_sub_0xeed2d
note $01
callchannel _Music_DragonsDen_sub_0xeed2d
note $01
callchannel _Music_DragonsDen_sub_0xeed2d
note $01
callchannel _Music_DragonsDen_sub_0xeed2d
note $09
notetype $0c, $b7
loopchannel $00, $6d03 ; end
; 0xeed1e
_Music_DragonsDen_sub_0xeed1e: ; 0xeed1e Music_DragonsDen_branch_eed03: ; eed03
; subroutine callchannel Music_DragonsDen_branch_eed1e
octave3 note __, 15
note $bb callchannel Music_DragonsDen_branch_eed2d
note $a3 note __, 1
note $bb callchannel Music_DragonsDen_branch_eed2d
note $a3 note __, 1
note $b5 callchannel Music_DragonsDen_branch_eed2d
octave4 note __, 1
note $13 callchannel Music_DragonsDen_branch_eed2d
note $25 note __, 9
note $5f notetype $c, $b7
note $4b loopchannel 0, Music_DragonsDen_branch_eed03
note $33 ; eed1e
octave3
note $9f
endchannel ; end
; 0xeed2d
_Music_DragonsDen_sub_0xeed2d: ; 0xeed2d Music_DragonsDen_branch_eed1e: ; eed1e
; subroutine octave 3
note A#, 11
note A_, 3
note A#, 11
note A_, 3
note A#, 5
octave 4
note C_, 3
note C#, 5
note E_, 15
note D#, 11
note D_, 3
octave 3
note G#, 15
endchannel
; eed2d
Music_DragonsDen_branch_eed2d: ; eed2d
intensity $b1 intensity $b1
note $01 note __, 1
octave4 octave 4
note $22 note C#, 2
note $22 note C#, 2
note $22 note C#, 2
note $22 note C#, 2
note $23 note C#, 3
note $22 note C#, 2
note $22 note C#, 2
note $23 note C#, 3
note $21 note C#, 1
note $21 note C#, 1
endchannel ; end endchannel
; 0xeed3c
_Music_DragonsDen_Ch2: ; 0xeed3c Music_DragonsDen_Ch2: ; eed3c
dutycycle $00 dutycycle $0
tone $0400 tone $0004
stereopanning $0f stereopanning $f
notetype $0c, $90 notetype $c, $90
callchannel _Music_DragonsDen_sub_0xeed5e
note $0f
callchannel _Music_DragonsDen_sub_0xeed6b
callchannel _Music_DragonsDen_sub_0xeed6b
callchannel _Music_DragonsDen_sub_0xeed6b
callchannel _Music_DragonsDen_sub_0xeed6b
note $0f
notetype $0c, $c7
loopchannel $00, $6d46 ; end
; 0xeed5e
_Music_DragonsDen_sub_0xeed5e: ; 0xeed5e Music_DragonsDen_branch_eed46: ; eed46
; subroutine callchannel Music_DragonsDen_branch_eed5e
octave4 note __, 15
note $4b callchannel Music_DragonsDen_branch_eed6b
note $33 callchannel Music_DragonsDen_branch_eed6b
note $4b callchannel Music_DragonsDen_branch_eed6b
note $33 callchannel Music_DragonsDen_branch_eed6b
note $45 note __, 15
note $63 notetype $c, $c7
note $75 loopchannel 0, Music_DragonsDen_branch_eed46
note $af ; eed5e
note $9b
note $83
note $2f
endchannel ; end
; 0xeed6b
_Music_DragonsDen_sub_0xeed6b: ; 0xeed6b Music_DragonsDen_branch_eed5e: ; eed5e
; subroutine octave 4
note D#, 11
note D_, 3
note D#, 11
note D_, 3
note D#, 5
note F_, 3
note F#, 5
note A_, 15
note G#, 11
note G_, 3
note C#, 15
endchannel
; eed6b
Music_DragonsDen_branch_eed6b: ; eed6b
intensity $c1 intensity $c1
octave5
note $23
octave4
note $93
note $93
note $93
loopchannel $02, $6d6d
endchannel ; end
; 0xeed78
_Music_DragonsDen_Ch3: ; 0xeed78 Music_DragonsDen_branch_eed6d: ; eed6d
notetype $0c, $14 octave 5
octave4 note C#, 3
note $21 octave 4
octave3 note G#, 3
note $90 note G#, 3
octave4 note G#, 3
note $20 loopchannel 2, Music_DragonsDen_branch_eed6d
octave3 endchannel
note $91
octave4
note $21
octave3
note $90
octave4
note $20
octave3
note $91
octave4
note $21
octave3
note $90
octave4
note $20
loopchannel $0f, $6d78
note $0f
notetype $06, $27
octave3
note $23
octave2
note $91
octave3
note $21
octave2
note $93
octave3
note $23
octave2
note $91
octave3
note $21
octave2
note $93
octave3
note $23
octave2
note $91
octave3
note $21
loopchannel $10, $6d99
loopchannel $00, $6d78 ; end
; 0xeedb7
_Music_DragonsDen_Ch4: ; 0xeedb7 Music_DragonsDen_Ch3: ; eed78
togglenoise $00
notetype $0c Music_DragonsDen_branch_eed78: ; eed78
note $0f notetype $c, $14
note $0f octave 4
note C#, 1
octave 3
note G#, 0
octave 4
note C#, 0
octave 3
note G#, 1
octave 4
note C#, 1
octave 3
note G#, 0
octave 4
note C#, 0
octave 3
note G#, 1
octave 4
note C#, 1
octave 3
note G#, 0
octave 4
note C#, 0
loopchannel 15, Music_DragonsDen_branch_eed78
note __, 15
notetype $6, $27
Music_DragonsDen_branch_eed99: ; eed99
octave 3
note C#, 3
octave 2
note G#, 1
octave 3
note C#, 1
octave 2
note G#, 3
octave 3
note C#, 3
octave 2
note G#, 1
octave 3
note C#, 1
octave 2
note G#, 3
octave 3
note C#, 3
octave 2
note G#, 1
octave 3
note C#, 1
loopchannel 16, Music_DragonsDen_branch_eed99
loopchannel 0, Music_DragonsDen_branch_eed78
Music_DragonsDen_Ch4: ; eedb7
togglenoise $0
notetype $c
note __, 15
note __, 15
Music_DragonsDen_branch_eedbd: ; eedbd
stereopanning $f0 stereopanning $f0
note $63 note F_, 3
stereopanning $0f stereopanning $f
note $73 note F#, 3
note $73 note F#, 3
stereopanning $f0 stereopanning $f0
note $73 note F#, 3
loopchannel $00, $6dbd ; end loopchannel 0, Music_DragonsDen_branch_eedbd
; 0xeedcb ; eedcb

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More