View previous topic :: View next topic |
Author |
Message |
Omega0

Joined: 27 Feb 2003 Posts: 37
|
Posted: Tue Jul 29, 2003 1:14 am Post subject: New BAM Tool |
|
|
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 |
|
 |
Aethereal SHUT UP. Elite Designer


Joined: 04 Jan 2003 Posts: 928 Location: Gone! I pop in on occasion though.
|
Posted: Tue Jul 29, 2003 1:48 am Post subject: |
|
|
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 |
|
 |
Omega0

Joined: 27 Feb 2003 Posts: 37
|
Posted: Tue Jul 29, 2003 2:12 am Post subject: |
|
|
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 |
|
 |
msw188
Joined: 02 Jul 2003 Posts: 1041
|
Posted: Tue Jul 29, 2003 9:25 am Post subject: Very interesting |
|
|
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 |
|
 |
Sephyroth Renegade Rebel Redmage Class A Minstrel

Joined: 04 Feb 2003 Posts: 644 Location: Schmocation
|
Posted: Fri Aug 01, 2003 7:18 am Post subject: |
|
|
Excellent.. Now all we need is capability to edit instruments in a BAM file. _________________ im realy ded  |
|
Back to top |
|
 |
Eggie
Joined: 12 May 2003 Posts: 904
|
Posted: Sat Aug 02, 2003 6:01 am Post subject: |
|
|
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 |
|
 |
ChocoSOLDIER Ghost haunting the board
Joined: 03 Feb 2003 Posts: 279
|
Posted: Sat Aug 02, 2003 8:40 am Post subject: |
|
|
Quote: | Eagles may soar but weasles don't get sucked into jet engines. |
~~~~~~~~~________~~~~~~~~~~
~~~~~~~~/~~~~~~~\~~~~~~~~~
~ ~~~~~~/~~~RIP~~~\~~~~~~~~
~~~~~~~/~~~~~~~~~\~~~~~~~
~~~~ ~~/ChocoSOLDIER~\~~~~~~
~~~~~~|~Died Laughing~|~~~~~
~~~~~~|~~~~~~~~~~~|~~~~~
~~~~~~|~~B:Whenever'~|~~~~~
~~~~~~|~~DWhenever '~|~~~~~
~~~~~~|~~~~~~~~~~~|~~~~~
~~~~~~|~~~~~~~~~~~|~~~~~ |
|
Back to top |
|
 |
|