From d731ae90d809d7739b21ef88eb5d6c7c7c7cbcef Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sat, 21 Mar 2026 09:35:45 -0500 Subject: [PATCH] Convert last 3 .s files to .midi --- Makefile | 7 +- ld_script.ld | 6 +- sound/songs/midi/midi.cfg | 3 + sound/songs/midi/se_m_screech.mid | Bin 0 -> 239 bytes sound/songs/midi/se_m_snore.mid | Bin 0 -> 262 bytes sound/songs/midi/se_m_yawn.mid | Bin 0 -> 259 bytes sound/songs/se_m_screech.s | 112 -------------------------- sound/songs/se_m_snore.s | 105 ------------------------ sound/songs/se_m_yawn.s | 127 ------------------------------ 9 files changed, 7 insertions(+), 353 deletions(-) create mode 100644 sound/songs/midi/se_m_screech.mid create mode 100644 sound/songs/midi/se_m_snore.mid create mode 100644 sound/songs/midi/se_m_yawn.mid delete mode 100644 sound/songs/se_m_screech.s delete mode 100644 sound/songs/se_m_snore.s delete mode 100644 sound/songs/se_m_yawn.s diff --git a/Makefile b/Makefile index 6854d561b3..754ecebe36 100644 --- a/Makefile +++ b/Makefile @@ -94,13 +94,11 @@ C_SUBDIR = src ASM_SUBDIR = asm DATA_SRC_SUBDIR = src/data DATA_ASM_SUBDIR = data -SONG_SUBDIR = sound/songs MID_SUBDIR = sound/songs/midi C_BUILDDIR = $(OBJ_DIR)/$(C_SUBDIR) ASM_BUILDDIR = $(OBJ_DIR)/$(ASM_SUBDIR) DATA_ASM_BUILDDIR = $(OBJ_DIR)/$(DATA_ASM_SUBDIR) -SONG_BUILDDIR = $(OBJ_DIR)/$(SONG_SUBDIR) MID_BUILDDIR = $(OBJ_DIR)/$(MID_SUBDIR) SHELL := bash -o pipefail @@ -211,13 +209,10 @@ REGULAR_DATA_ASM_SRCS := $(filter-out $(DATA_ASM_SUBDIR)/maps.s $(DATA_ASM_SUBDI DATA_ASM_SRCS := $(wildcard $(DATA_ASM_SUBDIR)/*.s) DATA_ASM_OBJS := $(patsubst $(DATA_ASM_SUBDIR)/%.s,$(DATA_ASM_BUILDDIR)/%.o,$(DATA_ASM_SRCS)) -SONG_SRCS := $(wildcard $(SONG_SUBDIR)/*.s) -SONG_OBJS := $(patsubst $(SONG_SUBDIR)/%.s,$(SONG_BUILDDIR)/%.o,$(SONG_SRCS)) - MID_SRCS := $(wildcard $(MID_SUBDIR)/*.mid) MID_OBJS := $(patsubst $(MID_SUBDIR)/%.mid,$(MID_BUILDDIR)/%.o,$(MID_SRCS)) -OBJS := $(C_OBJS) $(C_ASM_OBJS) $(ASM_OBJS) $(DATA_ASM_OBJS) $(SONG_OBJS) $(MID_OBJS) +OBJS := $(C_OBJS) $(C_ASM_OBJS) $(ASM_OBJS) $(DATA_ASM_OBJS) $(MID_OBJS) OBJS_REL := $(patsubst $(OBJ_DIR)/%,%,$(OBJS)) SUBDIRS := $(sort $(dir $(OBJS))) diff --git a/ld_script.ld b/ld_script.ld index de12492753..9addc3169d 100644 --- a/ld_script.ld +++ b/ld_script.ld @@ -888,7 +888,7 @@ SECTIONS { sound/songs/midi/se_m_explosion.o(.rodata); sound/songs/midi/se_m_absorb_2.o(.rodata); sound/songs/midi/se_m_absorb.o(.rodata); - sound/songs/se_m_screech.o(.rodata); + sound/songs/midi/se_m_screech.o(.rodata); sound/songs/midi/se_m_bubble_beam.o(.rodata); sound/songs/midi/se_m_bubble_beam2.o(.rodata); sound/songs/midi/se_m_supersonic.o(.rodata); @@ -904,7 +904,7 @@ SECTIONS { sound/songs/midi/se_m_swagger2.o(.rodata); sound/songs/midi/se_m_heal_bell.o(.rodata); sound/songs/midi/se_m_confuse_ray.o(.rodata); - sound/songs/se_m_snore.o(.rodata); + sound/songs/midi/se_m_snore.o(.rodata); sound/songs/midi/se_m_brick_break.o(.rodata); sound/songs/midi/se_m_giga_drain.o(.rodata); sound/songs/midi/se_m_psybeam2.o(.rodata); @@ -944,7 +944,7 @@ SECTIONS { sound/songs/midi/se_m_earthquake.o(.rodata); sound/songs/midi/se_m_twister.o(.rodata); sound/songs/midi/se_m_sweet_scent.o(.rodata); - sound/songs/se_m_yawn.o(.rodata); + sound/songs/midi/se_m_yawn.o(.rodata); sound/songs/midi/se_m_sky_uppercut.o(.rodata); sound/songs/midi/se_m_stat_increase.o(.rodata); sound/songs/midi/se_m_heat_wave.o(.rodata); diff --git a/sound/songs/midi/midi.cfg b/sound/songs/midi/midi.cfg index c1d6a8e399..24637ee4df 100644 --- a/sound/songs/midi/midi.cfg +++ b/sound/songs/midi/midi.cfg @@ -416,10 +416,12 @@ se_m_sand_attack.mid: -E -R50 -G_rs_sfx_2 -V110 -P4 se_m_sand_tomb.mid: -R50 -G_rs_sfx_2 -P4 se_m_sandstorm.mid: -R50 -G_rs_sfx_2 -P4 se_m_scratch.mid: -E -R50 -G_rs_sfx_2 -V110 -P4 +se_m_screech.mid: -R50 -G_rs_sfx_2 -V110 -P4 se_m_self_destruct.mid: -R50 -G_rs_sfx_2 -P4 se_m_sing.mid: -R50 -G_rs_sfx_2 -P4 se_m_sketch.mid: -R50 -G_rs_sfx_2 -P4 se_m_sky_uppercut.mid: -R50 -G_rs_sfx_2 -P4 +se_m_snore.mid: -R50 -G_rs_sfx_2 -V120 -P4 se_m_solar_beam.mid: -R50 -G_rs_sfx_2 -P4 se_m_spit_up.mid: -R50 -G_rs_sfx_2 -P4 se_m_stat_decrease.mid: -R50 -G_rs_sfx_2 -P4 @@ -452,6 +454,7 @@ se_m_vital_throw2.mid: -R50 -G_rs_sfx_2 -P4 se_m_waterfall.mid: -R50 -G_rs_sfx_2 -P4 se_m_whirlpool.mid: -R50 -G_rs_sfx_2 -P4 se_m_wing_attack.mid: -E -R50 -G_rs_sfx_2 -V105 -P4 +se_m_yawn.mid: -R50 -G_rs_sfx_2 -V110 -P4 se_mud_ball.mid: -E -R50 -G_rs_sfx_2 -V110 -P4 se_mugshot.mid: -E -R50 -G_rs_sfx_2 -V090 -P5 se_n.mid: -E -R50 -G_rs_sfx_2 -P4 diff --git a/sound/songs/midi/se_m_screech.mid b/sound/songs/midi/se_m_screech.mid new file mode 100644 index 0000000000000000000000000000000000000000..bf896ad6f8b5e02b7dee854f107eedc8cc07cbc5 GIT binary patch literal 239 zcmeYb$w*;fU|?flWMF2H@C_--2J(a%{s%I%Ni{J1k6>Y8lHg$Yug?ILYGyc~!>~bw ziD3hm1H%Ib2Zjkz1&kZGtby2!VFSAmkhTHR20+>YNCz-&;Bo=7y@2dQAPr=*7l8Bv z+15-O*z198Ga%arh(TgtwLtL_pg2fvB1A2_17kxJ10&ErCWKRr84hTHq#@2obzlRs SnZdZ80Y-z2Wok%;YXtx&Xga9? literal 0 HcmV?d00001 diff --git a/sound/songs/midi/se_m_snore.mid b/sound/songs/midi/se_m_snore.mid new file mode 100644 index 0000000000000000000000000000000000000000..bb2e49c82d42912518c86536c583bb39445a7168 GIT binary patch literal 262 zcmeYb$w*;fU|?flWMF2H@C_--2J(a%{s%I%XofTVk6>Y8lHg$Yug?ILN@6&m#;`$z zhhYPk1H%S(S%wD;4h$1?>lrt&2LN$B%Z7ReCJ0-Ou|b!C>3|AQSp>rblLDY{ED$F$ z0hIuirUThIK)M7-SAev#HkdFV*_6$2KpLpcgb^srIKc==8v$u3A7liY7}(eeCJqqw b7C_p9foXyrkhTNqLlI{L>xam(06hl)bEG~f literal 0 HcmV?d00001 diff --git a/sound/songs/midi/se_m_yawn.mid b/sound/songs/midi/se_m_yawn.mid new file mode 100644 index 0000000000000000000000000000000000000000..ebb63037900b8e323ad24d43038f1b9ede54b7f7 GIT binary patch literal 259 zcmYk0F$%&!6htT4kVsln1igY_rwB<*wn`I0u&}hS5EKL(%j5_FFY=F&qvR%WHm+jv zm_L7*-CrFpX8=AND8$v_aiyDL*eie5U^sf78&5DSVWSti6cQ~UVU8X-+VbZ1*gBjQ zF-reY2@~TL)M&FP XmKsWerzgRkdZO;ghVxuC*;s!A(+NVr literal 0 HcmV?d00001 diff --git a/sound/songs/se_m_screech.s b/sound/songs/se_m_screech.s deleted file mode 100644 index c28d8d2bbd..0000000000 --- a/sound/songs/se_m_screech.s +++ /dev/null @@ -1,112 +0,0 @@ - .include "MPlayDef.s" - - .equ se_m_screech_grp, voicegroup_rs_sfx_2 - .equ se_m_screech_pri, 4 - .equ se_m_screech_rev, reverb_set+50 - .equ se_m_screech_mvl, 127 - .equ se_m_screech_key, 0 - .equ se_m_screech_tbs, 1 - .equ se_m_screech_exg, 0 - .equ se_m_screech_cmp, 1 - - .section .rodata - .global se_m_screech - .align 2 - -@********************** Track 1 **********************@ - -se_m_screech_1: - .byte VOL , 110*se_m_screech_mvl/mxv - .byte KEYSH , se_m_screech_key+0 - .byte TEMPO , 150*se_m_screech_tbs/2 - .byte VOICE , 44 - .byte BENDR , 2 - .byte PAN , c_v+0 - .byte BEND , c_v+0 - .byte N21 , Fs5 , v112 - .byte W01 - .byte PAN , c_v-5 - .byte W01 - .byte c_v-10 - .byte VOL , 15*se_m_screech_mvl/mxv - .byte W01 - .byte PAN , c_v-4 - .byte VOL , 41*se_m_screech_mvl/mxv - .byte W01 - .byte PAN , c_v+0 - .byte VOL , 69*se_m_screech_mvl/mxv - .byte W02 - .byte PAN , c_v+4 - .byte W01 - .byte c_v+10 - .byte VOL , 84*se_m_screech_mvl/mxv - .byte W01 - .byte PAN , c_v+4 - .byte W01 - .byte VOL , 97*se_m_screech_mvl/mxv - .byte PAN , c_v+0 - .byte W01 - .byte c_v-5 - .byte W02 - .byte VOL , 110*se_m_screech_mvl/mxv - .byte PAN , c_v-10 - .byte W01 - .byte c_v-4 - .byte W01 - .byte c_v+0 - .byte W01 - .byte c_v+4 - .byte W01 - .byte c_v+10 - .byte W02 - .byte VOL , 100*se_m_screech_mvl/mxv - .byte PAN , c_v+4 - .byte W01 - .byte VOL , 84*se_m_screech_mvl/mxv - .byte PAN , c_v+0 - .byte W01 - .byte VOL , 55*se_m_screech_mvl/mxv - .byte W02 - .byte BEND , c_v+0 - .byte W02 - .byte FINE - -@********************** Track 2 **********************@ - -se_m_screech_2: - .byte VOL , 110*se_m_screech_mvl/mxv - .byte KEYSH , se_m_screech_key+0 - .byte VOICE , 42 - .byte PAN , c_v+0 - .byte BEND , c_v+0 - .byte N21 , Fn6 , v064 - .byte W06 - .byte PAN , c_v+0 - .byte W03 - .byte c_v+0 - .byte W03 - .byte W03 - .byte c_v+0 - .byte W03 - .byte W01 - .byte c_v+0 - .byte W03 - .byte BEND , c_v+0 - .byte W02 - .byte FINE - -@******************************************************@ - .align 2 - -se_m_screech: - .byte 2 @ NumTrks - .byte 0 @ NumBlks - .byte se_m_screech_pri @ Priority - .byte se_m_screech_rev @ Reverb. - - .word se_m_screech_grp - - .word se_m_screech_1 - .word se_m_screech_2 - - .end diff --git a/sound/songs/se_m_snore.s b/sound/songs/se_m_snore.s deleted file mode 100644 index 5774355f21..0000000000 --- a/sound/songs/se_m_snore.s +++ /dev/null @@ -1,105 +0,0 @@ - .include "MPlayDef.s" - - .equ se_m_snore_grp, voicegroup_rs_sfx_2 - .equ se_m_snore_pri, 4 - .equ se_m_snore_rev, reverb_set+50 - .equ se_m_snore_mvl, 127 - .equ se_m_snore_key, 0 - .equ se_m_snore_tbs, 1 - .equ se_m_snore_exg, 0 - .equ se_m_snore_cmp, 1 - - .section .rodata - .global se_m_snore - .align 2 - -@********************** Track 1 **********************@ - -se_m_snore_1: - .byte KEYSH , se_m_snore_key+0 - .byte TEMPO , 220*se_m_snore_tbs/2 - .byte VOICE , 38 - .byte BENDR , 12 - .byte PAN , c_v+0 - .byte VOL , 27*se_m_snore_mvl/mxv - .byte BEND , c_v+0 - .byte N10 , An1 , v127 - .byte W01 - .byte VOL , 75*se_m_snore_mvl/mxv - .byte W01 - .byte 120*se_m_snore_mvl/mxv - .byte W04 - .byte W02 - .byte 75*se_m_snore_mvl/mxv - .byte W01 - .byte 28*se_m_snore_mvl/mxv - .byte W03 - .byte VOICE , 36 - .byte VOL , 83*se_m_snore_mvl/mxv - .byte N18 , En2 , v112 - .byte W02 - .byte VOL , 87*se_m_snore_mvl/mxv - .byte W02 - .byte 91*se_m_snore_mvl/mxv - .byte W02 - .byte W01 - .byte 97*se_m_snore_mvl/mxv - .byte W02 - .byte 102*se_m_snore_mvl/mxv - .byte W01 - .byte 109*se_m_snore_mvl/mxv - .byte W02 - .byte 113*se_m_snore_mvl/mxv - .byte W01 - .byte 120*se_m_snore_mvl/mxv - .byte W05 - .byte FINE - -@********************** Track 2 **********************@ - -se_m_snore_2: - .byte VOL , 120*se_m_snore_mvl/mxv - .byte KEYSH , se_m_snore_key+0 - .byte VOICE , 27 - .byte N01 , En2 , v052 - .byte W02 - .byte Dn2 - .byte W02 - .byte En2 - .byte W02 - .byte W01 - .byte Dn2 - .byte W02 - .byte En2 - .byte W03 - .byte W01 - .byte En2 , v064 - .byte W02 - .byte Gs2 - .byte W03 - .byte Dn3 - .byte W02 - .byte En2 - .byte W02 - .byte Gs2 - .byte W02 - .byte W01 - .byte Dn3 - .byte W05 - .byte FINE - -@******************************************************@ - .align 2 - -se_m_snore: - .byte 2 @ NumTrks - .byte 0 @ NumBlks - .byte se_m_snore_pri @ Priority - .byte se_m_snore_rev @ Reverb. - - .word se_m_snore_grp - - .word se_m_snore_1 - .word se_m_snore_2 - - .end diff --git a/sound/songs/se_m_yawn.s b/sound/songs/se_m_yawn.s deleted file mode 100644 index fdd6012a22..0000000000 --- a/sound/songs/se_m_yawn.s +++ /dev/null @@ -1,127 +0,0 @@ - .include "MPlayDef.s" - - .equ se_m_yawn_grp, voicegroup_rs_sfx_2 - .equ se_m_yawn_pri, 4 - .equ se_m_yawn_rev, reverb_set+50 - .equ se_m_yawn_mvl, 127 - .equ se_m_yawn_key, 0 - .equ se_m_yawn_tbs, 1 - .equ se_m_yawn_exg, 0 - .equ se_m_yawn_cmp, 1 - - .section .rodata - .global se_m_yawn - .align 2 - -@********************** Track 1 **********************@ - -se_m_yawn_1: - .byte VOL , 110*se_m_yawn_mvl/mxv - .byte KEYSH , se_m_yawn_key+0 - .byte TEMPO , 150*se_m_yawn_tbs/2 - .byte VOICE , 61 - .byte BENDR , 44 - .byte PAN , c_v+0 - .byte BEND , c_v+0 - .byte N48 , Cn4 , v108 - .byte W02 - .byte BEND , c_v-1 - .byte W01 - .byte c_v+0 - .byte W03 - .byte c_v+0 - .byte W01 - .byte c_v+0 - .byte W02 - .byte c_v+0 - .byte W01 - .byte c_v+0 - .byte W02 - .byte PAN , c_v-4 - .byte W01 - .byte BEND , c_v+0 - .byte W01 - .byte c_v+1 - .byte W02 - .byte c_v+1 - .byte W02 - .byte c_v+1 - .byte W02 - .byte c_v+1 - .byte W01 - .byte c_v+1 - .byte W03 - .byte PAN , c_v-10 - .byte BEND , c_v+1 - .byte W01 - .byte c_v+2 - .byte W02 - .byte c_v+2 - .byte W03 - .byte c_v+1 - .byte W02 - .byte c_v+2 - .byte W01 - .byte c_v+1 - .byte W03 - .byte PAN , c_v-4 - .byte BEND , c_v+1 - .byte W01 - .byte c_v+1 - .byte W02 - .byte c_v+1 - .byte W01 - .byte c_v+0 - .byte W02 - .byte c_v+0 - .byte W01 - .byte c_v-1 - .byte W01 - .byte c_v-1 - .byte W01 - .byte c_v-3 - .byte W01 - .byte c_v-3 - .byte W02 - .byte FINE - -@********************** Track 2 **********************@ - -se_m_yawn_2: - .byte KEYSH , se_m_yawn_key+0 - .byte VOICE , 66 - .byte BENDR , 44 - .byte PAN , c_v+1 - .byte VOL , 110*se_m_yawn_mvl/mxv - .byte N48 , Dn3 , v020 - .byte W24 - .byte W03 - .byte VOL , 103*se_m_yawn_mvl/mxv - .byte W04 - .byte 96*se_m_yawn_mvl/mxv - .byte W03 - .byte 83*se_m_yawn_mvl/mxv - .byte W04 - .byte 67*se_m_yawn_mvl/mxv - .byte W04 - .byte 49*se_m_yawn_mvl/mxv - .byte W03 - .byte 23*se_m_yawn_mvl/mxv - .byte W03 - .byte FINE - -@******************************************************@ - .align 2 - -se_m_yawn: - .byte 2 @ NumTrks - .byte 0 @ NumBlks - .byte se_m_yawn_pri @ Priority - .byte se_m_yawn_rev @ Reverb. - - .word se_m_yawn_grp - - .word se_m_yawn_1 - .word se_m_yawn_2 - - .end