Quick Sign In:  

Forum: VirtualDJ Skins

Topic: Calculate the BPM difference

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

Dodge57PRO InfinityMember since 2009
Hello,

I search a solution to calculate the difference between the deck 1 BMP value and the deck 1 BMP value.

It is possible ??
 

Posted Thu 02 Feb 12 @ 8:28 am
No.
 

Posted Thu 02 Feb 12 @ 12:05 pm
Dodge57PRO InfinityMember since 2009
ok,

and it's possible to put de bpm value in a variable ? ex : set '$MYVAR' %Bpm
 

Posted Fri 03 Feb 12 @ 4:09 pm
I'm afraid no, too...
 

Posted Sat 04 Feb 12 @ 12:31 am
Dodge57PRO InfinityMember since 2009
I am really unlucky...

I search a possibility to have an "alarm" if my 2 songs are not Synchronized.

I have found Trick, I placed a button which flashes if the pith is 0 % :

<button action="deck 1 pitch 100% ? blink 400ms : off">
<size width="131" height="40"/>
<pos x="243" y="198"/>
<selected x="438" y="1320"/>
</button>

if you have another idea ?


(sorry for my english)
 

Posted Sat 04 Feb 12 @ 8:43 am
If all you need to know is if both tracks are synchronized then you can use the following:
<button action="deck 1 get beatdiff 50% ? on : off">
<size width="131" height="40"/>
<pos x="243" y="198"/>
<selected x="438" y="1320"/>
</button>

The above code relies on the CBG info. The button will turn on every time two CBG squares are aligned.

If you want to know if both tracks (LEFT/RIGHT) have the same BPM then you could download "Watchdog" plug-in. However you need to be a Professional Edition User in order to download plug-ins.
 

Posted Sun 05 Feb 12 @ 2:40 pm
Dodge57PRO InfinityMember since 2009
Effectively that I want knowl it's if the 2 titles have the same BPM. :(

 

Posted Sun 05 Feb 12 @ 3:51 pm
djjbPRO InfinityMember since 2004
Hi you need a textzone in your skin with the format
"`get browsed_song 'bpmcompat'`" This reads the diff between the playing track and the browsed track.
"`deck 1 get loaded_song 'bpmcompat'`" This reads the diff between the track on deck 2 and 1 (maybe "deck 1" isn't necessary)

 

Posted Sun 05 Feb 12 @ 10:21 pm
Dodge57PRO InfinityMember since 2009
Thank you very much ! I did not know this command !

But it don't work if I test this :
<textzone>
<size width="86" height="31"/>
<pos x="855" y="990"/>
<text font="Tahoma" size="15" color="#006767" align="right" format="`get loaded_song 'bpmcompat'`"/>
</textzone>

or this
<textzone>
<size width="86" height="31"/>
<pos x="855" y="990"/>
<text font="Tahoma" size="15" color="#006767" align="right" format="`deck 1 get loaded_song 'bpmcompat'`"/>
</textzone>

the result is strang : I put the same song on the deck 1 et deck 2. If the 2 pitch are on 0, the résult is 0. But if I put the two pitch on another value, for example +3% on the 2 desk, I have a résult <> 0 !?!

(again sorry for my english)
 

Posted Mon 06 Feb 12 @ 8:55 pm
djjbPRO InfinityMember since 2004
hm....

You use a skin that's version 7 ?.cause it workted fine here.
 

Posted Tue 07 Feb 12 @ 8:23 am
Dodge57PRO InfinityMember since 2009
I use one of the skin that I made I even (http://fr.virtualdj.com/addons/12335/2_SCREENS_Millenium_Skin.html )

I studied the bpmcompat command. If I use the Textzone, this fonction calculate the différence between the current BPM and the original BPM of the loaded song :

http://nsa21.casimages.com/img/2012/02/08/12020801140691419.jpg


1 is this Textzone :
<textzone>
<size width="54" height="31"/>
<pos x="312" y="989"/>
<text font="Tahoma" size="15" color="#006767" align="right" format="`get loaded_song 'bpmcompat'`"/>
</textzone>

2 is this :
<textzone>
<size width="36" height="31"/>
<pos x="380" y="989"/>
<text font="Tahoma" size="15" color="#006767" align="right" format="`deck 1 get loaded_song 'bpmcompat'`"/>
</textzone>

and 3 is this :
<textzone>
<size width="29" height="31"/>
<pos x="912" y="990"/>
<text font="Tahoma" size="15" color="#006767" align="right" format="`deck 2 get loaded_song 'bpmcompat'`"/>
</textzone>


You can see that the 2 songs are synchronized, but the bpmcompat calculate a difference of 3.1 ! This is also the difference between the original and the current bpm..

However in the Browser, the calcul is correct (between the songs in the browser and the masterdeck)
 

Posted Tue 07 Feb 12 @ 6:07 pm
As I told you, there is a plug-in you can use for that. You can even use it on skins or controllers!
http://www.virtualdj.com/addons/12817/WatchDog.html
This plug-in will set a variable to "TRUE" when the bpm difference of the loaded songs is less than 0.03 BPM
You can query this variable to do whatever you want to do:
var_equal "$WD_BPM_LR_SYNC" 1 ? hands_up : hands_down

However you have to be a PRO user in order to download it.

PS: I'm not advertising my plug-in. I wanted the same thing as you and since there was NO WAY to get via native VDJ Script commands I created a plug-in for it...
 

Posted Wed 08 Feb 12 @ 2:21 am
Dodge57PRO InfinityMember since 2009
I thought that with my license I could not download your plug, but I made a mistake !

Ok, I have download the WatchDog, install it and activate it in VDJ.

Then I created a button :

<button action="var_equal '$WD_BPM_LR_SYNC' 1 ? on : off">
<size width="20" height="18"/>
<pos x="480" y="433"/>
<over x="+0" y="+1028"/>
<selected x="440" y="1680"/>
</button>

but it don't work...
 

Posted Wed 08 Feb 12 @ 7:58 am
Sorry, my mistake. The variable you should query is "$WD_BPMLR_SYNC"
 

Posted Thu 09 Feb 12 @ 2:41 pm
Dodge57PRO InfinityMember since 2009
It work very well !!!

Thank you very much !!!
 

Posted Fri 10 Feb 12 @ 6:36 pm


(Old topics and forums are automatically closed)