Ingreso rápido:  

Forum: Old versions

Tema: Need help on how to use "isrepeat" script.

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

I can't figure out how to use the isrepeat properly. What I need is when I press the button it will select a certain effect and when iI press it again it will select another effect. i tried 'isrepeat : effect "flanger" select : effect "chorus" select'. It kept on choosing the second effect. Can anyone help me? Thanks.
 

Mensajes Thu 06 Feb 14 @ 2:12 am
isrepeat is for a keyboard. It basically separates the first message from when the key is pressed from any subsiquent messages when the key is held. It's really just replicating the "holding" action. eg.

aaaaaaaaaaaaaaaa

isrepeat ? first press : if held

to do what you want you will need to set up a cycle and have specific effects attached to that cycles values eg. this will work for four different effects, but of course you can extend the pattern as far as you need it.

cycle 'effectRack' 4 &
var 'effectRack' 1 ? effect 'effectTwo' select :
var 'effectRack' 2 ? effect 'effectThree' select :
var 'effectRack' 3 ? effect 'effectFour' select :
effect 'effectOne' select

also you can cycle backwards if you us a negative number in the cycle. eg.

cycle 'effectRack' -4 &
etc...

finally you will need to remove any new line characters from the above script for it to work, it's just easier to explain if it's broken up.
 

Mensajes Thu 06 Feb 14 @ 2:26 am


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