Improved code generator for Faust
Posted: Sat Aug 31, 2019 12:45 am
Hello. I'm working on some projects which use increasingly more faust code for processing.
It's very good, I found however that these generated files are not easy to work with.
When I've examined some projects as zam-plugins and guitarix, the method for integrating faust is based on a transforming script, or a simple copy-pasting.
I thought of it, and made a tool for myself to generate with the least amount of hacks possible.
What I did essentially, it's to extract code and metadata out of faust's codegen and XML, and then I passed this entire data into a template engine.
By this method, the code is directly like I want out of the program, and is remade by a single rule of Makefile.
The program is located here, and I completed adding a manual today. Examples are included and buildable in the sources.
https://github.com/jpcima/faustpp
It's very good, I found however that these generated files are not easy to work with.
When I've examined some projects as zam-plugins and guitarix, the method for integrating faust is based on a transforming script, or a simple copy-pasting.
I thought of it, and made a tool for myself to generate with the least amount of hacks possible.
What I did essentially, it's to extract code and metadata out of faust's codegen and XML, and then I passed this entire data into a template engine.
By this method, the code is directly like I want out of the program, and is remade by a single rule of Makefile.
The program is located here, and I completed adding a manual today. Examples are included and buildable in the sources.
https://github.com/jpcima/faustpp