Se Connecter:     


Forum: VirtualDJ Technical Support

Sujet: Custom effect button
Hi VDJ community, would like to create a custom effect reverb (large) button that:
1) Blinks when engaged
2) While engaged the reverb slowly fades out over 4 or 8 beats
3) And track stops after 4, 8 beats
4) And button stops blinking after track stops

Thanks
 

Posté Sun 02 Aug 26 @ 1:51 am
( var rsUserFX1 0 ? on : blink ) & repeat_start rsUserFX1 ? repeat_stop rsUserFX1 & set rsUserFX1 0 & effect_active reverb off : set rsUserFX1 1 & effect_active reverb on & DIAL SET UP HERE & repeat_start rsUserFX1 0.125bt 64 & set rsUserFX1 +1 & var rsUserFX1 65 ? set rsUserFX1 0 & effect_active reverb off & pause : DIAL MOVEMENT HERE


Something like that.
 

Hey JT M,

Locodog´s idea above is good, but here’s another option you can try.

This keeps the blinking, Reverb fade, final pause and cleanup together in the same sequence. It also turns Reverb off when the sequence finishes or is cancelled, so the next press starts cleanly.

It calls the native Reverb directly by name, so it does not select or replace anything already loaded in the normal FX slots. It is also not hardcoded to the left or right deck, so it follows the deck where the Custom Button is located.

Here is the 8-beat version:

( var '%REVSTOP_ON' ? blink 0.5bt : off ) & ( var '%REVSTOP_ON' ? ( repeat_stop 'REVSTOP_RPT' & effect_slider "Reverb" 1 0% & effect_active "Reverb" off & set '%REVSTOP_ON' 0 & set '%REVSTOP_STEP' 0 ) : ( play ? ( repeat_stop 'REVSTOP_RPT' & set '%REVSTOP_ON' 1 & set '%REVSTOP_STEP' 0 & effect_active "Reverb" on & effect_slider "Reverb" 1 80% & effect_slider "Reverb" 2 80% & effect_slider "Reverb" 3 100% & effect_slider "Reverb" 4 50% & repeat_start 'REVSTOP_RPT' 0.125bt 64 & ( effect_slider "Reverb" 1 -1.25% & set '%REVSTOP_STEP' +1 & ( var_equal '%REVSTOP_STEP' 64 ? ( repeat_stop 'REVSTOP_RPT' & effect_slider "Reverb" 1 0% & pause & effect_active "Reverb" off & set '%REVSTOP_ON' 0 & set '%REVSTOP_STEP' 0 ) : nothing ) ) ) : nothing ) )


Here is the 4-beat version:

( var '%REVSTOP_ON' ? blink 0.5bt : off ) & ( var '%REVSTOP_ON' ? ( repeat_stop 'REVSTOP_RPT' & effect_slider "Reverb" 1 0% & effect_active "Reverb" off & set '%REVSTOP_ON' 0 & set '%REVSTOP_STEP' 0 ) : ( play ? ( repeat_stop 'REVSTOP_RPT' & set '%REVSTOP_ON' 1 & set '%REVSTOP_STEP' 0 & effect_active "Reverb" on & effect_slider "Reverb" 1 80% & effect_slider "Reverb" 2 80% & effect_slider "Reverb" 3 100% & effect_slider "Reverb" 4 50% & repeat_start 'REVSTOP_RPT' 0.125bt 32 & ( effect_slider "Reverb" 1 -2.5% & set '%REVSTOP_STEP' +1 & ( var_equal '%REVSTOP_STEP' 32 ? ( repeat_stop 'REVSTOP_RPT' & effect_slider "Reverb" 1 0% & pause & effect_active "Reverb" off & set '%REVSTOP_ON' 0 & set '%REVSTOP_STEP' 0 ) : nothing ) ) ) : nothing ) )


Both versions:

* Turn on a large Reverb.
* Blink while the sequence is running.
* Fade the Reverb Strength down gradually.
* Pause the track after either 8 or 4 beats.
* Turn Reverb off completely.
* Stop the blinking and reset everything for the next press.

The large Reverb settings used here are:

Strength: 80%
Decay: 80%
Room Size: 100%
Brightness: 50%


Reverb parameter 1 is Strength, so that is the control being faded. Parameters 2, 3 and 4 set the Decay, Room Size and Brightness.

Pressing the button again before the sequence finishes will cancel it, turn Reverb off and stop the blinking without pausing the track.

I used
pause
so the track stops at its current position. Replace it with
stop
if normal stop/cue behaviour is preferred.

 

Excellent. Thanks all for the help.