Synchronising a motion chart with music

20 views
Skip to first unread message

Dorien Herremans

unread,
Oct 26, 2015, 8:57:02 AM10/26/15
to Google Visualization API
Hi,

I want to sync a motion chart with the playback of an mp3 file. It doesn't seem supported at this point, but it would be a very useful feature for me (I'm a researcher visualising music).

One brute solution would be to autoplay the motionchart together with the music (although pausing would not be supported). Is there any way to do this?

Many thanks,
Dorien

Daniel LaLiberte

unread,
Oct 29, 2015, 8:32:31 AM10/29/15
to Google Visualization API
Dorien,

The MotionChart is not very customizable in the way you are hoping, but it sounds like you could make use of the Bubble chart with the animation option which you would control to synchronize with your music.  For each animation step you would just change the data and set the animation duration and call draw() again.  You could add a Pause button that just interrupted the process, though the last animation step would continue until it was done.

But the animation times are likely to get out-of-sync with the music unless you can get some signals from the music itself.  Another alternative might be to chop the mp3 into many small segments of known duration, and play each one successively.


--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/8e99b923-e161-4e73-93cd-7e1aa5fde3e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA
Reply all
Reply to author
Forward
0 new messages