LavaLit

OpenBoR => Help & Resources => Resources => Topic started by: Plombo on November 09, 2009, 09:06:30 pm

Title: New utilities: bor2wav and improved borplay
Post by: Plombo on November 09, 2009, 09:06:30 pm
I've written two utilities for BOR music files.

Bor2wav is the reverse of Wav2bor 1.1: it converts any mono or stereo BOR music file losslessly to an equivalent WAV file.

Borplay is a utility whose interface mimics that of the "borplay" utility available in the Downloads section. My borplay, however, can correctly decode stereo ADPCM, whereas the one in the downloads section assumes that everything is mono.

My borplay is written completely from scratch and is not derived from anything else on this site.

Questions, comments, and other feedback would be appreciated.

MAJOR EDIT:
Now attached is a completely different version of borplay.  Specifically, this version is based on the borplay utility available in the LavaLit downloads section, originally written by Luigi Auriemma.  I highly recommend using the borplay version in "borplay.zip" over the one in "bor2wav_borplay.zip".
Title: Re: New utilities: bor2wav and improved borplay
Post by: Plombo on November 12, 2009, 09:12:44 pm
Edited the above post with a VASTLY improved version of borplay based on the original from the Downloads section.

Please download and give feedback.  I would like some evidence that someone actually notices my work.
Title: Re: New utilities: bor2wav and improved borplay
Post by: NickyP on November 12, 2009, 10:06:04 pm
Well I haven't downloaded them yet, but I do see great use in bor2wav. There's alot of old bor files I made that I'd like to edit (cut out fade parts, increase volume) and it'd be great if I didn't have to redownload the original songs etc.
Title: Re: New utilities: bor2wav and improved borplay
Post by: wiequadrat on November 20, 2009, 11:30:12 am
just download and tested it.

the borplay.zip = the borplay looks good. it can play bor files and bor that inside the PAK.

the bor2wav_borplay.zip
= borplay can only play the bor files..... when i play the bor inside PAK. it can't and there's an error.... see attachment. (i use the same PAK that i use before)
= bor2wav = OK it can convert the BOR into WAV.... but i dunno about stereo thingy.....

as usual.... have y ever though to make it as a windows based app rather than dos application?
Title: Re: New utilities: bor2wav and improved borplay
Post by: Plombo on November 20, 2009, 04:53:45 pm
the bor2wav_borplay.zip
= borplay can only play the bor files..... when i play the bor inside PAK. it can't and there's an error.... see attachment. (i use the same PAK that i use before)

Have you tried using data/music/swd_ab.bor (or wherever it is in the data folder) instead of just swd_ab.bor for the last parameter?

But thanks for pointing out that interface discrepancy; I missed it when I was trying to imitate the borplay interface.
Title: Re: New utilities: bor2wav and improved borplay
Post by: Plombo on November 20, 2009, 07:54:41 pm
Okay, the above issue is now fixed.  The new versions of bor2wav and the inferior version of borplay are attached to this post.  When playing/converting a BOR music file inside of a PAK file, both programs now  accept just the name of the music file, e.g., remix.bor.

The borplay version in borplay.zip in my first post should still be used instead of the borplay in this version; it's only included here for consistency with the original.
Title: Re: New utilities: bor2wav and improved borplay
Post by: wiequadrat on November 20, 2009, 11:52:05 pm
okay then

the borplay in 1st version of bor2wav_borplay.zip = can play the bor inside the pak if i use full path (borplay new.pak data/sounds/swd_ab.bor)

the borplay in 2nd version of bor2wav_borplay_0.2 = can play the bor inside the pak whether i use full path or not

thanks for the fix

----------------------------

about the borplay in borplay.zip

1. i accidentally press enter when i type "borplay new.pak" and it automatically play all the BOR in data/music ... at first i freak out because i though it will play all bor files inside the PAK without possibilities to cancel the process (dos app will run to finish no matter what). then i frantically press Escape and it stop... so glad that u capture the key press...and also i just realize that it only play everthing in data/music only.

i just think that the message "Press Escape to stop playing next files" should be included somewhere

2. see below attachment. i deliberately type the wrong folder. it show those message and of course not playing anything. i thinks there should be an error message saying "Cannot find the files" or something like that.

3. can i request for command to show all the bor inside the pak. coz when i got new pak files then i don't know the bor filename inside the pak and i will paxplode it to find out. then the borplay feature to play bor inside the pak will be useless since i already paxplode...u know what i mean ?  :-[

4. another request if no 3 is okay. i got this idea when i accidentally press enter in no 1. can u add command to play all bor inside the specific folder. such as "borplay data/sounds/sword/" then it will play all bor inside the "data/sounds/sword/*.bor"

i think that's all folks...  ;D
----------------------------

just wandering the readme in bor2wav_borplay_0.2.zip
Spoiler
THE BORPLAY VERSION IN THIS DISTRIBUTION IS OBSOLETE. Use my new version
based on Luigi Auriemma's borplay instead; you can find it at LavaLit.com. The
new version has all of the features of the one in this version, is much faster,
is less prone to bugs, and displays much more useful messages.

and
Spoiler
The borplay version in borplay.zip in my first post should still be used instead of the borplay in this version; it's only included here for consistency with the original.

