Hello. I'm in the process in making a mini music video for a this song, and I want to have a TEMPO variable that increases by 1 with the beat. What I did was figure out the exact time between beats and say
FOREVER- change TEMPO by 1, wait .198 seconds.
and it would be on time for the most part. The only thing is that when I start adding graphics and sprites, this variable is slowed down so all the timing gets messed up. I hope you understand what I mean by this. My question is if there is a way to automatically set a variable to increase with the tempo of a song. I really wanted to do this project and I hope there is a solution to my problem. Thank You.
Offline
That didn't really answer his question...he wanted to know if theres a way so things won't get slowed down so much and I don't think there is.
Offline
Yah theres reallly no way to stop scratch from lagging
Offline
Tarham94 wrote:
yeah, my computers a little slow
I've had the same problem with some things, what you need to do is change how long it waits, so that it waits less time, which would cause it to keep up.
It may be hard to find a good time to wait, but it's an idea.
-Spine
Offline
there is a way. im not gonna do it in scratch blocks though
if(timer<i)
change TEMPO by 1
i = (timer+1)
I is a variable, and timer is the internal timer of scratch
Offline
If you're wanting something that increases the tempo every beat, I'd recommend something like this:
forever rest for (1) beat change tempo by (1)
Offline
Maybe you could find an instructional manual on the subject (yeah I know that sounds stupid but hey sometimes old fashioned is the way to go) or audio books on it for that matter.
Offline
I have thought of a way! You need two computers first take the one where you know the time between beats is .198 seconds then go to a different computer and find the time between beats, then run this script on both computers:
<when green flag clicked>
<reset timer>
<repeat( 1000)
<end>
<say[ <timer>] then all you have to do is find the mathematical relationship between the values (this might not actually work).
Last edited by demosthenes (2009-03-16 18:54:01)
Offline