Improved code generator for Faust

Programming applications for making music on Linux.

Moderators: khz, MattKingUSA

jpcima
Established Member
Posts: 5
Joined: Tue Aug 13, 2019 6:18 am

Improved code generator for Faust

Postby jpcima » 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

User avatar
CrocoDuck
Established Member
Posts: 1060
Joined: Sat May 05, 2012 6:12 pm
Contact:

Re: Improved code generator for Faust

Postby CrocoDuck » Sat Aug 31, 2019 1:44 pm

Good stuff! I love Faust.

By the way, the topic of integrating Faust code in other C++ code in a "faustian" way was covered at the IFC 2018. Here, if I remember properly.
Check my Linux audio experiments on my SoundCloud.
Browse my AUR packages.
Fancying a swim in the pond?

User avatar
marbangens
Established Member
Posts: 21
Joined: Fri Nov 16, 2018 8:39 pm

Re: Improved code generator for Faust

Postby marbangens » Sun Sep 01, 2019 7:10 am

Cool 8) Must try Faust, thanks

sletz
Posts: 1
Joined: Wed Sep 11, 2019 1:36 pm

Re: Improved code generator for Faust

Postby sletz » Wed Sep 11, 2019 1:39 pm

"I found however that these generated files are not easy to work with."

Usually you should not have to "hack" the generated code, but develop a C++ wrapper class. They are several way to do that. What is the exact problem you want to solve ?


Return to “Developer's Section”

Who is online

Users browsing this forum: No registered users and 1 guest