I have an intro screen with intro music. At the moment, the music is the first the executed when intro screen is launched. It continues to play until...unimportant.
Visually, the intro executed these functions in this order
1. Fade in title banner
2. fade in bottom credits
3. display new/load game selection
I'm looking for any ideas on how to coordinate the music with these functions. So that on the first major note, "fade in banner" does it's thing, then waits to execute the next function until it is coordinated with a note/beat of the music.
This gets a bit confusing because, I'm assuming, I have to break things into ticks to compensate for varying processing speed from computer to computer, and even within the same computer depending on what other processes may be running.
Unless you've got some truly horrific sound library, the one constant here will be the music. Doesn't matter what speed of machine you're on, the music will play at the same speed. So you know how many milliseconds will be between the following points:
Music starts playing.
First major note of music.
Next major note.
These times will be fixed. You can measure them.
You can then take these times and use them to know when to fade in your title/credits/menu, through using the various functions that will tell you how much time has elapsed, or will trigger something for you after a time you choose to specify.