converting a SNDH into a VGM sound file

All about chiptunes

Moderators: Mug UK, lotek_style, Moderator Team

marss
Atari nerd
Atari nerd
Posts: 46
Joined: Thu Nov 07, 2002 12:29 pm

converting a SNDH into a VGM sound file

Postby marss » Tue Jun 20, 2017 12:17 pm

Hi,
how is it possible to convert a SNDH sound file into a VGM (Megadrive) one?
Thanks

User avatar
Greenious
Hardware Guru
Hardware Guru
Posts: 1160
Joined: Sat Apr 24, 2004 5:39 pm
Location: Sweden

Re: converting a SNDH into a VGM sound file

Postby Greenious » Tue Jun 20, 2017 12:34 pm

There is not even a VGM-player available for the ST.

http://vgmrips.net/wiki/VGM_Players

Maybe the VGM community can answer this question better...
Updated my guides as of june 28th, 2016. Check'em out and feedback!
viewtopic.php?t=5040

User avatar
simonsunnyboy
Moderator
Moderator
Posts: 4773
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany
Contact:

Re: converting a SNDH into a VGM sound file

Postby simonsunnyboy » Tue Jun 20, 2017 4:03 pm

It's probably impossible for generic SNDH as each SNDH file contains a driver written in m68k to program the YM2149 chip through interrupts. They do not contain simple register data to play back.

Maybe .ym files can be converted.
Simon Sunnyboy/Paradize - http://paradize.atari.org/ - STOT: http://www.npoi.de/stot/

Stay cool, stay Atari!

1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee

Jabber: simonsunnyboy@atari-jabber.org

tonma
Retro freak
Retro freak
Posts: 14
Joined: Sun May 08, 2016 8:10 am

Re: converting a SNDH into a VGM sound file

Postby tonma » Wed Jun 21, 2017 9:30 am

Cool. With winston you can save music in YM format.

Can I modify a YM file like cutting multiple tracks? And can we convert or retrieve data for notes or instruments to redo it on another tracker?

User avatar
farvardin
Captain Atari
Captain Atari
Posts: 343
Joined: Fri Jan 01, 2010 5:50 pm
Location: France
Contact:

Re: converting a SNDH into a VGM sound file

Postby farvardin » Wed Jun 21, 2017 2:11 pm

vgm is not only for the megadrive system. It can handle several other formats, such as master system, adlib, neo-geo etc. Deflemask is a tracker which can export to several platforms, in vgm format (not all vgm players can replay the newest specifications): http://www.deflemask.com/ (sadly, you can't create tunes for the ST / ym2149 chip, maybe one day...)
See vgm as a container. Like the YM format, it contains instructions for how to send data to the chip (through registers).

VGM is also supposed to handle the MSX sound format. They had several chips (AY-3-8910 and later ym2149 like on our ST, and on MSX2+, FM chip like YM2413). So maybe it could be possible to do something with it, but I don't know if it worth it, because it would only be useful for modern VGM player on your PC, where you also have plenty of YM players. If you intented to play YM files (or other format) to a console VGM player, on your megadrive for example, it wouldn't work anyway because it's not the same sound chip. On my Megadrive I can replay only VGM I made with Deflemask targeting the Megadrive, of course.

About YM, I doubt you could record / save music in YM format if you play it from SNDH. I would only work for game using more classic music. For example when recording the Xenon 1 music, a (spoken) sample was not recorded in ym. I guess it's the same for sndh. And no, you can't modify a YM file, you can't extract music and such, unfortunately. If you want to redo the music into another tracker, you can only do this if you can get the original source of the music (or by ear).

tonma
Retro freak
Retro freak
Posts: 14
Joined: Sun May 08, 2016 8:10 am

Re: converting a SNDH into a VGM sound file

Postby tonma » Wed Jun 21, 2017 2:27 pm

Thanks for info.
Yes I record music while the game playing. So I have to learn music.

Great music on your site.

User avatar
simonsunnyboy
Moderator
Moderator
Posts: 4773
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany
Contact:

Re: converting a SNDH into a VGM sound file

Postby simonsunnyboy » Wed Jun 21, 2017 3:32 pm

.YM file format samples direct register dumps of the YM2149 registers (16). IIRC a register dump for every 50hz tick is stored.

As sample playback requires much faster rates, so any digi samples on a STF cannot be captured this way.

OTOH replay is easy, "every 50hz copy register content to chip" ;)

The files become large.
Simon Sunnyboy/Paradize - http://paradize.atari.org/ - STOT: http://www.npoi.de/stot/

Stay cool, stay Atari!

1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee

Jabber: simonsunnyboy@atari-jabber.org

User avatar
farvardin
Captain Atari
Captain Atari
Posts: 343
Joined: Fri Jan 01, 2010 5:50 pm
Location: France
Contact:

Re: converting a SNDH into a VGM sound file

Postby farvardin » Wed Jun 21, 2017 8:06 pm

while I think about it, some trackers such as Maxymiser save their files directly as sndh, so you should be able to reload them into maxymiser, see the notes and retype the music into another tracker (it will be a tedious work). Some others use an intermediary file.

tonma
Retro freak
Retro freak
Posts: 14
Joined: Sun May 08, 2016 8:10 am

Re: converting a SNDH into a VGM sound file

Postby tonma » Thu Jun 22, 2017 6:51 am

I tried maxymizer with sndh file but everytime I load a song I have an "Disk op. FAILED (CANCEl)" message
Image

User avatar
farvardin
Captain Atari
Captain Atari
Posts: 343
Joined: Fri Jan 01, 2010 5:50 pm
Location: France
Contact:

Re: converting a SNDH into a VGM sound file

Postby farvardin » Thu Jun 22, 2017 7:03 pm

it probably mean this song was created using another tool. (For example musicmon which has its own format and can export to sndh)

tonma
Retro freak
Retro freak
Posts: 14
Joined: Sun May 08, 2016 8:10 am

Re: converting a SNDH into a VGM sound file

Postby tonma » Fri Jun 23, 2017 7:14 am

Same result. I tested one of your music and it works.
I used a hexa utility and I see that my sound files are packed with ICE. I tried to unpack them (with multi depacker) and it still does not work. :-(


Social Media

     

Return to “Ym rockin'”

Who is online

Users browsing this forum: No registered users and 1 guest