| Author | - Topic: Calculate the BPM difference - |
|---|---|
|
|
|
Hello, I search a solution to calculate the difference between the deck 1 BMP value and the deck 1 BMP value. It is possible ?? |
|
No. |
|
ok, and it's possible to put de bpm value in a variable ? ex : set '$MYVAR' %Bpm |
|
I'm afraid no, too... |
|
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) |
|
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. |
|
Effectively that I want knowl it's if the 2 titles have the same BPM. :( |
|
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) |
|
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) |
|
hm.... You use a skin that's version 7 ?.cause it workted fine here. |
|
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) |
|
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... |
|
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... |
|
Sorry, my mistake. The variable you should query is "$WD_BPMLR_SYNC" |
|
It work very well !!! Thank you very much !!! |
|

