Sign In:     


Forum: VirtualDJ Skins

Topic: Volume whole number

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

Hello,

I search a solution for have the whole number of the volume value

with this :
<textzone pannel="Tonalite1">
<size width="40" height="12"/>
<pos x="226" y="155"/>
<up x="366" y="1321"/>
<text dx="0" dy="0" font="Tahoma" size="11" color="#A0A0A0" align="center" format="`deck 1 get volume`"/>
</textzone>

I have for exemple 88,10% and I want just 88%
 

Posted Fri 30 Nov 12 @ 10:25 am
Unless i am mistaken, there is no way to specify the part of the number with the current VDJ Skin Engine. (Integer, decimal digits etc). You can ask for that in our Wishes Forums
There is param_cast action that converts a variable to different format, but never tried and cant help you with this.
 

ok, thanks !

I search an exemple for use param_cast but nothing...

The exemple in the wiki don't work : 'pitch_range & param_cast "percentage"'
 

Again, not sure if this is possible.
I would try .

... format="`deck 1 get volume & pram_cast 'integer'` %"/>

but i am afaid it might return 0, as the 88,3% is equal to 0,883 so it might return 0 or 1.
 

thank you for your help and sorry for my english ^^

it doesn't work...
I trie all the possibility ( 'integer', 'float', 'percentage', 'ms', 'boolean', 'text'.) but nothing...
I also tried 'param_multiply' but it doesn't work in a textzone :(

 

This one works for me ...

... format="`deck 1 get volume & param_multiply 100 & param_cast 'integer'` %"/>

Also have in mind that the value also depends on the Volume Faders setting (Config-->Options) , if it is set in Linear or Quadratic.
 

Thank you very much ! It's work nice !

I think I have forget a ` anywhere...
 



(Old topics and forums are automatically closed)