Connexion rapide:  

Forum: Old versions

Sujet Need help on how to use "isrepeat" script.

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

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.
 

Posté 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.
 

Posté Thu 06 Feb 14 @ 2:26 am


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