Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: How to get music to correspong with bound?
How to get music to correspong with bound?
Apr 25 2010, 4:22 pm
By: mapping4joy  

Apr 25 2010, 4:22 pm mapping4joy Post #1



Does anyone know a good way to get your music to correspond with your bound? I have an about 18 second clip and I want it to correspond with my obstacles.

Using waits will I think eventually get off-beat sooner or later.

I have another question too, how do you make an obstacle with more than 64 actions using waits?

Post has been edited 1 time(s), last time on Apr 25 2010, 4:30 pm by mapping4joy.



None.

Apr 25 2010, 6:45 pm Cinolt Post #2



If you mean you want to start the clip right when the obstacle does, then seperate the clip into sections (could do 18 sections, each being 1 second long). Use a death counter to cycle through each section. When you want to restart the song just reset the death counter back to the start.

Trigger
Players
  • 1
  • Conditions
  • Current Player suffered exactly 0 deaths of Song
  • Current Player suffered exactly 0 deaths of SongWait
  • Actions
  • PlayWAV "SongSec0"
  • Set Deaths for current player add 1 for Song
  • Set Deaths for current player exactly 12 for SongWait

  • Trigger
    Players
  • 1
  • Conditions
  • Current Player suffered exactly 1 deaths of Song
  • Current Player suffered exactly 0 deaths of SongWait
  • Actions
  • PlayWAV "SongSec1"
  • Set Deaths for current player add 1 for Song
  • Set Deaths for current player exactly 12 for SongWait

  • Trigger
    Players
  • 1
  • Conditions
  • Current Player suffered exactly 2 deaths of Song
  • Current Player suffered exactly 0 deaths of SongWait
  • Actions
  • PlayWAV "SongSec2"
  • Set Deaths for current player add 1 for Song
  • Set Deaths for current player exactly 12 for SongWait

  • (repeat above triggers for all the sections, and add this trigger below)

    Trigger
    Players
  • 1
  • Conditions
  • Current Player suffered at least 1 deaths of SongWait
  • Actions
  • Set Deaths for current player subtract 1 for SongWait


  • Obstacle using more than 64 actions:
    Trigger
    Players
  • 1
  • Conditions
  • Current Player suffered exactly 0 deaths of Obstacle
  • Actions
  • (Explosion)
  • Wait 500
  • (Explosion)
  • Wait 500
  • ...
  • Set Deaths for current player exactly 1 deaths of Obstacle

  • Trigger
    Players
  • 1
  • Conditions
  • Current Player suffered exactly 1 deaths of Obstacle
  • Actions
  • (Explosion)
  • Wait 500
  • (Explosion)
  • Wait 500
  • ...
  • Set Deaths for current player exactly 2 deaths of Obstacle




  • None.

    Apr 25 2010, 7:45 pm NudeRaider Post #3

    We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

    Either your song incidentally fits your exact bound rhythm
    or you'll either have to slow/speed up your song to adjust it to your obstacles or
    fit your obstacles to the music's beat.
    In any case you should use death counters instead of waits because they are synched to the gameplay which means synched to the explosions (or w/e) of your obstacles. Each death counter / trigger loop is exactly 84ms. So your bpm need to match multiples of that.

    To create obstacles with more than just 64 actions you'll have to use multiple triggers. Just set a switch or dc as the 64th condition and run the next trigger off that dc or switch.




    Apr 25 2010, 8:15 pm CecilSunkure Post #4



    In order to make sure that your obstacles stay in sync, or at least seemingly in sync with your music is to start both processes at the same time. If you always start your bounding rhythm and the wav loop at the same time, they will always play in the same exact pattern. The only thing you have to do now is make sure that both the bounding rhythm and the wav end near the same time, so that they seem to be one homogeneous process.

    Play your wav and start the bounding obstacle's rhythm at the same time every time, and make sure they both end close enough to the same moment so that a noticeable overlap or gap doesn't occur.

    If you have your wav loop and bounding rhythm looping as separate processes then it is easy for them to become desynchronized later on down the road.



    None.

    Apr 26 2010, 3:24 am mapping4joy Post #5



    thanks guys,

    I'll try the suggestions.

    Right now I'm having another problem though, I have 5 obs so far but the 4th and 5th ob don't work for some reason.

    The triggers I put for the 4th and 5th are exactly (I think) the same as the first three.
    Only the first set of explosions go and then nothing, by set I mean only booms on multiple spots one time only, the trigger doesn't even go.

    Does someone possibly know what's happening?



    None.

    Apr 26 2010, 4:08 pm rockz Post #6

    ᴄʜᴇᴇsᴇ ɪᴛ!

    You might be using a switch to control it and you did it wrong. Here's a big hint: if a trigger doesn't run, that means its conditions aren't met. What are the conditions? Check each one, individually, and soon you'll find the condition which is returning false.

    However, if you are using waits at all, there's a good chance you're encountering wait blocks, and you should remove the waits and use death counters instead.



    "Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

    Apr 26 2010, 11:23 pm mapping4joy Post #7



    I'm pretty sure the conditions met. Only one set of explosions went though. I even tried changing the conditions from the switches to minerals and it did the same thing. The conditions are exactly formatted like the first three.

    Is there anyway to prevent wait blocks? I don't see why there would be wait blocks when only one bound runs at a time.



    None.

    Apr 27 2010, 2:18 pm rockz Post #8

    ᴄʜᴇᴇsᴇ ɪᴛ!

    Yes, but if you're running hyper triggers (which I hope you are) and they are before any other waits, those waits never actually end, and thus the trigger will never finish. Stop using waits so much, or just move the hyper triggers last.



    "Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

    Apr 28 2010, 1:04 am mapping4joy Post #9



    After remaking the hyper triggers it worked.

    Thanks.



    None.

    Apr 28 2010, 3:59 am rockz Post #10

    ᴄʜᴇᴇsᴇ ɪᴛ!

    don't forget you may have a use for looping your music and/or staggering it so that you can stop it once the bound is done:
    http://www.staredit.net/files/1987/

    Granted, if it's just SFX, there's no need, but if it's a 2 minute song, you may want to chunk it up into smaller increments.



    "Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

    Apr 28 2010, 4:27 am Leeroy_Jenkins Post #11



    You could chop your song up into different .wavs for every single beat through an audio editor, and sequentially play them through triggers.

    EXAMPLE:

    Conditions
    P8 has suffered 0 deaths of "Flag"

    Actions
    Play "Wav_001"
    Wait (Length of WAV_001)
    Set deaths for P8- add 1 for "Flag"


    Conditions
    P8 has suffered 1 deaths of "Flag"

    Actions
    Play "Wav_002"
    Wait (Length of WAV_002)
    Set deaths for P8- add 1 for "Flag"


    Conditions
    P8 has suffered 2 deaths of "Flag"

    Actions
    Play "Wav_003"
    Wait (Length of WAV_003)
    Set deaths for P8- add 1 for "Flag"

    Then, in your bound explosion triggers, include "wait (0)" between each explosion


    Actions
    Create one unit at "1A"
    Kill all unit at "1A"
    wait(0)
    Create one unit at "2A"
    Kill all unit at "2A"
    wait(0)

    etc...



    None.

    Apr 28 2010, 4:55 am rockz Post #12

    ᴄʜᴇᴇsᴇ ɪᴛ!

    A better way would be to link everything to flag.

    Conditions
    P8 has suffered 0 deaths of "Flag"

    Actions
    Play "Wav_001"
    Wait (Length of WAV_001)
    Set deaths for P8- add 1 for "Flag"
    Create one unit at "1A"
    Kill all unit at "1A"

    etc...



    "Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

    Options
      Back to forum
    Please log in to reply to this topic or to report it.
    Members in this topic: None.
    [07:46 am]
    RIVE -- :wob:
    [2024-4-22. : 6:48 pm]
    Ultraviolet -- :wob:
    [2024-4-21. : 1:32 pm]
    Oh_Man -- I will
    [2024-4-20. : 11:29 pm]
    Zoan -- Oh_Man
    Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
    You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
    [2024-4-20. : 8:20 pm]
    Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
    [2024-4-20. : 8:20 pm]
    Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
    [2024-4-20. : 8:18 pm]
    Ultraviolet -- Oh_Man
    Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
    oh ya I saw that when Armo posted it on Discord, pretty crazy
    [2024-4-20. : 8:09 pm]
    Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
    [2024-4-20. : 8:09 pm]
    Vrael -- woo baby talk about a time crunch
    [2024-4-20. : 8:08 pm]
    Vrael -- Oh_Man
    Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
    so that gives me approximately 27 more years to finish tenebrous before you get to it?
    Please log in to shout.


    Members Online: Roy