Change music speed

O Ilusionista

Captain 100K
There is any way to change the speed of a music, probabily by script?

What I want to do: in the original arcade Avengers game, when you have 25% of life and you are facing a boss, the background music change it speeds to a faster version (pretty much as SFII does).

Its possible? To trigger the boss fight, I can make a loop with count_enemies and (I think its possible) to getentitypropriety and see if its BOSS, no?

Edit: Wait, I forgot that If I change the speed of the song, I would change the pitch too. Unless we use an audio time-stretching algorithm
 
O Ilusionista said:
What I want to do: in the original arcade Avengers game, when you have 25% of life and you are facing a boss, the background music change it speeds to a faster version (pretty much as SFII does).

Actually both change to a completely new track - something you can easily do with OpenBOR using the playmusic script command.

Just speeding it up might be possible (I don't recall atm and will have to sniff around), but like you said it will mess up the pitch - I know for certain there isn't a time-stretch.

I would just go with switching tracks. It's simple to do, will get you better sound quality even if we had time-stretch, and is what the arcade classic did anyway. Who didn't love it back in the day? The boss kicks it up a notch, your character yells "OK GO!" and the hero music fires up. Right then you knew it was time to rock!

DC
 
Many games didn't speed up or switch tracks, it's all part of the same track, it just has different loop points.  When the timer is low or enemy is near death it will start looping the fast part.  (Mortal Kombat, Pigskin)

Other old games were using midi based music, so they simply changed the tempo to get this effect.





 
Back
Top Bottom