Please help with a vdjscript action that when i press a key and while the key is pressed in , if the crossfader is at less than 50% value then take the crossfader to 100% and if more than 50% then take the crossfader to 0%.
Once the keyboard key is not pressed crossfader back to the original crossfader value in about one fifth of a second.
Once the keyboard key is not pressed crossfader back to the original crossfader value in about one fifth of a second.
Inviato yesterday @ 8:33 pm
Try this, might need some adjustments ..
Not perfect, especially if you toggle the button very quickly trying to simulate a scratch, as the auto_crossfade might still be active and not finished, so next press will read a CF position before reaching the target/old value, so perhaps try to reduce the ms times
down ? set '$cf' `crossfader` & param_bigger `crossfader` 0.5 ? auto_crossfade 500ms 100% : auto_crossfade 500ms 0% : get_var '$cf' & param_cast 'percentage'& auto_crossfade 500ms
Not perfect, especially if you toggle the button very quickly trying to simulate a scratch, as the auto_crossfade might still be active and not finished, so next press will read a CF position before reaching the target/old value, so perhaps try to reduce the ms times
Inviato 22 hours ago