View Single Post
Old 02-05-2013, 05:51 AM   #1192
Jeffos
Mortal
 
Jeffos's Avatar
 
Join Date: Dec 2008
Location: France
Posts: 1,969
Default

Ok, first let me say Anton9 is doing "advanced" things here!

The basic idea behind the recent ReaConsole updates was more likely to let you create your own custom actions like "Select drum tracks", "Select guitar tracks", "Add Kontakt to selected tracks", "Switch ReaEQ preset to '50Hz kicker'", etc.. Well, that kind of (basic) things..

.. but we can indeed do some mad professor stuff as well, and so here we go!

Quote:
Originally Posted by Anton9 View Post
Jeffos,
Well it looks like this does'nt work either.

LOOP 5
CONSOLE /track/1/fx/1/fxparam/1/value 0.5
_cutomId_of_my_wait_for_1s
CONSOLE /track/1/fx/1/fxparam/1/value 1.0
ENDLOOP
Same prob in your cycle action again..
It does work (I tested) but you won't be able to see any results (because REAPER sets 0.5 and immediately after 1.0..)

Try this:
LOOP 5
_cutomId_of_my_wait_for_1s
CONSOLE /track/1/fx/1/fxparam/1/value 0.5
_cutomId_of_my_wait_for_1s
CONSOLE /track/1/fx/1/fxparam/1/value 1.0
ENDLOOP

Quote:
Originally Posted by Anton9 View Post
Is there any way to break out of a cycle action that uses loops once it's running?
Say for example I execute the following and after a few loops I decide I want it to end.

LOOP 100
_SWS_BARWAIT
CONSOLE /track/1/fx/1/fxparam/1/value 0.5
_SWS_BARWAIT
CONSOLE /track/1/fx/1/fxparam/1/value 1.0
ENDLOOP
Yes. It would be a job for ReaScript and a new WHILE instruction would be a bit better, but you can do this:
Code:
LOOP 100
    IF
    _S&M_DUMMY_TGL1
        _SWS_BARWAIT
        CONSOLE /track/1/fx/1/fxparam/1/value 0.5
        _SWS_BARWAIT
        CONSOLE /track/1/fx/1/fxparam/1/value 1.0
    ENDIF
ENDLOOP
^^ where _S&M_DUMMY_TGLn is the action "SWS/S&M: Dummy toggle n" (very specific => hidden by default => you have to enable it in the S&M.ini file).
So running this action will break the loop (somehow).
Of course: 1) make sure it is ON when performing the loop action 2) any other action (that reports a toggle state) can be used instead!

Quote:
Originally Posted by Mercado_Negro View Post
Thanks! Maybe full vertical resize for now: no "enter a command..." text at all, just the input field is necessary to be honest
Cool: that's exactly what we've done

Quote:
Originally Posted by Jeffos View Post
and then useit your cycle action would look like
Wow! haha! I hope native English speakers have appreciated

Last edited by Jeffos; 02-05-2013 at 06:03 AM. Reason: 0.5 and immediately after 1.0
Jeffos is offline   Reply With Quote