快速登录:  

Forum: VirtualDJ Skins

话题: Volume whole number

由于该帖子已年深日久,可能包含陈旧过时或描述错误的信息。

Dodge57PRO InfinityMember since 2009
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%
 

发表时间 Fri 30 Nov 12 @ 10:25 am
djdadPRO InfinityDevelopment ManagerMember since 2005
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.
 

发表时间 Fri 30 Nov 12 @ 3:34 pm
Dodge57PRO InfinityMember since 2009
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"'
 

发表时间 Fri 30 Nov 12 @ 6:33 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
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.
 

发表时间 Fri 30 Nov 12 @ 6:37 pm
Dodge57PRO InfinityMember since 2009
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 :(

 

发表时间 Sat 01 Dec 12 @ 7:59 am
djdadPRO InfinityDevelopment ManagerMember since 2005
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.
 

发表时间 Sun 02 Dec 12 @ 5:18 pm
Dodge57PRO InfinityMember since 2009
Thank you very much ! It's work nice !

I think I have forget a ` anywhere...
 

发表时间 Mon 03 Dec 12 @ 10:20 am


(陈旧帖子或论坛版块会自动关闭)