快速登录:  

Forum: VirtualDJ Technical Support

话题: wanna use the gain value in a script

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

SveninoPRO InfinityMember since 2009
Hi, for some controller mapping I need the value of the gain of a deck as a var or something.
(So if the gain is 0 - do something, and if the gain is lower than 0 do something else)

The following DIDN´T work:
set "$DRG" right deck get_gain & var "$DRG" 0 ? ...
Any Ideas? Thanks in advance
 

发表时间 Thu 15 Apr 21 @ 8:48 pm
when you use autogain?
if so, the gain knob is at middle (value 0.5) .. unless you turn off gainSliderIncludeAutoGain in settings ... and with that off, you get gain knob position after autogain adjusted.. .
But might not be what you want.. . cause that doesnt sound like something too useful ;-)

If you want the song gain, you can use get_level 'db'
(but that will be zero if zero db is set to zero etc.. so perhaps only relevant if no autogain)
 

发表时间 Thu 15 Apr 21 @ 8:58 pm
NicotuxHome userMember since 2014
and there are syntax errors in the script

keeping the default deck but testing the right deck:
set "$DRG" `deck right gain` & var "$DRG" 0 ? ..
or if deck have to be default action
deck right set "$DRG" `gain` & ...
or without var
deck right gain 0 ?
or
....

 

发表时间 Thu 15 Apr 21 @ 9:10 pm
NicotuxHome userMember since 2014
as Rune notified, the default is 0.5 (gainA=1)
so that instead of testing against equality ...
deck right param_greater gain 0.5 ? ...
or
set '$DRG" `deck right gain` & var_greater "$DRG" 0.5 ? ...
 

发表时间 Thu 15 Apr 21 @ 9:17 pm
SveninoPRO InfinityMember since 2009
Thank You Rune and Nicotux for your effort.
Nothing worked to get the gain as a value, but nevertheless: The problem is solved.

Wanted to mute the gain to kill the song, while the echo effect should be furthermore audible.
The confusion arose from the fxProcessing in the options.
The designation there is opposite to the usual practice for stage equipment.
In all Audio-Hardware-Mixers "Pre Fader" means, the effect is sended even if the Channel-Fader is down.
In VDJ "Post-fader" means, that the Echo is audible, even when You zero the level fader.

So for now the gain value is no longer needed.
Thanks again for Your patience and greetings from germany
 

发表时间 Fri 16 Apr 21 @ 7:59 pm
SveninoPRO InfinityMember since 2009
 

发表时间 Fri 16 Apr 21 @ 8:02 pm


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