Go Back   Flash Flash Revolution > General Discussion > Critical Thinking > Homework & Help
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
Old 01-6-2014, 08:02 PM   #1
beary605
FFR Veteran
D8 Godly KeysmasherFFR Veteran
 
beary605's Avatar
 
Join Date: Oct 2008
Location: Canada
Posts: 448
Default [Algorithms] BPM changes (accel. or rall.)

The best way to slow down (rall) or speed up (accel) is to do it with a constant rate of change, e.g. +9 BPM after 1 seconds, +18 BPM after 2 seconds, +27 BPM after 3 seconds...

You are stepping something and thought a slowdown would make a great effect; but Stepmania only allows you to change BPM every beat. (i am aware you can now; problem still stands though)

The problem is: To get from X -> Y BPM in T seconds, while minimizing the difference between each BPM and the expected BPM from the linear rate of change. BPM can only be changed on the beat.

more formally: We want a list (b1, b2, ...., bn) where

the time of the end of the last beat is exactly T: (60/b1 + 60/b2 + ... + 60/bn = T)

We want to minimize the sum of the differences between the linear BPM change and the actual BPM.

let N be where bn occurs (N = sum(60/bk, k = 1 -> n))

= the wanted BPM - the actual BPM
= (the starting BPM - the rate of change in BPM * seconds) - the actual BPM
= (X - (Y-X)/T * N) - bn

Is there a way of doing this, or a way that gets close but is not optimal?

Last edited by beary605; 01-6-2014 at 08:08 PM..
beary605 is offline   Reply With Quote
Old 01-6-2014, 09:10 PM   #2
Wayward Vagabond
Confirmed Heartbreaker
Retired StaffFFR Simfile AuthorFFR Veteran
 
Wayward Vagabond's Avatar
 
Join Date: Jul 2012
Age: 35
Posts: 5,859
Default Re: [Algorithms] BPM changes (accel. or rall.)

Ddream
__________________
Wayward Vagabond is offline   Reply With Quote
Old 01-6-2014, 09:11 PM   #3
Xiz
TWG Chaos
FFR Simfile AuthorFFR Veteran
 
Xiz's Avatar
 
Join Date: Feb 2012
Location: Cali4nia
Age: 32
Posts: 3,399
Send a message via Skype™ to Xiz
Default Re: [Algorithms] BPM changes (accel. or rall.)

Quote:
Originally Posted by Wayward Vagabond View Post
Ddream
__________________

Xiz is offline   Reply With Quote
Old 01-6-2014, 09:26 PM   #4
beary605
FFR Veteran
D8 Godly KeysmasherFFR Veteran
 
beary605's Avatar
 
Join Date: Oct 2008
Location: Canada
Posts: 448
Default Re: [Algorithms] BPM changes (accel. or rall.)

beary605 is offline   Reply With Quote
Old 01-6-2014, 09:42 PM   #5
reuben_tate
Kawaii Desu Ne?
Retired StaffFFR Veteran
 
reuben_tate's Avatar
 
Join Date: Dec 2007
Location: The Kawaiian Island~
Age: 30
Posts: 4,182
Default Re: [Algorithms] BPM changes (accel. or rall.)

The thing I'm worried about is that it seems you're only considering how well the bpm matches up on the last beat. However, you also want to make sure the bpm is matching up as you go through the entire time period, i.e., you want to look at your partial sums too. Taking this approach, the first partial sum is trivial since you'd only have one variable, b1. Solve for b1. Then for the partial sum up to b2, you have the variables b1 and b2. But you already solved for b1. Thus you can solve for b2. Then continue this process until you reach bn.

At least that's what I got out of it just by taking a quick glance. I'll take a closer look tomorrow; what I said above is just kinda speculation, I work better with pencil/paper which I don't have at the moment :P
__________________
AMA: http://ask.fm/benguino

Not happening now! Don't click to join!



Quote:
Originally Posted by Spenner View Post
(^)> peck peck says the heels
Quote:
Originally Posted by Xx{Midnight}xX
And god made ben, and realized he was doomed to miss. And said it was good.
Quote:
Originally Posted by Zakvvv666
awww :< crushing my dreams; was looking foward to you attempting to shoot yourself point blank and missing
reuben_tate is offline   Reply With Quote
Old 01-9-2014, 06:07 PM   #6
igotrhythm
Fractals!
FFR Veteran
 
igotrhythm's Avatar
 
Join Date: Sep 2004
Location: Meesheegan
Age: 38
Posts: 6,534
Send a message via Skype™ to igotrhythm
Default Re: [Algorithms] BPM changes (accel. or rall.)

Quote:
Originally Posted by beary605 View Post
The best way to slow down (rall) or speed up (accel) is to do it with a constant rate of change, e.g. +9 BPM after 1 seconds, +18 BPM after 2 seconds, +27 BPM after 3 seconds...

You are stepping something and thought a slowdown would make a great effect; but Stepmania only allows you to change BPM every beat. (i am aware you can now; problem still stands though)

The problem is: To get from X -> Y BPM in T seconds, while minimizing the difference between each BPM and the expected BPM from the linear rate of change. BPM can only be changed on the beat.

more formally: We want a list (b1, b2, ...., bn) where

the time of the end of the last beat is exactly T: (60/b1 + 60/b2 + ... + 60/bn = T)

We want to minimize the sum of the differences between the linear BPM change and the actual BPM.

let N be where bn occurs (N = sum(60/bk, k = 1 -> n))

= the wanted BPM - the actual BPM
= (the starting BPM - the rate of change in BPM * seconds) - the actual BPM
= (X - (Y-X)/T * N) - bn

Is there a way of doing this, or a way that gets close but is not optimal?
Sounds like a job for least-squares regression. Only that's a way to fit a line to a set of data points, but it sounds like you want the other way around.
__________________
Quote:
Originally Posted by thesunfan View Post
I literally spent 10 minutes in the library looking for the TWG forum on Smogon and couldn't find it what the fuck is this witchcraft IGR
igotrhythm is offline   Reply With Quote
Old 01-9-2014, 07:23 PM   #7
21992
Proud Indian 7-11 Owner
FFR Veteran
 
21992's Avatar
 
Join Date: Jul 2009
Posts: 466
Default Re: [Algorithms] BPM changes (accel. or rall.)

from my understanding (although I wouldn't know too much about this) is that ths could be interpreted like Riemann sums. The more times you alter the BPM accurately the better the transition. But I'm assuming SM doesn't accept non-integer beat values for BPM transitions.
__________________
Zakvvv666's Graduation Tournament Division 3 1st place

6th FFR Official Tournament Division 3 6th Place

Silly/Sax's Summer Sensation Division 4 2nd Place

Dragon Fury's Custom Tourney 8 Division 5B 4th Place


Just Your Amatuer Simfilier
21992 is offline   Reply With Quote
Old 01-10-2014, 12:36 AM   #8
Fission
no
Simfile JudgeFFR Simfile AuthorFFR Veteran
 
Fission's Avatar
 
Join Date: Jan 2004
Age: 33
Posts: 1,850
Default Re: [Algorithms] BPM changes (accel. or rall.)

sure it does
Fission is offline   Reply With Quote
Old 01-10-2014, 04:54 AM   #9
Wayward Vagabond
Confirmed Heartbreaker
Retired StaffFFR Simfile AuthorFFR Veteran
 
Wayward Vagabond's Avatar
 
Join Date: Jul 2012
Age: 35
Posts: 5,859
Default Re: [Algorithms] BPM changes (accel. or rall.)

Definitely does
__________________
Wayward Vagabond is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 10:30 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright FlashFlashRevolution