SNES music format

Discuss PoP1 for SNES here.

Moderator: English Moderator Team

David
The Prince of Persia
The Prince of Persia
Posts: 1327
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

SNES music format

Postby David » January 16th, 2016, 11:56 am

Here is what I figured out from the SNES music format so far.
The file also contains (an attempt of) the music converted to MIDI.
The melody seems to be right, only the instruments are wrong.
Attachments
pop1snes_music.zip
(746.4 KiB) Downloaded 50 times

David
The Prince of Persia
The Prince of Persia
Posts: 1327
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: SNES music format

Postby David » June 1st, 2016, 7:46 pm

David wrote:the instruments are wrong

The way to fix this would be to convert to a Module file instead of MIDI.
Unlike MIDI files, those files also contain the sound samples of instruments.

Andrew
Wise Scribe
Wise Scribe
Posts: 313
Joined: July 16th, 2009, 4:39 pm

Re: SNES music format

Postby Andrew » June 1st, 2016, 10:34 pm

David wrote:The way to fix this would be to convert to a Module file instead of MIDI.
Unlike MIDI files, those files also contain the sound samples of instruments.

Or perhaps bundle an appropriate SoundFont along with the MIDI.

David
The Prince of Persia
The Prince of Persia
Posts: 1327
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: SNES music format

Postby David » June 4th, 2016, 12:52 pm

Andrew wrote:Or perhaps bundle an appropriate SoundFont along with the MIDI.

And a MIDI player that can use custom SoundFonts. As soon as I find one...

User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 2935
Joined: April 9th, 2009, 10:58 pm
Contact:

Re: SNES music format

Postby Norbert » June 4th, 2016, 4:00 pm

I don't really know what you are trying to do, but I think TiMidity++ might do what you want?

David
The Prince of Persia
The Prince of Persia
Posts: 1327
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: SNES music format

Postby David » June 5th, 2016, 9:10 am

Norbert wrote:I don't really know what you are trying to do,

I'm trying to make a custom SoundFont that matches what the game uses.
(I already extracted the samples from the game into WAV files.)
And I need a MIDI player that can use that.
Norbert wrote:but I think TiMidity++ might do what you want?

In the meantime I found FluidSynth, but thanks!

For SoundFont editing, I downloaded Polyphone.

User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 2935
Joined: April 9th, 2009, 10:58 pm
Contact:

Re: SNES music format

Postby Norbert » June 6th, 2016, 2:13 am

I meant, to what end? Just for fun and/or the technical challenge?
Because to get recordings of the music, one could simply record the output device.

Andrew
Wise Scribe
Wise Scribe
Posts: 313
Joined: July 16th, 2009, 4:39 pm

Re: SNES music format

Postby Andrew » June 6th, 2016, 8:43 am

David wrote:And a MIDI player that can use custom SoundFonts. As soon as I find one...


From the SDLPoP thread:

Andrew wrote:how about using something like FluidSynth, FMOD Ex, DUMB, BASS/BASSMIDI etc.? Then we can have (with something like BASSMIDI for example) support for MP3, MP2, MP1, OGG, WAV, AIFF, MOD music (XM, IT, S3M, MOD, MTM, UMX), MO3 music (MP3/OGG compressed MODs), MIDI (including SF2 and SFZ SoundFonts)...

David
The Prince of Persia
The Prince of Persia
Posts: 1327
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: SNES music format

Postby David » June 7th, 2016, 6:40 pm

Norbert wrote:I meant, to what end? Just for fun and/or the technical challenge?

Something like that.

Last time I tried FluidSynth, but it gave me this error: (for each channel in 0..7)

Code: Select all

fluidsynth: warning: Instrument not found on channel 0 [bank=0 prog=40], substituted [bank=0 prog=0]

But I'm pretty sure I'm selecting prog=16...

Anyway, now it plays something pretty similar to the original... with some glitches... and it's too quiet.

The attached file contains the new MIDIs, the custom SoundFont, and the waves it was made from.
Attachments
pop1snes_music_custSF.zip
(356.67 KiB) Downloaded 12 times


Return to “Prince of Persia 1 for SNES”

Who is online

Users browsing this forum: No registered users and 1 guest