Next Page

Converting SNES BRRPCM to RAW Linear PCM? by RukarioGyiyg996 at 8:53 PM EDT on October 25, 2015
With .SPC files being the way they are, and with what docs I can find on BRRPCM itself. Anybody have any guides or pointers to ripping this stuff manually and converting it back into PCM? I don't need any headers since I'm going to use these raw waveforms in a tracker program.
by birdmanager6 at 11:35 PM EDT on October 25, 2015
To rip the samples from a ROM or an SPC file, use a tool such as SNESSOR95, which will export all the samples as WAV files. Then, using Audacity, you can export it as a RAW file, by choosing the "Other uncompressed formats..." option and selecting the "RAW (headerless)" option, and for the settings, choose "Unsigned 8-bit PCM". It works perfectly, and I've done this many, many times before for my projects.
by RukarioGyiyg996 at 1:04 AM EDT on October 26, 2015
This thing seems really, really old. And I'm running on Linux so I'm not sure if something like this will run in Wine real well. (It does appear to be a PE type executable atleast.)

Though this doesn't seem like it'll be what I exactly want, I literally want to take the BRRPCM data, and decode each sample of the BRRPCM stream into linear PCM as-is, without any clear sampling rate. Unless that's what this tool may be doing?
by kode54 at 1:18 AM EDT on October 26, 2015
You'll want something signficantly newer. That old thing doesn't decode or clip samples properly.

Perhaps somebody needs to write a ripper? Something that processes SPC files by playing them back into nothing, but logging which sample data is decoded and played back? It could record contiguous blocks of samples, and write them out to disk, noting where loop points occur. This matters for a few games, such as Toy Story, where the sample numbers remained untouched, but the sample directory was rewritten just in time for it to take effect.
by RukarioGyiyg996 at 2:10 PM EDT on October 26, 2015
Well I'm fine with ripping the BRRPCM with a hex editor then using either a script or C program to decode to PCM myself, I just need a few pointers on how to go about it.

According to how .SPC files are, the samples are neatly ordered in RAM so I may just go off of that rather than digging into actual ROM's but it wouldn't hurt to get all the information I need.
by birdmanager6 at 5:37 PM EDT on October 26, 2015
Here are two more useful programs:
Another old (but useful) program is SPCTool. It's an MS-DOS app, so use DOSbox. It's much harder to find samples than SNESSOR95, and it'll also export as WAV, but it seems to fix all the issues with SNESSOR95, including missing samples (such as a few in Earthworm Jim).
A much newer, CMD-based tool, is SPC Decoder from BRR Tools. It also uses WAV files, and only works for SPC files, but it's probably the closest thing to what you want.
Personally, though, I think you're much better off ripping samples from ROMs than SPCs. They usually only contain the samples in the current music, instead of all the samples, and you'll probably find sound effect samples only in the few provided voice clip tracks they have in the SPC sets. Not to mention that there are a handful of SPC-INCOMPATIBLE games out there, The Lost Vikings first comes to my mind, so ripping from the ROMs of those games is the only option for those games.
But I'm surprised nobody has come up with a simple tool that extracts BRRs right out of ROMs or SPCs in their original format.

edited 5:38 PM EDT October 26, 2015
by RukarioGyiyg996 at 6:13 PM EDT on October 26, 2015
I only need to rip very few samples from EarthBound\MOTHER 2 because I want to make my own version of Toby "Radiation" Fox's MEGALOVANIA in ImpulseTracker and I need the raw sample he used for the lead in the hack's version of the song.

I used SPCTool before but, like you said it's hard to fine. I've misplaced it, and further more it's very unstable under DosBOX.

on a off topic note, is there any way we could communicate directly to one another kode54? You seem really knowledgeable in alot of stuff, and I have like, zero friends who even have a clue about what I babble on about.

EDIT: On that note, can anybody provide me with a .SPC of Megalovania? Last time I tried to get the hack working it just breaks, I don't know if it was because the poor choice of emulator I tried, the patch not working right or my ROM wasn't a good dump. In either case, I'm in no position to actually try to get the hack going, so if anybody could provide me with a .SPC of Megalovania would be much appreciated.

edited 6:17 PM EDT October 26, 2015
by dj4uk6cjm at 6:32 PM EDT on October 26, 2015
Split700 rips BRR samples from spc files and it retains their loop points so its a must have for anyone, even made a thread about it here a year ago but I must stress that I wish it could output a soundfont from spcs. I'd rather have soundfonts than wav samples tbh lol anyways hope it helps.
by RukarioGyiyg996 at 7:00 PM EDT on October 26, 2015
The source code to this is very interesting, thanks.
by RukarioGyiyg996 at 7:43 PM EDT on October 27, 2015
Split700 doesn't appear to be saving any loop information in the wavs I generate with brr2wav, any idea why?

Next Page
Go to Page 0 1

Search this thread

Show all threads

Reply to this thread:

User Name Tags:

bold: [b]bold[/b]
italics: [i]italics[/i]
emphasis: [em]emphasis[/em]
underline: [u]underline[/u]
small: [small]small[/small]
Link: [url=http://www.google.com]Link[/url]

[img=https://www.hcs64.com/images/mm1.png]
Password
Subject
Message

HCS Forum Index
Halley's Comet Software
forum source