This is my latest project, a library for loading lua scripts from within Pd using pdlua. The goal was to make an environment where code could be more compositionally friendly, meaning being able to delay within a function, and "sprout" coroutines easily. On the simplest level, this is a thread scheduler, but it also has functions for scales, patterns, some rhythms, table manipulation, environments, random distributions, etc.
It does require knowing some lua, and if not on OS X it will require compiling an extension to pdlua with lua 5.1. Tested with pd-extended 43.4. Another caveat is that environments and patterns can be a bit complicated at first.
Here is the github page it may be downloaded from https://github.com/sebshader/lscore
enjoy!