Ingreso rápido:  

Forum: VirtualDJ Plugins

Tema: VDJ Databse correct track length?

Este tópico es antiguo y puede contener información incorrecta para la nueva versión.

Hello Today I'm looking in the

VirtualDJ Database.xml

<Song FileName="Test.mp3" FileSize="9142272" TagDate="707090702">
<Infos SongLength="17618688" />
<BPM Bpm="20671" Phase="13068" BeatPhase="3" />
<FAME IsScanned="1" Volume="7932" />
<Automix MixType="3" TempoStart="33739" TempoEnd="16570539" CutStart="32544" CutEnd="17232256" FadeStart="32768" FadeEnd="17245696" />
</Song>

In the community i fount, that the BPM is convert 60*44100/bpm but how can i calculate/convert the song length (SongLength="17618688) in seconds?

Can anybody help me?

Thx and greets
HAWK

 

Mensajes Mon 09 Jul 07 @ 1:18 pm
metiznPRO InfinityMember since 2005
hawk2005 wrote :
In the community i fount, that the BPM is convert 60*44100/bpm but how can i calculate/convert the song length (SongLength="17618688) in seconds?



17618688 = number of samples that the song has
44100 = samples played per second

=> 17618688/44100= about 400 sec = 6 min 40 sec


 

Mensajes Mon 09 Jul 07 @ 4:47 pm
Hello,

thx for help.

But i don't understand it!

17618688/60 == 400 seconds (okay i understand)
400 Seconds / 60 Seconds is == 06:60 Minutes and not 6,40 minutes??
But i'm surprised .... the song play in VDJ 06:40 Minutes that is your trick? ;)

 

Mensajes Mon 09 Jul 07 @ 8:44 pm
djcelPRO InfinityModeratorMember since 2004
hawk2005 wrote :
06:60 Minutes

Well, if you have a clock which shows that ( = 7 min ), send it to the trash ;-)
[hour => 12/24 , min => 60, sec => 60, millisec => 1000]


17618688/44100 = 399.516734696 sec ~ 400 sec

400/60 = 6,666666666667 min = (6 + 0.66666667 ) min = 6 min + 0.6666667 min

0.6666667 *60 = 40 sec


so 17618688/44100 ~ 6 min 40 sec
 

Mensajes Mon 09 Jul 07 @ 8:48 pm
Oooooops sorry it's to late and i'm a 3 years old children ;)
Yes, so it's logic for ME :D.

Thx *and my clock is send to trash* ;)
 

Mensajes Mon 09 Jul 07 @ 10:36 pm
thanks
 

Mensajes Wed 11 Jul 07 @ 7:47 pm


(Los tópicos y foros antiguos son automáticamente cerrados)