if your borplay in borplay.zip is better then the other borplay then i suggest to combine the "better borplay" and "better bor2wav" in 1 package to avoid confusion which borplay should be use. and remove the old one... or at least separate it... *sigh* and you already done a good job in fixing the bug for the old borplay.....
 :teary_eyed:
Title: Re: New utilities: bor2wav and improved borplay
Post by: Plombo on November 21, 2009, 01:39:23 pm
I've incorporated all of those suggestions.  The new file is attached. It contains borplay (the new one), bor2wav, the old borplay (renamed to old_borplay to avoid confusion), and listmusic (your third request).
Title: Re: New utilities: bor2wav and improved borplay
Post by: wiequadrat on November 21, 2009, 02:10:07 pm
yes just confirmed that all the function works. many thanks for the efforts and reply.
 :laughing:

humm i just check the GA.PAK (golden axe) and it has some bor files that have ~... but the mod it self work normally.... and of course borplay can play it using tilde. i guess the problem is in the mod.
Title: Re: New utilities: bor2wav and improved borplay
Post by: Plombo on November 21, 2009, 11:41:03 pm
humm i just check the GA.PAK (golden axe) and it has some bor files that have ~... but the mod it self work normally.... and of course borplay can play it using tilde. i guess the problem is in the mod.

Yeah, I did a bit of investigation (see the bottom half of this post by utunnels (http://lavalit.com:8080/index.php/topic,3617.msg52667.html#msg52667)) and found that utunnels just decided to put a ~ character in some of his filenames; the character wasn't put there by packer like it is in most cases. That's why the music works in OpenBOR.
Title: Re: New utilities: bor2wav and improved borplay
Post by: Plombo on November 22, 2009, 08:10:57 pm
Borplay is now in the LavaLit Downloads section!
Title: Re: New utilities: bor2wav and improved borplay
Post by: NickyP on November 25, 2009, 03:11:56 pm
??? So uh, help me out here. How exactly do I use bor2wav?
Title: Re: New utilities: bor2wav and improved borplay
Post by: Plombo on November 25, 2009, 08:15:45 pm
??? So uh, help me out here. How exactly do I use bor2wav?
It's a command line utility.

The basic usage goes like this:
Code: [Select]
bor2wav <input-file.bor> <output-file.wav>
You can put that into a batch file if you don't want to use a command line window, or if you want to convert a bunch of bor files at once.
Title: Re: New utilities: bor2wav and improved borplay
Post by: NickyP on November 25, 2009, 08:53:11 pm
Yeah, it worked. Attached is the .bat file I made for it. You guys can use it.

Put your bor file in the same folder as bor2wav and conmusic. Rename the bor file to "song" and run conmusic; poof, it's a wave now.
Title: Re: New utilities: bor2wav and improved borplay
Post by: Plombo on November 27, 2009, 12:27:55 pm
Borplay and listmusic are now updated with several new UI enhancements: Get the new version from the Downloads section here (http://lavalit.com:8080/index.php?action=tpmod;dl=item310) or from my fifth post!
Title: Re: New utilities: bor2wav and improved borplay
Post by: maxman on May 14, 2010, 12:10:16 am
Sorry for being late. I just somehow don't understand how to convert bor files to wav's. I'm so lost. :dunce: Do I need to get both cygwin and the other one? I forgot the name of it. :oops:
Title: Re: New utilities: bor2wav and improved borplay
Post by: Plombo on May 15, 2010, 10:42:53 am
Cygwin?  No, you don't need it.  bor2wav will run without it.  Have you tried using NickyP's batch file from the previous page?
Title: Re: New utilities: bor2wav and improved borplay
Post by: maxman on May 20, 2010, 09:03:56 pm
Have you tried using NickyP's batch file from the previous page?
I guess I tried it a few months ago. Couldn't work for me.
Title: Re: New utilities: bor2wav and improved borplay
Post by: Plombo on May 21, 2010, 10:16:50 pm
Try this:
Title: Re: New utilities: bor2wav and improved borplay
Post by: maxman on May 22, 2010, 06:13:20 am
But what about the software similar to wav2bor.exe?

Sorry. I forgot I have it. :dunce:
Title: Re: New utilities: bor2wav and improved borplay
Post by: Plombo on May 22, 2010, 12:51:02 pm
But what about the software similar to wav2bor. exe?

What software are you talking about? ???
Title: Re: New utilities: bor2wav and improved borplay
Post by: maxman on May 22, 2010, 09:37:01 pm
I wasn't specific about my question the last time. Now. How can I get the bor songs from paks without extracting them? (Like) For example, you open OpenBOR.exe and you see a list of mods in there and you have tracks too. I need to get some of them from it.
Title: Re: New utilities: bor2wav and improved borplay
Post by: Plombo on May 22, 2010, 11:55:23 pm
bor2wav <file.pak> <data/music/file.bor> <file.wav>
Title: Re: New utilities: bor2wav and improved borplay
Post by: maxman on May 23, 2010, 12:04:03 am
Here. I use NotePad.

Code: [Select]
bor2wav.exe evilsplatter.pak remix.bor remix.wav

pause

It's my practice.
SimplePortal 2.3.3 © 2008-2010, SimplePortal