Please login or register.

Login with username, password and session length
Advanced search  

News:

Please use .png instead of .bmp when uploading unfinished sprites to the forum!

SMD Parser (WIP)  (Read 800 times)
Pages: [1]
Sonic Dreams
lirmont [Posts: 473]
  • View Profile
  • share
  • [June 25, 2014, 06:41:21 PM]
SMD Parser (WIP)
« on: June 25, 2014, 06:41:21 PM »
I know there's already something that will get a MIDI into SMD format. I was curious to get the notes out of an SMD, though. This is the file "MUSIC_24.SMD" (LvUp L) with varying MIDI instruments: MUSIC_24.mp3.

As soon as I finish cleaning up the code, I'll post a link here. I believe some of the unknowns point to the information the BGM test shows (an actual title, author, and help text), but I wasn't that curious.

The Puppet ---Master---
Elric (Overseer) [Posts: 3889]
  • View Profile
  • Youtube Channel
  • http://steamcommunity.com/id/Bones42
  • share
  • [June 26, 2014, 02:03:19 PM]
Re: SMD Parser (WIP)
« Reply #1 on: June 26, 2014, 02:03:19 PM »
I wish I understood any of this but GREAT work none the less, music editing/changing (and an easy way to do so) is something we
desperately need more of around here.

    • Modding version: PSX
  • <@Angel> Teach a man to fish and he'll open up a fishery to compete against yours.
    Journey of the Five Youtube ChannelThe Lion War Current Status
       
    Jot5 Leader :: Eventer :: OtherTLW Leader :: Eventer :: Other
    Sonic Dreams
    lirmont [Posts: 473]
    • View Profile
    • share
    • [June 27, 2014, 10:00:02 AM]
    Re: SMD Parser (WIP)
    « Reply #2 on: June 27, 2014, 10:00:02 AM »
    Let the most bizarre game of "Name That Instrument" begin: Instruments.

    --

    Disgaea's "Red Moon" (as found on VGMusic)

    http://www.youtube.com/watch?v=rVTNUcx1iNQ


    Instruments 41 and 42 (main, accompaniment).

    --

    I have discovered what offset 0x1A-0x1B (bytes 26 and 27) is (part of the 3rd unknown block on this page: Music/SMD). This sound file demonstrates a kind of reverb for values of 0 (0x0 0x0), 1084 (0x02 0x1e), and 15364 (0x04 0x3c; what FFT SMDs have): listen.

    --

    I'm sure it's been explained elsewhere about the SMD format, but most of the stuff is not complicated (considering they're mostly just MIDI files, which is a mature specification even back in 1997).

    To help visualize the songs, I've added the feature to plot the notes and instruments out (because I'm having trouble finding suitable alternatives for the samples FFT used). If you can understand something like the graphs, I can probably set it up to interactively change the note (because the graphing application already supports interactivity). However, that won't cover any of the effects (and MIDI files depend on them to make engaging music).

    The following are note graphs for two songs (songs provided).

    LvUp L (i.e. "MUSIC_24.SMD") (listen)




    KUMA BALL (i.e. "MUSIC_25.SMD", Mr. Bear Goes to the Ball) (listen)
    Bass line only.



    View: larger.
    « Last Edit: June 30, 2014, 09:20:37 PM by lirmont »
    Pages: [1]