Quick Sign In:  

Forum: VirtualDJ Skins

Topic: Volume Help

Dieses Thema ist veraltet und kann veraltete oder falsche Informationen enthalten.

I'm using "Define" for the first time and do not see examples of Level faders with sliders. The following is a code that currently works for one volume level control with moveable slider:


<slider action="deck 1 level" orientation="vertical" dblclick="reset" rightclick="temporary">
<size width="40" height="213"/>
<pos x="832" y="442"/>

<size width="45" height="222"/>
<up x="120" y="2098"/>
<selected x="161" y="2098"/>

<fader>
<size width="37" height="32"/>
<pos x="121" y="2060"/>
<mouserect x="125" y="2050" width="30" height="28"></mouserect>
</fader>
</slider>


But how do I define once to replicate later??
 

geposted Thu 19 Feb 15 @ 3:49 am
<define class="slider" orientation="vertical" dblclick="reset" rightclick="temporary">
<size width="40" height="213"/>
<up x="120" y="2098"/>
<selected x="161" y="2098"/>
<fader>
<size width="37" height="32"/>
<pos x="121" y="2060"/>
<mouserect x="125" y="2050" width="30" height="28"></mouserect>
</fader>
</define>


Then use:
<slider class="slider" action="deck 1 level"><pos x="832" y="442"/></slider>
 

geposted Thu 19 Feb 15 @ 5:26 am
Works great! Thanks
 

geposted Thu 19 Feb 15 @ 10:16 am
Do you also know the variable to get "master" volume? Would like to add master volume l.E.D.s
 

geposted Thu 19 Feb 15 @ 7:06 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
You need a <visual> with source="get_vu_meter 'master'"
The code is available in the default skins too.
 

geposted Thu 19 Feb 15 @ 7:31 pm
Ahhh. I was looking all over for it. I thought I was looking at default, but it was a different skin.... lol

IT's what I was looking for.

One last thing with volume. What's the trick to only show a fully lit LED? Currently, when the levels bounce, each individual LED is lit from the bottom up. I would like the individual LED to be lit all at one or not at all.

Am I asking correctly?
 

geposted Thu 19 Feb 15 @ 7:43 pm
Working on a highly simplified, but detailed version of the NS7II.
 

geposted Thu 19 Feb 15 @ 8:03 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
hmm u may need to define each "Led" as a separate button (or visual) and use something like ..
get_vu_meter 'master' & param_bigger 40% ? param_smaller 50% ? on : off : off
this will turn on a "Led" if the VU meter is between 40% and 50%

EDIT.. probably you need all Leds below to light up so the actions should look like..
get_vu_meter 'master' & param_bigger 40% ? param_smaller 50% ? off : on : off
Will light up the xth led if VU is over 50%
 

geposted Thu 19 Feb 15 @ 8:09 pm
So I used your suggestion and it worked on the master VU left... But having headaches trying to figure out to group everything so that I can easily replicate the work i've done, and just re-position 36 pixels to the right using a few lines of code.

I've look at so many example and getting super confused. I have defined the following:

---LEDS 1-11 DEFINED---
<Group name="LEDS-DEFINED">
-LED #1
<define class="LED#1" type="linear" orientation="vertical" direction="up" source="get_vu_meter_left 'master' & param_bigger 0% ? param_smaller 9.09% ? off : on : off">
<size width="8" height="16"/>
<pos x="939" y="620"/>
(Gray LED)
<off x="60" y="2120"/>
(Bright Red LED)
<on x="80" y="2282"/>
</define>

<define class="LED#2" type="linear" orientation="vertical" direction="up" source="get_vu_meter_left 'master' & param_bigger 9.10% ? param_smaller 18.18% ? off : on : off">
<size width="8" height="16"/>
<size width="8" height="16"/>
(Gray LED)
<off x="60" y="2120"/>
(Bright Red LED)
<on x="80" y="2282"/>
</define>

<define class="LED#3" type="linear" orientation="vertical" direction="up" source="get_vu_meter_left 'master' & param_bigger 18.19% ? param_smaller 27.27% ? off : on : off">
<size width="8" height="16"/>
<size width="8" height="16"/>
(Gray LED)
<off x="60" y="2120"/>
(Bright Red LED)
<on x="80" y="2282"/>
</define>

<define class="LED#4" type="linear" orientation="vertical" direction="up" source="get_vu_meter_left 'master' & param_bigger 27.28% ? param_smaller 36.36% ? off : on : off">
<size width="8" height="16"/>
<size width="8" height="16"/>
(Gray LED)
<off x="60" y="2120"/>
(Bright Red LED)
<on x="80" y="2282"/>
</define>

<define class="LED#5" type="linear" orientation="vertical" direction="up" source="get_vu_meter_left 'master' & param_bigger 36.37% ? param_smaller 45.45% ? off : on : off">
<size width="8" height="16"/>
<size width="8" height="16"/>
(Gray LED)
<off x="60" y="2120"/>
(Bright Red LED)
<on x="80" y="2282"/>
</define>

