Rory,
I’ve wanted to learn the internals of Csound for some time, now. But I absolutely despise C++. I’ve also wanted to learn how to embed Lua in another program, more than just the simple projects I’ve done so far. Yeah, I know, probably not the best first project. But that’s the goal.
Actually, the ultimate goal is to write a tool that would allow my bounding box library to be used to build something graphically. I know that that sort of task would require more complex data structures than what Csound can offer, and I know Lua.
Also, because this plugin would specifically be generating code that would only work with Cabbage, I figured I might as start with you. I’ve read through the basics on Csound, and I’ve got knowledge of embedding Lua, I’ve also looked through what they did with Python. I’ve been looking for the luaCsnd library code, but I’m guessing that’s a deprecated project.
Anyway, I was playing around with ChatGPT, and asked it to write at function that would divide a bounding box into smaller boxes, and while it wasn’t perfect Lua code, it did help me to consolidate several of my functions into one, and with a slight variation, I got rid of 3 more. So the bounding box library when from 43 opcodes, down to 11 or so. Plus, plus I rethought the create library, and that’s now the builder library, and only has maybe 300 lines (most of them comments).
Probably already said to much, so thanks…
Mike