DCEmulation

The Dreamcast Homebrew Community Online
Back to main site
It is currently Wed Apr 23, 2014 12:35 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 14 posts ] 
Author Message
PostPosted: Fri Dec 30, 2005 7:55 am 
Offline
Insane DCEmu
Insane DCEmu

Joined: Thu Feb 06, 2003 9:43 am
Posts: 251
Because I think BlackAura must have somehow does his XM wads in a special way.

I was using tools like XWE, Winamp and ModPlug Tracker to extract the music from all my mods, convert them to MIDI and then convert them to XM/IT. Now I notice that with the default XMs nxDoom auto-loops the music every time. But when I tried testing out Ultimate Simpsons Doom, while the new XM wad I made worked, it wouldn't restart the song again from the beginning, and I notice the following message in the console window:

Code:
Warning: End of song reached! This may not work on a DC!


Which kinda worries me as to whether this means the music won't even play on the Dreamcast port (was testing the Windows port).

Do me and BA do things a little differently round here? Much help appreciated, thanks?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 30, 2005 8:11 am 
Offline
DC Developer
DC Developer

Joined: Sun Dec 30, 2001 8:02 am
Posts: 9951
That's pretty much exactly how I made the original XMs. For some reason, the Dreamcast version of nxDoom crashes when it hits the end on a song instead of looping. So, I added a position jump command at the end of each XM file, which jumped back to the first note of the first pattern. I believe it was effect B00.

If you rip a song out of one of my XM WADs, you should see that effect right at the end of the song. Might have had a C00 effect (pattern jump) in there as well, to make sure it started at the right row.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 30, 2005 8:48 am 
Offline
Insane DCEmu
Insane DCEmu

Joined: Thu Feb 06, 2003 9:43 am
Posts: 251
Ah, okaaaaaaaaaaay......... perhaps you could pretty please give me a step-by-step guide on how to add one of these "position jump command"s to any XM of my choice? I'm not very knowledgeable on those.... this is something to be done in ModPlug Tracker right????


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 30, 2005 7:48 pm 
Offline
DC Developer
DC Developer

Joined: Sun Dec 30, 2001 8:02 am
Posts: 9951
Yep. Go to the last pattern of the song (open the Patterns tab, and grab the last pattern), and then go down to the bottom of that pattern, after the last note finishes.

