News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: Questions on ripping GBA samples and sequences using gba2midi  (Read 2540 times)

Hakuromatsu

  • Guest
Questions on ripping GBA samples and sequences using gba2midi
« on: August 10, 2011, 01:07:46 pm »
I'm interested in rendering GBA music in high-level programs -- instead of on the GBA or an emulator -- for better quality. So far, I've been able to convert a song's original sequence to MIDI and convert its samples to 8-bit WAV using gba2midi, then make the samples into a DLS soundfont using Awave Studio, and then render the song in FL Studio. But, I've run into a couple of issues and have a few questions.

1. I have absolutely no idea where the loop points for each sample are. None. To begin with, I have to manually turn on looping for each sample in Awave, but even then, I can only guess where the loop point is. If they're stored near the sample itself in the ROM, would I be able to (easily) find them with a hex editor?

2. I'm not exactly sure what some of the files gba2midi outputs are for, and I haven't been able to find any documentation for the program. Here's what the outputted sample folder looks like:



Here's what I know:
- Each standalone number (and each number before the "@") corresponds to a MIDI instrument (1-128).

- Each number after the "@" corresponds to a MIDI note (this one is 0-127...I don't know why it's different, unless it's meant for a specific application). So "128@20" is Gunshot, G#1 (i.e. the second lowest G#).

Here's what I don't know:
- What the BIN files are for. They each have 128 characters, so they may correspond to the 128 MIDI notes. This is 33.bin:
Code: [Select]
XXXXXXXXXXXXXXXXXXXXXXXXQQQQQQQQQQQQQQQQQQRRRRRRRRRRRRSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSZZZZZZZZZZZZZZZZZZZZ"33" has five different samples, so does each one correspond to each of the five different characters? Does 33@81 correspond to "X" and the first 24 MIDI notes (C0 to B1), then 33@82 correspond to "Q" and the next 18 notes (C2 to F3), and so on? Then what do the letters themselves mean, and what do the numbers after the "@" mean?

- What the TXT files are for. This is 128@20.txt:
Code: [Select]
Inst Header: 11a344h
 Pan:8/15(near equal 4 in SMF) Pitch:-4
Does this mean I have to manually edit the instrument settings for that sample in Awave? Would it have something to do with these screens in Awave?




I set the "default pan position" to 53.33% simply because 8/15 is 53.33%...but that's a complete guess. And I have no idea what "(near equal 4 in SMF)" means, or what to do in terms of the pitch -- "Pitch:-4" is really generic. I really wish gba2midi had more documentation.

Well anyway...sorry for the length and thanks in advance. I'm more than willing to try other programs (sappy.exe won't run on my computer...I'll have access to another one soon, though).

Incidentally, there was a similar topic on this board here.