Skip to content

Tweaking the count of health beeps

Zimmermann Gyula edited this page Jan 28, 2024 · 1 revision

In Pokémon Emerald, the health beeps are a single-channel MIDI file (sound/songs/midi/se_low_health.mid) played as a sound effect. This MIDI file is basically two tones and a short pause in an endless loop. Note that the loop points aren't defined in the MIDI sheet, but as a custom interpretation of two MIDI markers (shown in the example Rosegarden screenshot as [ ] above the channel data, the way this is shown can be different in other MIDI editors).

image

To change how many time this loop should play is to delete the markers from the metadata and then manually duplicate the loops in the sheet in your MIDI editor and overwrite this MIDI file with your edit. Below is an example showing how the result with 4 loops look in Rosegarden:

image

You don't have to edit the code for this.

Additionally; https://github.com/Pawkkie/Team-Aquas-Asset-Repo/tree/main/Audio/Graion%20Dilach/Healthalarms includes multiple MIDI example setups for a simple file change.

Clone this wiki locally