Jump to content
  • 0

Sector "flight flicker" timings, and synchronizing to a MIDI


DiR

Question

I'm currently trying to synchronize a MIDI with the lighting in a level for an effect, but I cannot figure out the timing besides the vague 0.5sec. and 1.0sec. timings that Doom Builder says the delays are at. Setting the song to a multiple of 60 or 120 didn't align quite right so the timings aren't exactly 1.0 and 0.5. I also tried doing some math with doom's 35-tic per second game rate but didn't have much luck there either with the MIDI going out of sync with the blinking lights after a couple of seconds.

 

Does anyone else have any pointers or perhaps some places I could check to get an idea of how to sync the MIDI and lighting? Conveyors aren't an option since I'm in vanilla.

Share this post


Link to post

6 answers to this question

Recommended Posts

  • 0

This would break even while just playing the game. The midi playback isn't designed to have the same timings as the game itself, Doom isn't the engine for synchronised music.

Share this post


Link to post
  • 0

Doesn't this all break if the player opens up the menu, during which the music continues playing, but the game and lighting effects get paused?

Share this post


Link to post
  • 0
6 hours ago, Worst said:

Doesn't this all break if the player opens up the menu, during which the music continues playing, but the game and lighting effects get paused?

 

6 hours ago, Edward850 said:

This would break even while just playing the game. The midi playback isn't designed to have the same timings as the game itself, Doom isn't the engine for synchronised music.

 

Ah, I never thought about that. Well I guess that Idea's out the window now. Thanks for the responses.

Share this post


Link to post
  • 0

Stopping the music when you open the menu would mostly keep it intact though. I do not know if anything like that is possible though, and if it is. it's probably only possible in zdoom ports.

Share this post


Link to post
  • 0
5 hours ago, ThatKidBobo said:

Stopping the music when you open the menu would mostly keep it intact though. I do not know if anything like that is possible though, and if it is. it's probably only possible in zdoom ports.

Zdoom ports would actually make things worse as their music plays back from a whole different thread. Any disruptions to the main game or even the audio thread starting to buffer would cause an immediate shift.

 

Typically games with an audio focus will have functions to queue audio and callbacks at key synchronisation points from the audio (so it's actually the audio controlling the pace), and you won't find a single Doom port, even Gzdoom, with any of that.

 

The secret third option is to instead of using a music track, you turn Doom into the composer by having a collection of samples you play from world objects or scripts. This one is a real winner for dynamic tracks and could even conceptually be done in vanilla, but how to do it isn't something that one could simply explain. It's a creative process through and through rather than a technical one.

Edited by Edward850

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...