Connexion rapide:  

Forum: Old versions

Sujet: Different action when holding down a button

Ce topic est ancien et peut contenir des informations obselètes ou incorrectes.

Trying to get an action to repeat when holding the button down. Was trying to use the FLOW command of DOWN. This is what I was messing with:

var '$down' ? sampler_group_volume 1 +3% : sampler_group_volume 1 +3%

Second portion works. The DOWN component does not. Probably missing something small, but I this is my first time trying to write anything than the most basic script.
 

Posté Fri 14 Aug 15 @ 8:17 am
You have used the same action for both values of the variable so you wont get anything different.
If you need to gradually increase the volume of sample 1 while the button is held, try this..
repeat 500ms & sampler_group_volume 1 +3%
you can also change the time from 500ms to a lower one to increase the "waiting time" of the repeat action.
 

Works like a charm as usual!

 

Question to any staff that will answer (not hijacking the thread just continuing the discussion)

What is the shortest repeat time possible? (for repeat _start I've found 33ms is the lowest but have never been give an absolute answer if it's my machine or vdj that is the limit)
 

 

The limit will be around 33ms as well. (repeat and repeat_start use the same mechanism, so timing of both will be the same)

It is not linked to the keyboard repeat rate (which is a system setting)
 

Thanks for that Adion, it's good to know for sure. Maybe this info could be added to the appropriate entries in the script wiki.
 



(Les anciens sujets et forums sont automatiquement fermés)