Music Synchronization

Forum Home Forum Home > Construct 2 General > How do I....?
 Post Reply Post Reply Page  12>
Author
932 Rep
Post Options Post Options   Quote SketchyLogic Quote  Post ReplyReply Direct Link To This Post Topic: Music Synchronization
    Posted: 11 Jun 2012 at 5:54pm
First, I would like to say that Construct2 is an amazing piece of kit. It is, without a doubt, the most intuitive and fun-to-use games engine that I've come across. I love it.

I'm currently working on a rhythm game, similar to DDR or Guitar Hero. Normally the visuals and the music synch together perfectly, but if the player leaves the tab, or if the application stutters for whatever reason, the music gets a little bit ahead and the synchronization is ruined.

I did a little searching and found this topic from a few months ago, but it appears that no solution was available at the time.

I imagine that one solution would be to check the music time elapsed against the number of ticks passed, and if there is a discrepancy, then the music can be rewound accordingly. I don't see a way of checking "music time elapsed" or "go to this time" with the standard Construct2 commands, so are there any plug-ins that would allow me to do this? If not, is there another route that I can take?
Back to Top
19,339 Rep
Post Options Post Options   Quote sqiddster Quote  Post ReplyReply Direct Link To This Post Posted: 11 Jun 2012 at 6:40pm
Because of varied/bad browser support, fine audio control is simply not possible at the moment.

Edited by sqiddster - 11 Jun 2012 at 6:40pm
Back to Top
932 Rep
Post Options Post Options   Quote SketchyLogic Quote  Post ReplyReply Direct Link To This Post Posted: 11 Jun 2012 at 6:51pm
That's disappointing, but there must be some way of gathering the "now playing" position, even if it's in the form of a crude method like counting the number of bits streamed so far.
Back to Top
5,309 Rep
Post Options Post Options   Quote Pode Quote  Post ReplyReply Direct Link To This Post Posted: 12 Jun 2012 at 4:57pm
@SketchyLogic : you can ask @Ashley to add the support to
Quote
audio.addEventListener('timeupdate',

to the Audio object. This help to have something sync to the music, by trigerring callbacks on various timecues.
Back to Top
932 Rep
Post Options Post Options   Quote SketchyLogic Quote  Post ReplyReply Direct Link To This Post Posted: 12 Jun 2012 at 9:06pm
Sure, I'll send a message later. Thanks for the reply.
Back to Top
694 Rep
Post Options Post Options   Quote Quest Quote  Post ReplyReply Direct Link To This Post Posted: 02 Jul 2012 at 4:06pm
Any news on this?

I have the same exact problem, and Pode suggestion sounds the perfect solution for this.

Thank you!!!

Edited by Quest - 02 Jul 2012 at 4:07pm
Back to Top
3,718 Rep
Post Options Post Options   Quote sheepy Quote  Post ReplyReply Direct Link To This Post Posted: 02 Jul 2012 at 9:55pm
Yeah, this would be a very welcome update to the sound engine.
Back to Top
2,237 Rep
Post Options Post Options   Quote ptbcomposer Quote  Post ReplyReply Direct Link To This Post Posted: 03 Jul 2012 at 12:31am
I would like this feature added as well. My project will include a music rhythm minigame
Back to Top
694 Rep
Post Options Post Options   Quote Quest Quote  Post ReplyReply Direct Link To This Post Posted: 04 Jul 2012 at 9:30am
Originally posted by ptbcomposer ptbcomposer wrote:

I would like this feature added as well. My project will include a music rhythm minigame


Yes, my game will include something like a karaoke part, so audio sync is very important.

I hope a future release will include support for this :)

Thanks!!!
Back to Top
3,476 Rep
Post Options Post Options   Quote teahousemoon Quote  Post ReplyReply Direct Link To This Post Posted: 31 Aug 2012 at 9:03pm
Any word on whether or not anything has improved since july?
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down