Subject: UADE batch mode - any tips?

From: Talus
Date: Sun Sep 4 12:58:16 2005

To: UADE-User-discussion
I prefer to use UADE to convert to wave, then Ogg Vorbis, and then listen to the ouptut.

I usually do this manually and was wondering if anyone has any neat scripts to do it automatically before I write one :)

I want each subtune to go in a seperate file. To do this, I need to know how many subtunes there are. Is there a good way of getting UADE to simply parse/evaulate a module and figure out how many subtunes there are? best I can think of is running UADE with a very low timeout and then parsing STDERR, but that's bit of a hack...

---

From: shd
Date: Sun Sep 4 18:17:30 2005

To: UADE-User-discussion
[quote:767c8664d0="Talus"]I prefer to use UADE to convert to wave, then Ogg Vorbis, and then listen to the ouptut.

I want each subtune to go in a seperate file. To do this, I need to know how many subtunes there are. Is there a good way of getting UADE to simply parse/evaulate a module and figure out how many subtunes there are? best I can think of is running UADE with a very low timeout and then parsing STDERR, but that's bit of a hack...[/quote:767c8664d0]

Have you looked into frontends/mod2ogg/ ? Giulios tool is supposed to do that.

I would say adapting uade2 to do that would make the tool better, but we're not done with uade2 yet.

---

From: shd
Date: Sun Sep 4 18:58:28 2005

To: UADE-User-discussion
[quote:f98e08516e="Talus"]
I usually do this manually and was wondering if anyone has any neat scripts to do it automatically before I write one :)
[/quote:f98e08516e]

Just added a feature into uade123 (uade2) that makes scripting easier. Grab the latest cvs source, and try:

 uade123 -g song 2&gt;/dev/null

That should print something like this to stdout:

playername: Protracker &amp; relatives
modulename: unit-a-remix
formatname: type: Protracker
subsong_info: 1 1 1 (cur, min, max)

A simple script in your favourite language can parse that. Notice that only playername and subsong_info are guaranteed to be given.

I'll mail Giulio to port mod2ogg for uade2 too..

---

From: Guest
Date: Mon Sep 5 20:53:46 2005

To: UADE-User-discussion
I'm here

I'm quite sure with cvs i'll need to stay connected a lot of time ( here i go @ 2880 bps :( ), if you'll update the tarball of the uade2 version ( i'm quite sure i'm not the only one interested ) i'll see what i can do in order to port mod2ogg.sh to it. In case send me an email.

Thanks to this new feature ( good ) i will avoid the hack currently used to get infos.

If changes in the command line switches are not drastic, it will be quite straight forward to port it.

Do you prefer an indipendent version or a one that uses uade123 if avaible else the "old" uade?

---

From: shd
Date: Mon Sep 5 21:24:05 2005

To: UADE-User-discussion
[quote:1e64682fa5="Anonymous"]I'm here

Do you prefer an indipendent version or a one that uses uade123 if avaible else the "old" uade?[/quote:1e64682fa5]

I suggest you use CVS version with -z flag so that it compresses streams on the fly. Also, you'll save bandwidth because CVS only downloads changed source files.

Command line switches have changed quite a lot, and I hope they're better now =) Effort required for the port is minimal.

I would prefer an independent version of mod2ogg that only supports uade123 because I don't want to burden myself with the old system. But it's really up to you since I'm not doing anything for mod2ogg.