The SM2ITG Converter - anyone interested?

Anything concerning In The Groove and/or r21.

Moderators: Admins, Mods

The SM2ITG Converter - anyone interested?

Postby Frosty555 on Wed Feb 13, 2008 4:05 am

Hi all,

I'm Frosty555. I usually post on RGCanada but I was trying to find the ogg length patch and ran into you guys ;)

I wrote a tool that does ALL of the conversion necessary to make a stepmania simfile R21-ready. It does quite a lot of stuff all automatically.

This is what the tool does all automatically:

1) Converts the MP3 to an OGG file
2) Compresses the OGG the appropriate amount to make it just under 5 megs. Long songs get compressed more. Short songs get better quality!
3) If necessary, it makes the OGG file MONO instead of STEREO. This cuts half the size off the OGG file with a minimal hit to the quality. At the arcade you don't notice that it's the same stuff coming out of both speakers ;). This happens when the song exceeds about 3 minutes in length. It REALLY beats lowering the quality all the way the heck down.

4) Normalizes the OGG's volume to 100%, intelligently avoiding anomolous "spikes" in the song. <-- so you don't go to the arcade and find your song is too quiet!

3) Applies the OGG Length Patch to the OGG file
4) Replaces ".MP3" with ".OGG" in the SM file
5) Copies only the necessary files (the .SM and the .OGG) to a new "ITGREADY" folder. So your original simfile is left intact and untouched

It can be executed right from the explorer right-click menu, simply by right clicking on a folder and picking "Make Simfile ITG Ready".

Or you can use the little gui I made.

Or you can run it raw from the command line.

The only caveat is you must install it in C:\SM2ITG. Nowhere else will work because the various BATCH files require that all the tools are in that folder.

So... is anyone interested in this? I'll post a link:

-------snip--------

This is the first version. I expect there may be bugs. But I've tested it thoroughly on my own system and everything seems to be working fine.




--- EDIT, Jan 2013 ---

Hi guys, I know this is super old but I just wanted to let you know that I've released the source code and all the files I have for the SM2ITG project onto Google Code.

Just in case anybody wants to use it, or find it, or maybe wants to dig into it and try and add features or fix bugs.

http://code.google.com/p/sm2itg/
Frosty555
10%
10%
 
Posts: 12
Joined: Wed Feb 13, 2008 3:55 am

Re: The SM2ITG Converter - anyone interested?

Postby x0_000 on Wed Feb 13, 2008 4:54 am

Sounds interesting. Is there an option that doesn't apply the patch?
x0_000
60%
60%
 
Posts: 630
Joined: Tue Oct 23, 2007 5:13 pm

Re: The SM2ITG Converter - anyone interested?

Postby Frosty555 on Wed Feb 13, 2008 5:16 pm

Just because I love you. Yes there is now an option!!

I am keeping proper revision notes on RGCANADA.COM.

But version 1.1 is out with some bug fixes and new features!

I'm not gonna copy myself on every forum so go here to see the revisions:
http://rgcanada.com/forum/viewtopic.php ... 42#p200542

You can redownload the file from the same place, the same link.

Frosty555 wrote:First off, the bug involving paths with spaces in them is fixed.

Because you asked for it JD you can now use it on simfiles that have OGG files already there. You can even specify to not touch the ogg file, e.g. don't decode/normalize/reencode it, it'll just apply the timing patch. BUT to do that you need to use the gui. It will always decode-normalize-reencode-forceittobe5mb if you run it from explorer. I think that makes more sense anyhow

There's also options to skip normalizing and skip the ogg length patch if you so desire. Those features are available from the GUI as well.
Frosty555
10%
10%
 
Posts: 12
Joined: Wed Feb 13, 2008 3:55 am

Re: The SM2ITG Converter - anyone interested?

Postby Blazing on Thu Feb 14, 2008 12:24 am

I have a question about this.
Will this tool convert .dwi to .sm if necessary? That would be incredibly helpful, since I have way too many files that are just .dwi's.
I guess I'll find out when I mess around with the tool. It looks pretty cool.
RODD wrote:I want to one day play without my shirt on so i can feel the breeze and be like Flash 8)
User avatar
Blazing
102%
102%
Site Admin
Site Admin
Moderator
Moderator
 
Posts: 5648
Joined: Sun Aug 26, 2007 8:19 pm
Location: Gainesville, Florida

Re: The SM2ITG Converter - anyone interested?

Postby Frosty555 on Thu Feb 14, 2008 2:24 am

Unfortunately no. It doesn't convert a DWI into an SM file. There's no reliable way to do it so far as I know, and I don't have any good whitepapers on the DWI and SM formats, so writing my own converter would probably be full of bugs for a long long time ;)

But if anyone can find a tool besides stepmania itself that can convert a DWI into an SM reliably, I could integrate it.
Frosty555
10%
10%
 
Posts: 12
Joined: Wed Feb 13, 2008 3:55 am

Re: The SM2ITG Converter - anyone interested?

Postby x0_000 on Thu Feb 14, 2008 2:45 am

What language is the program written in? I can probably write up some code for it.
x0_000
60%
60%
 
Posts: 630
Joined: Tue Oct 23, 2007 5:13 pm

Re: The SM2ITG Converter - anyone interested?

Postby impulse.0000 on Thu Feb 14, 2008 9:34 pm

Can you batch convert whole song folders with this?

EDIT: Converted a couple files, testing them now...

EDIT 2: Files work great! Didn't try batch converting, but through the GUI it wants a specific .sm file, so maybe not.

EDIT 3: Anyway, I can't begin to thank you enough for making something like this available! People are going to absolutely love you for this contribution!
impulse.0000
0%
0%
 
Posts: 5
Joined: Wed Feb 13, 2008 11:24 pm

