Skip to content

Instantly share code, notes, and snippets.

View loveemu's full-sized avatar

loveemu loveemu

View GitHub Profile
@loveemu
loveemu / SLPM_86500.md
Last active September 22, 2023 08:56
Dragon Quest VII: Sound Engine Analysis

Dragon Quest VII: Sound Engine Analysis

This is a technical analysis note of the sound engine of PS1 Dragon Quest VII.

DQVII uses a custom sound engine, developed by Heart Beat. PS1 Dragon Quest IV also uses the same sound engine.

Note: I used Japanese version of Dragon Quest VII (SLPM-86500)

@loveemu
loveemu / gba_mus_riper_v22_loveemu.patch
Created January 24, 2015 09:30
Personal Patch for GBAMusRiper v2.2
diff -rdu src/gba_mus_riper.cpp src_patched/gba_mus_riper.cpp
--- src/gba_mus_riper.cpp 2014-12-22 07:03:19.000000000 +0900
+++ src_patched/gba_mus_riper.cpp 2015-01-24 18:17:27.764686700 +0900
@@ -33,6 +33,7 @@
static bool rc = false;
static bool sb = false;
static bool raw = false;
+static bool force_output_unused = false;
static uint32_t song_tbl_ptr = 0;
@loveemu
loveemu / smw-volume.lua
Last active August 29, 2015 14:08
Super Mario World (Earlier N-SPC): Volume Calculation
-- Lua 5.1: Super Mario World (Earlier N-SPC): Volume Calculation
-- Note that I do not handle a few things like tremolo
-- Also, note that it is somewhat different from modern N-SPC.
-- 1270:
local velocity_table = {
0x08, 0x12, 0x1b, 0x24, 0x2c, 0x35, 0x3e, 0x47,
0x51, 0x5a, 0x62, 0x6b, 0x7d, 0x8f, 0xa1, 0xb3
}