Dropped in from the start, read something about pixels, distance and guitar hero. I thought: do you want the objects to move away from the viewer while maintaining an equal distance between them? Just like in 3D or perspective viewing? Because that might be the answer to your problem. Sorry if I skipped your BPM part of the game.
Originally Posted by Jenswa Do you want the objects to move away from the viewer while maintaining an equal distance between them? Just like in 3D or perspective viewing? Because that might be the answer to your problem.
At this stage, I'm starting to think that people are intentionally misunderstanding me. What I want is entirely to do with timing and absolutely nothing else. Each note needs to be told what time it is and must go to that.
I have to fuss up that I was not a lot of help. Their might be some sort of guitar hero algorithm out their. But I don't know of it, and haven't seemed to be able to find one either.
The level of complexity your looking for is probably out of my league.
I'm kind of wondering though. How many known values do your calculations have? Do you know any more info about the track besides the bpm and the notes?
Originally Posted by Jenswa Do you want the objects to move away from the viewer while maintaining an equal distance between them? Just like in 3D or perspective viewing? Because that might be the answer to your problem.
At this stage, I'm starting to think that people are intentionally misunderstanding me. What I want is entirely to do with timing and absolutely nothing else. Each note needs to be told what time it is and must go to that.
Not intentionally, just focused on the spacing part of your pixels which is a part of your problem and therefore of the solution. But it probably didn't help much.
Do you have a series of pictures linked with the timing of how you want it to function?
Because with BPM added it sounds like you just need to use that as a scaling factor to get your base time unit. But it is probably eaiser to use 1000 milliseconds as base. So that 1000 divided by BPM will give you your timesteps to play the notes.
However when BPM changes you need to recalculate that timestep number (1000/BPM I called it) and you need to play the 2nd note 2 times the difference faster (or slower) but the 10th should be ten times the difference faster (so slower).
You can either keep an array (or temporary ini) and recalculate everything or keep track of the time difference and the number of the note being played. Because when playing the 15th note you will need 15 times the time difference. And that skips the recalculation part.
If you have this 1000 ms based timing system up and working, the relative positions of your objects shouldn't be that hard anymore.
Getting your objects closer together and equally close to each other can be done easily by calculating the total length of all objects arranged along a line and than dividing the length by the number of objects (lets say: delta distance) and place your objects at delta distance from each other.