Re: The SM2ITG Converter - anyone interested?

Postby Frosty555 on Thu Feb 14, 2008 11:37 pm

Oh my looks like you answered all your questions before I got to you! Haha

You *can* batch convert a large quantity of simfiles by using explorer. Select all the folders you want to convert, right click and go to "make simfiles itg ready". Windows runs the program X number of times for every single folder. Now... it isn't so much a batch as much as it is a shove-it-all-down-the-computer's-throat-at-once.

Using the gui though, you can only pick one folder at a time ;) The gui really is just a little wrapper to shell execute the batch file. I *could* make it do a large quantity of folders just like windows does, but I don't see the point. The only need for the gui at all really is if you have some of those special options you want to turn on, which if you're batch-executing, you probably don't.

Anyways, thank you! I'm glad you like it! I'm thinking up new ideas for it all the time so it's definately a work in progress. Keep checking back for some new features ;)
Frosty555
10%
10%
 
Posts: 12
Joined: Wed Feb 13, 2008 3:55 am

Re: The SM2ITG Converter - anyone interested?

Postby Frosty555 on Sat Feb 16, 2008 11:39 pm

Revision 1.2 is here!
New features:
- Removes all references of graphics from the SM file
- Changes the offset of the SM file based on a number in C:\SM2ITG\offsetsmfile.txt. By default it is 0.044. This helps the issue where converting from MP3 to OGG ended up with an offsync simfile. You can change this number however you like to match your personal experience.
- Added new explorer menu item to open the GUI
- Both of those options can be turned off via the GUI if you want, or via a command line parameter.
Frosty555
10%
10%
 
Posts: 12
Joined: Wed Feb 13, 2008 3:55 am

Re: The SM2ITG Converter - anyone interested?

Postby Blazing on Fri Feb 22, 2008 6:35 pm

So I finally tested this out, and uh... It works really well. Good job. :D
Yeah, not much to say. I like it, especially since I don't feel like getting an mp3-ogg converter.
RODD wrote:I want to one day play without my shirt on so i can feel the breeze and be like Flash 8)
User avatar
Blazing
102%
102%
Site Admin
Site Admin
Moderator
Moderator
 
Posts: 5648
Joined: Sun Aug 26, 2007 8:19 pm
Location: Gainesville, Florida

Re: The SM2ITG Converter - anyone interested?

Postby NEMO on Sat Feb 23, 2008 1:59 am

Okay, it can't be that bad if Blazing likes it. Downloaded.

<3 NEMO
Image
Coming soon!

Are you involuntarily celibate? Do you feel you've been a virgin for too long? GET YOU SOME!
User avatar
NEMO
105%
105%
Former Staff
Former Staff
I - 3rd / II - 2nd / Scholar - 2nd
I - 3rd / II - 2nd / Scholar - 2nd
 
Posts: 26908
Joined: Sat Mar 10, 2007 11:56 pm
Location: Massachusettes/Montreal

Re: The SM2ITG Converter - anyone interested?

Postby Frosty555 on Sat Feb 23, 2008 12:29 pm

Revision 1.3 is here!!

There are MAJOR bug fixes in this revision:

- The converted stepmania file was being truncated, and so 10-100 steps were getting chopped off the last stepchart in the simfile
- Fixed the problem where some ogg files failed to normalize properly due to a pcmwav_read() error
- A couple other minor bug fixes and changes, some cosmetic fixes to the script files

You can redownload it from the link at the top of the thread.
Frosty555
10%
10%
 
Posts: 12
Joined: Wed Feb 13, 2008 3:55 am

Re: The SM2ITG Converter - anyone interested?

Postby NEMO on Sat Feb 23, 2008 1:07 pm

Haha, okay, got the revision. I haven't had time to try this out yet, but when I do I'll post a review.

<3 NEMO
Image
Coming soon!

Are you involuntarily celibate? Do you feel you've been a virgin for too long? GET YOU SOME!
User avatar
NEMO
105%
105%
Former Staff
Former Staff
I - 3rd / II - 2nd / Scholar - 2nd
I - 3rd / II - 2nd / Scholar - 2nd
 
Posts: 26908
Joined: Sat Mar 10, 2007 11:56 pm
Location: Massachusettes/Montreal

Re: The SM2ITG Converter - anyone interested?

Postby Kindan on Sat Feb 23, 2008 6:23 pm

There should be an option so that you can choose how large (in terms of megabytes) the music file is. If it makes every .ogg music file to be just under 5MB (either by decreasing the quality or increasing it), then the arcade machine will load a significantly less amount of r21's from your flash drive, since it loads as many songs as it can in a specified time limit. This means that your songs will have better quality, but some of your songs may not load. Just an idea that might be good for people who like to bring 30-50 songs when they go to the arcade.
NEMO wrote:Men are supposed to just run around knocking everybody up.
User avatar
Kindan
70%
70%
 
Posts: 855
Joined: Mon Jul 30, 2007 2:22 pm
Location: New Hampshire

Re: The SM2ITG Converter - anyone interested?

Postby NEMO on Sat Feb 23, 2008 6:36 pm

Oh God, who actually brings 50?

<3 NEMO
Image
Coming soon!

Are you involuntarily celibate? Do you feel you've been a virgin for too long? GET YOU SOME!
User avatar
NEMO
105%
105%
Former Staff
Former Staff
I - 3rd / II - 2nd / Scholar - 2nd
I - 3rd / II - 2nd / Scholar - 2nd
 
Posts: 26908
Joined: Sat Mar 10, 2007 11:56 pm
Location: Massachusettes/Montreal

Next

Return to ITG/r21 Discussion

Who is online

Users browsing this forum: No registered users and 0 guests