Prev Previous Post   Next Post Next
Old 05-03-2021, 01:35 AM   #1
Kaxaze music
Human being with feelings
 
Kaxaze music's Avatar
 
Join Date: Sep 2020
Posts: 107
Default How to design a step in reascript (Fixed)

Like cycle action editor where a step is used to make a toggle, similarly any way to make that in reascript?

Edited - Ok so, i found what i wanted and here's what it end up looking like
Code:
function step_1()
--code that will happen at first iteration and so on...
end

function step_2()
--code that will happen at Second iteration and so on...
end

function main()
 
  local a = reaper.GetToggleCommandState("of some action")
  
  if a == 0 then
    step_1()
    
  end
  
  if a == 1 then
    step_2()
    a = a - 1 --or a = 0
  
  end
  
end
main()

Last edited by Kaxaze music; 05-05-2021 at 03:33 PM.
Kaxaze music is online now   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:25 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.