Example: Slicing Up A Processing Function With Coroutines

Heres an updated version, example on how to use Lua coroutines to slice up a processing function.
How to create something like a background worker thread in Lua, using coroutines and Renoises idle notifier.

No longer exists: Complete tool is attached and can also be found in the Renoise Tools SVN reps

Interesting, but the tool doesn’t show up in menu (dlded v5 api from link)

Seems to work okay here.

Yes, thank you!

question, is there a more up-to-date version of this? i’ve tried to incorporate it into sample loaders, normalizers etc, but so far have not been able to get much going on.

is there a chance the original post could be updated, since the file is no longer on some SVN but instead here:

p.s. getting a lot of crashes when trying to yield during/after C functions.
should i report them, or wait for a more improved version of this?

The one you’ve linked is up to date and working.

If Renoise is crashing, please report this.

Yes slicer working.
Maybe you have too much yields.
Try to yield from function after some time periodically.

Also you cannot yield from inside stack frames called from a c function call.

Lua resume > coroutine invokes > call C method > call Lua > Lua Yield (can’t)