In the lower window, you should see a lot of columns, each representing a channel. The columns contain four sub-columns, the right-most one of which corresponds to effects. In the right-most sub-column of the first channel, write "B00" (that's B, zero, zero). In the right-most sub column of the second channel, put "C00".


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 08, 2006 4:30 pm 
Offline
Insane DCEmu
Insane DCEmu

Joined: Thu Feb 06, 2003 9:43 am
Posts: 251
Might as well say finally, thank you for the pattern-altering hints!

Although I also might as well ask, what made you switch from midi to mod when developing nxDoom? It's not all that handy in the end as the many XM wads you have to make means less room for more mods on the CD. Maybe we could see a new nxDoom soon which adds support for the original MIDI output? :) I mean, if Bero could do it.....

Although I understand you're busy atm so I shan't pressure you to do anything as such out of respect.

But thank you anyway!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 08, 2006 8:25 pm 
Offline
DC Developer
DC Developer

Joined: Sun Dec 30, 2001 8:02 am
Posts: 9951
There was no MIDI playback stuff available for the Dreamcast at the time. I did manage to get Timidity working a while after the last release of nxDoom, but it was a pain in the backside, ate a lot of memory, and slowed loading down quite a lot. XM support was far easier to get working.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 13, 2006 7:57 am 
Offline
DCEmu Newbie
DCEmu Newbie

Joined: Sun Aug 13, 2006 7:02 am
Posts: 1
Hello,
I will made a XM wad with music too but i don't know what music format it is, is it ADPCM?
When it's ADPCM, how i convert MIDI to ADPCM.
I will made a new Terminator Wad, but with my own Terminator music.
I hope someone can help me.
Regards Arnold


Top
 Profile  
 
 Post subject: Re:
PostPosted: Mon Sep 08, 2008 8:00 pm 
Offline
Insane DCEmu
Insane DCEmu

Joined: Wed Jan 10, 2007 10:56 am
Posts: 126
BlackAura wrote:
Yep. Go to the last pattern of the song (open the Patterns tab, and grab the last pattern), and then go down to the bottom of that pattern, after the last note finishes.

In the lower window, you should see a lot of columns, each representing a channel. The columns contain four sub-columns, the right-most one of which corresponds to effects. In the right-most sub-column of the first channel, write "B00" (that's B, zero, zero). In the right-most sub column of the second channel, put "C00".


Hi BA,
I'm trying to compile an xm.wad for nxdoom by following this thread. I pulled up your "doom1xm.wad" file for sake of example in Openmpt and was stumped to locate the values you describe in your post. Here's a screenshot of what I'm seeing:


Image

Now where is the last pattern, and how does one grab it? Where are the B00 and C00 values you referred to?

Also, is there a "hand-holding" type tutorial anywhere on this subject?
I know enough to convert the audio files for the doom levels to .wav
I use Adobe Audition 3.0 to do this from mp3 and convert to "Microsoft ADPCM (*.wav)" I assume??
My options are:
Image

I further assume the sample rate would be as follows?
Image

Beyond this, I'm really at the beginnings of this by trying to "reverse-engineer" your xm.wad file to be best welcomed by nxdoom. Do you need to import the files into doom builder, and if so......how?

Sure you can tell I'm a little lost.

Thanks in advance, BA for any help on this!

-TW


Top
 Profile  
 
PostPosted: Tue Sep 09, 2008 1:20 am 
Offline
DC Developer
DC Developer

Joined: Sun Dec 30, 2001 8:02 am
Posts: 9951
Unfortunately, nxDoom can't play MP3s or any other samples audio format. It has to be XM files.

In that screenshot, you've actually opened the WAD file. You would need to extract the individual XM files from the WAD first.

I just wish I could remember what tool you use to do it.


Top
 Profile  
 
PostPosted: Tue Sep 16, 2008 5:53 pm 
Offline
Insane DCEmu
Insane DCEmu

Joined: Wed Jan 10, 2007 10:56 am
Posts: 126
Thanks, BA
I'll fish around. I assume DoomBuilder can open the music .wad's?


Top
 Profile  
 
PostPosted: Wed Sep 17, 2008 8:39 am 
Offline
DC Developer
DC Developer

Joined: Sun Dec 30, 2001 8:02 am
Posts: 9951
Probably. Anything that can load the WAD files and not be too smart about the contents should be OK.

Basically, the music lumps normally contain a specially formatted MIDI-like file, but the nxDoom music files contain XM files instead. As long as the tool doesn't try to automatically convert the files into MIDI files, it should be able to export them fine. Basically, if you export them, rename them with a .XM extension, you should be able to play them in WinAmp, and open them in Modplug Tracker.


Top
 Profile  
 
PostPosted: Mon Apr 20, 2009 1:53 pm 
Offline
DCEmu Cool Poster
DCEmu Cool Poster

Joined: Wed Oct 17, 2001 5:44 pm
Posts: 1003
I wish there was more sources for xm packs for nxdoom or the ability to load a different music format or covert the music more easily. That huge mod collection I released was cool, but the limited music options sucked. I tried converting some music for using but I think it didn't work because it used too many sound channels. Is there any hope on nxdoom music capibilities improving? Or someone developing a tool to easily convert the files. It sucks having 300 different modpacks with about 6 different music tracks.


Top
 Profile  
 
PostPosted: Mon Apr 20, 2009 3:51 pm 
Offline
Insane DCEmu
Insane DCEmu

Joined: Wed Jan 10, 2007 10:56 am
Posts: 126
A "simple" converter where you could load your doom.wad or doom2.wad then "insert x mp3 (select from a local browser window popup) into x level in the wad" then "save as" construction utility that would render nxdoom-friendly xm's would definitely be the cat's a$$, and may rekindle interest in DoomDC and DC in general. Imagine the custom tracks one could come up with.... possibilities would be endless. This ability, exclusively easy in the Doom DC world would rival the likes of PC emulators like Doomsday and ZDoom, and probably get those communities buying DC's just to join in on the buzz of it all. Yeah??


Top
 Profile  
 
PostPosted: Tue Jan 19, 2010 6:07 am 
Offline
Psychotic DCEmu
Psychotic DCEmu

Joined: Mon Aug 11, 2008 7:34 am
Posts: 577
Location: Nowhere U.S.A.
TechnoWolf wrote:
A "simple" converter where you could load your doom.wad or doom2.wad then "insert x mp3 (select from a local browser window popup) into x level in the wad" then "save as" construction utility that would render nxdoom-friendly xm's would definitely be the cat's a$$, and may rekindle interest in DoomDC and DC in general.
A bit of a necro post here, but "inserting X mp3, wav, etc..." isn't technically possible.

MIDI, MOD, IT, XM format files aren't even music themselves, they are the instructions on how the synthesizer creates the music. It's like comparing a cd recording of an orchestra to the sheet music for the musicians playing it.

So in the end, the only way to create custom modular music is by composing it in notation by hand pretty much.

There might be some type of converters out there that can convert MP3, or WAV to MIDI and the like, but it's only for single instrument recordings like guitar, piano, or a human voice.

You could read this article here, for a better understanding: http://www.myriad-online.com/en/sharedx ... iomidi.htm

On the other hand, converting from one module to the next, midi to mod, mod to xm, is possible.

_________________
ImageImageImageImage


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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:  
cron
Powered by phpBB® Forum Software © phpBB Group