Login :       Password :       Remember me

Forum: VirtualDJ Skins - Topic: Calculate the BPM difference

All you ever wanted to say or know about VirtualDJ Skins.
Skins are ONLY available for download by license registered users only.
VirtualDJ forums
VirtualDJ Skins
Calculate the...


Author - Topic: Calculate the BPM difference -

Dodge57

Limited edition user
Posted Thu 02 Feb 12 @ 8:28 am
Hello,

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

It is possible ??

PhantomDeejay

VIP Member
Posted Thu 02 Feb 12 @ 12:05 pm
No.

Dodge57

Limited edition user
Posted Fri 03 Feb 12 @ 4:09 pm
ok,

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

PhantomDeejay

VIP Member
Posted Sat 04 Feb 12 @ 12:31 am
I'm afraid no, too...

Dodge57

Limited edition user
Posted Sat 04 Feb 12 @ 8:43 am
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)

PhantomDeejay

VIP Member
Posted Sun 05 Feb 12 @ 2:40 pm
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.

Dodge57

Limited edition user
Posted Sun 05 Feb 12 @ 3:51 pm
Effectively that I want knowl it's if the 2 titles have the same BPM. :(


djjb

Experienced pro user
Posted Sun 05 Feb 12 @ 10:21 pm
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)


Dodge57

Limited edition user
Posted Mon 06 Feb 12 @ 8:55 pm
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)

djjb

Experienced pro user
Posted Tue 07 Feb 12 @ 8:23 am
hm....

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

Dodge57

Limited edition user
Posted Tue 07 Feb 12 @ 6:07 pm
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)

PhantomDeejay

VIP Member
Posted Wed 08 Feb 12 @ 2:21 am
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...

Dodge57

Limited edition user
Posted Wed 08 Feb 12 @ 7:58 am
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...

PhantomDeejay

VIP Member
Posted Thu 09 Feb 12 @ 2:41 pm
Sorry, my mistake. The variable you should query is "$WD_BPMLR_SYNC"

Dodge57

Limited edition user
Posted Fri 10 Feb 12 @ 6:36 pm
It work very well !!!

Thank you very much !!!



Site map
(C)opyright Atomix Productions 2012

Software
Hardware
Membership
Goodies
VirtualDJ Pro Full
VirtualDJ Pro Basic
VirtualDJ Broadcaster
VirtualDJ Home FREE
VirtualDJ LE
Comparison
Numark CUE
VirtualVinyl
VirtualDJ iRemote
AtomixMP3
eJay DJMixStation
DJ-Box
Why VirtualDJ?
Vdj for Video
Vdj for Turntablism
Vdj for Club DJ
Vdj for Mobile DJ
What's new
Features
Screenshots
VirtualDJ Home FREE
User Manuals
Plugins
Software Updates
Press Material
Developer SDK
Timecode CD
Skins
Effects
Controllers
Languages
Samples
Grafx
Tools & Drivers
Forums
Users Network
Music Groups
Wiki & Manuals
Radio
Magazine
Social Web
Create a login
Atomix Productions
Privacy Policy
VIP DJs
Ask a question
View your tickets
Wiki & Manuals