<define class="LED#6" type="linear" orientation="vertical" direction="up" source="get_vu_meter_left 'master' & param_bigger 45.38% ? param_smaller 54.54% ? off : on : off">
<size width="8" height="16"/>
<size width="8" height="16"/>
(Gray LED)
<off x="60" y="2120"/>
(Bright Red LED)
<on x="80" y="2282"/>
</define>

<define class="LED#7" type="linear" orientation="vertical" direction="up"source="get_vu_meter_left 'master' & param_bigger 54.55% ? param_smaller 63.63% ? off : on : off">
<size width="8" height="16"/>
<size width="8" height="16"/>
(Gray LED)
<off x="60" y="2120"/>
(Bright Red LED)
<on x="80" y="2282"/>
</define>

<define class="LED#8" type="linear" orientation="vertical" direction="up" source="get_vu_meter_left 'master' & param_bigger 63.64% ? param_smaller 72.72% ? off : on : off">
<size width="8" height="16"/>
<size width="8" height="16"/>
(Gray LED)
<off x="60" y="2120"/>
(Bright Red LED)
<on x="80" y="2282"/>
</define>

<define class="LED#9" type="linear" orientation="vertical" direction="up" source="get_vu_meter_left 'master' & param_bigger 72.73% ? param_smaller 81.81% ? off : on : off">
<size width="8" height="16"/>
<size width="8" height="16"/>
(Gray LED)
<off x="60" y="2120"/>
(Bright Red LED)
<on x="80" y="2282"/>
</define>

<define class="LED#10" type="linear" orientation="vertical" direction="up" source="get_vu_meter_left 'master' & param_bigger 72.73% ? param_smaller 81.81% ? off : on : off">
<size width="8" height="16"/>
<size width="8" height="16"/>
(Gray LED)
<off x="60" y="2120"/>
(White LED)
<on x="80" y="2102"/>
</define>

<define class="LED#11" type="linear" orientation="vertical" direction="up" source="get_vu_meter_left 'master' & param_bigger 72.73% ? param_smaller 81.81% ? off : on : off">
<size width="8" height="16"/>
<size width="8" height="16"/>
(Gray LED)
<off x="60" y="2120"/>
(White LED)
<on x="80" y="2102"/>
</define>
</Group>




and then:








<group name="VuMeter-Master">
(Background)
<button class="LedBG"><pos x="1107" y="436"/></button>

-LED #1
<visual class="LED#1" chan="1">
<pos x="939" y="620"/>
</visual>
-LED #2
<visual class="LED#2" chan="1">
<pos x="939" y="602"/>
</visual>
-LED #3
<visual class="LED#3" chan="1">
<pos x="939" y="584"/>
</visual>
-LED #4
<visual class="LED#4" chan="1">
<pos x="939" y="566"/>
</visual>
-LED #5
<visual class="LED#5" chan="1">
<pos x="939" y="548"/>
</visual>
-LED #6
<visual class="LED#6" chan="1">
<pos x="939" y="530"/>
</visual>
-LED #7
<visual class="LED#7" chan="1">
<pos x="939" y="512"/>
</visual>
-LED #8
<visual class="LED#8" chan="1">
<pos x="939" y="494"/>
</visual>
-LED #9
<visual class="LED#9" chan="1">
<pos x="939" y="476"/>
</visual>
-LED #10
<visual class="LED#10" chan="1">
<pos x="939" y="458"/>
</visual>
-LED #11
<visual class="LED#11" chan="1">
<pos x="939" y="440"/>
</visual>

</group>
 

geposted Fri 20 Feb 15 @ 12:30 am
You can move a group:
<group name="VU_METER" x="+100" y="+10">

Or

<group name="VU_METER" x="900" y="220">
 

geposted Fri 20 Feb 15 @ 5:24 am
But do I have to copy and paste everything in the original group? or can I define what a group is like define class?
 

geposted Fri 20 Feb 15 @ 9:09 am
I guess in other words, can I define a group and just use the class id of the group for an element so that I can duplicate the group in another spot without having to redefine everything inside? I am trying to shorten the amount of code used since I need to do this a lot.
 

geposted Fri 20 Feb 15 @ 12:46 pm
djjbPRO InfinityMember since 2004
Isn't this the easiest way?

<visual type="custom" source="get cpu" orientation="horizontal">
<size width="25" height="11"/>
<pos x="9" y="8"/>
<down x="9" y="773" nb="7" smooth="true"/>
</visual>
 

geposted Fri 20 Feb 15 @ 1:29 pm
I don't know...
I tried the following:

<visual type="custom" source="get_vu_meter_left 'master'" orientation="vertical">
<size width="8" height="196"/>
<pos x="939" y="440"/>
<down x="60" y="2102" nb="11" smooth="false" />
</visual>

It's not the same effect. All LEDs come on and sort of move horizontal, not vertical.
 

geposted Fri 20 Feb 15 @ 3:39 pm


(Alte Themen und Foren werden automatisch geschlossen)