ModPlug Central

OpenMPT => Help and Questions => Topic started by: diigitae on August 29, 2023, 14:16:54

Title: export batch of xm how doing that?
Post by: diigitae on August 29, 2023, 14:16:54
hello :D ,
i have a question:
 i'm making a compilation of my old work (i work with xm format) and i want to render with a tool(wich i don't know) a batch of more or less 260xm in wav.
Is there a solution you know(i'm on manjaro but i making music on win xp 32 bits)?

thanks by advance

ju
Title: Re: export batch of xm how doing that?
Post by: Saga Musix on August 29, 2023, 16:59:00
As long as the files don't use any VST plugins, you could use the openmpt123 (https://lib.openmpt.org/libopenmpt/) command line tool and write a batch script to apply it to a bunch of files.
Title: Re: export batch of xm how doing that?
Post by: diigitae on August 29, 2023, 17:36:20
does it have some manual somewhere with openmpt123
Title: Re: export batch of xm how doing that?
Post by: Saga Musix on August 29, 2023, 18:25:00
You can run openmpt123 --help from the command line to get an overview of all supported options - that's all there is regarding documentation.
Title: Re: export batch of xm how doing that?
Post by: diigitae on August 29, 2023, 18:45:23
how do i select a folder i don't seen any command for that
Title: Re: export batch of xm how doing that?
Post by: diigitae on August 29, 2023, 18:58:31
i succeed into playing the file withe the terminal but not to change the fortam from xm to wav


openmpt123  samplerate 44100 batch render  '/home/ju/Bureau/chanson/anarchy.xm.AutoSave.20190410.195957.xm' '/home/ju/Bureau/chanson/anarchy.xm.AutoSave.20190410.223917.xm' '/home/ju/Bureau/chanson/ask your self.xm' '/home/ju/Bureau/chanson/Dystopie.xm'
Title: Re: export batch of xm how doing that?
Post by: Saga Musix on August 29, 2023, 18:59:56
Quotehow do i select a folder i don't seen any command for that

You can either create a playlist (M3U or PLS format), or use the respective shell mechanisms of your Linux distribution (I believe glob patters can expand into multiple files being passed to the same executable?) or Windows.

Here's a sample batch file for Windows:
for /R %%F in (*.xm) do (
"path\to\openmpt123.exe" --output-type flac <other options...> "%%F"
)

Other --output-type options are available, see --help for for the available formats.
Title: Re: export batch of xm how doing that?
Post by: diigitae on August 29, 2023, 20:13:59
openmpt123 --render --samplerate 44100 '/home/ju/Bureau/chanson/anarchy.xm.AutoSave.20190410.195957.xm' '/home/ju/Bureau/chanson/anarchy.xm.AutoSave.20190410.223917.xm' '/home/ju/Bureau/chanson/ask your self.xm' '/home/ju/Bureau/chanson/Dystopie.xm'

this code works thanks