-
Sound syncing?
Hi!
Any extension or efficient method that could allow me to do actions when a playing sound reaches a certain time? Example:
-Sample "Boom.wav" has reached 00:01.48
+Create object "Smoke" at 240,480
Or something? Basic jist is that Is there a way to sync things with sound? :) Thank you for all answers
-
Re: Sound syncing?
Try something like this:
Code:
-SamplePosition("SampleName") >= 1480 - Create object...
You just need to put the sample's name as the parameter and put the position in ms.
-
Re: Sound syncing?
Don't forget to add "Only One Action on Event Loop" so it doesn't keep making smoke forever until the sound ends. ;)
-
Re: Sound syncing?
Waitwaitwait...So there's a condition for it? I'm currently not at home and don't have access to MMF2 at all. I never knew this existed?! I assumed I would need an extension for it...
-
Re: Sound syncing?
No, it's an expression. You use "Compare Two General values" from the special object, then use that expression.
The "Only One Action on Event Loop" is a condition.
-
Re: Sound syncing?
Wow. Thank you LB and Greg :) Will try it when I get back home XD
-
Re: Sound syncing?
I'll ask this question on this thread since it will prevent pollution...
How would I go about doing Lip Syncing? I tried downloading jLipSync or something and nothing seems to help me. This all points to the fact that I am making a cutscene XD
-
Re: Sound syncing?
Just animate the objects mouth to always open and shut :)
Unless you want GOOD lipsyncing...
-
Re: Sound syncing?
Good lipsyncing is what i'm after, i'm tired of doing the "Open and shut mouth" thing... :(
-
Re: Sound syncing?
Does anyone know the solution to the "GOOD lipsync" issue?
-
Re: Sound syncing?
I've never actually done this, but here's what I would do if I wanted lipsync.
First I'd create these basic mouth shapes. Then I would figure out which mouth shapes need to be used at what times of the given voice clip. You might find it helpful to do this in something like Flash which lets you hear sounds as you scrub through the timeline. Once you've got the timing down, encode it into an XML document. Then you need to make general-purpose events that decode the XML and use it to determine which mouth shape should be shown at a given time of the audio clip. There are XML objects for MMF, I just did a google search and turned this one up.
If you wanted to streamline the process further, you could even make your own lipsync editor in MMF. Then you could have it automatically save into XML or even your own custom format.