Best way to Sync music with images

Blitz3D Forums/Blitz3D Beginners Area/Best way to Sync music with images

spriteman(Posted 2004) [#1]
I have a slideshow running and also music in the background. I am however trying to sync in the changing of the images to the tempo of the track.

Is there any way to keep this in sync.

Presently to control the timing I am using something like,

timer=0

if timer >0 and <1000
Display pic1
if timer >1000 and >2000
Display pic2

timer=timer+1

Not sure if there is any other way really...


_PJ_(Posted 2004) [#2]
Any chance you could figure out the bpm of the music? (even if it means manually counting!)

then using Millisecs() to time the delays

This also means that different spec computers won't be messing up your presentation because some are processing the graphics faster than others.


CS_TBL(Posted 2004) [#3]
In Soundforge you can place markers, and you can export markers to a file.. read out that file and you know where to sync.


spriteman(Posted 2004) [#4]
Malice - Will give the Millisecs() a try. I can run this check in the mail loop to keep the timing against the bpm.

CS_TBL - Do U know if you can export markers from wavelab. This seems like an interesting way of syncing a .wav

2 different solutions, Cheers...:-}


CS_TBL(Posted 2004) [#5]
I don't know wavelab ..

(that is: I know what it is, but I don't use it)

This is how a Soundforge marker file looks like:
start_marker_table
00:00:00.4 Marker 00:00:00.476
00:00:00.9 Marker 00:00:00.992
00:00:01.8 Marker 00:00:01.863
00:00:02.3 Marker 00:00:02.339
00:00:02.9 Marker 00:00:02.914
00:00:03.1 Marker 00:00:03.175
00:00:03.5 Marker 00:00:03.570
end_marker_table
AUTHOR:	CS^TBL


no bad news for any coder I'd say ..

Additionally, if your markers were placed when Soundforge's display mode was in samples rather than seconds, then you get sample-offsets in your markerfile instead of timestamps.