Ingreso rápido:  

Forum: VirtualDJ Technical Support

Tema: wanna use the gain value in a script

Este tópico es antiguo y puede contener información incorrecta para la nueva versión.

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
 

Mensajes 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)
 

Mensajes 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
....

 

Mensajes 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 ? ...
 

Mensajes 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
 

Mensajes Fri 16 Apr 21 @ 7:59 pm
SveninoPRO InfinityMember since 2009
 

Mensajes Fri 16 Apr 21 @ 8:02 pm


(Los tópicos y foros antiguos son automáticamente cerrados)