Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

New BAM Tool

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> The Arcade
View previous topic :: View next topic  
Author Message
Omega0




Joined: 27 Feb 2003
Posts: 37

PostPosted: Tue Jul 29, 2003 1:14 am    Post subject: New BAM Tool Reply with quote

Since MIDI2BAM routinly messes up the tempo of my files, I finally sat down and wrote this little quick and dirty program to change the tempo of a BAM file by going through it and editing all the delay times.

http://spots.flatland.com/jms/BAMSPEED.zip

Notes on use:

Make sure the BAM file is in the same dirrectory as the program, it is NOT path-friendly.

The output will be stored in a file called output.bam.

The bps thingy isn't really bps. Just enter 20 if you want it exacly the same, higher for faster, lower for slower.

If it takes more than a second you either A) have a pathetic computer or B) THE PROGRAM HAS GONE CRAZY AND IS WRITING AND ENDLESS LIST OF NUMBERS TO YOUR OUTPUT ABORT QUICKLY!!!!!!!!!!!

As you can see from the above there are a few errors which occasionally cause it to go crazy, I'm still trying to debug this. I does work alright most of the time ;-) The 'C' code is included if you want to mess around with it. Also, there is no error checking yet, so if you give it a invalid file name it will go along happily.


Valvete!
_________________
JMS * BlackFox * Omega0
http://spots.flatland.com/jms/index.html
AIM: jmsQFtmp Y!M: jms_blkfox
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Aethereal
SHUT UP.
Elite Designer
Elite Designer



Joined: 04 Jan 2003
Posts: 928
Location: Gone! I pop in on occasion though.

PostPosted: Tue Jul 29, 2003 1:48 am    Post subject: Reply with quote

Very nice work, but there's already been a fix to the tempo issues in MIDI2BAM. This little tool might show some excellent use yet, however...
_________________
Back to top
View user's profile Send private message Send e-mail AIM Address
Omega0




Joined: 27 Feb 2003
Posts: 37

PostPosted: Tue Jul 29, 2003 2:12 am    Post subject: Reply with quote

I just uploaded a new file, I had someone look over my code and found I was stupid enough to have been opening the files in ASCII not binary mode.
*Bangs head on desk*
So no more infinite writes (I hope). Still no error checking though and no real UI.

I'll have to take a closer look at the current version of MIDI2BAM, thanks Aethereal.

Eagles may soar but weasles don't get sucked into jet engines.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
msw188




Joined: 02 Jul 2003
Posts: 1041

PostPosted: Tue Jul 29, 2003 9:25 am    Post subject: Very interesting Reply with quote

This sounds like it could be very interesting. I believe the next question is, is it possible to change tempo mid-song? Using some kind of loop with this type of code, is it possible to write in a gradual increase of speed in a BAM file? I am not a programmer, but I would assume that if you can change everything, you can write an if statement to change only certain things, and you could use a loop along with several counter variables to increase (or decrease, for that matter) speeds by increments over certain increments of time as defined by, say, the smallest note length. Is this possible?
Back to top
View user's profile Send private message Visit poster's website
Sephyroth
Renegade Rebel Redmage
Class A Minstrel



Joined: 04 Feb 2003
Posts: 644
Location: Schmocation

PostPosted: Fri Aug 01, 2003 7:18 am    Post subject: Reply with quote

Excellent.. Now all we need is capability to edit instruments in a BAM file.
_________________
im realy ded Sad...
Back to top
View user's profile Send private message Send e-mail AIM Address
Eggie




Joined: 12 May 2003
Posts: 904

PostPosted: Sat Aug 02, 2003 6:01 am    Post subject: Reply with quote

A lot of my Final Fantasy bams (not the downloadable ones) were too fast or too slow. This will certainly show some need.
Back to top
View user's profile Send private message
ChocoSOLDIER
Ghost haunting the board




Joined: 03 Feb 2003
Posts: 279

PostPosted: Sat Aug 02, 2003 8:40 am    Post subject: Reply with quote

Quote:
Eagles may soar but weasles don't get sucked into jet engines.


~~~~~~~~~________~~~~~~~~~~
~~~~~~~~/~~~~~~~\~~~~~~~~~
~ ~~~~~~/~~~RIP~~~\~~~~~~~~
~~~~~~~/~~~~~~~~~\~~~~~~~
~~~~ ~~/ChocoSOLDIER~\~~~~~~
~~~~~~|~Died Laughing~|~~~~~
~~~~~~|~~~~~~~~~~~|~~~~~
~~~~~~|~~B:Whenever'~|~~~~~
~~~~~~|~~DWhenever '~|~~~~~
~~~~~~|~~~~~~~~~~~|~~~~~
~~~~~~|~~~~~~~~~~~|~~~~~
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> The Arcade All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group