Sign In:     


Forum: General Discussion

Topic: XML Database and Song Duration

This topic is old and might contain outdated or incorrect information.

Using the XML Database for Virtual DJ what is the formula to make the song length information more meaningfull and transform it into the "Minute:Second" format?
 

Posted Tue 09 May 06 @ 10:47 am
The duration and the bpm information are both stored relative to the sample frequency. Assuming the song is 44100 HZ (common for digital audio) the equation for converting to minutes would be:

(SongLength in XML File) / (44100 * 60)

You can then calculate out the seconds by multiplying the remainder by seconds.
 

Wow cj! Did you not realize that post was dated since 06? Lol
 

Very old topic from 2006 closed.
 



(Old topics and forums are automatically closed)