快速登录:  

Forum: VirtualDJ Technical Support

话题: Database XML properties

由于该帖子已年深日久,可能包含陈旧过时或描述错误的信息。

Hi all. I have a question about the XML properties for the database-Scan tag. I see the BPMs are notated as floating point values - what magic formula do one need to convert this value to a presentable form? I attempted to find a relationship between actual BPM / XML-Bpm but get different readout for the factor each time, assuming there is a base value subtracted beforehand? Before I chip of thick rust from my mad middle-school math skills, there may be some who knows the answer already?

Example lines:

<Scan Version="800" Bpm="0.468764" AltBpm="0.703152" Volume="1.678932" Key="C#m" Flag="32768" />
-> translates to 128 BPM
<Scan Version="801" Bpm="0.447766" AltBpm="0.335828" Volume="1.182598" Key="G" Flag="32768" />
-> translates to 134 BPM
<Scan Version="801" Bpm="0.434785" AltBpm="0.326088" Volume="1.256876" Key="B" Flag="32768" />
-> translates to 138 BPM

Also, what is the difference between Bpm and AltBpm? (it seem to be a 1.5x factor between them). And is there any documentation for "Flag" (looks like a bit-mask)?

Thanks! B-)
 

发表时间 Tue 04 Dec 18 @ 8:22 am
Wait, I think I figured it out (right after posting this, of course.. I just noticed the values decreased when the BPM was increasing. And it's 2:30AM here):

1 / Bpm * 60

So, for example the first line:

1 / 0.468764 * 60 = 127.9961771808415, or 128

The second line:

1 / 0.447766 * 60 = 133.9985617487706, or 134

etc. - seem to hold water?

But what is the AltBpm intended for; and flags?
 

发表时间 Tue 04 Dec 18 @ 8:35 am
Yes, the value stored in database is actually the time (in seconds) between 2 beats
The AltBPM is the second most possible BPM the scan engine found when scanning the track (you can see that BPM on Tag Editor BPM drop down menu)
Flags have to do with the database (if a song is included on search results or not e.t.c.). You should not mess with flags property
 

发表时间 Tue 04 Dec 18 @ 9:02 am
djcelPRO InfinityModeratorMember since 2004
 

发表时间 Tue 04 Dec 18 @ 1:35 pm
Alright, thanks @PhantomDeejay, and @djcel for updating that page with this information as well.
 

发表时间 Tue 04 Dec 18 @ 6:42 pm


(陈旧帖子或论坛版块会自动关闭)