introduced run_count var#3523
Conversation
30f32a9 to
6412b87
Compare
6412b87 to
8b1fee4
Compare
|
Could be useful, although one potential problem. I'm not sure that the run count would be unique to a given code buffer. If you run a different code buffer to the one containing your example code and then switch that your example code buffer with the first one still running, then when you press run it will register >1 for the count. |
|
thanks! Also for commenting in the thread there, I assume it was also you based on you username :) Indeed, I didn't realize that there is this limitation: if I start code in another buffer, its first run will not have run_count of I would propose the following:
this way it clearly shows what it is and does not carry a number that could be confusing. How about that @rbnpi ? |
This PR introduces a
run_countvar that shows how many reruns (Alt+r) have happends after full stop (Alt+s). This var is available for user code which can use its value (distinguishing between run_count == 1 - first run and runt_count >1 - subsequent runs).Example:
One application of this is to be able to "control effects dynamically", as discussed in this thread and is based on the idea of a workaround proposed here.
With
run_countavailable, the problem of controlling FX is solved as follows