vgmrips

The forum about vgm files
It is currently 2020-09-28, 7:51:02

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 31 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject:
PostPosted: 2017-04-27, 17:43:11 

Contributors Contributors
Staff Staff
Reverse engineers Reverse engineers
Offline
User avatar

Joined: 2013-07-17, 23:32:39
Posts: 438
That would actually result in a bit worse sound quality and much larger file sizes, as the samples are converted from ADPCM to PCM, then mixed and converted back to ADPCM for streaming. By using another sound chip, you only have to store the samples once in the file and the samples should sound a bit better as they're not being recompressed...


Top
 Profile  
 
 Post subject:
PostPosted: 2017-04-27, 20:15:46 

Programmers Programmers
Contributors Contributors
Offline
User avatar

Joined: 2012-05-05, 16:39:51
Posts: 41
Exactly :P , for that reason I posted:
Delek wrote:
That will complicate a little bit the stream data in the .vgms.

I'm afraid that mdx2vgm will need to use a multichannel PCM soundchip while playing PCM8 mdxs, as you said, ctr.
But before that we need to figure out how does PCM8 selects the sample to trigger, here:
https://github.com/LeonardoDemartino/md ... ore.h#L511

_________________
Delek's Website
DefleMask Tracker
Delek's SoundCloud
Delek's YouTube Channel


Top
 Profile  
 
 Post subject:
PostPosted: 2017-04-27, 21:05:46 

Staff Staff
Programmers Programmers
Contributors Contributors
Ball Fondlers Ball Fondlers
Offline
User avatar

Joined: 2014-01-28, 5:51:54
Posts: 714
I'm currently writing a MML compiler, so maybe ctr can help you instead.

_________________
vampi.tech


Top
 Profile  
 
 Post subject:
PostPosted: 2017-04-27, 22:01:37 

Staff Staff
Programmers Programmers
Contributors Contributors
Ball Fondlers Ball Fondlers
Offline
User avatar

Joined: 2014-01-28, 5:51:54
Posts: 714
Ideally, you'd make it a command-line option: generate mixed ADPCM output like X68Sound.dll or use a multi-channel PCM chip, choose which chip, and so on and so forth.

_________________
vampi.tech


Top
 Profile  
 
 Post subject:
PostPosted: 2017-04-27, 22:15:57 

Contributors Contributors
Staff Staff
Reverse engineers Reverse engineers
Offline
User avatar

Joined: 2013-07-17, 23:32:39
Posts: 438
vampirefrog wrote:
I'm currently writing a MML compiler, so maybe ctr can help you instead.


if you just need something quick, i made a quick and dirty asm template (for a 68K assembler) that you can use to create MDX files.


Top
 Profile  
 
 Post subject:
PostPosted: 2017-04-28, 0:04:08 

Contributors Contributors
Offline
User avatar

