Jump to content


Photo

Example: Slicing Up A Processing Function With Coroutines


  • Please log in to reply
3 replies to this topic

#1 taktik

taktik

    Renoise Developer

  • Admins
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 15040 posts
  • Gender:Male
  • Location:Berlin, Germany
  • Interests:füße waschen

Posted 01 November 2010 - 16:47

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.

process_slicer.lua
Expandable Code


And an example tool which creates a small GUI around this, allowing to start/stop a process and shows the current progress:

main.lua
Expandable Code


Complete tool is attached and can also be found in the Renoise Tools SVN reps

Attached Files


  • frenetic_friend likes this

#2 frenetic_friend

frenetic_friend

    Member

  • Normal Members
  • PipPip
  • 53 posts
  • Gender:Male
  • Location:Moscow

Posted 13 August 2017 - 17:05

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



#3 4Tey

4Tey

    Chief Above Chief Member

  • Normal Members
  • PipPipPipPipPipPip
  • 382 posts
  • Gender:Male

Posted 13 August 2017 - 17:46

Seems to work okay here.

Attached Files


  • frenetic_friend likes this

#4 frenetic_friend

frenetic_friend

    Member

  • Normal Members
  • PipPip
  • 53 posts
  • Gender:Male
  • Location:Moscow

Posted 13 August 2017 - 18:06

Yes, thank you!