Joined: 2015-11-01, 22:18:27
Posts: 41
Two things:

  • Stereo panning of ADPCM is not working. (Samples are played back only "centered" in the .vgm)
  • Different speeds of ADPCM playback is not working. (15.6/10.4/7.8/5.2/3.9KHz can be selected using the F# command in note.x MML, but the resulting .vgm uses only 15.6KHz)

I made a test .MDX using note.x v0.8.5, which plays fine in hoot. The .MUS is the MML code if this is useful.


Attachments:
TOM_TEST.7z [2.66 KiB]
Downloaded 112 times
Top
 Profile  
 
 Post subject:
PostPosted: 2017-04-28, 0:28:56 

Staff Staff
Programmers Programmers
Contributors Contributors
Ball Fondlers Ball Fondlers
Offline
User avatar

Joined: 2014-01-28, 5:51:54
Posts: 714
ctr wrote:
if you just need something quick, i made a quick and dirty asm template (for a 68K assembler) that you can use to create MDX files.


Thanks, I'm trying to replicate what MXC.X does, and later on NOTE.X, which is pointlessly advanced. Right now I'm trying to use gnu bison to generate the parser.

_________________
vampi.tech


Top
 Profile  
 
 Post subject:
PostPosted: 2017-04-28, 1:45:16 

Programmers Programmers
Contributors Contributors
Offline
User avatar

Joined: 2012-05-05, 16:39:51
Posts: 41
I'm trying to figure out where is the panning, the speed and the sample selection in PCM8 mode for the samples in the disassembly hell of: https://github.com/mitsuman/mdx2wav/blo ... rvg_core.h
Do you guys have any idea about this?

_________________
Delek's Website
DefleMask Tracker
Delek's SoundCloud
Delek's YouTube Channel


Top
 Profile  
 
 Post subject:
PostPosted: 2017-04-28, 2:10:53 

Contributors Contributors
Staff Staff
Reverse engineers Reverse engineers
Offline
User avatar

Joined: 2013-07-17, 23:32:39
Posts: 438
Most of that magic happens in the x68sound.dll, see here. The disassembly is really rough, PCM8_SUB() (which takes no arguments, everything is global) calls PCM8.Out() from the DLL. There are no defined constants, so it's a bit hard to follow...


Top
 Profile  
 
 Post subject:
PostPosted: 2017-04-28, 2:57:41 

Programmers Programmers
Contributors Contributors
Offline
User avatar

Joined: 2012-05-05, 16:39:51
Posts: 41
The magic is not happening on that dll because I'm not even using it. :lol: I run the driver only and somehow and in someplaces the driver is telling "sample 1 on channel 1 and sample 4 on channel 2", "pcm stereo to xx", "pcm speed to xx" but I can't find it in the disassembly C code. This will take longer than expected... :(

_________________
Delek's Website
DefleMask Tracker
Delek's SoundCloud
Delek's YouTube Channel


Top
 Profile  
 
 Post subject:
PostPosted: 2017-04-28, 21:23:49 

Staff Staff
Programmers Programmers
Contributors Contributors
Ball Fondlers Ball Fondlers
Offline
User avatar

Joined: 2014-01-28, 5:51:54
Posts: 714
and that is why I'm writing it from scratch, instead of messing with some 30 year old code

_________________
vampi.tech


Top
 Profile  
 
 Post subject:
PostPosted: 2017-04-29, 18:36:51 

Staff Staff
Programmers Programmers
Contributors Contributors
Ball Fondlers Ball Fondlers
Offline
User avatar

Joined: 2014-01-28, 5:51:54
Posts: 714
yo Delek take a look at this beauty http://vgmrips.net/mirror/mdxplay-20070206.tar.gz

_________________
vampi.tech


Top
 Profile  
 
 Post subject:
PostPosted: 2017-05-06, 19:20:27 
Offline
User avatar

Joined: 2012-12-21, 15:30:24
Posts: 73
Location: UK
This has already proven very useful to me!

I converted Spindizzy II from the MDX files I have, and retagged them for my own purposes - all that is missing is a track order/numbers and perhaps gzip compression. I thought I'd share them here too, in case this interests anybody else ~ it's a great soundtrack by Toshiya Yamanaka! If anyone wants to take it further for a VGMrips submission that would be splendid, however do bear in mind that A) the source MDX files may be third-party approximations of the soundtrack, rather than fully legitimate and sourced from the software; I am not sure eitherway, B) I haven't listened to the VGM conversion exhaustively and cannot assure its parity with the MDXs at this time (upon initial inspection it sounds fairly accurate though.)

Download here.

_________________
http://iridescentaudio.co.uk


Top
 Profile  
 
 Post subject:
PostPosted: 2017-05-07, 14:41:59 
Offline

Joined: 2016-08-03, 22:36:09
Posts: 26
Location: Italy
Terrific project!
I second what ctr says:
if managing .pdx samples (being single ADPCM channel or 8 PCM channels of PCM8 bpard), mdx2vgm could translate to OPL4 wavetable/PCM samples then I could play vgm with MSX with (YM2151)SFG-0x + (YMF-278B)Moonsound/DalSoRi/OPL4ShockWave/FM-BLASTER, and it could be such an achieving moment having real hardware on my side. :drool:
Ciao!

(actually I did some experiments with AIN's mdx player for MSX2/MSX2+/MSXturboR and it (sort of) works for FM part but I don't understand which hardware is supposed to play ADPCM or PCM even though some pdx managing is there. I have also mdx player Z80 assembly sources but not mdxdrv TSR driver sources.)


Top
 Profile  
 
 Post subject:
PostPosted: 2017-05-07, 21:50:23 

Contributors Contributors
Offline
User avatar

Joined: 2015-11-01, 22:18:27
Posts: 41
blitzlunar wrote:
... I converted Spindizzy II from the MDX files I have, and retagged them for my own purposes - all that is missing is a track order/numbers and perhaps gzip compression. ...

Someone was working on logging this OST a little while ago. Their pack would be preferred for submission as an "official pack", as it seems they had logged all the songs from the game's sound test.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 31 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Yandex [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
[ Time : 0.119s | 19 Queries | GZIP : On ]